Mobile terminal-based photograph deletion method and mobile terminal
First Claim
1. A mobile terminal-based photograph deletion method, comprising steps of:
- mapping a preset touch gesture on a touchscreen of a mobile terminal to a deletion command;
receiving a touch gesture on an area of thumbnail view of pictures on a photography interface of the touchscreen, in which the photography interface is used to take a picture, and determining whether the touch gesture indicates a click command when the mobile terminal is used to take a photograph;
determining whether the touch gesture matches the preset touch gesture when the touch gesture is determined not to indicate the click command;
determining a target picture according to action points of the touch gesture made on the thumbnail view area of the photography interface when the touch gesture matches the preset touch gesture; and
moving the target picture to a recycle bin,wherein the preset touch gesture is an X-shaped gesture on the touchscreen of the mobile terminal;
wherein the step of determining whether the touch gesture matches the preset touch gesture comprises;
determining whether the touch gesture satisfies all of the following conditions;
(A) two lines drawn by the touch gesture are approximate to straight lines;
(B) the two lines drawn by the touch gesture have only one intersection point and the intersection point is at a middle part of three equal parts of the two lines; and
(C) an angle between the two lines ranges from 45 to 135 degrees;
determining that the touch gesture matches the X-shaped gesture when all three of the conditions (A), (B), and (C) are satisfied, and determining that the touch gesture does not match the X-shaped gesture when any one of the three conditions (A), (B), and (C) is not satisfied;
wherein in Condition (A), whether lines drawn by the user are two lines approximate to straight lines is determined by determining whether the straightness of the lines drawn by the user meets the requirement, the straightness is defined by the maximum of a ratio of the sum of the distance between a point of a line and a start point of the line and the distance between said point and an end point of the line to the distance between the start point and the end point;
wherein determining whether the straightness of the lines drawn by the user meets the requirement comprises steps of;
Step 0;
defining a criteria for the straightness;
Step 1;
calculating the distance between the start point and the end point respectively for the two lines;
Step 2;
calculating the sum of the distance between a point and the start point on a corresponding line and the distance between said point and the end point on the corresponding line respectively for the respective points on the two lines;
Step 3;
comparing the distance sum calculated in Step 2 and the distance calculated for the corresponding line in Step 1, and finding out the maximum of its ratio;
wherein if the maximum ratio in Step 3 is larger than the straightness criteria, it shows that the corresponding line is not approximate to a straight line, and the corresponding line is determined not to meet the requirement.
1 Assignment
0 Petitions
Accused Products
Abstract
A mobile terminal and a photograph deletion method thereof are disclosed. The method comprises: pre-storing in the mobile terminal a preset touch gesture used for deleting a picture from a photography interface during photography, and mapping the preset touch gesture to a deletion command; receiving a user'"'"'s touchscreen command to determine whether the user'"'"'s touch gesture matches the preset touch gesture when the photography interface of the mobile terminal requires deletion of a picture; if yes, determining a deletion target according to action points of the touch gesture; and moving deletion target into a recycling bin. The captured picture is rapidly deleted from the photography interface through a simple touchscreen gesture without exiting the camera application program and with no need to manually switch an operation interface.
10 Citations
14 Claims
-
1. A mobile terminal-based photograph deletion method, comprising steps of:
-
mapping a preset touch gesture on a touchscreen of a mobile terminal to a deletion command; receiving a touch gesture on an area of thumbnail view of pictures on a photography interface of the touchscreen, in which the photography interface is used to take a picture, and determining whether the touch gesture indicates a click command when the mobile terminal is used to take a photograph; determining whether the touch gesture matches the preset touch gesture when the touch gesture is determined not to indicate the click command; determining a target picture according to action points of the touch gesture made on the thumbnail view area of the photography interface when the touch gesture matches the preset touch gesture; and moving the target picture to a recycle bin, wherein the preset touch gesture is an X-shaped gesture on the touchscreen of the mobile terminal; wherein the step of determining whether the touch gesture matches the preset touch gesture comprises; determining whether the touch gesture satisfies all of the following conditions; (A) two lines drawn by the touch gesture are approximate to straight lines; (B) the two lines drawn by the touch gesture have only one intersection point and the intersection point is at a middle part of three equal parts of the two lines; and (C) an angle between the two lines ranges from 45 to 135 degrees; determining that the touch gesture matches the X-shaped gesture when all three of the conditions (A), (B), and (C) are satisfied, and determining that the touch gesture does not match the X-shaped gesture when any one of the three conditions (A), (B), and (C) is not satisfied; wherein in Condition (A), whether lines drawn by the user are two lines approximate to straight lines is determined by determining whether the straightness of the lines drawn by the user meets the requirement, the straightness is defined by the maximum of a ratio of the sum of the distance between a point of a line and a start point of the line and the distance between said point and an end point of the line to the distance between the start point and the end point; wherein determining whether the straightness of the lines drawn by the user meets the requirement comprises steps of; Step 0;
defining a criteria for the straightness;Step 1;
calculating the distance between the start point and the end point respectively for the two lines;Step 2;
calculating the sum of the distance between a point and the start point on a corresponding line and the distance between said point and the end point on the corresponding line respectively for the respective points on the two lines;Step 3;
comparing the distance sum calculated in Step 2 and the distance calculated for the corresponding line in Step 1, and finding out the maximum of its ratio;wherein if the maximum ratio in Step 3 is larger than the straightness criteria, it shows that the corresponding line is not approximate to a straight line, and the corresponding line is determined not to meet the requirement. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A mobile terminal-based photograph deletion method, comprising steps of:
-
mapping a preset touch gesture on a touchscreen of a mobile terminal to a deletion command; receiving a touch gesture on an area of thumbnail view of pictures on a photography interface of the touchscreen, in which the photography interface is used to take a picture, and determining whether the touch gesture matches the preset touch gesture when the mobile terminal is used to take a photograph; determining a target picture according to action points of the touch gesture made on the thumbnail view area of the photography interface when the touch gesture matches the preset touch gesture; and moving the target picture to a recycle bin, wherein the preset touch gesture is an X-shaped gesture on the touchscreen of the mobile terminal; wherein the step of determining whether the touch gesture matches the preset touch gesture comprises; determining whether the touch gesture satisfies all of the following conditions; (A) two lines drawn by the touch gesture are approximate to straight lines; (B) the two lines drawn by the touch gesture have only one intersection point and the intersection point is at a middle part of three equal parts of the two lines; and (C) an angle between the two lines ranges from 45 to 135 degrees; determining that the touch gesture matches the X-shaped gesture when all three of the conditions (A), (B), and (C) are satisfied, and determining that the touch gesture does not match the X-shaped gesture when any one of the three conditions (A), (B), and (C) is not satisfied; wherein in Condition (A), whether lines drawn by the user are two lines approximate to straight lines is determined by determining whether the straightness of the lines drawn by the user meets the requirement, the straightness is defined by the maximum of a ratio of the sum of the distance between a point of a line and a start point of the line and the distance between said point and an end point of the line to the distance between the start point and the end point; wherein determining whether the straightness of the lines drawn by the user meets the requirement comprises steps of; Step 0;
defining a criteria for the straightness;Step 1;
calculating the distance between the start point and the end point respectively for the two lines;Step 2;
calculating the sum of the distance between a point and the start point on a corresponding line and the distance between said point and the end point on the corresponding line respectively for the respective points on the two lines;Step 3;
comparing the distance sum calculated in Step 2 and the distance calculated for the corresponding line in Step 1, and finding out the maximum of its ratio;wherein if the maximum ratio in Step 3 is larger than the straightness criteria, it shows that the corresponding line is not approximate to a straight line, and the corresponding line is determined not to meet the requirement. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A mobile terminal, comprising:
-
a processor; and a memory connected with processor, the memory comprising a plurality of program instructions executable by the processor, the plurality of program instructions comprising; establishing a correspondence between a preset touch gesture on a touch screen of a mobile terminal and a deletion command; receiving a touch gesture on an area of thumbnail view of pictures on a photography interface of the touchscreen, in which the photography interface is used to take a picture, and determining whether the touch gesture matches the preset touch gesture when the mobile terminal is used to take a photograph;
if yes, outputting a target determination signal;receiving the target determination signal, and in responsive to the target determination signal, determining a target picture according to action points of the touch gesture made on the thumbnail view area of the photography interface; and moving the target picture to a recycle bin when the touch gesture matches the preset touch gesture, wherein the preset touch gesture is an X-shaped gesture on the touchscreen of the mobile terminal; wherein determining whether the touch gesture matches the reset touch gesture comprises; determining whether the touch gesture satisfies all of the following conditions; (A) two lines drawn by the touch gesture are approximate to straight lines; (B) the two lines drawn by the touch gesture have only one intersection point and the intersection point is at a middle part of three equal parts of the two lines; and (C) an angle between the two lines ranges from 45 to 135 degrees; determining that the touch gesture matches the X-shaped gesture when all three of the conditions (A), (B), and (C) are satisfied, and determining that the touch gesture does not match the X-shaped gesture when any one of the three conditions (A), (B), and (C) is not satisfied; wherein in Condition (A), whether lines drawn by the user are two lines approximate to straight lines is determined by determining whether the straightness of the lines drawn by the user meets the requirement, the straightness is defined by the maximum of a ratio of the sum of the distance between a point of a line and a start point of the line and the distance between said point and an end point of the line to the distance between the start point and the end point; wherein determining whether the straightness of the lines drawn by the user meets the requirement comprises steps of; Step 0;
defining a criteria for the straightness;Step 1;
calculating the distance between the start point and the end point respectively for the two lines;Step 2;
calculating the sum of the distance between a point and the start point on a corresponding line and the distance between said point and the end point on the corresponding line respectively for the respective points on the two lines;Step 3;
comparing the distance sum calculated in Step 2 and the distance calculated for the corresponding line in Step 1, and finding out the maximum of its ratio;wherein if the maximum ratio in Step 3 is larger than the straightness criteria, it shows that the corresponding line is not approximate to a straight line, and the corresponding line is determined not to meet the requirement. - View Dependent Claims (12, 13, 14)
-
Specification