CN111813473A - Screen capturing method and device and electronic equipment - Google Patents

Screen capturing method and device and electronic equipment Download PDF

Info

Publication number
CN111813473A
CN111813473A CN202010582019.7A CN202010582019A CN111813473A CN 111813473 A CN111813473 A CN 111813473A CN 202010582019 A CN202010582019 A CN 202010582019A CN 111813473 A CN111813473 A CN 111813473A
Authority
CN
China
Prior art keywords
screen capture
screen
capture mode
display interface
image
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
CN202010582019.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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010582019.7A priority Critical patent/CN111813473A/en
Publication of CN111813473A publication Critical patent/CN111813473A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a screen capture method, a screen capture device and electronic equipment, and belongs to the technical field of image processing. The method comprises the following steps: acquiring a first movement direction of the external control equipment detected by a preset sensor; determining a screen capture mode according to the first motion direction; and performing screen capture on a display interface according to the screen capture mode to generate a screen capture image. According to the method and the device, the steps of screen capturing operation of the user can be reduced, the time spent on screen capturing is saved, and the user experience is improved.

Description

Screen capturing method and device and electronic equipment
Technical Field
The application belongs to the technical field of image processing, and particularly relates to a screen capturing method and device and electronic equipment.
Background
With the continuous development of science and technology, electronic devices (such as mobile phones, tablet computers and the like) gradually become indispensable tools in life and work of people.
In the process of using the electronic device, when people want to quickly capture the screen of the browsed content or share the screen of the browsed content with others, several operations are often required, for example, a user needs to find a screen capture button, then click to open a screen capture function, capture the screen, and then share the captured image with a corresponding application program. The operation process is complex, and the screen capture takes a long time.
Disclosure of Invention
The embodiment of the application aims to provide a screen capturing method, a screen capturing device and electronic equipment, and can solve the problems that in the prior art, the screen capturing mode is complex in operation process and long in screen capturing time.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a screen capture method, where the method includes:
acquiring a first movement direction of the external control equipment detected by a preset sensor;
determining a screen capture mode according to the first motion direction;
and performing screen capture on a display interface according to the screen capture mode to generate a screen capture image.
In a second aspect, an embodiment of the present application provides a screen capture device, including:
the first direction acquisition module is used for acquiring a first motion direction of the external control equipment detected by the preset sensor;
the screen capture mode determining module is used for determining a screen capture mode according to the first motion direction;
and the screen capture image generation module is used for capturing a screen of the display interface according to the screen capture mode to generate a screen capture image.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the screen capturing method according to the first aspect.
In a fourth aspect, the present invention provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the screen capture method according to the first aspect.
In a fifth aspect, the present application provides a chip, where the chip includes a processor and a communication interface, and the communication interface and the screen shot method.
In the embodiment of the application, a screen capture mode is determined according to a first motion direction of the external control device detected by the preset sensor, and a screen capture image is generated by capturing a screen of the display interface according to the screen capture mode. According to the screen capture method and the screen capture device, the screen capture of the display interface is achieved by combining the external control device, the steps of the user for executing the screen capture operation are reduced, the time spent on screen capture is saved, and the user experience is improved.
Drawings
Fig. 1 is a flowchart illustrating steps of a screen capturing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a lasso screenshot interface provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a screen capture saving sharing interface according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a shared popup window according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a long screenshot interface provided in an embodiment of the present application;
fig. 6 is a schematic diagram of a long screen shot saving and sharing interface according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of an interface after full screen capture according to an embodiment of the present application;
FIG. 8 is a schematic diagram illustrating clockwise rotation of a pen tip according to an embodiment of the present disclosure;
FIG. 9 is a schematic diagram illustrating counterclockwise rotation of a pen tip according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of a screen capture device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The screen capture scheme provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart illustrating steps of a screen capture method provided in an embodiment of the present application is shown, and as shown in fig. 1, the screen capture method may specifically include the following steps:
step 101: and acquiring a first movement direction of the external control equipment detected by the preset sensor.
The embodiment of the application can be applied to a scene that the external control equipment is adopted to realize the quick screen capture of the display screen of the electronic equipment.
The external control device is a device for controlling rapid screen capture of a display screen, and in this embodiment, the external control device may be a device such as a stylus, and specifically, may be determined according to a service requirement, which is not limited in this embodiment.
The preset sensor is a sensor arranged on the electronic equipment, and the preset sensor can be used for detecting the motion direction and the motion attitude of the external control equipment.
The first movement direction refers to a movement direction of the external control device detected by the preset sensor, and in this embodiment, the first movement direction may be a movement direction determined according to a flipping operation of the external control device, for example, the external control device takes a stylus as an example, the first movement direction may be a clockwise movement direction performed by a pen tip of the external control device toward a display interface of the electronic device, or a counterclockwise movement direction performed by the pen tip toward the display interface of the electronic device, and so on.
In the process that the preset interface is displayed on the electronic equipment, when a user needs to capture a screen of the displayed interface, the user can execute triggering operation on the external control equipment, and then the preset sensor arranged in the electronic equipment can detect the first movement direction corresponding to the external control equipment.
Of course, in this embodiment, a triggering operation may be performed on the external control device by the user to control to enter the screen capture mode, for example, during the process of running a certain application program on the screen display of the electronic device, the user may control the touch device to receive a first preset operation for the touch device, for example, the touch device takes a stylus as an example, a gyroscope sensor is disposed inside a pen tip of the stylus, when a pen tip of the stylus rotates one turn (for example, the pen tip rotates clockwise as shown in fig. 8 and the pen tip rotates counterclockwise as shown in fig. 9), the gyroscope sensor may detect a change of an angular velocity thereof, after detecting the change of the angular velocity thereof, may trigger an interrupt signal to send the interrupt signal, and transmit the interrupt signal to the stylus, for example, when the gyroscope detects that an X-axis value is greater than a preset value, that an X-axis angular velocity is greater than a preset value, for example, 240 deg. degrees/second, this indicates that the X-axis is jittered. Specifically, the angular velocity is integrated by detecting the angle that changes on the X axis within a set time, for example, 0.5 seconds, and the integration process is: acquiring one X-axis data every 0.05 second (the X-axis data acquired each time is changed), acquiring 10 times (0.05 second XlO is 0.5 second), and At is 0.05, so that the selected angle of the X-axis in 0.5 second can be acquired, and when the change of the angle exceeds a preset value, for example 240 degrees, namely the X-axis rotates over 240 degrees in a short time, the stylus tip is considered to rotate by one circle, and the interrupt mode is triggered. After the interrupt mode is triggered, the electronic device is indicated to enter a screen capture mode, and at this time, screen capture operation can be performed.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
After acquiring the first direction of movement of the excavating equipment as detected by the preset sensors, step 102 is performed.
Step 102: and determining a screen capture mode according to the first motion direction.
The screen capture mode refers to a mode for capturing a screen of the display screen, and in this embodiment, the screen capture mode may include a lasso screen capture mode, a long screen capture mode, and a full screen capture mode.
The lasso screen capture mode can be as shown in fig. 2, namely, the lasso screen capture mode is a screen capture frame forming a circle-like shape, and a user can control the size of a screen capture area by dragging the size of the screen capture frame to realize screen capture.
The long screen capture mode can be as shown in fig. 5, the long screen capture mode is to form a square screen capture frame, and the user drags one side of the square screen capture frame to control the size of the screen capture area, so as to implement screen capture.
The full screen capture mode may be as shown in fig. 7, that is, a full screen capture mode, and after the full screen capture mode is triggered, a screen capture frame with a size consistent with that of the display screen of the electronic device may be formed to implement screen capture.
After the first movement direction of the external control device is acquired, the screen capture mode may be determined according to the first movement direction, and specifically, the detailed description may be given in conjunction with the following specific implementation manner.
In a specific implementation manner of the present application, the step 102 may include:
substep A1: and determining that the screen capture mode is a first screen capture mode under the condition that the first movement direction is the clockwise movement direction of the first end of the external control equipment towards the display interface.
Substep A2: and determining that the screen capture mode is a second screen capture mode under the condition that the first movement direction is a counterclockwise movement direction of the first end towards the display interface.
Substep A3: and determining that the screen capture mode is a third screen capture mode under the condition that the first movement direction is the movement direction of the first end facing the display interface and the movement speed of the external control equipment is greater than a speed threshold.
In this embodiment, after the external control device receives the interrupt signal, the tilt angle value and the angular velocity value are obtained from the gyro sensor, and then it is determined according to the values that the first end of the external control device faces downward or upward, and whether the flip direction and the angular velocity value exceed a preset threshold value to trigger different screen capturing functions (i.e., screen capturing modes), where the flip operation performed on the external control device is a clockwise flip operation, and the screen capturing mode can be determined to be the first screen capturing mode under the condition that the first end of the external control device is flipped toward the first direction.
In the case that the turning operation performed on the external control device is an operation of turning counterclockwise and the first end of the external control device is turned toward the first direction, it may be determined that the screen capture mode is the second screen capture mode.
When the turning operation performed on the external control device is an operation in which the first end is turned towards the first direction (may be a clockwise turning operation, and may also be an anticlockwise turning operation), and the angular velocity corresponding to the turning operation is greater than the first velocity threshold, it may be determined that the screen capture mode is the third screen capture mode.
Of course, in this embodiment, the screen capture mode may also be determined according to a rotation operation performed by the first end of the external control device on the screen of the electronic device (e.g., a clockwise or counterclockwise rotation operation performed by the first end on the screen), and specifically, the following detailed description may be performed.
After the external control equipment receives the interrupt signal, acquiring an inclination angle value and an angular velocity value from a gyroscope sensor, judging whether a first end faces downwards or upwards according to the values, and judging whether the rotation direction and the angular velocity value exceed a preset threshold value, and if the first end faces downwards (namely faces to the first direction) and rotates clockwise for one circle (as shown in fig. 8), determining that the screen capture mode is a first screen capture mode; if the first end is turned one turn downward and counterclockwise (as shown in fig. 9), it is determined that the screen capture mode is the second screen capture mode. And if the first end faces downwards and the rotating angular speed exceeds a preset speed threshold (namely a second speed threshold), determining that the screen capturing mode is the third screen capturing mode.
It is to be understood that, in this embodiment, the first screen capture mode, the second screen capture mode, and the third screen capture mode may be different screen capture modes among the lasso screen capture mode, the long screen capture mode, and the full screen capture mode, for example, when the first screen capture mode is the lasso screen capture mode, and the second screen capture mode is the long screen capture mode, the third screen capture mode is the full screen capture mode; and when the first screen capture mode is the long screen capture mode and the second screen capture mode is the lasso screen capture mode, the third screen capture mode is the full screen capture mode and the like.
After the screen capture mode is determined according to the first motion direction, step 103 is performed.
Step 103: and performing screen capture on a display interface according to the screen capture mode to generate a screen capture image.
The screen capture image is an image obtained by capturing a screen of a screen display interface of the electronic device.
After the screen capture mode is determined, the screen capture of the current display interface can be performed according to the screen capture mode to obtain a screen capture image, specifically, after the screen capture mode is determined, a corresponding screen capture frame can be formed in the current display interface of the electronic device, and when the screen capture mode is a lasso screen capture mode and a long screen capture mode, a user can control the screen capture frame to obtain an area needing screen capture by the user, so that screen capture of the current display interface is achieved. When the screen capture mode is the full screen capture mode, a screen capture frame with the size consistent with that of the current display interface can be formed, and the full screen capture of the current display interface is realized by clicking a screen capture control button by a user.
In particular, the screen capture process may be described in detail in connection with the following implementation.
In a specific implementation manner of the present application, the step 103 may include:
substep B1: and displaying a screen capture frame corresponding to the screen capture mode on the display interface according to the screen capture mode.
In the present embodiment, the screen capture frame refers to a frame for capturing a screen of the display interface.
After the screen capture mode is determined, a corresponding screen capture frame can be generated according to the screen capture mode, and the corresponding screen capture frame is displayed on the display interface in the screen capture mode. When the screen capture mode is the full screen capture mode, the size of the current display interface can be formed, and the like.
After the screen capture frame corresponding to the screen capture mode is displayed on the display interface according to the screen capture mode, sub-step B2 is performed.
Substep B2: and receiving a first input of a user to the screen cutting frame.
The first input refers to an input performed by the user to adjust the position and/or size of the screen capture. It can be understood that the first input may be an input formed by a user dragging a certain edge of the screen frame to move, or an input formed by a user dragging the center of the screen frame to adjust the position of the screen frame, and the like.
After displaying the screen cut-off box, the position and/or size of the screen cut-off box may be adjusted by the user to form a first input of the user to the screen cut-off box.
After receiving the first user input to the screen-truncating box, sub-step B3 is performed.
Substep B3: and responding to the first input, and generating the screen capture image according to the screen capture of the display interface of the input parameters of the first input.
The input parameter refers to a parameter for adjusting the position and/or size of the screen capture frame corresponding to the first input, and in this embodiment, the input parameter indicates the screen capture position and the size of the screen capture area of the display interface.
After receiving a first input of the user to the screen-cutting frame, the display interface can be subjected to screen-cutting according to the input parameters of the first input, so that a screen-cutting image can be generated.
After the screenshot image is generated, whether the screenshot image is shared may be determined according to an operation performed by a user on the external control device, and specifically, the detailed description may be described in combination with the following specific implementation manner.
In another specific implementation manner of the present application, after the step 103, the method may further include:
step C1: and acquiring a second movement direction of the external control equipment detected by the preset sensor.
In this embodiment, the second movement direction refers to a movement direction of the external control device detected by the preset sensor, and in this embodiment, the second movement direction may be a movement direction determined according to a flipping operation of the external control device, for example, the external control device takes a stylus as an example, and the second movement direction may be a clockwise movement direction performed by a pen tail of the external control device toward a display interface of the electronic device, or a counterclockwise movement direction performed by the pen tail toward the display interface of the electronic device.
After the screen capture image is generated, when the user needs to share the screen capture image, the user can execute a trigger operation on the external control device, and then a preset sensor arranged in the electronic device can detect a second movement direction corresponding to the external control device.
After the second movement direction of the external control device detected by the preset sensor is acquired, step C2 is executed
Step C2: and sharing the screen shot image according to the second motion direction.
After the second movement direction of the external control device is acquired, the screenshot image may be shared according to the second movement direction, and specifically, the detailed description may be described in combination with the following specific implementation manner.
In a specific implementation manner of the present application, the step C2 may include:
substep D1: and displaying the sharing popup window corresponding to the screen capture image according to the second motion direction.
In this embodiment of the application, after the second movement direction of the external control device is obtained, a sharing popup corresponding to the screenshot image may be displayed on the screen of the electronic device, as shown in fig. 3 and 5, displaying a plurality of spaces on the current display interface, acquiring the text content of the currently traversed control, if the text content is "save", then the currently traversed control can be determined to be a "save" control, then simulating a click operation to click the save control to save the screenshot, and simultaneously generating a share popup (as shown in figure 6), then, each control of the current interface is traversed again, if the text content of the traversed current control is 'shared', the control can be judged to be 'shared', then, a click operation is simulated to click the sharing control, and the system sharing popup is called.
After the corresponding sharing popup window of the screenshot image is displayed, the substep D2 is executed.
Substep D2: and sharing the screen capture image under the condition that the user carries out the sharing operation on the screen capture image in the sharing popup window.
After receiving a sharing operation (such as clicking a sharing control) for the screenshot image in the sharing popup, the screenshot image can be shared.
Of course, in another specific implementation manner of this embodiment, when the sharing operation may be an operation in which the first end of the external control device leaves the screen, the time length that the first end leaves the screen may be counted, when the time length that the first end leaves the screen reaches the set time length, the sharing popup window corresponding to the screenshot image is displayed, and the user performs the sharing operation in the sharing popup window to share the screenshot image.
According to the screen capture method provided by the embodiment of the application, the screen capture mode is determined according to the first motion direction of the external control equipment detected by the preset sensor, and the screen capture image is generated by capturing the screen of the display interface according to the screen capture mode. According to the screen capture method and the screen capture device, the screen capture of the display interface is achieved by combining the external control device, the steps of the user for executing the screen capture operation are reduced, the time spent on screen capture is saved, and the user experience is improved.
It should be noted that in the screen capture method provided in the embodiment of the present application, the execution main body may be a screen capture device, or a control module in the screen capture device for executing the screen capture method. In the embodiment of the present application, a screen capture device executing a screen capture method is taken as an example, and the screen capture device provided in the embodiment of the present application is described.
Referring to fig. 10, a schematic structural diagram of a screen capture device provided in an embodiment of the present application is shown, and as shown in fig. 10, the screen capture device may specifically include the following modules:
a first direction obtaining module 210, configured to obtain a first motion direction of the external control device detected by a preset sensor;
a screen capture mode determining module 220, configured to determine a screen capture mode according to the first motion direction;
and a screen capture image generating module 230, configured to capture a screen of the display interface according to the screen capture mode, and generate a screen capture image.
Optionally, the screen capture mode determining module 220 includes:
the first screen capture mode determining unit is used for determining that the screen capture mode is the first screen capture mode under the condition that the first movement direction is the clockwise movement direction of the first end of the external control equipment towards the display interface;
the second screen capture mode determining unit is used for determining that the screen capture mode is the second screen capture mode under the condition that the first movement direction is the anticlockwise movement direction of the first end towards the display interface;
and the third screen capture mode determining unit is used for determining that the screen capture mode is the third screen capture mode under the condition that the first movement direction is the movement direction of the first end facing the display interface and the movement speed of the external control equipment is greater than a speed threshold.
Optionally, the screenshot image generating module 230 includes:
the screen capture frame display unit is used for displaying a screen capture frame corresponding to the screen capture mode on the display interface according to the screen capture mode;
the first input receiving unit is used for receiving a first input of a user to the screen intercepting frame;
and the screen capture image generation unit is used for responding to the first input, capturing the screen of the display interface according to the input parameters of the first input and generating the screen capture image.
Optionally, the method further comprises:
the second direction acquisition module is used for acquiring a second motion direction of the external control equipment detected by the preset sensor;
and the screen capture image sharing module is used for sharing the screen capture image according to the second motion direction.
Optionally, the screenshot image sharing module includes:
the sharing popup display unit is used for displaying the sharing popup corresponding to the screen capture image according to the second movement direction;
and the screen capture image sharing unit is used for receiving the screen capture image shared by the user under the condition of the sharing operation of the screen capture image executed in the sharing popup window.
According to the screen capture device provided by the embodiment of the application, the screen capture mode is determined according to the first motion direction of the external control equipment detected by the preset sensor, and the screen capture is performed on the display interface according to the screen capture mode to generate the screen capture image. According to the screen capture method and the screen capture device, the screen capture of the display interface is achieved by combining the external control device, the steps of the user for executing the screen capture operation are reduced, the time spent on screen capture is saved, and the user experience is improved.
The screen capture device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a kiosk, and the like, and the embodiments of the present application are not particularly limited.
The screen capture device in the embodiment of the application can be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The screen capture device provided in the embodiment of the present application can implement each process implemented in the embodiment of the method in fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 11, an electronic device 300 is further provided in this embodiment of the present application, and includes a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and capable of running on the processor 301, where the program or the instruction is executed by the processor 301 to implement each process of the screen capturing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 12 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 400 includes, but is not limited to: radio unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.
Those skilled in the art will appreciate that the electronic device 400 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 12 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The radio frequency unit 401 is configured to acquire a first motion direction of the external control device detected by a preset sensor; determining a screen capture mode according to the first motion direction; and performing screen capture on a display interface according to the screen capture mode to generate a screen capture image.
According to the method and the device, the screen capture mode is determined according to the first motion direction of the external control equipment detected by the preset sensor, and the screen capture is performed on the display interface according to the screen capture mode to generate the screen capture image. According to the screen capture method and the screen capture device, the screen capture of the display interface is achieved by combining the external control device, the steps of the user for executing the screen capture operation are reduced, the time spent on screen capture is saved, and the user experience is improved.
Optionally, the user input unit 407 determines that the screen capture mode is the first screen capture mode when the first movement direction is a clockwise movement direction of the first end of the external control device towards the display interface; or
Determining that the screen capture mode is a second screen capture mode under the condition that the first movement direction is a counterclockwise movement direction of the first end towards the display interface; or
And determining that the screen capture mode is a third screen capture mode under the condition that the first movement direction is the movement direction of the first end facing the display interface and the movement speed of the external control equipment is greater than a speed threshold.
Optionally, the screen capturing a display interface according to the screen capturing mode to generate a screen capturing image includes:
displaying a screen capture frame corresponding to the screen capture mode on the display interface according to the screen capture mode;
receiving a first input of a user to the screen intercepting frame;
and responding to the first input, and generating the screen capture image according to the screen capture of the display interface of the input parameters of the first input.
Optionally, after the screen capturing is performed on the display interface according to the screen capturing mode to generate a screen captured image, the method further includes:
acquiring a second movement direction of the external control equipment detected by the preset sensor;
and sharing the screen shot image according to the second motion direction.
Optionally, the sharing the screenshot image according to the second motion direction includes:
displaying a sharing popup window corresponding to the screen capture image according to the second motion direction;
and sharing the screen capture image under the condition that the user carries out the sharing operation on the screen capture image in the sharing popup window.
According to the method and the device, the rapid screen capture can be realized by combining different operation modes of the external control equipment, the screen capture sharing operation steps are reduced, and the user operation is facilitated.
It should be understood that in the embodiment of the present application, the input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the graphics processing Unit 4041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 407 includes a touch panel 4071 and other input devices 4072. A touch panel 4071, also referred to as a touch screen. The touch panel 4071 may include two parts, a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 409 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 410 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing screenshot method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing screenshot method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. A screen capture method, comprising:
acquiring a first movement direction of the external control equipment detected by a preset sensor;
determining a screen capture mode according to the first motion direction;
and performing screen capture on a display interface according to the screen capture mode to generate a screen capture image.
2. The method of claim 1, wherein determining a screen capture mode based on the first direction of motion comprises:
determining that the screen capture mode is a first screen capture mode under the condition that the first movement direction is a clockwise movement direction of the first end of the external control equipment towards the display interface; or
Determining that the screen capture mode is a second screen capture mode under the condition that the first movement direction is a counterclockwise movement direction of the first end towards the display interface; or
And determining that the screen capture mode is a third screen capture mode under the condition that the first movement direction is the movement direction of the first end facing the display interface and the movement speed of the external control equipment is greater than a speed threshold.
3. The method of claim 1, wherein the screen capturing the display interface according to the screen capturing mode to generate a screen capturing image comprises:
displaying a screen capture frame corresponding to the screen capture mode on the display interface according to the screen capture mode;
receiving a first input of a user to the screen intercepting frame;
and responding to the first input, and generating the screen capture image according to the screen capture of the display interface of the input parameters of the first input.
4. The method according to claim 1, further comprising, after the generating a screen capture image by performing the screen capture on the display interface according to the screen capture mode:
acquiring a second movement direction of the external control equipment detected by the preset sensor;
and sharing the screen shot image according to the second motion direction.
5. The method of claim 4, wherein the sharing the screenshot image according to the second direction of motion comprises:
displaying a sharing popup window corresponding to the screen capture image according to the second motion direction;
and sharing the screen capture image under the condition that the user carries out the sharing operation on the screen capture image in the sharing popup window.
6. A screen capture device, comprising:
the first direction acquisition module is used for acquiring a first motion direction of the external control equipment detected by the preset sensor;
the screen capture mode determining module is used for determining a screen capture mode according to the first motion direction;
and the screen capture image generation module is used for capturing a screen of the display interface according to the screen capture mode to generate a screen capture image.
7. The apparatus of claim 6, wherein the screen capture mode determination module comprises:
the first screen capture mode determining unit is used for determining that the screen capture mode is the first screen capture mode under the condition that the first movement direction is the clockwise movement direction of the first end of the external control equipment towards the display interface;
the second screen capture mode determining unit is used for determining that the screen capture mode is the second screen capture mode under the condition that the first movement direction is the anticlockwise movement direction of the first end towards the display interface;
and the third screen capture mode determining unit is used for determining that the screen capture mode is the third screen capture mode under the condition that the first movement direction is the movement direction of the first end facing the display interface and the movement speed of the external control equipment is greater than a speed threshold.
8. The apparatus of claim 6, wherein the screenshot image generation module comprises:
the screen capture frame display unit is used for displaying a screen capture frame corresponding to the screen capture mode on the display interface according to the screen capture mode;
the first input receiving unit is used for receiving a first input of a user to the screen intercepting frame;
and the screen capture image generation unit is used for responding to the first input, capturing the screen of the display interface according to the input parameters of the first input and generating the screen capture image.
9. The apparatus of claim 6, further comprising:
the second direction acquisition module is used for acquiring a second motion direction of the external control equipment detected by the preset sensor;
and the screen capture image sharing module is used for sharing the screen capture image according to the second motion direction.
10. The apparatus of claim 9, wherein the screenshot image sharing module comprises:
the sharing popup display unit is used for displaying the sharing popup corresponding to the screen capture image according to the second movement direction;
and the screen capture image sharing unit is used for receiving the screen capture image shared by the user under the condition of the sharing operation of the screen capture image executed in the sharing popup window.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the screen capturing method of any of claims 1-5.
CN202010582019.7A 2020-06-23 2020-06-23 Screen capturing method and device and electronic equipment Pending CN111813473A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010582019.7A CN111813473A (en) 2020-06-23 2020-06-23 Screen capturing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010582019.7A CN111813473A (en) 2020-06-23 2020-06-23 Screen capturing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111813473A true CN111813473A (en) 2020-10-23

