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

Picture clipping method and device and terminal Download PDF

Info

Publication number
CN105094599A
CN105094599A CN201510368352.7A CN201510368352A CN105094599A CN 105094599 A CN105094599 A CN 105094599A CN 201510368352 A CN201510368352 A CN 201510368352A CN 105094599 A CN105094599 A CN 105094599A
Authority
CN
China
Prior art keywords
sliding trace
picture
cutting
starting point
point
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
CN201510368352.7A
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 CN201510368352.7A priority Critical patent/CN105094599A/en
Publication of CN105094599A publication Critical patent/CN105094599A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a picture cutting method, which comprises the following steps: detecting a sliding gesture of a user on a picture to be cut, wherein the picture to be cut is displayed on a user interface; responding to the sliding gesture, and acquiring a sliding track of the sliding gesture; and under the condition that the starting point and the ending point of the sliding track are not coincident, cutting the picture to be cut by taking a connecting line between the starting point and the ending point of the sliding track and a closed curve formed by the sliding track as a boundary to obtain a cut picture, wherein the cut picture is a picture in the closed curve in the picture to be cut. The embodiment of the invention also discloses a picture cutting device and a terminal. By adopting the embodiment of the invention, a relatively perfect picture can be cut out, and the picture cutting efficiency can be improved.

Description

