×

Mobile terminal-based photograph deletion method and mobile terminal

  • US 9,965,154 B2
  • Filed: 07/29/2013
  • Issued: 05/08/2018
  • Est. Priority Date: 10/24/2012
  • Status: Active Grant
First Claim
Patent Images

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 all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×