Family

ID=72845584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010582019.7A Pending CN111813473A (en) 2020-06-23 2020-06-23 Screen capturing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111813473A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI792581B (en) * 2021-07-20 2023-02-11 明俐科技有限公司 Displaying equipment and displaying method capable of quick displaying and system-failure backup mechanism

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103210365A (en) * 2010-11-19 2013-07-17 Tivo有限公司 Flick to send or display content
CN104702795A (en) * 2015-03-27 2015-06-10 努比亚技术有限公司 Mobile terminal and shortcut operation method thereof
CN105204745A (en) * 2015-09-30 2015-12-30 百度在线网络技术(北京)有限公司 Screen capture method and device for mobile terminal
CN105786163A (en) * 2014-12-19 2016-07-20 联想(北京)有限公司 Display processing method and display processing device
CN105933544A (en) * 2016-06-29 2016-09-07 努比亚技术有限公司 Screen capture method and mobile terminal
CN109271081A (en) * 2018-07-28 2019-01-25 华为技术有限公司 Roll the method and electronic equipment of screenshotss
US20190147026A1 (en) * 2017-05-16 2019-05-16 Apple Inc. Device, Method, and Graphical User Interface for Editing Screenshot Images
WO2019140611A1 (en) * 2018-01-18 2019-07-25 华为技术有限公司 Navigation button-based mistaken touch prevention method for terminal during handwriting
CN110196675A (en) * 2019-04-17 2019-09-03 华为技术有限公司 A kind of method and electronic equipment of addition annotation

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103210365A (en) * 2010-11-19 2013-07-17 Tivo有限公司 Flick to send or display content
CN105786163A (en) * 2014-12-19 2016-07-20 联想(北京)有限公司 Display processing method and display processing device
CN104702795A (en) * 2015-03-27 2015-06-10 努比亚技术有限公司 Mobile terminal and shortcut operation method thereof
CN105204745A (en) * 2015-09-30 2015-12-30 百度在线网络技术(北京)有限公司 Screen capture method and device for mobile terminal
CN105933544A (en) * 2016-06-29 2016-09-07 努比亚技术有限公司 Screen capture method and mobile terminal
US20190147026A1 (en) * 2017-05-16 2019-05-16 Apple Inc. Device, Method, and Graphical User Interface for Editing Screenshot Images
WO2019140611A1 (en) * 2018-01-18 2019-07-25 华为技术有限公司 Navigation button-based mistaken touch prevention method for terminal during handwriting
CN109271081A (en) * 2018-07-28 2019-01-25 华为技术有限公司 Roll the method and electronic equipment of screenshotss
CN110196675A (en) * 2019-04-17 2019-09-03 华为技术有限公司 A kind of method and electronic equipment of addition annotation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI792581B (en) * 2021-07-20 2023-02-11 明俐科技有限公司 Displaying equipment and displaying method capable of quick displaying and system-failure backup mechanism

