Disclosure of Invention
In view of this, embodiments of the present invention provide a screen capturing method and apparatus, which can perform a screen capturing operation simply and quickly.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the embodiment of the invention provides a screen capture method, which comprises the following steps:
acquiring first attitude data and second attitude data of the terminal; the attitude data is used for representing the space data of the terminal relative to a target reference object;
judging whether the terminal is turned over or not according to the first attitude data and the second attitude data;
when the terminal is determined to be turned over, screen capturing is carried out on the first screen;
and displaying the intercepted first screen picture on the second screen.
In the above solution, the spatial data of the terminal with respect to the target reference object includes: two-dimensional coordinate data, and/or three-dimensional coordinate data of the terminal relative to a horizontal plane.
In the above scheme, the first posture data is posture data corresponding to the terminal at a first time; the second attitude data is attitude data corresponding to the terminal at a second time; the second time is greater than the first time, and a difference between the second time and the first time is less than a preset time threshold.
In the above solution, after the truncated first screen picture is displayed on the second screen, the method further includes:
automatically displaying a processing menu containing picture operation options on the second screen; or when the second screen is detected to be touched, displaying a processing menu containing picture operation options on the second screen; the picture manipulation options include at least one of: editing, saving, deleting and sharing.
In the above scheme, the detecting that the second screen is touched is: detecting that a designated location on the second screen is touched.
In the above scheme, after the screen capturing is performed on the first screen, the method further includes:
and extinguishing the first screen and lightening the second screen.
In the above scheme, the method further comprises:
and when the fact that the processing of the first screen picture is completed is detected, switching the application service displayed on the first screen before screen capture to the second screen for display.
The embodiment of the invention also provides a screen capture device, which comprises: the system comprises an attitude acquisition unit, a processing unit and a screen capturing unit; wherein,
the attitude acquisition unit is used for acquiring first attitude data and second attitude data of the terminal; the attitude data is used for representing the space data of the terminal relative to a target reference object;
the processing unit is used for judging whether the terminal is overturned according to the first posture data and the second posture data;
the screen capturing unit is used for capturing the first screen when the terminal is determined to be turned over;
the processing unit is further configured to display the intercepted first screen picture on the second screen.
In the above solution, the spatial data of the terminal with respect to the target reference object includes: two-dimensional coordinate data, and/or three-dimensional coordinate data of the terminal relative to a horizontal plane.
In the above scheme, the first posture data is posture data corresponding to the terminal at a first time; the second attitude data is attitude data corresponding to the terminal at a second time; the second time is greater than the first time, and a difference between the second time and the first time is less than a preset time threshold.
In the above solution, the processing unit is further configured to automatically display a processing menu including a picture operation option on the second screen; or when the second screen is detected to be touched, displaying a processing menu containing picture operation options on the second screen; the picture manipulation options include at least one of: editing, saving, deleting and sharing.
In the above scheme, the processing unit detects that the second screen is touched as: the processing unit detects that a designated position on the second screen is touched.
In the foregoing solution, the processing unit is further configured to turn off the first screen and turn on the second screen after the screen capture unit captures the first screen.
In the foregoing solution, the processing unit is further configured to switch, after it is detected that processing of the first screen picture is completed, the application service displayed on the first screen before screen capture to be displayed on the second screen.
The screen capturing method and the screen capturing device provided by the embodiment of the invention are used for acquiring first attitude data and second attitude data of the terminal; the attitude data is used for representing the space data of the terminal relative to a target reference object; judging whether the terminal is turned over or not according to the first attitude data and the second attitude data; when the terminal is determined to be turned over, screen capturing is carried out on the first screen; displaying the intercepted first screen picture on the second screen; therefore, in the embodiment of the invention, when the terminal is determined to be turned over, the first screen in the terminal is captured, and the captured first screen picture is displayed on the second screen of the terminal, so that the first screen picture is processed on the second screen of the terminal, and the first screen and the second screen of the terminal are fully utilized; the screen capture can be realized without operating the entity keys of the terminal, so that the physical service life of the entity keys of the terminal can be prolonged; complex technology and proficiency are not needed, and screen capturing operation can be simply and quickly carried out.
In addition, a time threshold value can be preset, and only when the terminal is turned over within the preset time threshold value, the first screen is shot, so that the requirements of a user are met, and the screen shooting accuracy is improved; after the first screen picture is processed on a second screen of the terminal, the application service displayed on the first screen before screen capture can be selected to be switched to the second screen, and the application service is displayed and executed on the second screen; or after the first screen picture is processed on the second screen of the terminal, returning to the first screen to continue executing the application service displayed on the first screen before screen capture.
Detailed Description
Fig. 1 is a schematic view of an implementation flow of a screen capture method according to an embodiment of the present invention, where the method is applied to a terminal having a first screen and a second screen, and includes:
step 101: acquiring first attitude data and second attitude data of the terminal; the attitude data is used for representing the space data of the terminal relative to a target reference object;
specifically, when the first screen of the terminal is determined to be in a working state, namely a bright screen state, first posture data of the terminal is obtained, and second posture data of the terminal is obtained.
Here, the first posture data is posture data corresponding to the terminal at a first time; the second attitude data is attitude data corresponding to the terminal at a second time; the second time is greater than the first time and a difference between the second time and the first time is less than a preset time threshold.
In this embodiment, the terminal has a front screen and a rear screen, and may be a device such as a dual-screen mobile phone; the terminal can only be in a bright screen state when the first screen or the second screen is lightened at the same time; the terminal comprises one or more sensors capable of measuring two-dimensional space data and/or three-dimensional space data of the terminal relative to a target reference object, wherein the target reference object can be a specific plane such as a horizontal plane, a ground surface and the like, and the two-dimensional and/or three-dimensional space data obtained by the sensors form attitude data of the terminal; that is, the pose data may be two-dimensional coordinate data and/or three-dimensional coordinate data or the like.
In a specific implementation process, two-dimensional and/or three-dimensional vectors, projections and the like of the length, width and height directions of the terminal relative to a target reference object can be measured to determine attitude data; alternatively, two-dimensional and/or three-dimensional vectors, projections, etc. of the first screen and/or the second screen of the terminal relative to the target reference object may also be measured to determine the pose data; the target reference object may be a specific object such as the ground, etc., or may be a specific plane such as a horizontal plane, etc.
In practical application, the terminal may obtain the attitude data through a gyroscope, a gravity sensor, an acceleration sensor, a geomagnetic sensor, and the like. For example, the gravity sensor may measure gravity data in the length, width, and height directions of the terminal to determine whether the terminal is in a horizontal posture or a vertical posture; the gyroscope can measure the rotation angular velocity of the terminal; the geomagnetic sensor may measure the strength of magnetic induction of the terminal in the length, width, and height directions with respect to the geomagnetic line to determine the direction of the terminal with respect to the geomagnetic line.
Here, the first posture data may represent a posture of the terminal at a first time, such as a horizontal state, a vertical state, an inclined state, or the like of the terminal at the first time, and an inclination angle of the terminal with a horizontal plane when the terminal is in the inclined state, or the like; the second pose data may be indicative of the pose of the terminal at a second time, such as the terminal being in a horizontal state, or a vertical state, or a tilted state, etc. at the second time, and the tilt angle of the terminal from the horizontal when the terminal is in the tilted state, etc.
Further, before step 101, the method may further include: detecting whether a designated position on a second screen of the terminal is touched, if so, triggering to acquire first posture data corresponding to the terminal at a first time, otherwise, not triggering to acquire the first posture data corresponding to the terminal at the first time and the second posture data corresponding to the terminal at a second time.
Here, the designated position may be set according to the use habit of the user on the terminal, for example, a position where the index finger of the user can touch the terminal and is not easy to touch by mistake; in addition, a touch time threshold value can be set, and when the touch time of the specified position on the second screen of the terminal is detected to be greater than or equal to the touch time threshold value, the first gesture data corresponding to the terminal at the first time is triggered to be acquired, so that misoperation of a user is prevented better, and the efficiency is improved; the touch time threshold may be set according to actual needs, the speed of the user touching the screen, the sensitivity of the screen, and other factors, such as: and setting the value range of the touch time threshold value to be greater than or equal to 5ms and less than or equal to 5 s.
Step 102: judging whether the terminal is turned over or not according to the first attitude data and the second attitude data;
specifically, comparing and analyzing the first posture data of the terminal obtained in step 101 at the first time with the second posture data of the terminal obtained at the second time, so as to determine whether the terminal is turned over, that is, whether the terminal is turned over within the preset time threshold, if it is determined that the terminal is turned over within the preset time threshold, step 103 is executed, otherwise, the analysis is ended.
Here, the size of the preset time threshold is related to a determination result of whether the terminal is turned over within the preset time threshold; for example, when the preset time threshold is too small and the preset time threshold is smaller than the time taken for the terminal to be turned over once, the determination result of whether the terminal is turned over within the preset time threshold may be affected; therefore, the size of the preset time threshold can be set according to actual needs, the speed of the user turning over the terminal, the size of the terminal, and other factors, such as: and setting the value range of the preset time threshold to be more than or equal to 6ms and less than or equal to 5s so as to obtain a quick and accurate judgment result. In addition, when the preset time threshold is larger, the preset time threshold may also be divided into a plurality of time sub-thresholds with equal time intervals, the attitude data corresponding to the terminal at each time sub-threshold is acquired, then the first attitude data corresponding to the terminal at the first time is compared with the attitude data corresponding to the terminal at each time sub-threshold for analysis, so as to determine whether the terminal is turned over between the first time and each time sub-threshold, and as long as the terminal is turned over between the first time and any one of the time sub-thresholds, it may be determined that the terminal is turned over within the preset time threshold.
Here, a flipping threshold may be further set as an evaluation criterion for determining whether the terminal is flipped within the preset time threshold, that is: when the difference between the first attitude data and the second attitude data meets the turnover threshold, determining that the terminal is turned over within the preset time threshold; when the difference between the first posture data and the second posture data does not satisfy the flipping threshold, it may be determined that the terminal is not flipped within the preset time threshold. When the attitude data is three-dimensional coordinate data, the overturning threshold value is also three-dimensional coordinate data; when the pose data is two-dimensional coordinate data, the rollover threshold is also two-dimensional coordinate data.
In addition, the turning threshold value can be set according to the actual situation requirements, the gesture of the user holding the terminal, the direction of the user turning the terminal and other user habits of the user on the terminal; for example, when the flipping threshold is three-dimensional coordinate data, the thresholds of the X axis and the Z axis are both 180 ° and the threshold of the X axis is 0 °, if the difference between the first posture data and the second posture data satisfies the flipping threshold, that is, the variation difference between the first posture data and the second posture data on the X axis and the Z axis is both 180 ° and the variation difference on the X axis is 0 °, it may be determined that the terminal is flipped within the preset time threshold.
Step 103: when the terminal is determined to be turned over, screen capturing is carried out on the first screen;
specifically, when it is determined that the terminal is turned over within the preset time threshold according to the determination result obtained in step 102, the first screen is captured to obtain a first screen picture including the current display content of the first screen.
Further, after the screen capturing of the first screen, the method further includes: and extinguishing the first screen and lightening the second screen.
Specifically, after the first screen is captured, the first screen is extinguished, and the second screen is lightened, so that the second screen is in a working state, namely, a screen-lightening state.
Step 104: and displaying the intercepted first screen picture on the second screen.
Specifically, after the first screen picture is cut in step 103, the cut first screen picture is displayed on the second screen, so that the first screen picture can be processed on the second screen, and the cut first screen picture is displayed and processed on the second screen.
Further, after the displaying the intercepted first screen picture on the second screen, the method further includes:
automatically displaying a processing menu containing picture operation options on the second screen; or when the second screen is detected to be touched, displaying a processing menu containing picture operation options on the second screen; the picture manipulation options include at least one of: editing, saving, deleting and sharing.
Here, the detection that the second screen is touched means that a specified position on the second screen is detected to be touched, the specified position being settable by a user in advance; the step of displaying the processing menu containing the picture operation options on the second screen is to display the processing menu at a specified position on the second screen; if the designated position on the second screen is touched all the time before the first screen is captured and after the first screen picture is displayed on the second screen, displaying the processing menu at the designated position on the second screen after the first screen picture is displayed on the second screen.
Here, the automatically displaying the processing menu containing the picture manipulation option on the second screen may be considered as displaying the processing menu at a default position of the second screen; the default position and the processing menu may be set by the user.
Further, the method further comprises:
and when the fact that the processing of the first screen picture is completed is detected, switching the application service displayed on the first screen before screen capture to the second screen for display.
Here, after the first screen is captured, or after the processing of the first screen picture is detected to be completed, or when the second screen is detected to be in a working state, that is, a bright screen state, the application service displayed on the first screen before the capture is switched to be displayed on the second screen, and then the corresponding application service can be executed by selecting, for example, clicking and triggering the application service displayed on the second screen.
Here, after it is detected that the processing of the first screen picture is completed, prompt information may also be displayed on the second screen, for example, prompt a user whether to display an application service displayed by the first screen before screen capture on the second screen, or prompt a user whether to return to the first screen to process an application service displayed by the first screen before screen capture, and the like.
By the screen capturing method provided by the embodiment of the invention, when a user holds the dual-screen mobile phone by one hand or two hands and uses the first screen to perform video watching or reading and other operations, the dual-screen mobile phone can be turned over to perform the screen capturing operation on the first screen, the captured first screen picture is displayed on the second screen, and then the corresponding operation can be performed on the first screen picture. In addition, after the operation on the first screen picture is completed, a migration interface can be clicked to perform the operation of the first screen before screen capture on the second screen or the double-screen mobile phone is turned over again to return to the first screen.
The embodiment of the present invention will be further described below by a specific example, and fig. 2 is a schematic flowchart of a specific implementation of the screen capturing method according to the embodiment of the present invention, where the method includes:
step 201: obtaining the current mobile phone attitude S0And corresponding time T0;
Specifically, the gesture obtaining unit in the mobile phone obtains the current mobile phone gesture S within a very short time interval t (for example, t is 10ms)0And the current mobile phone attitude S0Corresponding time T0And then storing the current mobile phone posture S0And the current mobile phone attitude S0Corresponding time T0。
Here, the current mobile phone posture is the state and posture information of the current mobile phone; the current state of the mobile phone may include which screen is lighted to determine the forward and reverse directions of the mobile phone and obtain the initial state of the mobile phone, such as an initial angle; the posture information of the current mobile phone comprises information that the current mobile phone is horizontal, vertical or inclined angle and the like.
The mobile phone has a front screen and a back screen, is internally provided with a sensor which can acquire the current mobile phone posture, such as a gyroscope, an acceleration sensor and/or a gravity sensor, and has data storage and calculation capabilities; the gesture obtaining unit can be integrated in the mobile phone.
FIG. 3 is a schematic diagram of a mobile phone according to an embodiment of the present invention, including FIG. 3(a) and FIG. 3(b), in which the positions of the two gestures are different; assuming that the screen with the oval keys at the lower side in fig. 3(a) is taken as a first screen and the screen at the back of the first screen is taken as a second screen, fig. 3(a) and fig. 3(b) are different in that: in FIG. 3(a), the first screen is facing forward and vertical Z-axis upward, and the second screen is facing backward and vertical Z-axis downward; in FIG. 3(b), the second screen is facing up in the forward direction and the vertical Z axis is facing down in the reverse direction.
Here, at the present time T0The obtained mobile phone attitude information S0Can be recorded as S0=T0(x0,y0,z0) (ii) a Mobile phone attitude information S at current moment0After completion of acquisition, i.e. S0And T0And transmitting the data to a processing unit for storage.
Here, x, y, z may be represented by various data, for example, the deflection angle of the axis of the mobile phone obtained by a gyroscope; alternatively, the position information is represented by position information obtained cooperatively by a gravity sensor or the like.
Step 202: obtaining the mobile phone attitude S within the threshold value TxAnd corresponding time Tx;
Specifically, the gesture processing unit in the mobile phone obtains the gesture S of the mobile phone in real time in each time interval T contained in the threshold TxAnd corresponding time TxAnd the mobile phone posture S is measuredxAnd corresponding time TxThe mobile phone gesture S transmitted by the gesture processing unit is acquired by the processing unit in the mobile phone in real timexAnd correspondingTime Tx。
Here, the attitude data acquired by the processing unit within the threshold T may be represented as a set of data: s1=T1(x1,y1,z1);S2=T2(x2,y2,z2);……;Sx=Tx(xx,yx,zx)。
Step 203: judging whether the mobile phone is overturned within a threshold value T, if so, executing a step 204, otherwise, ending the analysis;
in particular, the processing unit will time T0Mobile phone posture S0The gesture of the mobile phone within the threshold value T set by the user is the time TxMobile phone posture SxComparing, and comparing the comparison result with a turning threshold value Guser set by a user, so as to judge whether the mobile phone is turned within a threshold value T, if so, executing a step 204, otherwise, ending the analysis; the turning threshold Guser is used for calculating whether the mobile phone meets the set minimum value of turning when turning, and turning is performed after the minimum value is reached.
Let T be0If the gesture of the mobile phone is acquired every 10ms when the threshold T is set to 0.5S, i.e. 500ms, 50 sets of data are acquired within the threshold T, where the 1 st set of data is denoted as S1The 50 th group of data is denoted as S50(ii) a Comparison S0And S50The mobile phone attitude data of S50-S0=(0.5s)(x50-x0,y50-y0,z50-z0) (ii) a Comparison S0And SxThe mobile phone attitude data of Sx-S0=(Tx)(xx-x0,yx-y0,zx-z0) (ii) a When the set rollover threshold Guser ═ GT)(G1,G2,G3) For any time TxMobile phone posture SxIf T isx≤GT、xx-x0≤G1、yx-y0≤G2、zx-z0≤G3Then, it can be determined that the mobile phone is at the time T0To TxThe mobile phone is turned over, namely the mobile phone is judged to be turned over within the threshold value T; of course, it can also be based on S alone50-S0The relationship with Guser determines whether the mobile phone is turned over within a threshold value T.
For example, the following steps are carried out: in fig. 3, when the mobile phone is rotated clockwise within the threshold T from the posture shown in fig. 3(a) along the Y-axis to the posture shown in fig. 3(b), that is, the first screen is changed from the forward vertical Z-axis upward to the reverse vertical Z-axis downward, and the second screen is changed from the reverse vertical Z-axis downward to the forward vertical Z-axis upward, it can be determined that the mobile phone is turned over within the threshold T according to the different postures shown in fig. 3(a) and 3 (b).
Step 204: and capturing the first screen, and displaying the captured first screen picture on a second screen.
Specifically, in step 203, after the processing unit obtains an action that meets the user setting, that is, the mobile phone is turned over, the processing unit notifies a screen capture unit in the mobile phone to capture a first screen of the mobile phone; and the processing unit displays the first screen picture intercepted by the screen intercepting unit on a second screen of the mobile phone, and performs operations such as sharing.
Here, when the processing unit acquires a flip operation, it immediately notifies the screen capture unit to start a screen capture action, and then the processing unit extinguishes the first screen and performs subsequent processing on the opposite second screen.
Here, if it is detected that the designated position of the second screen is touched, for example, the index finger touches the designated position of the second screen, a processing menu containing various picture operations is directly displayed at the designated position, as shown in fig. 4; FIG. 4 is a schematic diagram of a display interface of a processing menu according to an embodiment of the present invention, where FIGS. 4(a) and 4(b) respectively show two different display interfaces of the processing menu; wherein, "o" represents a designated position of the second screen, and "1", "2", "3", "4" respectively represent various picture operations, which may be editing, saving, deleting, sharing, and the like; then, corresponding operation is carried out according to the menu; after the first screen picture is processed, prompting a user whether to display the application service displayed by the first screen before screen capture on the second screen or whether to return to the first screen to process the application service displayed by the first screen before screen capture, and the like.
Here, if it is not detected that the designated position of the second screen is touched, a processing menu containing various operations is displayed at a default position; the user can set the position where the processing menu is displayed, that is, the default position, the operation included in the processing menu, and the like.
Here, if the processing unit acquires a turning action again after processing the first screen picture, the processing unit turns off the second screen, returns to the first screen, and starts an application service displayed by the first screen before screen capture.
In order to realize the method, the embodiment of the invention also provides a screen capture device; fig. 5 is a schematic structural diagram of a screen capture device according to an embodiment of the present invention, where the screen capture device includes: the system comprises an attitude acquisition unit 11, a processing unit 12 and a screen capturing unit 13; wherein
The attitude obtaining unit 11 is configured to obtain first attitude data and second attitude data of the terminal; the attitude data is used for representing the space data of the terminal relative to a target reference object;
the processing unit 12 is configured to determine whether the terminal is flipped according to the first posture data and the second posture data;
the screen capturing unit 13 is configured to capture a screen of the first screen when it is determined that the terminal is turned over;
the processing unit 12 is further configured to display the intercepted first screen picture on the second screen.
The posture acquiring unit 11 is specifically configured to: when the first screen of the terminal is determined to be in a working state, namely a bright screen state, the first posture data of the terminal is obtained, and the second posture data of the terminal is obtained.
Here, the first posture data is posture data corresponding to the terminal at a first time; the second attitude data is attitude data corresponding to the terminal at a second time; the second time is greater than the first time and a difference between the second time and the first time is less than a preset time threshold.
In this embodiment, the terminal has a front screen and a rear screen, and may be a device such as a dual-screen mobile phone; the terminal can only be in a bright screen state when the first screen or the second screen is lightened at the same time; the attitude acquisition unit 11 may include one or more sensors capable of measuring two-dimensional and/or three-dimensional spatial data of the terminal relative to a target reference object, such as a specific plane, for example, a horizontal plane, a ground plane, etc., and the two-dimensional and/or three-dimensional spatial data obtained by the sensors constitute attitude data of the terminal; that is, the pose data may be two-dimensional coordinate data and/or three-dimensional coordinate data or the like.
In a specific implementation process, two-dimensional and/or three-dimensional vectors, projections and the like of the length, width and height directions of the terminal relative to a target reference object can be measured to determine attitude data; alternatively, two-dimensional and/or three-dimensional vectors, projections, etc. of the first screen and/or the second screen of the terminal relative to the target reference object may also be measured to determine the pose data; the target reference object may be a specific object such as the ground, etc., or may be a specific plane such as a horizontal plane, etc.
In practical applications, the attitude acquisition unit 11 may include a gyroscope, a gravity sensor, an acceleration sensor, a geomagnetic sensor, and other instruments or sensors for acquiring attitude data. For example, the gravity sensor may measure gravity data in the length, width, and height directions of the terminal to determine whether the terminal is in a horizontal posture or a vertical posture; the gyroscope can measure the rotation angular velocity of the terminal; the geomagnetic sensor may measure the strength of magnetic induction of the terminal with respect to the geomagnetic line in the length, width, and height directions to determine the direction of the terminal with respect to the geomagnetic line.
Here, the first posture data may represent a posture of the terminal at a first time, such as a horizontal state, a vertical state, an inclined state, or the like of the terminal at the first time, and an inclination angle of the terminal with a horizontal plane when the terminal is in the inclined state, or the like; the second pose data may be indicative of the pose of the terminal at a second time, such as the terminal being in a horizontal state, or a vertical state, or a tilted state, etc. at the second time, and the tilt angle of the terminal from the horizontal when the terminal is in the tilted state, etc.
Further, the processing unit 12 may be further configured to detect whether a designated position on a second screen of the terminal is touched before the gesture obtaining unit 11 obtains the first gesture data of the terminal, if so, trigger the gesture obtaining unit 11 to obtain the first gesture data corresponding to the terminal at a first time and the second gesture data corresponding to the terminal at a second time, otherwise, not trigger the gesture obtaining unit 11 to obtain the first gesture data corresponding to the terminal at the first time and the second gesture data corresponding to the terminal at the second time.
Here, the designated position may be set according to the use habit of the user on the terminal, for example, a position where the index finger of the user can touch the terminal and is not easy to touch by mistake; in addition, a touch time threshold value can be set, and when the processing unit 12 detects that the time for which the specified position on the second screen of the terminal is touched is greater than or equal to the touch time threshold value, the gesture obtaining unit 11 is triggered to obtain the first gesture data corresponding to the terminal at the first time, so that misoperation of the user is prevented better, and the efficiency is improved; the touch time threshold may be set according to actual needs, the speed of the user touching the screen, the sensitivity of the screen, and other factors, such as: the value range of the touch time threshold may be set to be greater than or equal to 5ms and less than or equal to 2 s.
The processing unit 12 is specifically configured to: comparing the first posture data of the terminal corresponding to the first time obtained by the analysis posture obtaining unit 11 with the second posture data of the terminal corresponding to the second time, so as to determine whether the terminal is turned over, that is, whether the terminal is turned over within the preset time threshold, if it is determined that the terminal is turned over within the preset time threshold, triggering the screen capturing unit 13 to perform corresponding operation, otherwise, ending the analysis.
Here, the size of the preset time threshold is related to a determination result of whether the terminal is turned over within the preset time threshold; for example, when the preset time threshold is too small and smaller than the time taken for the terminal to be turned over once, the result of the determination of whether the terminal is turned over within the preset time threshold by the processing unit 12 may be affected; therefore, the size of the preset time threshold can be set according to actual needs, the speed of the user turning over the terminal, the size of the terminal, and other factors, such as: and setting the value range of the preset time threshold to be more than or equal to 6ms and less than or equal to 5s so as to obtain a quick and accurate judgment result. In addition, when the preset time threshold is large, the preset time threshold may also be divided into a plurality of time sub-thresholds with equal time intervals, and then the posture acquisition unit 11 acquires posture data corresponding to each time sub-threshold of the terminal; then, the processing unit 12 compares and analyzes the first posture data corresponding to the terminal at the first time with the posture data corresponding to the terminal at each time sub-threshold, so as to determine whether the terminal is flipped between the first time and each time sub-threshold, and as long as the terminal is flipped between the first time and any one of the time sub-thresholds, it is determined that the terminal is flipped within the preset time threshold.
Here, a flipping threshold may be further set as an evaluation criterion for determining whether the terminal is flipped within the preset time threshold, that is: when the difference between the first posture data and the second posture data satisfies the flipping threshold, the processing unit 12 may determine that the terminal is flipped within the preset time threshold; when the difference between the first posture data and the second posture data does not satisfy the flipping threshold, the processing unit 12 may determine that the terminal is not flipped within the preset time threshold. When the attitude data is three-dimensional coordinate data, the overturning threshold value is also three-dimensional coordinate data; when the pose data is two-dimensional coordinate data, the rollover threshold is also two-dimensional coordinate data.
In addition, the turning threshold value can be set according to the actual situation requirements, the gesture of the user holding the terminal, the direction of the user turning the terminal and other user habits of the user on the terminal; for example, when the flipping threshold is three-dimensional coordinate data, the thresholds of the X axis and the Z axis are both 180 ° and the threshold of the X axis is 0 °, if the difference between the first posture data and the second posture data satisfies the flipping threshold, that is, the variation difference between the first posture data and the second posture data on the X axis and the Z axis is both 180 ° and the variation difference on the X axis is 0 °, it may be determined that the terminal is flipped within the preset time threshold.
The screen capture unit 13 is specifically configured to: when it is determined that the terminal is turned over according to the determination result obtained in the processing unit 12, the first screen is captured to obtain a first screen picture including the current display content of the first screen.
Further, the processing unit 12 is further configured to turn off the first screen and turn on the second screen after the screen capture unit 13 captures the first screen.
Specifically, after the screen capture unit 13 captures the first screen, the processing unit 12 extinguishes the first screen and lights up the second screen, so that the second screen is in a working state, i.e., a screen-on state.
The processing unit 12 is specifically configured to: after the screen capture unit 13 captures the first screen picture, the captured first screen picture is displayed on the second screen, so that the first screen picture can be processed on the second screen, and the captured first screen picture is displayed and processed on the second screen.
Further, the processing unit 12 is further configured to, after the first screen picture to be cut is displayed on the second screen, automatically display a processing menu containing picture operation options on the second screen; or when the second screen is detected to be touched, displaying a processing menu containing picture operation options on the second screen; the picture manipulation options include at least one of: editing, saving, deleting and sharing.
Here, the processing unit 12 detecting that the second screen is touched means that the processing unit 12 detects that a specified position on the second screen is touched, the specified position being settable by a user in advance; the step of displaying the processing menu containing the picture operation options on the second screen is to display the processing menu at a specified position on the second screen; if the designated position on the second screen is touched all the time before the first screen is captured and after the first screen picture is displayed on the second screen, the processing unit 12 displays the first screen picture on the second screen and displays the processing menu at the designated position on the second screen.
Here, the automatically displaying the processing menu containing the picture manipulation option on the second screen may be considered as displaying the processing menu at a default position of the second screen; the default position and the processing menu may be set by the user.
Further, the processing unit 12 is further configured to switch, after it is detected that the processing of the first screen picture is completed, the application service displayed on the first screen before the screen capture to the second screen, and display and execute the application service on the second screen.
Specifically, the processing unit 12 switches the application service displayed on the first screen before the screen capturing to the second screen for displaying after detecting that the screen capturing unit 13 captures the first screen, or after detecting that the processing of the first screen picture is completed, or when detecting that the second screen is in a working state, that is, a bright screen state, and further may execute the corresponding application service by selecting, for example, clicking and triggering the application service displayed on the second screen.
Here, when the processing unit 12 detects that the processing of the first screen picture is completed, prompt information may also be displayed on the second screen, such as prompting a user whether to display an application service displayed by the first screen before screen capture on the second screen, or prompting a user whether to return to the first screen to process an application service displayed by the first screen before screen capture.
In practical applications, the gesture obtaining unit 11, the processing unit 12, and the screen capturing unit 13 may be implemented by a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), or a Field Programmable Gate Array (FPGA), etc. located in the terminal.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.