CN104932827A - Picture clipping method and device and terminal - Google Patents

Picture clipping method and device and terminal Download PDF

Info

Publication number
CN104932827A
CN104932827A CN201510367001.4A CN201510367001A CN104932827A CN 104932827 A CN104932827 A CN 104932827A CN 201510367001 A CN201510367001 A CN 201510367001A CN 104932827 A CN104932827 A CN 104932827A
Authority
CN
China
Prior art keywords
picture
sliding trace
cutting
regional area
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510367001.4A
Other languages
Chinese (zh)
Inventor
包立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510367001.4A priority Critical patent/CN104932827A/en
Publication of CN104932827A publication Critical patent/CN104932827A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a picture clipping method, which comprises the following steps: detecting a sliding gesture of a user on a display screen aiming at a picture to be cut; responding to the sliding gesture, and acquiring a sliding track of the sliding gesture in real time; acquiring a local area picture in the picture to be cut in real time according to the position of the end point of the sliding track; amplifying the local area picture, and displaying the amplified local area picture in a first preset designated area of the display screen; and cutting the picture to be cut according to the sliding track of the sliding gesture. The embodiment of the invention also discloses a picture cutting device and a terminal. By adopting the embodiment of the invention, the picture cutting accuracy can be improved.

Description

A kind of picture method of cutting out, device and terminal
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of picture method of cutting out, device and terminal.
Background technology
Along with the development of application technology, the picture of preservation can be set to desktop background or lantern slide by user, also can upload to and share on the net.But terminal only needs to present certain part in picture in some cases, or certain part in picture is added in another width picture, now needs to carry out local cutting to existing picture.In order to better meet this demand, had various photo handling software at present, these softwares provide the picture mosaic to picture, the Scalable of picture, the rotation of picture, cutting of picture etc. function.Picture cutting can have various ways, and as square cutting, heart-shaped cutting, circular cutting, also have User Defined cutting in addition, namely user at will can slide and sketch the contours of a curved profile to carry out cutting on mobile phone screen.In the prior art scheme, carry out in cutting process by finger input instruction to picture user, owing to taking certain area when finger slides on screen, the picture of cutting position will inevitably be blocked, cause accurately obtaining the cutting picture that user's needs obtain.
Summary of the invention
The embodiment of the present invention provides a kind of picture method of cutting out, device and terminal, can improve the degree of accuracy of picture cutting.
Embodiments provide a kind of picture method of cutting out, comprising:
Detect user on the display screen for the slip gesture treating cutting picture;
Respond described slip gesture, the sliding trace of gesture of sliding described in Real-time Obtaining;
According to the position of the terminal of described sliding trace, the regional area picture in cutting picture is treated described in Real-time Obtaining, wherein, described regional area picture changes along with the change of the position of the terminal of described sliding trace, makes the terminal of described sliding trace be arranged in described regional area picture;
Amplification process is carried out to described regional area picture, and preset appointed area display through amplifying the regional area picture of process at first of described display screen, wherein, showing the sliding trace being positioned at described regional area picture in the described regional area picture through amplifying process, operating described slip gesture to enable user according to being positioned at the described sliding trace amplifying the regional area picture of process;
According to the sliding trace of described slip gesture, treat that cutting picture carries out cutting to described.
Wherein, described method also comprises:
Determine that the distance of appointed area is preset in the position and described first of the terminal of described sliding trace;
If the position of the terminal of described sliding trace and the described first distance presetting appointed area are less than the first predetermined threshold value, then the described regional area picture through amplifying process are transformed to second and preset appointed area display.
Wherein, described method also comprises:
Determine that the distance of appointed area is preset in the position and described second of the terminal of described sliding trace;
If the position of the terminal of described sliding trace and the described second distance presetting appointed area are less than the first predetermined threshold value, then the described regional area picture through amplifying process are transformed to first and preset appointed area display.
Wherein, described to described regional area picture carry out amplification process, and described display screen first preset appointed area display through amplification process regional area picture comprise:
Obtain the enlargement factor for described regional area picture of user's input;
According to the described enlargement factor for described regional area picture, amplification process is carried out to described regional area picture.
Wherein, the position of the described terminal according to described sliding trace, treat described in Real-time Obtaining that the regional area picture in cutting picture comprises:
According to preset area size, described in Real-time Obtaining, treat the regional area picture centered by the final position of described sliding trace in cutting picture.
Wherein, the described sliding trace according to described slip gesture, treat that cutting picture carries out cutting and comprises to described:
At the end of described slip gesture being detected, described in determining, treat the starting point of the sliding trace on cutting picture and the spacing of terminating point;
If the starting point of described sliding trace and the spacing of terminating point are less than the second predetermined threshold value, the starting point and ending point of described sliding trace is connected, with the closed curve making the line between the starting point and ending point of described sliding trace, formed with described sliding trace;
With the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for treating that cutting picture carries out cutting to obtain cutting picture to described in border, wherein, described cutting picture for described in treat in closed curve described in cutting picture picture.
Correspondingly, embodiments provide a kind of picture Scissoring device, comprising:
Gesture detection module, for detecting user on the display screen for the slip gesture treating cutting picture;
Gesture respond module, for responding described slip gesture, the sliding trace of gesture of sliding described in Real-time Obtaining;
Picture acquisition module, for the position of the terminal according to described sliding trace, the regional area picture in cutting picture is treated described in Real-time Obtaining, wherein, described regional area picture changes along with the change of the position of the terminal of described sliding trace, makes the terminal of described sliding trace be arranged in described regional area picture;
Picture amplification module, for carrying out amplification process to described regional area picture, and preset appointed area display through amplifying the regional area picture of process at first of described display screen, wherein, showing the sliding trace being positioned at described regional area picture in the described regional area picture through amplifying process, operating described slip gesture to enable user according to being positioned at the described sliding trace amplifying the regional area picture of process;
To described, picture cutting module, for the sliding trace according to described slip gesture, treats that cutting picture carries out cutting.
Wherein, described picture amplification module, the distance of appointed area is preset in position and described first also for determining the terminal of described sliding trace; If the position of the terminal of described sliding trace and the described first distance presetting appointed area are less than the first predetermined threshold value, then the described regional area picture through amplifying process are transformed to second and preset appointed area display.
Wherein, described picture amplification module, the distance of appointed area is preset in position and described second also for determining the terminal of described sliding trace; If the position of the terminal of described sliding trace and the described second distance presetting appointed area are less than the first predetermined threshold value, then the described regional area picture through amplifying process are transformed to first and preset appointed area display.
Wherein, described picture amplification module comprises:
Multiple acquiring unit, for obtaining the enlargement factor for described regional area picture of user's input;
Magnification processing, for according to the described enlargement factor for described regional area picture, carries out amplification process to described regional area picture.
Wherein, described picture acquisition module, specifically for according to preset area size, treats the regional area picture centered by the final position of described sliding trace in cutting picture described in Real-time Obtaining.
Wherein, described picture cutting module comprises:
Spacing determining unit, at the end of described slip gesture being detected, treats the starting point of the sliding trace on cutting picture and the spacing of terminating point described in determining;
Determine linkage unit, if be less than the second predetermined threshold value for the starting point of described sliding trace and the spacing of terminating point, the starting point and ending point of described sliding trace is connected, with the closed curve making the line between the starting point and ending point of described sliding trace, formed with described sliding trace;
Connect acquiring unit, for with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for treating that cutting picture carries out cutting to obtain cutting picture to described in border, wherein, described cutting picture for described in treat in closed curve described in cutting picture picture.
Correspondingly, embodiments provide a kind of terminal, comprising:
Any one picture Scissoring device as above.
Implement the embodiment of the present invention, in prior art because finger obscures accurately can not obtain the cutting picture that user needs to obtain, first detection user is on the display screen for the slip gesture treating cutting picture; And then response slip gesture, the sliding trace of Real-time Obtaining slip gesture; Then according to the position of the terminal of sliding trace, Real-time Obtaining treats the regional area picture in cutting picture; Localized region picture carries out amplification process simultaneously, and presets appointed area display through amplifying the regional area picture of process at first of display screen; Finally according to the sliding trace of slip gesture, treat cutting picture and carry out cutting, thus improve the degree of accuracy of picture cutting.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the first embodiment process flow diagram of a kind of picture method of cutting out that the present invention proposes;
Fig. 2 is the process flow diagram of another embodiment of a kind of picture method of cutting out that the present invention proposes;
Fig. 3 is the display effect figure of the regional area picture amplifying process in the embodiment of the present invention;
Fig. 4 is the structural representation of a kind of picture Scissoring device that the embodiment of the present invention proposes;
Fig. 5 is the structural representation of the picture amplification module in the picture Scissoring device of embodiment of the present invention proposition;
Fig. 6 is the structural representation of the picture cutting module in the picture Scissoring device of embodiment of the present invention proposition.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Please refer to Fig. 1, Fig. 1 is the first embodiment process flow diagram of a kind of picture method of cutting out that the present invention proposes.As shown in the figure, the picture method of cutting out in the embodiment of the present invention comprises:
S101, detects user on the display screen for the slip gesture treating cutting picture.
In specific implementation, first can open according to the operational order of user's input and treat cutting picture, then enter into picture cutting pattern, and then detection user treat the slip gesture on cutting picture in real time.
S102, responds described slip gesture, the sliding trace of gesture of sliding described in Real-time Obtaining.
In specific implementation, when user being detected in the slip gesture on cutting picture, gesture of sliding described in real-time response.And described sliding trace can be shown in described user interface, confirm to point out user whether sliding trace meets the requirement of cutting picture.
S103, according to the position of the terminal of described sliding trace, the regional area picture in cutting picture is treated described in Real-time Obtaining, wherein, described regional area picture changes along with the change of the position of the terminal of described sliding trace, makes the terminal of described sliding trace be arranged in described regional area picture.
In specific implementation, according to preset area size, the regional area picture centered by the final position of described sliding trace in cutting picture described in Real-time Obtaining, can be treated.Wherein, the terminal of sliding trace is the position of touch pointed in finger sliding process on a user interface.Preset area size according to treating that the size of cutting picture limits under the prerequisite of default ratio coefficient, can will treat that the size of cutting picture is multiplied by default ratio coefficient and calculates preset area size.
S104, amplification process is carried out to described regional area picture, and preset appointed area display through amplifying the regional area picture of process at first of described display screen, wherein, showing the sliding trace being positioned at described regional area picture in the described regional area picture through amplifying process, operating described slip gesture to enable user according to being positioned at the described sliding trace amplifying the regional area picture of process.
In specific implementation, the enlargement factor for described regional area picture of user's input can be obtained; According to the described enlargement factor for described regional area picture, amplification process is carried out to described regional area picture.Wherein, the enlargement factor of regional area picture can be set to 2 times or 3 times, but does not limit to above-mentioned multiple.First default appointed area can be the angle region on display screen, also can be other regions on display screen.
Such as: as shown in Figure 3, when the terminal of sliding trace is positioned at position as shown in the figure, the regional area picture of this position can be amplified, and by the regional area picture of this amplification display upper right comer region on the display screen.And then under the prompting of the regional area picture through amplifying process, user accurately can input slip gesture and carry out cutting to picture.
Optionally, can determine that the distance of appointed area is preset in the position and described first of the terminal of described sliding trace; If the position of the terminal of described sliding trace and the described first distance presetting appointed area are less than the first predetermined threshold value, then the described regional area picture through amplifying process are transformed to second and preset appointed area display.Wherein, the second default appointed area can be the angle region on display screen, also can be other regions on display screen.First predetermined threshold value can be set to 20px or 30px, but is not limited to above-mentioned distance.As shown in Figure 3, when the first default appointed area is positioned at the upper left corner area of display screen, second presets the upper right comer region that appointed area can be positioned at display screen, but is not limited to above-mentioned position.
Further alternative, when the distance of appointed area is preset in the position and described second of the terminal determining described sliding trace; If the position of the terminal of described sliding trace and the described second distance presetting appointed area are less than the first predetermined threshold value, then the described regional area picture through amplifying process are transformed to first and preset appointed area display.
It should be noted that, when user is on the display screen for during until cutting picture input slip gesture, finger may block the regional area picture through amplifying process that first presets appointed area display, change the regional area picture display position on the display screen through amplifying process, thus finger obscures regional area picture can be avoided.
To described, S105, according to the sliding trace of described slip gesture, treats that cutting picture carries out cutting.
In specific implementation, when in the process inputting slip gesture user, the starting point and ending point of sliding trace closes, to described, the closed curve formed with sliding trace is for treating that cutting picture carries out cutting to obtain cutting picture in border.
Optionally, first at the end of described slip gesture being detected, described in determining, treat the starting point of the sliding trace on cutting picture and the spacing of terminating point.Wherein, starting point coordinate position on the display screen and the terminating point coordinate position on the display screen of sliding trace of sliding trace can be obtained; According to the coordinate position of the coordinate position of the starting point of sliding trace and the terminating point of sliding trace, determine the starting point of the sliding trace treated on cutting picture and the spacing of terminating point.
Then, if the starting point of described sliding trace and the spacing of terminating point are less than the second predetermined threshold value, the starting point and ending point of described sliding trace is connected, with the closed curve making the line between the starting point and ending point of described sliding trace, formed with described sliding trace.If the starting point of described sliding trace and the spacing of terminating point are not less than the second predetermined threshold value, user then can be pointed out to continue on the display screen for treating cutting picture input slip gesture, until the starting point and ending point spacing of sliding trace is less than the second predetermined threshold value.Wherein, the second predetermined threshold value can be set to 15px (pixel) or 10px, but is not limited to above-mentioned distance, and the line between the starting point and ending point of sliding trace can be curve.Further, the area size of user interface shared by cutting picture can be obtained, the radius of the area size determination curve of user interface shared by cutting picture.
Finally, with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for treating that cutting picture carries out cutting to obtain cutting picture to described in border, wherein, described cutting picture for described in treat in closed curve described in cutting picture picture.
It should be noted that, when user starts when inputting slip gesture on cutting picture at first, the spacing of the starting point and ending point of sliding trace is necessarily less than predetermined threshold value, in this case, also can connect the starting point and ending point of described sliding trace, the cutting picture just obtained levels off to straight line.When user continue input slip gesture make the starting point and ending point of sliding trace be not less than predetermined threshold value time, by automatically disconnect sliding trace starting point and ending point between connection.
In embodiments of the present invention, user is first detected on the display screen for the slip gesture treating cutting picture; And then response slip gesture, the sliding trace of Real-time Obtaining slip gesture; Then according to the position of the terminal of sliding trace, Real-time Obtaining treats the regional area picture in cutting picture; Localized region picture carries out amplification process simultaneously, and presets appointed area display through amplifying the regional area picture of process at first of display screen; Finally according to the sliding trace of slip gesture, treat cutting picture and carry out cutting, thus improve the degree of accuracy of picture cutting.
Please refer to Fig. 2, Fig. 2 is the second embodiment process flow diagram of a kind of picture method of cutting out that the present invention proposes.As shown in the figure, the picture method of cutting out in the embodiment of the present invention comprises:
S201, detects user on the display screen for the slip gesture treating cutting picture.
In specific implementation, first can open according to the operational order of user's input and treat cutting picture, then enter into picture cutting pattern, and then detection user treat the slip gesture on cutting picture in real time.
S202, responds described slip gesture, the sliding trace of gesture of sliding described in Real-time Obtaining.
In specific implementation, when user being detected in the slip gesture on cutting picture, gesture of sliding described in real-time response.And described sliding trace can be shown in described user interface, confirm to point out user whether sliding trace meets the requirement of cutting picture.
S203, according to the position of the terminal of described sliding trace, the regional area picture in cutting picture is treated described in Real-time Obtaining, wherein, described regional area picture changes along with the change of the position of the terminal of described sliding trace, makes the terminal of described sliding trace be arranged in described regional area picture.
In specific implementation, according to preset area size, the regional area picture centered by the final position of described sliding trace in cutting picture described in Real-time Obtaining, can be treated.Wherein, the terminal of sliding trace is the position of touch pointed in finger sliding process on a user interface.Preset area size according to treating that the size of cutting picture limits under the prerequisite of default ratio coefficient, can will treat that the size of cutting picture is multiplied by default ratio coefficient and calculates preset area size.
S204, amplification process is carried out to described regional area picture, and preset appointed area display through amplifying the regional area picture of process at first of described display screen, wherein, showing the sliding trace being positioned at described regional area picture in the described regional area picture through amplifying process, operating described slip gesture to enable user according to being positioned at the described sliding trace amplifying the regional area picture of process.
In specific implementation, the enlargement factor for described regional area picture of user's input can be obtained; According to the described enlargement factor for described regional area picture, amplification process is carried out to described regional area picture.Wherein, the enlargement factor of regional area picture can be set to 2 times or 3 times, but does not limit to above-mentioned multiple.First default appointed area can be the angle region on display screen, also can be other regions on display screen.
Such as: as shown in Figure 3, when the terminal of sliding trace is positioned at position as shown in the figure, the regional area picture of this position can be amplified, and by the regional area picture of this amplification display upper right comer region on the display screen.And then under the prompting of the regional area picture through amplifying process, user accurately can input slip gesture and carry out cutting to picture.
Optionally, can determine that the distance of appointed area is preset in the position and described first of the terminal of described sliding trace; If the position of the terminal of described sliding trace and the described first distance presetting appointed area are less than the first predetermined threshold value, then the described regional area picture through amplifying process are transformed to second and preset appointed area display.Wherein, the second default appointed area can be the angle region on display screen, also can be other regions on display screen.First predetermined threshold value can be set to 20px or 30px, but is not limited to above-mentioned distance.As shown in Figure 3, when the first default appointed area is positioned at the upper left corner area of display screen, second presets the upper right comer region that appointed area can be positioned at display screen, but is not limited to above-mentioned position.
Further alternative, when the distance of appointed area is preset in the position and described second of the terminal determining described sliding trace; If the position of the terminal of described sliding trace and the described second distance presetting appointed area are less than the first predetermined threshold value, then the described regional area picture through amplifying process are transformed to first and preset appointed area display.
It should be noted that, when user is on the display screen for during until cutting picture input slip gesture, finger may block the regional area picture through amplifying process that first presets appointed area display, change the regional area picture display position on the display screen through amplifying process, thus finger obscures regional area picture can be avoided.
S205, at the end of described slip gesture being detected, treats the starting point of the sliding trace on cutting picture and the spacing of terminating point described in determining.
In specific implementation, starting point coordinate position on the display screen and the terminating point coordinate position on the display screen of sliding trace of sliding trace can be obtained; According to the coordinate position of the coordinate position of the starting point of sliding trace and the terminating point of sliding trace, determine the starting point of the sliding trace treated on cutting picture and the spacing of terminating point.
S206, if the starting point of described sliding trace and the spacing of terminating point are less than the second predetermined threshold value, the starting point and ending point of described sliding trace is connected, with the closed curve making the line between the starting point and ending point of described sliding trace, formed with described sliding trace.
In specific implementation, if the starting point of described sliding trace and the spacing of terminating point are not less than the second predetermined threshold value, user then can be pointed out to continue on the display screen for treating cutting picture input slip gesture, until the starting point and ending point spacing of sliding trace is less than the second predetermined threshold value.Wherein, the second predetermined threshold value can be set to 15px (pixel) or 10px, but is not limited to above-mentioned distance, and the line between the starting point and ending point of sliding trace can be curve.Further, the area size of user interface shared by cutting picture can be obtained, the radius of the area size determination curve of user interface shared by cutting picture.
S207, with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for treating that cutting picture carries out cutting to obtain cutting picture to described in border, wherein, described cutting picture for described in treat in closed curve described in cutting picture picture.
It should be noted that, when user starts when inputting slip gesture on cutting picture at first, the spacing of the starting point and ending point of sliding trace is necessarily less than predetermined threshold value, in this case, also can connect the starting point and ending point of described sliding trace, the cutting picture just obtained levels off to straight line.When user continue input slip gesture make the starting point and ending point of sliding trace be not less than predetermined threshold value time, by automatically disconnect sliding trace starting point and ending point between connection.
In embodiments of the present invention, user is first detected on the display screen for the slip gesture treating cutting picture; And then response slip gesture, the sliding trace of Real-time Obtaining slip gesture; Then according to the position of the terminal of sliding trace, Real-time Obtaining treats the regional area picture in cutting picture; Localized region picture carries out amplification process simultaneously, and presets appointed area display through amplifying the regional area picture of process at first of display screen; Finally according to the sliding trace of slip gesture, treat cutting picture and carry out cutting, thus improve the degree of accuracy of picture cutting.
Please refer to Fig. 4, Fig. 4 is the structural representation of a kind of picture Scissoring device that the embodiment of the present invention proposes, and as shown in the figure, the picture Scissoring device in the embodiment of the present invention comprises:
Gesture detection module 401, for detecting user on the display screen for the slip gesture treating cutting picture.
In specific implementation, first can open according to the operational order of user's input and treat cutting picture, then enter into picture cutting pattern, and then detection user treat the slip gesture on cutting picture in real time.
Gesture respond module 402, for responding described slip gesture, the sliding trace of gesture of sliding described in Real-time Obtaining.
In specific implementation, when user being detected in the slip gesture on cutting picture, gesture of sliding described in real-time response.And described sliding trace can be shown in described user interface, confirm to point out user whether sliding trace meets the requirement of cutting picture.
Picture acquisition module 403, for the position of the terminal according to described sliding trace, the regional area picture in cutting picture is treated described in Real-time Obtaining, wherein, described regional area picture changes along with the change of the position of the terminal of described sliding trace, makes the terminal of described sliding trace be arranged in described regional area picture.
In specific implementation, according to preset area size, the regional area picture centered by the final position of described sliding trace in cutting picture described in Real-time Obtaining, can be treated.Wherein, the terminal of sliding trace is the position of touch pointed in finger sliding process on a user interface.Preset area size according to treating that the size of cutting picture limits under the prerequisite of default ratio coefficient, can will treat that the size of cutting picture is multiplied by default ratio coefficient and calculates preset area size.
Picture amplification module 404, for carrying out amplification process to described regional area picture, and preset appointed area display through amplifying the regional area picture of process at first of described display screen, wherein, showing the sliding trace being positioned at described regional area picture in the described regional area picture through amplifying process, operating described slip gesture to enable user according to being positioned at the described sliding trace amplifying the regional area picture of process.
In specific implementation, as shown in Figure 5, picture amplification module 404 may further include:
Multiple acquiring unit 501, for obtaining the enlargement factor for described regional area picture of user's input.
Magnification processing 502, for according to the described enlargement factor for described regional area picture, carries out amplification process to described regional area picture.Wherein, the enlargement factor of regional area picture can be set to 2 times or 3 times, but does not limit to above-mentioned multiple.First default appointed area can be the angle region on display screen, also can be other regions on display screen.
Such as: as shown in Figure 3, when the terminal of sliding trace is positioned at position as shown in the figure, the regional area picture of this position can be amplified, and by the regional area picture of this amplification display upper right comer region on the display screen.And then under the prompting of the regional area picture through amplifying process, user accurately can input slip gesture and carry out cutting to picture.
Optionally, can determine that the distance of appointed area is preset in the position and described first of the terminal of described sliding trace; If the position of the terminal of described sliding trace and the described first distance presetting appointed area are less than the first predetermined threshold value, then the described regional area picture through amplifying process are transformed to second and preset appointed area display.Wherein, the second default appointed area can be the angle region on display screen, also can be other regions on display screen.First predetermined threshold value can be set to 20px or 30px, but is not limited to above-mentioned distance.As shown in Figure 3, when the first default appointed area is positioned at the upper left corner area of display screen, second presets the upper right comer region that appointed area can be positioned at display screen, but is not limited to above-mentioned position.
Further alternative, when the distance of appointed area is preset in the position and described second of the terminal determining described sliding trace; If the position of the terminal of described sliding trace and the described second distance presetting appointed area are less than the first predetermined threshold value, then the described regional area picture through amplifying process are transformed to first and preset appointed area display.
It should be noted that, when user is on the display screen for during until cutting picture input slip gesture, finger may block the regional area picture through amplifying process that first presets appointed area display, change the regional area picture display position on the display screen through amplifying process, thus finger obscures regional area picture can be avoided.
To described, picture cutting module 405, for the sliding trace according to described slip gesture, treats that cutting picture carries out cutting.
In specific implementation, when in the process inputting slip gesture user, the starting point and ending point of sliding trace closes, to described, the closed curve formed with sliding trace is for treating that cutting picture carries out cutting to obtain cutting picture in border.
Optionally, as shown in Figure 6, picture cutting module 405 can further include:
Spacing determining unit 601, at the end of described slip gesture being detected, treats the starting point of the sliding trace on cutting picture and the spacing of terminating point described in determining.
In specific implementation, starting point coordinate position on the display screen and the terminating point coordinate position on the display screen of sliding trace of sliding trace can be obtained; According to the coordinate position of the coordinate position of the starting point of sliding trace and the terminating point of sliding trace, determine the starting point of the sliding trace treated on cutting picture and the spacing of terminating point.
Determine linkage unit 602, if be less than the second predetermined threshold value for the starting point of described sliding trace and the spacing of terminating point, the starting point and ending point of described sliding trace is connected, with the closed curve making the line between the starting point and ending point of described sliding trace, formed with described sliding trace.
In specific implementation, if the starting point of described sliding trace and the spacing of terminating point are not less than the second predetermined threshold value, user then can be pointed out to continue on the display screen for treating cutting picture input slip gesture, until the starting point and ending point spacing of sliding trace is less than the second predetermined threshold value.Wherein, the second predetermined threshold value can be set to 15px (pixel) or 10px, but is not limited to above-mentioned distance, and the line between the starting point and ending point of sliding trace can be curve.Further, the area size of user interface shared by cutting picture can be obtained, the radius of the area size determination curve of user interface shared by cutting picture.
Connect acquiring unit 603, for with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for treating that cutting picture carries out cutting to obtain cutting picture to described in border, wherein, described cutting picture for described in treat in closed curve described in cutting picture picture.
It should be noted that, when user starts when inputting slip gesture on cutting picture at first, the spacing of the starting point and ending point of sliding trace is necessarily less than predetermined threshold value, in this case, also can connect the starting point and ending point of described sliding trace, the cutting picture just obtained levels off to straight line.When user continue input slip gesture make the starting point and ending point of sliding trace be not less than predetermined threshold value time, by automatically disconnect sliding trace starting point and ending point between connection.
In embodiments of the present invention, user is first detected on the display screen for the slip gesture treating cutting picture; And then response slip gesture, the sliding trace of Real-time Obtaining slip gesture; Then according to the position of the terminal of sliding trace, Real-time Obtaining treats the regional area picture in cutting picture; Localized region picture carries out amplification process simultaneously, and presets appointed area display through amplifying the regional area picture of process at first of display screen; Finally according to the sliding trace of slip gesture, treat cutting picture and carry out cutting, thus improve the degree of accuracy of picture cutting.
In the description of this instructions, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not must for be identical embodiment or example.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this instructions or example and different embodiment or example can carry out combining and combining by those skilled in the art.
In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise at least one this feature.In describing the invention, the implication of " multiple " is at least two, such as two, three etc., unless otherwise expressly limited specifically.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.

