Disclosure of Invention
The invention aims to provide a method and a system for rapidly capturing a screen by gestures, which are used for solving the problems that the traditional screen capturing mode causes misoperation through multiplexing of multiple physical keys and the screen capturing operation of click-through screen capturing software is inconvenient.
In order to solve the technical problems, the invention adopts the following technical scheme: a method for rapidly capturing a screen of a mobile terminal comprises the following steps:
s1: receiving a first touch action of touching a touch screen by a plurality of fingers, and acquiring first touch information;
s2: judging whether the first touch information meets a preset screen capturing preparation condition or not;
s3: receiving a second touch action of touching the touch screen by a plurality of fingers, and acquiring second touch information;
s4: judging whether the second touch information meets a preset screen capture condition or not;
s5: and when judging that the screen capturing condition is met, capturing the current display interface.
Wherein determining whether the first touch information satisfies the preset screen capture preparation condition comprises:
determining touch points corresponding to the touch screen touched by a plurality of fingers;
acquiring the interval time of each touch point in touch of the touch screen; and judging whether the interval time of the touch point in the touch of the touch screen is within a first preset time range or not.
Further, after the touch information meets the preset screen capturing preparation condition, the first touch action of the plurality of fingers touching the touch screen does not trigger click interaction.
Wherein determining whether the second touch information satisfies the preset screen capture condition includes:
acquiring the distance of each touch point moving upwards or downwards on the touch screen of the mobile terminal and the time corresponding to the distance; and judging whether the moving distance of each touch point is larger than or equal to a preset threshold value and whether the time corresponding to the moving distance is within a second preset time range.
Wherein the number of the plurality of fingers is three.
In order to solve the technical problems, the invention adopts another technical scheme that: a system for fast screen capturing of a mobile terminal is provided, the system comprising:
the first acquisition module is configured to acquire a first data stream, the method comprises the steps of receiving a first touch action of a plurality of fingers touching a touch screen and acquiring first touch information;
the first judging module is used for judging whether the first touch information meets preset screen capturing preparation conditions or not; the second acquisition module is used for receiving a second touch action of the plurality of fingers touching the touch screen and acquiring second touch information;
the second judging module is used for judging whether the second touch information meets the screen capturing condition or not;
and the screen capturing module is used for: for intercepting the current display interface.
Wherein the first judging module comprises:
the sensing unit is used for determining the touch points of the plurality of fingers touching the touch screen;
the first acquisition unit is used for acquiring the interval time of each touch point in the touch of the touch screen;
the first judging unit is used for judging whether the interval time of each touch point in the touch of the touch screen is within a first preset time range or not.
Further, the mobile terminal rapid screen capturing system further comprises:
and the screen capturing preparation command unit is used for sending a command that the first touch action of the plurality of fingers touching the touch screen does not trigger click interaction after the first touch information meets the preset screen capturing preparation condition.
Wherein the second judging module comprises:
the second acquisition unit is used for acquiring the touch movement distance of each touch point on the touch screen and the touch time corresponding to the movement distance;
and the second judging unit is used for judging whether the touch moving distance of each touch point on the touch screen is larger than or equal to a preset threshold value and whether the touch time corresponding to the moving distance is within a second preset time range.
The beneficial effects of the invention are as follows: according to the method and the system for rapidly capturing the screen of the mobile terminal, the touch screen is pressed by the touch points at the same time or within the preset time, and the touch points slide upwards or downwards for a certain distance, so that the screen capturing operation is rapidly triggered, a user can rapidly store screen contents in any scene, the screen capturing operation becomes convenient and rapid, and meanwhile, the screen capturing preparation state is set in the operation process, so that misoperation cannot be caused when the touch screen is pressed by the touch points at any interface.
Detailed Description
The following are specific embodiments of the present invention and the technical solutions of the present invention will be further described with reference to the accompanying drawings, but the present invention is not limited to these embodiments.
Example 1
The embodiment provides a method for rapidly capturing a screen of a mobile terminal, as shown in fig. 1, comprising the following steps:
s1: receiving a first touch action of touching a touch screen by a plurality of fingers, and acquiring first touch information;
s2: judging whether the first touch information meets a preset screen capturing preparation condition or not;
s3: receiving a second touch action of touching the touch screen by a plurality of fingers, and acquiring second touch information;
s4: judging whether the second touch information meets a preset screen capture condition or not;
s5: and when judging that the screen capturing condition is met, capturing the current display interface.
The intelligent mobile terminal is provided with an independent operating system and an independent running space, a user can install programs provided by third-party service providers such as software, navigation and the like according to the needs, and the functions can be realized through a mobile communication network. The intelligent mobile terminal is convenient to carry and can realize the functions of GPS and E-mail.
The touch screen, also called touch screen, touch pad, is an induction type liquid crystal display device capable of receiving input signals of contact head, etc., when the graphic buttons on the screen are contacted, the touch feedback system on the screen can drive various connecting devices according to the preprogrammed program, can be used to replace mechanical button panel, and can produce vivid video and audio effect by means of liquid crystal display picture, and is a kind of man-machine interaction mode which is the simplest, convenient and natural at present. The touch screen is an absolute coordinate system, and a position is directly touched when a certain position is selected. The absolute coordinate system is characterized in that each positioning coordinate has no relation with the last coordinate.
Touch screen is a quick finger action of human body. Compared with the traditional screen capturing software screen capturing through multiplexing and clicking of multiple physical keys, the finger touch screen capturing method is more convenient and quick, and the situation that uncontrollable situations possibly occur due to more operation steps is avoided.
Step S1: receiving a first touch action of touching a touch screen by a plurality of fingers, and acquiring first touch information; when a user touches the touch screen, the mobile terminal can detect position coordinates of the operation touch action and calculate the number of touch points according to the coordinate positions of the operation action. Taking a capacitive touch screen as an example, four sides of the touch screen are plated with long and narrow electrodes, so that a low-voltage alternating current electric field is formed in the electrodes. When a finger touches the screen, due to the existence of a human body electric field, a coupling capacitance is formed between the palm part touched to the touch screen and the electrodes, current emitted by the four-side electrodes flows to the touch points, and the intensity of the current is in direct proportion to the distance from each touch point to the electrode. The mobile terminal accurately calculates the position coordinates of each touch point of the finger on the touch screen according to the proportion of the current, and further calculates the number of touch points of the operation action. And recording the interval time of each touch point touching the touch screen.
The method and the device accurately determine the number of touch points of the touch screen touched by a plurality of fingers and the interval time of the touch screen touched by the plurality of touch points, so that an instruction for entering the screen capturing preparation state can be obtained.
Step S2: judging whether the first touch information meets a preset screen capturing preparation condition or not;
in the prior art, a touch screen of a mobile terminal realizes a man-machine interaction function through single-point pressing, single-point touching, single-point double-clicking, double-point touching, double-point sliding and other operation actions. As shown in fig. 2, in order to ensure that an misoperation event is not triggered during screen capturing, preferably, the mobile terminal needs to determine whether the number of touch points of the touch screen touched by multiple fingers is greater than or equal to three, and whether the interval time of each touch point touching the touch screen is within a first preset time range. When the number of touch points of the touch screen touched by the plurality of fingers is greater than or equal to three, and the interval time of each touch point touching the touch screen is within a first preset time range, step S3 is entered, coordinate values (Y0, Y1, Y2 and Y3.) of the plurality of touch points are recorded, and when the number of touch points is smaller than the interval time of three or more touch points on the touch screen and exceeds the first preset time range, the touch screen event is processed according to the common touch event.
In the step I, whether the touch interval time of the touch points of the touch screen touched by a plurality of fingers is within the preset time is judged, and in the preset time, the mobile terminal reports the system, the click event is a screen capturing preparation event, man-machine click interaction is not carried out according to the common click touch screen event, and therefore the occurrence of false touch key event when the click touch screen is carried out on any interface is avoided.
Step S3: receiving a second touch action of touching the touch screen by a plurality of fingers, and acquiring second touch information;
when the number of the touch points of the touch screen is greater than or equal to three and the interval time of the touch points in the touch screen is within a preset range, the fact that a plurality of fingers press the touch screen at the same time or in a very short time is indicated. As shown in fig. 3, after entering the screen capturing stage, a plurality of fingers slide upwards or downwards on the touch screen simultaneously, the time of sliding upwards or downwards on the touch points of the plurality of fingers on the touch screen is recorded, and coordinate values of the plurality of touch points are recorded (Y00, Y11, Y22, Y33).
The method and the device accurately determine the moving distance of the touch points of the plurality of fingers touching the touch screen on the touch screen and the time corresponding to the moving distance, so that the command of entering the screen capturing state can be obtained.
Step S4: judging whether the second touch information meets a preset screen capture condition or not;
judging whether absolute values of change values of Y coordinates of touch points of the plurality of fingers touching the touch screen (Y00-Y0I, Y11-Y1I and Y22-Y2I) on the touch screen are simultaneously larger than or equal to a coordinate movement threshold value for triggering a screen capturing event, and judging whether the time of corresponding sliding of the touch points of the plurality of fingers on the touch screen upwards or downwards simultaneously is within a preset time range. If the fact that the distance that each touch point moves upwards or downwards on the touch screen of the mobile terminal is larger than or equal to a preset threshold value and the time corresponding to moving the distance is in a second preset time range is met, the mobile terminal reports the event that the finger touches the touch screen as a screen capturing event to a system, and the system calls subsequent screen capturing operation to capture a current display interface. Otherwise, if the moving distance of the touch points of the plurality of fingers touching the touch screen is smaller than the threshold value, or the moving distance of the plurality of fingers touching the touch screen is longer than the second preset time, the screen capturing event of the plurality of fingers touching the touch screen is regarded as failure, the screen capturing event is not reported to the system any more, and the screen capturing event is processed according to the common point pressing touch screen event.
In the step 3, whether the distance of the touch points of the plurality of fingers touching the touch screen moving on the touch screen is larger than or equal to a preset threshold value or not and whether the time corresponding to the distance moving is within a second preset time range or not are judged on the basis of the step 3, if the judging condition is met, the mobile terminal reports the system, the click event is a screen capturing event, man-machine click interaction is not carried out according to the common click touch screen event, and therefore the error touch key event is avoided when the click touch screen is carried out on any interface again.
After the screen capture event is ended, the coordinate values are reset to 0, and the screen capture ready state is reset to not ready, regardless of successful screen capture or failed screen capture, Y0, Y1, Y2, Y3, Y00, Y11, Y22, Y33.
For the user, if the screen capturing event is successfully triggered, a picture for storing the current screen content is obtained.
In the embodiment, whether the screen capturing condition is met or not is judged by receiving touch information of a plurality of fingers touching the touch screen, and simultaneously moving up or down distance and time information corresponding to the distance on the touch screen of the mobile terminal, wherein in the implementation process, the method comprises three times (1, the number of the touch points and the interval time of the touch points touching the touch screen, 2, the simultaneously moving up or down distance of the plurality of the touch points on the touch screen, and 3, the simultaneously moving up or down distance of the plurality of the touch points on the touch screen corresponds to the time of the plurality of the touch points), so that the situation that a plurality of fingers touch the touch screen key event by mistake on any interface of the mobile terminal is avoided, and the convenient and quick screen capturing is smoothly carried out by using gestures.
Example two
The embodiment provides a system for rapidly capturing a screen of a mobile terminal, as shown in fig. 4; fig. 4 is a schematic structural diagram of a system for quick screen capturing of a mobile terminal according to another embodiment of the present invention. The mobile terminal in this embodiment includes a first acquiring module 10, a first judging module 20, a second acquiring module 30, a second judging module 40 and a screen capturing module 50.
The first acquiring module 10 is configured to receive a first touch action of touching the touch screen by a plurality of fingers and acquire first touch information;
a first judging module 20, configured to judge whether the first touch information meets a preset screen capturing preparation condition; the second obtaining module 30 is configured to receive a second touch action of touching the touch screen by the plurality of fingers and obtain second touch information;
a second judging module 40, configured to judge whether the second touch information meets the screen capturing condition;
screen capture module 50: for intercepting the current display interface.
Further, the first acquisition module 10 includes a sensing unit 11 and a first acquisition unit 12;
specifically, as shown in fig. 5, the first acquisition module 10 includes a sensing unit 11 and a first acquisition unit; the first judging module 20 includes a first judging unit 21 and a screen capturing preparation command unit 22; the second acquisition module 30 includes a second acquisition unit 31; the screen capture module 50 further comprises an execution unit 51.
When the touch screen of the mobile terminal is operated, the mobile terminal sensing unit 11 can detect the position coordinates of touch points of the touch screen, the mobile terminal judges the number of the touch points of the touch screen touched by a plurality of fingers through the position coordinates, and the first acquisition unit 12 acquires the interval time of each touch point in the touch of the touch screen; the first judging unit 21 of the first judging module 20 of the mobile terminal compares the number of touch points of the touch screen and the interval time of the touch points on the touch screen, which are preset by the mobile terminal system, with the number of touch points and the interval time of the touch points on the touch screen after the sensing unit 11 and the first obtaining unit 12 detect and obtain the number of touch points of the touch screen touched by a plurality of fingers, and judges whether the number of touch points is greater than or equal to three or not, and whether the touch interval time of the touch points on the touch screen is within a first preset time range or not. When the preset number of touch points is met and the interval time of the touch points touching the touch screen is met, the touch event of the system is reported to be a screen capturing preparation touch event, and coordinates of a plurality of touch points on the touch screen are recorded.
Further, when the obtained number of touch points of the touch screen touched by the plurality of fingers and the interval time on the touch screen correspondingly meet the preset number of touch points and meet the interval time of touching the touch screen touched by the touch points, the screen capture preparation command unit 22 reports that the touch event is a screen capture preparation touch event to the system, and records coordinates of the plurality of touch points on the touch screen. When the preset number of touch points is not met or the interval time of touching the touch screen by the touch points is not met, the clicking event is classified as common clicking event processing by the system.
After entering the screen capturing preparation state, the sensing unit 11 continuously detects the position coordinates of a plurality of touch points, and the second obtaining unit 31 of the second obtaining module 30 of the mobile terminal obtains the Y value change of the coordinate value of the corresponding touch point on the touch screen and reports the time of the Y change of the coordinate value corresponding to the plurality of touch points on the touch screen of the system.
The second judging unit 41 of the second judging module 40 of the mobile terminal compares the distance of the movement of the plurality of fingers touching the touch screen and the time corresponding to the distance after the sensing unit 11 and the second obtaining unit 31 detect and obtain the distance and the time corresponding to the distance, with the threshold value of the mobile terminal system, and judges whether the distance of the plurality of touch points moving upwards or downwards on the touch screen simultaneously is greater than or equal to the threshold value and whether the time corresponding to the distance is within a second preset time range.
If the distance that the plurality of touch points move upwards or downwards on the touch screen is greater than or equal to the threshold value and the time corresponding to the distance is within the second preset time range, the execution unit 51 of the mobile terminal screen capturing module 50 is reported to capture the current display interface, and the screen capturing action is completed.
According to the embodiment, the user can slide upwards or downwards for a certain distance on the touch screen by using a plurality of fingers within the preset time range, so that the aim of screen capturing can be achieved, and the user does not need to perform multi-key and multi-step operation, so that the screen capturing operation is more convenient and faster; in addition, the method and the system are provided with the operation range and the system setting, so that a user cannot touch the operation interface by mistake in the use experience process, and misoperation is avoided.
The specific embodiments described herein are offered by way of example only to illustrate the spirit of the invention. Those skilled in the art may make various modifications or additions to the described embodiments or substitutions thereof without departing from the spirit of the invention or exceeding the scope of the invention as defined in the accompanying claims.