A kind of image cropping method, device and terminal
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of image cropping method, 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 to existing picture and cuts out, obtain the part picture of user's needs from 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, picture to cut out etc. function.Image cropping can have various ways, cut out as square, heart is cut out, circle is cut out, User Defined is also had to cut out in addition, namely user can sketch the contours of a curved profile and cuts out treating on cutting picture at will to slide, and with the demand according to user, obtains picture region and shape that user wants.In the prior art scheme, user is needed to treat cutting picture slides to sketch the contours of a closed curve, picture cutting could be carried out according to closed curve, but due to the instability blocking or point setting-out of finger, be difficult to starting point and ending point to carry out perfect registration to form a closed curved profile by the finger setting-out of user, and the shake of starting point and ending point more close finger is more severe, be difficult to like this cut out more perfect picture, now often need again to draw closed curve, affect the efficiency of image cropping.
Summary of the invention
The embodiment of the present invention provides a kind of image cropping method, device and terminal.More perfect picture can be cut out, and the efficiency of picture cutting can be improved.
Embodiments provide a kind of image cropping method, comprising:
Detect user treating the slip gesture on cutting picture, wherein, described in treat cutting picture display on a user interface;
Respond described slip gesture, obtain the sliding trace of described slip gesture;
When the starting point and ending point of described sliding trace does not overlap, 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.
Wherein, after the described sliding trace obtaining described slip gesture, described method also comprises:
Described user interface shows described sliding trace.
Wherein, after the sliding trace of the described slip gesture of described acquisition, described with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for carrying out picture cutting with before obtaining cutting picture in border, described method also comprises:
Whether the distance between the starting point and ending point judging described sliding trace is less than predetermined threshold value;
If the distance between the starting point and ending point of described sliding trace is less than predetermined threshold value, from the starting point and ending point of the described sliding trace that is dynamically connected, make the line between the starting point and ending point of described sliding trace, in described user interface, form closed curve with described sliding trace.
Wherein, described method also comprises:
Region outside described region for the treatment of the described closed curve delineation of cutting picture arranges transparent layer.
Wherein, after the sliding trace of the described slip gesture of described acquisition, described with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for carrying out picture cutting with before obtaining cutting picture in border, described method also comprises:
Receive the cutting confirmation instruction that user sends;
Describedly carry out picture cutting with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for border and comprise:
Respond described cutting and confirm instruction, with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for carrying out picture cutting to obtain cutting picture in border.
Wherein, the described slip gesture of described response also comprises:
Picture in regional area near the terminal position of sliding trace described in Real-time Obtaining, wherein, the terminal of described sliding trace is positioned at described regional area;
Amplification process is carried out to the picture in described regional area, and at the picture of the appointed area of user interface display in the regional area amplifying process.
Wherein, described sliding trace comprises at least two cross-talk sliding traces, wherein, the slip gesture that described sub-sliding trace performs within discrete time for user is formed, according to the time sequencing that described sub-sliding trace is formed, using the starting point of sub-sliding trace that formed the at first starting point as described sliding trace, the terminating point of the sub-sliding trace finally formed is as the terminating point of described sliding trace; And in adjacent two sections of described sub-sliding traces, the terminating point of sub-sliding trace described in the last period overlaps with the starting point of rear one section of described sub-sliding trace.
Correspondingly, embodiments provide a kind of image cropping device, comprising:
Gesture detection module, is treating the slip gesture on cutting picture for detecting user, wherein, described in treat cutting picture display on a user interface;
Track acquisition module, for responding described slip gesture, obtains the sliding trace of described slip gesture;
Image cropping module, for when the starting point and ending point of described sliding trace does not overlap, 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.
Wherein, described device also comprises:
Track display module, for showing described sliding trace in described user interface.
Wherein, described image cropping module, also for judge described sliding trace starting point and ending point between distance whether be less than predetermined threshold value; If the distance between the starting point and ending point of described sliding trace is less than predetermined threshold value, from the starting point and ending point of the described sliding trace that is dynamically connected, make the line between the starting point and ending point of described sliding trace, in described user interface, form closed curve with described sliding trace.
Wherein, described image cropping module, also arranges transparent layer on the region outside described region for the treatment of the described closed curve delineation of cutting picture.
Wherein, described image cropping module, the cutting also sent for receiving user confirms instruction; Respond described cutting and confirm instruction, with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for carrying out picture cutting to obtain cutting picture in border.
Wherein, described image cropping module, also for the picture in the regional area near the terminal position of sliding trace described in Real-time Obtaining, wherein, the terminal of described sliding trace is positioned at described regional area; And carry out amplification process to the picture in described regional area, and at the picture of the appointed area of user interface display in the regional area amplifying process.
Further, described sliding trace comprises at least two cross-talk sliding traces, wherein, the slip gesture that described sub-sliding trace performs within discrete time for user is formed, according to the time sequencing that described sub-sliding trace is formed, using the starting point of sub-sliding trace that formed the at first starting point as described sliding trace, the terminating point of the sub-sliding trace finally formed is as the terminating point of described sliding trace; And in adjacent two sections of described sub-sliding traces, the terminating point of sub-sliding trace described in the last period overlaps with the starting point of rear one section of described sub-sliding trace.
Correspondingly, present invention also offers a kind of terminal, comprising:
Any one image cropping device described above.
Implement the embodiment of the present invention, first detect user and treating the slip gesture on cutting picture, then respond described slip gesture to obtain the sliding trace of described slip gesture; It is last when the starting point and ending point of described sliding trace does not overlap, 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, thus cut out out more perfect picture, and the efficiency of image cropping can be improved.
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 image cropping method that the present invention proposes;
Fig. 2 is the process flow diagram of another embodiment of a kind of image cropping method that the present invention proposes;
Fig. 3 is that the regional area picture that the embodiment of the present invention provides amplifies the design sketch shown;
Fig. 4 is the structural representation of a kind of image cropping device that the embodiment of the present invention proposes.
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 image cropping method that the present invention proposes.As shown in the figure, the image cropping method in the embodiment of the present invention comprises:
S101, detect user treating the slip gesture on cutting picture, wherein, described in treat cutting picture display on a user interface.
In specific implementation, first can open picture to be cut out according to the operational order of user's input, then enter into image cropping pattern, and then detection user treat the slip gesture on cutting picture in real time.
S102, responds described slip gesture, obtains the sliding trace of described slip gesture.
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 out picture.
Optionally, can picture in the regional area near the terminal position of sliding trace described in Real-time Obtaining, wherein, the terminal of described sliding trace is positioned at described regional area; Amplification process is carried out to the picture in described regional area, and at the picture of the appointed area of user interface display in the regional area amplifying process.Wherein, the terminal of sliding trace is the position of touch pointed in finger sliding process on a user interface.Appointed area can be the angle region of user interface, but is not limited to above-mentioned zone.In addition, when pointing in the sliding process in user interface, finger may block the picture in the regional area amplifying process of appointed area display, can change the position that appointed area shows on the display screen.It should be noted that, the enlargement factor of the picture in regional area can be set to 2 times or 3 times, but does not limit to above-mentioned multiple.
Such as: as shown in Figure 3, when the terminal of sliding trace is in position as shown in the figure, the picture in the regional area near this position can be amplified, and by the picture display upper left corner area on a user interface in the regional area through amplifying process.
S103, when the starting point and ending point of described sliding trace does not overlap, 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.
In specific implementation, whether the distance between the starting point and ending point that can judge described sliding trace is less than predetermined threshold value; If the distance between the starting point and ending point of described sliding trace is less than predetermined threshold value, from the starting point and ending point of the described sliding trace that is dynamically connected, make the line between the starting point and ending point of described sliding trace, in described user interface, form closed curve with described sliding trace.Wherein, the line between the starting point and ending point of sliding trace can be curve.Further, the area size of cutting out interface, family shared by picture can be obtained, according to the radius of area size determination curve cutting out interface, family shared by picture.If the distance between the starting point and ending point of sliding trace is not less than predetermined threshold value, then user can be pointed out to continue to perform slip gesture, until the distance between the starting point and ending point of sliding trace is less than predetermined threshold value.Wherein, predetermined threshold value can be set to 10px (pixel) or 15px, but is not limited to above-mentioned distance.
Further, when detect user stop on cutting picture, to perform slip gesture time, obtain the starting point coordinate position on a user interface of sliding trace, and the terminating point of sliding trace coordinate position on a user interface; According to starting point coordinate position on a user interface and the terminating point coordinate position on a user interface of sliding trace of sliding trace, the distance between the starting point and ending point determining sliding trace.
It should be noted that, when user starts when performing slip gesture on cutting picture at first, distance between 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 picture of cutting out just obtained levels off to straight line.When continuing to perform slip gesture and making the starting point and ending point of sliding trace be not less than predetermined threshold value, by automatically disconnect sliding trace starting point and ending point between connection.
Optionally, the cutting confirmation instruction that user sends can be received; Respond described cutting and confirm instruction, with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for carrying out picture cutting to obtain cutting picture in border.
Optionally, the region outside described region for the treatment of the described closed curve delineation of cutting picture can arrange transparent layer, thus the region within the closed curve cutting out picture and the region outside closed curve are distinguished.
Further alternative, sliding trace comprises at least two cross-talk sliding traces, wherein, the slip gesture that sub-sliding trace performs within discrete time for user is formed, according to the time sequencing that sub-sliding trace is formed, using the starting point of sub-sliding trace that formed the at first starting point as sliding trace, the terminating point of the sub-sliding trace finally formed is as the terminating point of sliding trace; And in adjacent two cross-talk sliding traces, the terminating point of last cross-talk sliding trace overlaps with the starting point of a rear cross-talk sliding trace.
In embodiments of the present invention, first detect user and treating the slip gesture on cutting picture, then respond described slip gesture to obtain the sliding trace of described slip gesture; It is last when the starting point and ending point of described sliding trace does not overlap, 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, thus cut out out more perfect picture, and the efficiency of image cropping can be improved.
Please refer to Fig. 2, Fig. 2 is the process flow diagram of another embodiment of a kind of image cropping method 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, detect user treating the slip gesture on cutting picture, wherein, described in treat cutting picture display on a user interface.
In specific implementation, first can open picture to be cut out according to the operational order of user's input, then enter into image cropping pattern, and then detection user treat the slip gesture on cutting picture in real time.
S202, responds described slip gesture, obtains the sliding trace of described slip gesture.
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 out picture.
Optionally, can picture in the regional area near the terminal position of sliding trace described in Real-time Obtaining, wherein, the terminal of described sliding trace is positioned at described regional area; Amplification process is carried out to the picture in described regional area, and at the picture of the appointed area of user interface display in the regional area amplifying process.Wherein, the terminal of sliding trace is the position of touch pointed in finger sliding process on a user interface.Appointed area can be the angle region of user interface, but is not limited to above-mentioned zone.In addition, when pointing in the sliding process in user interface, finger may block the picture in the regional area amplifying process of appointed area display, can change the position that appointed area shows on the display screen.It should be noted that, the enlargement factor of the picture in regional area can be set to 2 times or 3 times, but does not limit to above-mentioned multiple.
Such as: as shown in Figure 3, when the terminal of sliding trace is in position as shown in the figure, the picture in the regional area near this position can be amplified, and by the picture display upper left corner area on a user interface in the regional area through amplifying process.
S203, whether the distance between the starting point and ending point judging described sliding trace is less than predetermined threshold value.
In specific implementation, when detect user stop on cutting picture, to perform slip gesture time, obtain the starting point coordinate position on a user interface of sliding trace, and the terminating point of sliding trace coordinate position on a user interface; According to starting point coordinate position on a user interface and the terminating point coordinate position on a user interface of sliding trace of sliding trace, the distance between the starting point and ending point determining sliding trace.If the distance between the starting point and ending point of sliding trace is not less than predetermined threshold value, then user can be pointed out to continue to perform slip gesture, until the distance between the starting point and ending point of sliding trace is less than predetermined threshold value.Wherein, predetermined threshold value can be set to 10px (pixel) or 15px, but is not limited to above-mentioned distance.
S204, if the distance between the starting point and ending point of described sliding trace is less than predetermined threshold value, from the starting point and ending point of the described sliding trace that is dynamically connected, make the line between the starting point and ending point of described sliding trace, in described user interface, form closed curve with described sliding trace, thus obtain cutting picture.Wherein, described cutting picture for described in treat in closed curve described in cutting picture picture.Line between the starting point and ending point of sliding trace can be curve.Further, the area size of cutting out interface, family shared by picture can be obtained, according to the radius of area size determination curve cutting out interface, family shared by picture.
It should be noted that, when user starts when performing slip gesture on cutting picture at first, distance between 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 picture of cutting out just obtained levels off to straight line.When continuing to perform slip gesture and making the starting point and ending point of sliding trace be not less than predetermined threshold value, by automatically disconnect sliding trace starting point and ending point between connection.
Optionally, the cutting confirmation instruction that user sends can be received; Respond described cutting and confirm instruction, with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for carrying out picture cutting to obtain cutting picture in border.
Optionally, the region outside the described described closed curve treating cutting picture can arrange transparent layer, thus to cut out picture closed curve delineation region within region and region outside closed curve distinguish.
Further alternative, sliding trace comprises at least two cross-talk sliding traces, wherein, the slip gesture that sub-sliding trace performs within discrete time for user is formed, according to the time sequencing that sub-sliding trace is formed, using the starting point of sub-sliding trace that formed the at first starting point as sliding trace, the terminating point of the sub-sliding trace finally formed is as the terminating point of sliding trace; And in adjacent two cross-talk sliding traces, the terminating point of last cross-talk sliding trace overlaps with the starting point of a rear cross-talk sliding trace.
In embodiments of the present invention, first detect user and treating the slip gesture on cutting picture, then respond described slip gesture to obtain the sliding trace of described slip gesture; It is last when the starting point and ending point of described sliding trace does not overlap, 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, thus cut out out more perfect picture, and the efficiency of image cropping can be improved.
Please refer to Fig. 4, Fig. 4 is the structural representation of a kind of image cropping device that the embodiment of the present invention proposes.As shown in the figure, the image cropping device in the embodiment of the present invention comprises:
Gesture detection module 401, is treating the slip gesture on cutting picture for detecting user, wherein, described in treat cutting picture display on a user interface.
In specific implementation, first can open picture to be cut out according to the operational order of user's input, then enter into image cropping pattern, and then detection user treat the slip gesture on cutting picture in real time.
Track acquisition module 402, for responding described slip gesture, obtains the sliding trace of described slip gesture.
In specific implementation, when user being detected in the slip gesture on cutting picture, gesture of sliding described in real-time response.
Optionally, can picture in the regional area near the terminal position of sliding trace described in Real-time Obtaining, wherein, the terminal of described sliding trace is positioned at described regional area; Amplification process is carried out to the picture in described regional area, and at the picture of the appointed area of user interface display in the regional area amplifying process.Wherein, the terminal of sliding trace is the position of touch pointed in finger sliding process on a user interface.Appointed area can be the angle region of user interface, but is not limited to above-mentioned zone.In addition, when pointing in the sliding process in user interface, finger may block the picture in the regional area amplifying process of appointed area display, can change the position that appointed area shows on the display screen.It should be noted that, the enlargement factor of the picture in regional area can be set to 2 times or 3 times, but does not limit to above-mentioned multiple.
Such as: as shown in Figure 3, when the terminal of sliding trace is in position as shown in the figure, the picture in the regional area near this position can be amplified, and by the picture display upper left corner area on a user interface in the regional area through amplifying process.
Image cropping module 404, for when the starting point and ending point of described sliding trace does not overlap, 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.
In specific implementation, whether the distance between the starting point and ending point that can judge described sliding trace is less than predetermined threshold value; If the distance between the starting point and ending point of described sliding trace is less than predetermined threshold value, from the starting point and ending point of the described sliding trace that is dynamically connected, make the line between the starting point and ending point of described sliding trace, in described user interface, form closed curve with described sliding trace.Wherein, the line between the starting point and ending point of sliding trace can be curve.Further, the area size of cutting out interface, family shared by picture can be obtained, according to the radius of area size determination curve cutting out interface, family shared by picture.If the distance between the starting point and ending point of sliding trace is not less than predetermined threshold value, then user can be pointed out to continue to perform slip gesture, until the distance between the starting point and ending point of sliding trace is less than predetermined threshold value.Wherein, predetermined threshold value can be set to 10px (pixel) or 15px, but is not limited to above-mentioned distance.
Further, when detect user stop on cutting picture, to perform slip gesture time, obtain the starting point coordinate position on a user interface of sliding trace, and the terminating point of sliding trace coordinate position on a user interface; According to starting point coordinate position on a user interface and the terminating point coordinate position on a user interface of sliding trace of sliding trace, the distance between the starting point and ending point determining sliding trace.
It should be noted that, when user starts when performing slip gesture on cutting picture at first, distance between 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 picture of cutting out just obtained levels off to straight line.When continuing to perform slip gesture and making the starting point and ending point of sliding trace be not less than predetermined threshold value, by automatically disconnect sliding trace starting point and ending point between connection.
Optionally, the cutting confirmation instruction that user sends can be received; Respond described cutting and confirm instruction, with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for carrying out picture cutting to obtain cutting picture in border.
Optionally, the region outside described region for the treatment of the described closed curve delineation of cutting picture can arrange transparent layer, thus the region within the closed curve cutting out picture and the region outside closed curve are distinguished.
Further alternative, sliding trace comprises at least two cross-talk sliding traces, wherein, the slip gesture that sub-sliding trace performs within discrete time for user is formed, according to the time sequencing that sub-sliding trace is formed, using the starting point of sub-sliding trace that formed the at first starting point as sliding trace, the terminating point of the sub-sliding trace finally formed is as the terminating point of sliding trace; And in adjacent two cross-talk sliding traces, the terminating point of last cross-talk sliding trace overlaps with the starting point of a rear cross-talk sliding trace.
Optionally, as shown in Figure 4, the device in the embodiment of the present invention can further include:
Track display module 403, for showing described sliding trace in described user interface, confirms to point out user whether sliding trace meets the requirement of cutting out picture.
In embodiments of the present invention, first detect user and treating the slip gesture on cutting picture, then respond described slip gesture to obtain the sliding trace of described slip gesture; It is last when the starting point and ending point of described sliding trace does not overlap, 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, thus cut out out more perfect picture, and the efficiency of image cropping can be improved.
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 (15)

1. an image cropping method, is characterized in that, described method comprises:
Detect user treating the slip gesture on cutting picture, wherein, described in treat cutting picture display on a user interface;
Respond described slip gesture, obtain the sliding trace of described slip gesture;
When the starting point and ending point of described sliding trace does not overlap, 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.
2. the method for claim 1, is characterized in that, after the described sliding trace obtaining described slip gesture, described method also comprises:
Described user interface shows described sliding trace.
3. method as claimed in claim 2, it is characterized in that, after the sliding trace of the described slip gesture of described acquisition, described with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for carrying out picture cutting with before obtaining cutting picture in border, described method also comprises:
Whether the distance between the starting point and ending point judging described sliding trace is less than predetermined threshold value;
If the distance between the starting point and ending point of described sliding trace is less than predetermined threshold value, from the starting point and ending point of the described sliding trace that is dynamically connected, make the line between the starting point and ending point of described sliding trace, in described user interface, form closed curve with described sliding trace.
4. method as claimed in claim 3, it is characterized in that, described method also comprises:
Region outside described region for the treatment of the described closed curve delineation of cutting picture arranges transparent layer.
5. method as claimed in claim 3, it is characterized in that, after the sliding trace of the described slip gesture of described acquisition, described with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for carrying out picture cutting with before obtaining cutting picture in border, described method also comprises:
Receive the cutting confirmation instruction that user sends;
Describedly carry out picture cutting with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for border and comprise:
Respond described cutting and confirm instruction, with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for carrying out picture cutting to obtain cutting picture in border.
6. the method according to any one of claim 1 to 5, is characterized in that, the described slip gesture of described response also comprises:
Picture in regional area near the terminal position of sliding trace described in Real-time Obtaining, wherein, the terminal of described sliding trace is positioned at described regional area;
Amplification process is carried out to the picture in described regional area, and at the picture of the appointed area of user interface display in the regional area amplifying process.
7. the method according to any one of claim 1 to 5, it is characterized in that, described sliding trace comprises at least two cross-talk sliding traces, wherein, the slip gesture that described sub-sliding trace performs within discrete time for user is formed, according to the time sequencing that described sub-sliding trace is formed, using the starting point of sub-sliding trace that formed the at first starting point as described sliding trace, the terminating point of the sub-sliding trace finally formed is as the terminating point of described sliding trace; And in adjacent two sections of described sub-sliding traces, the terminating point of sub-sliding trace described in the last period overlaps with the starting point of rear one section of described sub-sliding trace.
8. an image cropping device, is characterized in that, described device comprises:
Gesture detection module, is treating the slip gesture on cutting picture for detecting user, wherein, described in treat cutting picture display on a user interface;
Track acquisition module, for responding described slip gesture, obtains the sliding trace of described slip gesture;
Image cropping module, for when the starting point and ending point of described sliding trace does not overlap, 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.
9. device as claimed in claim 8, it is characterized in that, described device also comprises:
Track display module, for showing described sliding trace in described user interface.
10. device as claimed in claim 9, is characterized in that,
Described image cropping module, also for judge described sliding trace starting point and ending point between distance whether be less than predetermined threshold value; And if the distance between the starting point and ending point of described sliding trace is less than predetermined threshold value, from the starting point and ending point of the described sliding trace that is dynamically connected, make the line between the starting point and ending point of described sliding trace, in described user interface, form closed curve with described sliding trace.
11. devices as claimed in claim 10, is characterized in that,
Described image cropping module, also arranges transparent layer on the region outside described region for the treatment of the described closed curve delineation of cutting picture.
12. devices as claimed in claim 10, is characterized in that,
Described image cropping module, the cutting also sent for receiving user confirms instruction; And respond described cutting and confirm instruction, with the line between the starting point and ending point of described sliding trace, the closed curve that formed with described sliding trace for carrying out picture cutting to obtain cutting picture in border.
13. devices according to any one of claim 8 to 12, is characterized in that,
Described image cropping module, also for the picture in the regional area near the terminal position of sliding trace described in Real-time Obtaining, wherein, the terminal of described sliding trace is positioned at described regional area; And carry out amplification process to the picture in described regional area, and at the picture of the appointed area of user interface display in the regional area amplifying process.
14. devices according to any one of claim 8 to 12, it is characterized in that, described sliding trace comprises at least two cross-talk sliding traces, wherein, the slip gesture that described sub-sliding trace performs within discrete time for user is formed, according to the time sequencing that described sub-sliding trace is formed, using the starting point of sub-sliding trace that formed the at first starting point as described sliding trace, the terminating point of the sub-sliding trace finally formed is as the terminating point of described sliding trace; And in adjacent two sections of described sub-sliding traces, the terminating point of sub-sliding trace described in the last period overlaps with the starting point of rear one section of described sub-sliding trace.
15. 1 kinds of terminals, is characterized in that, described terminal comprises:
Image cropping device as described in claim 8 ~ 14 any one.
CN201510368352.7A 2015-06-29 2015-06-29 Picture clipping method and device and terminal Pending CN105094599A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510368352.7A CN105094599A (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
CN201510368352.7A CN105094599A (en) 2015-06-29 2015-06-29 Picture clipping method and device and terminal

Publications (1)

Publication Number Publication Date
CN105094599A true CN105094599A (en) 2015-11-25

Family

ID=54575177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510368352.7A Pending CN105094599A (en) 2015-06-29 2015-06-29 Picture clipping method and device and terminal

Country Status (1)

Country Link
CN (1) CN105094599A (en)

Cited By (6)

* 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
CN106484263A (en) * 2016-10-12 2017-03-08 乐视控股(北京)有限公司 Screenshotss processing method and processing device
CN107092428A (en) * 2016-03-24 2017-08-25 口碑控股有限公司 A kind of picture amending method and device
WO2017185785A1 (en) * 2016-04-29 2017-11-02 努比亚技术有限公司 Method and apparatus for front-facing touch screen device and computer storage medium
CN110703973A (en) * 2019-09-30 2020-01-17 北京金山安全软件有限公司 Image cropping method and device
CN112395965A (en) * 2020-11-06 2021-02-23 山东鲁能软件技术有限公司 Mobile terminal face recognition system and method based on power intranet

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101122857A (en) * 2007-09-24 2008-02-13 腾讯科技(深圳)有限公司 Snatch screen system and method
CN101477440A (en) * 2009-01-15 2009-07-08 腾讯科技(深圳)有限公司 Screen capturing method and system
CN102263706A (en) * 2010-05-26 2011-11-30 腾讯科技(深圳)有限公司 Image interception method and apparatus thereof
CN102968268A (en) * 2012-10-23 2013-03-13 深圳市中兴移动通信有限公司 Picture cutting method and device
CN102968274A (en) * 2012-11-22 2013-03-13 广东欧珀移动通信有限公司 Free screen capturing method and free screen capturing system in mobile device
CN103530056A (en) * 2013-10-24 2014-01-22 深圳市中兴移动通信有限公司 Method for freely conducting screen capturing and mobile terminal
CN103942001A (en) * 2014-05-12 2014-07-23 上海卓悠网络科技有限公司 Free screen capture method of mobile terminal and mobile terminal
CN104598119A (en) * 2013-10-17 2015-05-06 深圳天科智慧科技有限公司 Screen capture method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101122857A (en) * 2007-09-24 2008-02-13 腾讯科技(深圳)有限公司 Snatch screen system and method
CN101477440A (en) * 2009-01-15 2009-07-08 腾讯科技(深圳)有限公司 Screen capturing method and system
CN102263706A (en) * 2010-05-26 2011-11-30 腾讯科技(深圳)有限公司 Image interception method and apparatus thereof
CN102968268A (en) * 2012-10-23 2013-03-13 深圳市中兴移动通信有限公司 Picture cutting method and device
CN102968274A (en) * 2012-11-22 2013-03-13 广东欧珀移动通信有限公司 Free screen capturing method and free screen capturing system in mobile device
CN104598119A (en) * 2013-10-17 2015-05-06 深圳天科智慧科技有限公司 Screen capture method and device
CN103530056A (en) * 2013-10-24 2014-01-22 深圳市中兴移动通信有限公司 Method for freely conducting screen capturing and mobile terminal
CN103942001A (en) * 2014-05-12 2014-07-23 上海卓悠网络科技有限公司 Free screen capture method of mobile terminal and mobile terminal

Cited By (7)

* 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
CN105654531B (en) * 2015-12-30 2019-01-08 北京金山安全软件有限公司 Method and device for drawing image contour
CN107092428A (en) * 2016-03-24 2017-08-25 口碑控股有限公司 A kind of picture amending method and device
WO2017185785A1 (en) * 2016-04-29 2017-11-02 努比亚技术有限公司 Method and apparatus for front-facing touch screen device and computer storage medium
CN106484263A (en) * 2016-10-12 2017-03-08 乐视控股(北京)有限公司 Screenshotss processing method and processing device
CN110703973A (en) * 2019-09-30 2020-01-17 北京金山安全软件有限公司 Image cropping method and device
CN112395965A (en) * 2020-11-06 2021-02-23 山东鲁能软件技术有限公司 Mobile terminal face recognition system and method based on power intranet

Similar Documents

Publication Publication Date Title
CN105094599A (en) Picture clipping method and device and terminal
CN104932827A (en) Picture clipping method and device and terminal
US10956035B2 (en) Triggering display of application
CA2824327C (en) Automatically switching between input modes for a user interface
WO2016127736A1 (en) Computing method for area of fingerprint overlapping area and electronic apparatus
US20140317524A1 (en) Automatic magnification and selection confirmation
KR20110139688A (en) Dual module portable devices
CN104049861B (en) The method of electronic device and the operation electronic device
CN105389165A (en) Document picture display method and device and terminal
US20180173867A1 (en) Method and electronic device for providing multi-level security
CN106127009A (en) The display packing of a kind of icon and terminal
US11119622B2 (en) Window expansion method and associated electronic device
CN104914979A (en) Display control method and terminal
KR20140025941A (en) Apparatas and method for merging and sharing a image in an electronic device
CN105681714A (en) Video shooting method and device and electronic equipment
CN104808959B (en) Information processing method and electronic equipment
CN105184838A (en) Picture processing method and terminal
US9696841B2 (en) Method and apparatus for controlling an electric device
CN104216639A (en) Terminal operation method
US20160239191A1 (en) Manipulation of content items
US20150103093A1 (en) System and Method for Displaying Image Data on a Vectorscope
US20170103557A1 (en) Localized brush stroke preview
CN104268193A (en) Advertisement webpage intercepting method and device
US20150347364A1 (en) Highlighting input area based on user input
CN103500311A (en) Software testing method and system

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

Application publication date: 20151125

RJ01 Rejection of invention patent application after publication