Claims (13)

1. a picture method of cutting out, is characterized in that, described method comprises:
Detect user on the display screen for the slip gesture treating cutting picture;
Respond described slip gesture, the sliding trace of gesture of sliding described in Real-time Obtaining;
According to the position of the terminal of described sliding trace, the regional area picture in cutting picture is treated described in Real-time Obtaining, wherein, described regional area picture changes along with the change of the position of the terminal of described sliding trace, makes the terminal of described sliding trace be arranged in described regional area picture;
Amplification process is carried out to described regional area picture, and preset appointed area display through amplifying the regional area picture of process at first of described display screen, wherein, showing the sliding trace being positioned at described regional area picture in the described regional area picture through amplifying process, operating described slip gesture to enable user according to being positioned at the described sliding trace amplifying the regional area picture of process;
According to the sliding trace of described slip gesture, treat that cutting picture carries out cutting to described.
2. the method for claim 1, is characterized in that, described method also comprises:
Determine that the distance of appointed area is preset in the position and described first of the terminal of described sliding trace;
If the position of the terminal of described sliding trace and the described first distance presetting appointed area are less than the first predetermined threshold value, then the described regional area picture through amplifying process are transformed to second and preset appointed area display.
3. method as claimed in claim 2, it is characterized in that, described method also comprises:
Determine that the distance of appointed area is preset in the position and described second of the terminal of described sliding trace;
If the position of the terminal of described sliding trace and the described second distance presetting appointed area are less than the first predetermined threshold value, then the described regional area picture through amplifying process are transformed to first and preset appointed area display.
4. the method for claim 1, is characterized in that, described to described regional area picture carry out amplification process, and described display screen first preset appointed area display through amplification process regional area picture comprise:
Obtain the enlargement factor for described regional area picture of user's input;
According to the described enlargement factor for described regional area picture, amplification process is carried out to described regional area picture.
5. the method according to any one of claim 1-4, is characterized in that, the position of the described terminal according to described sliding trace, treats that the regional area picture in cutting picture comprises described in Real-time Obtaining:
According to preset area size, described in Real-time Obtaining, treat the regional area picture centered by the final position of described sliding trace in cutting picture.
6. method as claimed in any one of claims 1 to 5, wherein, is characterized in that, the described sliding trace according to described slip gesture, treats that cutting picture carries out cutting and comprises to described:
At the end of described slip gesture being detected, described in determining, treat the starting point of the sliding trace on cutting picture and the spacing of terminating point;
If the starting point of described sliding trace and the spacing of terminating point are less than the second predetermined threshold value, the starting point and ending point of described sliding trace is connected, with the closed curve making the line between the starting point and ending point of described sliding trace, formed with described sliding trace;
With the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for treating that cutting picture carries out cutting to obtain cutting picture to described in border, wherein, described cutting picture for described in treat in closed curve described in cutting picture picture.
7. a picture Scissoring device, is characterized in that, described device comprises:
Gesture detection module, for detecting user on the display screen for the slip gesture treating cutting picture;
Gesture respond module, for responding described slip gesture, the sliding trace of gesture of sliding described in Real-time Obtaining;
Picture acquisition module, for the position of the terminal according to described sliding trace, the regional area picture in cutting picture is treated described in Real-time Obtaining, wherein, described regional area picture changes along with the change of the position of the terminal of described sliding trace, makes the terminal of described sliding trace be arranged in described regional area picture;
Picture amplification module, for carrying out amplification process to described regional area picture, and preset appointed area display through amplifying the regional area picture of process at first of described display screen, wherein, showing the sliding trace being positioned at described regional area picture in the described regional area picture through amplifying process, operating described slip gesture to enable user according to being positioned at the described sliding trace amplifying the regional area picture of process;
To described, picture cutting module, for the sliding trace according to described slip gesture, treats that cutting picture carries out cutting.
8. device as claimed in claim 7, is characterized in that,
Described picture amplification module, the distance of appointed area is preset in position and described first also for determining the terminal of described sliding trace; If the position of the terminal of described sliding trace and the described first distance presetting appointed area are less than the first predetermined threshold value, then the described regional area picture through amplifying process are transformed to second and preset appointed area display.
9. device as claimed in claim 8, is characterized in that,
Described picture amplification module, the distance of appointed area is preset in position and described second also for determining the terminal of described sliding trace; If the position of the terminal of described sliding trace and the described second distance presetting appointed area are less than the first predetermined threshold value, then the described regional area picture through amplifying process are transformed to first and preset appointed area display.
10. device as claimed in claim 7, it is characterized in that, described picture amplification module comprises:
Multiple acquiring unit, for obtaining the enlargement factor for described regional area picture of user's input;
Magnification processing, for according to the described enlargement factor for described regional area picture, carries out amplification process to described regional area picture.
11. devices according to any one of claim 7-10, is characterized in that,
Described picture acquisition module, specifically for according to preset area size, treats the regional area picture centered by the final position of described sliding trace in cutting picture described in Real-time Obtaining.
12. devices as described in claim 7 ~ 11 any one, it is characterized in that, described picture cutting module comprises:
Spacing determining unit, at the end of described slip gesture being detected, treats the starting point of the sliding trace on cutting picture and the spacing of terminating point described in determining;
Determine linkage unit, if be less than the second predetermined threshold value for the starting point of described sliding trace and the spacing of terminating point, the starting point and ending point of described sliding trace is connected, with the closed curve making the line between the starting point and ending point of described sliding trace, formed with described sliding trace;
Connect acquiring unit, for with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for treating that cutting picture carries out cutting to obtain cutting picture to described in border, wherein, described cutting picture for described in treat in closed curve described in cutting picture picture.
13. 1 kinds of terminals, is characterized in that, described terminal comprises:
Picture Scissoring device as described in claim 7 ~ 12 any one.
CN201510367001.4A 2015-06-29 2015-06-29 Picture clipping method and device and terminal Pending CN104932827A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510367001.4A CN104932827A (en) 2015-06-29 2015-06-29 Picture clipping method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510367001.4A CN104932827A (en) 2015-06-29 2015-06-29 Picture clipping method and device and terminal

Publications (1)

Publication Number Publication Date
CN104932827A true CN104932827A (en) 2015-09-23

Family

ID=54120008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510367001.4A Pending CN104932827A (en) 2015-06-29 2015-06-29 Picture clipping method and device and terminal

Country Status (1)

Country Link
CN (1) CN104932827A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105654531A (en) * 2015-12-30 2016-06-08 北京金山安全软件有限公司 Method and device for drawing image contour
WO2016188199A1 (en) * 2015-11-25 2016-12-01 中兴通讯股份有限公司 Method and device for clipping pictures
CN106484264A (en) * 2016-10-12 2017-03-08 乐视控股(北京)有限公司 Screenshotss processing method and processing device
WO2018010438A1 (en) * 2016-07-11 2018-01-18 中兴通讯股份有限公司 Responding method and apparatus for terminal
CN112215648A (en) * 2020-10-12 2021-01-12 上海酷量信息技术有限公司 Picture processing system and method suitable for multiple advertisement platforms
CN112445398A (en) * 2019-09-04 2021-03-05 上海掌门科技有限公司 Method, electronic device and computer readable medium for editing pictures
CN113448473A (en) * 2021-06-23 2021-09-28 深圳市润天智数字设备股份有限公司 Visual operation method and device for picture cutting area
CN113947954A (en) * 2021-10-18 2022-01-18 贵州振华信息技术有限公司 Manuscript demonstration system with cutting function and demonstration method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477440A (en) * 2009-01-15 2009-07-08 腾讯科技(深圳)有限公司 Screen capturing method and system
CN102708540A (en) * 2012-04-21 2012-10-03 上海量明科技发展有限公司 Method and client side for zooming screen capturing areas
CN103092520A (en) * 2013-01-25 2013-05-08 广东欧珀移动通信有限公司 Method and device of screen image clipping and touch screen mobile device
CN103226806A (en) * 2013-04-03 2013-07-31 广东欧珀移动通信有限公司 Method and camera system for enlarging picture partially
CN103309609A (en) * 2012-03-08 2013-09-18 索尼公司 Display control device, display control method, and computer-readable recording medium
CN103942001A (en) * 2014-05-12 2014-07-23 上海卓悠网络科技有限公司 Free screen capture method of mobile terminal and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477440A (en) * 2009-01-15 2009-07-08 腾讯科技(深圳)有限公司 Screen capturing method and system
CN103309609A (en) * 2012-03-08 2013-09-18 索尼公司 Display control device, display control method, and computer-readable recording medium
CN102708540A (en) * 2012-04-21 2012-10-03 上海量明科技发展有限公司 Method and client side for zooming screen capturing areas
CN103092520A (en) * 2013-01-25 2013-05-08 广东欧珀移动通信有限公司 Method and device of screen image clipping and touch screen mobile device
CN103226806A (en) * 2013-04-03 2013-07-31 广东欧珀移动通信有限公司 Method and camera system for enlarging picture partially
CN103942001A (en) * 2014-05-12 2014-07-23 上海卓悠网络科技有限公司 Free screen capture method of mobile terminal and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
腾讯: "[公告] 腾讯通RTX2013正式版发布", 《URL:HTTP://RTX.TENCENT.COM/RTX/FILES/355.SHTML》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016188199A1 (en) * 2015-11-25 2016-12-01 中兴通讯股份有限公司 Method and device for clipping pictures
CN105654531A (en) * 2015-12-30 2016-06-08 北京金山安全软件有限公司 Method and device for drawing image contour
CN105654531B (en) * 2015-12-30 2019-01-08 北京金山安全软件有限公司 Method and device for drawing image contour
WO2018010438A1 (en) * 2016-07-11 2018-01-18 中兴通讯股份有限公司 Responding method and apparatus for terminal
CN106484264A (en) * 2016-10-12 2017-03-08 乐视控股(北京)有限公司 Screenshotss processing method and processing device
CN112445398A (en) * 2019-09-04 2021-03-05 上海掌门科技有限公司 Method, electronic device and computer readable medium for editing pictures
CN112215648A (en) * 2020-10-12 2021-01-12 上海酷量信息技术有限公司 Picture processing system and method suitable for multiple advertisement platforms
CN113448473A (en) * 2021-06-23 2021-09-28 深圳市润天智数字设备股份有限公司 Visual operation method and device for picture cutting area
CN113448473B (en) * 2021-06-23 2023-10-27 深圳市润天智数字设备股份有限公司 Visual operation method and device for picture cropping area
CN113947954A (en) * 2021-10-18 2022-01-18 贵州振华信息技术有限公司 Manuscript demonstration system with cutting function and demonstration method

Similar Documents

Publication Publication Date Title
CN104932827A (en) Picture clipping method and device and terminal
CN105094599A (en) Picture clipping method and device and terminal
TWI619080B (en) Method for calculating fingerprint overlapping region and electronic device
JP6869377B2 (en) QR code (registered trademark) positioning method and equipment
CN104598151A (en) Recognition method and recognition device for blank screen gestures
US20160349983A1 (en) Terminal screen shot method and terminal
CN105487743A (en) Application configuration method and apparatus and mobile terminal
CN104050004B (en) interface icon color setting method, device and terminal
CN104914979A (en) Display control method and terminal
CN104574454B (en) Image processing method and device
US9696841B2 (en) Method and apparatus for controlling an electric device
CN104808959B (en) Information processing method and electronic equipment
CN104536661A (en) Terminal screen shot method
CN104216740A (en) Application software management method and device and terminal
EP2615536A2 (en) Apparatus and method for zooming touch screen in electronic device
CN104216639A (en) Terminal operation method
JP7382651B2 (en) Programming devices and programs
CN104375740A (en) Cursor positioning method, device and terminal
CN104270680A (en) Resource playing control method and device
CN105446641A (en) Touch screen icon one-hand operating method and system and mobile terminal
CN104778007A (en) Screen capturing method and screen capturing device
CN105094669A (en) Method and device for switching multiple tab pages of browser
CN104268193A (en) Advertisement webpage intercepting method and device
CN105184838A (en) Picture processing method and terminal
CN105260081A (en) Icon processing method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150923