Similar Documents

Publication Publication Date Title
CN109857306B (en) Screen capturing method and terminal equipment
CN108920069B (en) Touch operation method and device, mobile terminal and storage medium
CN111104029B (en) Shortcut identifier generation method, electronic device and medium
CN106445340B (en) Method and device for displaying stereoscopic image by double-screen terminal
EP4057137A1 (en) Display control method and terminal device
US20140320537A1 (en) Method, device and storage medium for controlling electronic map
CN103412720A (en) Method and device for processing touch-control input signals
CN111050109B (en) Electronic equipment control method and electronic equipment
WO2023061280A1 (en) Application program display method and apparatus, and electronic device
CN111601065A (en) Video call control method and device and electronic equipment
CN110989822A (en) Sensor control method, sensor control device, storage medium and electronic equipment
CN112911147A (en) Display control method, display control device and electronic equipment
CN112148167A (en) Control setting method and device and electronic equipment
CN112929860A (en) Bluetooth connection method and device and electronic equipment
US9665232B2 (en) Information-processing device, storage medium, information-processing method, and information-processing system for enlarging or reducing an image displayed on a display device
CN112783406B (en) Operation execution method and device and electronic equipment
CN107368245A (en) Pattern enables method and device
CN112099714B (en) Screenshot method and device, electronic equipment and readable storage medium
CN109814781B (en) Page sliding method and device
CN111813473A (en) Screen capturing method and device and electronic equipment
CN112269481A (en) Method and device for controlling friction force adjustment and electronic equipment
CN111857507A (en) Desktop image processing method and device and electronic equipment
WO2023001252A1 (en) Application reminder method and apparatus, and electronic device
CN116107531A (en) Interface display method and device
US20200150820A1 (en) Method and apparatus for processing edge of touch screen

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination