CN110597580A - Screen capturing method and device - Google Patents

Screen capturing method and device Download PDF

Info

Publication number
CN110597580A
CN110597580A CN201910670189.8A CN201910670189A CN110597580A CN 110597580 A CN110597580 A CN 110597580A CN 201910670189 A CN201910670189 A CN 201910670189A CN 110597580 A CN110597580 A CN 110597580A
Authority
CN
China
Prior art keywords
screen
terminal
folding
speed
screen capture
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.)
Granted
Application number
CN201910670189.8A
Other languages
Chinese (zh)
Other versions
CN110597580B (en
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910670189.8A priority Critical patent/CN110597580B/en
Publication of CN110597580A publication Critical patent/CN110597580A/en
Application granted granted Critical
Publication of CN110597580B publication Critical patent/CN110597580B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a screen capture method and a screen capture device, and relates to the technical field of communication. One embodiment of the method comprises: acquiring the state information of a current angular velocity sensor under the condition that the terminal is detected to enter a screen capture mode; determining whether a screen of the terminal is folded or not according to the state information; and if so, carrying out screen capture according to the folding direction and the folding speed of the screen. According to the embodiment, the folding direction and the folding speed of the terminal screen relative to the reference plane are determined through the angular velocity sensor, the screen capture is controlled by utilizing the folding direction and the folding speed, the screen capture mode is optimized, the screen capture mode is more flexible and simpler, and the user experience is improved.

Description

Screen capturing method and device
Technical Field
The invention relates to the technical field of communication, in particular to a screen capturing method and device.
Background
When a user browses by using the mobile terminal, the user can store interesting information and valuable information in a screenshot mode for later viewing. The screen capturing mode comprises a common screen capturing mode and a long screen capturing mode, wherein the common screen capturing mode is that the current screen content is directly captured to generate a picture, and the long screen capturing mode is that more than one screen content is captured to generate a picture. The long screen shot usually takes the top of the current interface as the starting position, and then continuously slides the interface downwards to determine the end position of the screen shot. The common method is that a power key and a volume adjusting key are pressed simultaneously to enter a screen capturing interface, a button for selecting a long screen capturing is arranged on the screen capturing interface, if the operation of a user is not detected for about more than 3s, the screen capturing mode is entered, and if the button is detected to be clicked by the user, the screen capturing mode is entered.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art: no matter ordinary screen capture and long screen capture among the prior art, the mode is all comparatively single, and the step is loaded down with trivial details, lacks the flexibility, influences customer experience.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, embodiments of the present invention provide a screen capture method and a screen capture apparatus.
In a first aspect, an embodiment of the present invention provides a screen capture method, including: acquiring the state information of a current angular velocity sensor under the condition that the terminal is detected to enter a screen capture mode; determining whether a screen of the terminal is folded or not according to the state information; and if so, carrying out screen capture according to the folding direction and the folding speed of the screen.
In an alternative embodiment, the method comprises: and if the screen of the terminal is determined not to be folded, capturing the content in the current screen to generate the picture.
In an alternative embodiment, the status information comprises an angle of the terminal measured by the angular velocity sensor relative to a reference plane;
determining whether the screen of the terminal is folded according to the state information includes: determining whether a screen of the terminal is folded or not according to whether the angle of the terminal relative to a reference plane is changed or not;
the screen capturing according to the folding direction and the folding speed of the screen comprises the following steps: determining the folding direction of the screen according to the change direction of the angle of the terminal relative to a reference plane, and determining the folding speed of the screen according to the change speed of the angle of the terminal relative to the reference plane; and controlling the direction and speed of the screenshot according to the folding direction and the folding speed.
In an optional embodiment, the method further comprises: and determining the screen capture termination position according to the state information.
In an optional embodiment, the method further comprises: and scrolling the content displayed on the screen of the terminal according to the folding direction and the folding speed of the screen.
In a second aspect, an embodiment of the present invention provides a screen capture apparatus, including: the information acquisition module is used for acquiring the state information of the current angular velocity sensor under the condition that the terminal is detected to enter a screen capture mode; the judging module is used for determining whether the screen of the terminal is folded or not according to the state information; and the screen capturing module is used for capturing the screen according to the folding direction and the folding speed of the screen under the condition that the screen of the terminal is determined to be folded.
In an alternative embodiment, the screen capture module is further configured to: and if the screen of the terminal is determined not to be folded, capturing the content in the current screen to generate the picture.
In an alternative embodiment, the status information comprises an angle of the terminal measured by the angular velocity sensor relative to a reference plane;
the judging module is further configured to: determining whether a screen of the terminal is folded or not according to whether the angle of the terminal relative to a reference plane is changed or not;
the screen capture module is further configured to: determining the folding direction of the screen according to the change direction of the angle of the terminal relative to a reference plane, and determining the folding speed of the screen according to the change speed of the angle of the terminal relative to the reference plane; and controlling the direction and speed of the screenshot according to the folding direction and the folding speed.
In an alternative embodiment, the screen capture module is further configured to: and determining the screen capture termination position according to the state information.
In an alternative embodiment, the screen capture module is further configured to: and scrolling the content displayed on the screen of the terminal according to the folding direction and the folding speed of the screen.
In a third aspect, an embodiment of the present invention provides an electronic device, including: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the screen capturing method provided by the embodiment of the invention.
In a third aspect, an embodiment of the present invention provides a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a screen capture method provided by an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: the folding direction and the folding speed of the terminal screen relative to the reference plane are determined through the angular velocity sensor, the screen capture is controlled by the folding direction and the folding speed, the screen capture mode is optimized, the screen capture mode is more flexible and simpler, and the user experience is improved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of a main flow of a screen capture method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a main flow of a screen capture method according to another embodiment of the invention;
FIG. 3 is a schematic diagram of a coordinate system in a screen capture method according to yet another embodiment of the invention;
FIG. 4 is a schematic diagram of the main modules of a screen capture device according to an embodiment of the invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of a screen capture method according to an embodiment of the present invention, as shown in fig. 1, the method includes:
step S101: and acquiring the state information of the current angular velocity sensor under the condition that the terminal is detected to enter a screen capture mode.
In this embodiment, the terminal is a mobile terminal having a foldable screen, such as a mobile phone having a foldable screen and a tablet computer having a foldable screen. When the user triggers the screen capture mode of the terminal, the terminal enters the screen capture mode, for example, the user presses the power key and the volume adjustment key simultaneously or the user enters the screen capture mode through a screen capture tool.
In this step, an angular velocity sensor is used to measure the angle of the screen of the terminal with respect to a reference plane. When a cartesian rectangular coordinate system is adopted, the reference plane may be a plane where any coordinate axis is located, and specifically may be according to a direction in which the terminal is placed and a direction in which the screen is folded. For example, when the terminal is horizontally placed (screen up) and the screen is folded up and down, the reference plane may be the plane on which the x-axis is located, i.e., the horizontal plane. In this embodiment, a gyroscope may be used as an angular velocity sensor to measure the angle of the screen of the terminal with respect to a reference plane, where the gyroscope is an angular motion detection device using a moment-of-momentum sensitive housing of a high-speed rotator about one or two axes orthogonal to an axis of rotation with respect to an inertial space, and the gyroscope can capture very small motion trajectory changes, and thus can be used for high-resolution and fast-response angular motion detection. In other alternative embodiments, the screen of the terminal may be folded outwards or inwards, and the screen capture method in the embodiment of the present invention does not limit the folding manner of the screen.
Step S102: and determining whether the screen of the terminal is folded or not according to the state information.
In this step, the state information of the angular velocity sensor includes an angle of the screen of the terminal with respect to a reference plane. If the angle of the screen relative to the reference plane changes, the screen of the terminal is folded.
Step S103: and under the condition that the screen of the terminal is determined to be folded, screen capturing is carried out according to the folding direction and the folding speed of the screen.
In this step, a rule may be preset to define the screen capturing mode, for example, when the screen is folded toward the first direction, the top of the current screen is used as the screen capturing start position, and then the screen capturing is performed toward the lower side of the screen; when the screen is folded towards the second direction, the bottom end of the current screen is used as a screen capturing starting position, and screen capturing is carried out towards the upper side of the screen. When the folding speed of the screen is within a first preset range, the screen capturing speed is low; when the folding speed of the screen is within a second preset range, the screen capturing speed is moderate; when the folding speed of the screen is within the third preset range, the screen capturing speed is high, and the screen capturing speed can be flexibly set.
Step S104: and under the condition that the screen of the terminal is determined not to be folded, intercepting the content in the current screen to generate a picture.
In this embodiment, after the terminal enters the screen capture mode, if the screen is folded, it indicates that the screen needs to enter the long screen capture (or scrolling screen capture) mode, and if the screen is not folded, the screen capture mode is the normal screen capture mode, that is, the content in the current screen is captured to generate the picture.
According to the screen capture method, the folding direction and the folding speed of the terminal screen relative to the reference plane are determined through the angular speed sensor, and the screen capture is controlled by utilizing the folding direction and the folding speed, so that the screen capture mode is optimized, the screen capture mode is more flexible and simpler, and the user experience is improved.
Fig. 2 is a schematic diagram of a main flow of a screen capture method according to an embodiment of the present invention, as shown in fig. 2, the method includes:
step S201: under the condition that the terminal is detected to enter a screen capture mode, acquiring the state information of the current angular velocity sensor, wherein the state information of the angular velocity sensor comprises the angle of the terminal relative to a reference plane, which is measured by the angular velocity sensor.
Step S202: determining that the screen of the terminal is folded according to the angle of the terminal relative to a reference plane;
step S203: determining the folding direction of the screen according to the change direction of the angle of the terminal relative to a reference plane, and determining the folding speed of the screen according to the change speed of the angle of the terminal relative to the reference plane;
step S204: and controlling the direction and speed of the screenshot according to the folding direction and the folding speed.
The steps S201 to S202 are the same as the steps S101 to S102, and the present invention is not described herein again.
For steps S203 and S204, as an example, as shown in fig. 3, assuming that the screen of the terminal is folded up and down, and the screen of the terminal is placed upward (toward the positive direction of the y-axis), the reference plane is the plane (i.e., horizontal plane) where the x-axis is located. And when the screen is set to be folded downwards, the screen is shot downwards, and when the screen is detected to be folded upwards or stopped to be folded downwards, the screen shot is stopped. The angle of the screen with respect to the horizontal plane may be recorded once every preset time period, and the folding direction of the screen may be determined according to the difference between the angles at the present time and the previous time, and when the difference is a positive number, the folding direction is a first direction (e.g., folding down) and when the difference is a negative number, the folding direction is reversed to a second direction (e.g., folding up). And taking the ratio of the difference value to the preset time as the folding speed of the screen. When the folding speed is greater than or equal to 5 degrees per second and less than 10 degrees per second, performing screen capture at a low speed; when the folding speed is greater than or equal to 10 degrees per second and less than 15 degrees per second, screen capturing is carried out at a medium speed; when the folding speed is greater than or equal to 15 degrees per second, the screen capturing is performed at a high speed, and in this embodiment, the values of the low speed, the medium speed, and the high speed can be flexibly set, which is not limited herein. It is to be noted that, in the present embodiment, the screen shot is not turned on when the screen folding speed is less than 5 degrees per second, because when the screen folding speed is less than 5 degrees per second, the user may not fold the screen, but the terminal position is changed by other operations. Therefore, in the embodiment of the present invention, the screen folding speed is greater than or equal to 5 degrees per second as a critical speed for starting screen capture, and it should be noted that the critical speed can be flexibly set according to the hardware configuration condition of the terminal and the sensitivity of the angular velocity sensor, which is not limited herein.
In this embodiment, when it is determined that the screen of the terminal is folded, it is also necessary to scroll the content displayed on the screen of the terminal. Specifically, the content displayed on the screen may be scrolled according to the folding direction and the folding speed of the screen.
In this embodiment, the screen has two folding directions: and folding upwards or downwards, wherein the folding downwards is an adding action, and adding more pages is a withdrawing action, so that the range of screen capturing is controlled. Namely, the end position of the screen shot is determined according to the state information of the angular velocity sensor. For example, when it is determined for the first time that the folding direction of the screen is downward folding, the screen capturing is performed toward the bottom end of the screen with the top end of the current screen as the screen capturing start position. If the second determined folding direction is still folded downwards, the display content on the screen is scrolled downwards and the screen is shot downwards. And if the folding direction determined for the third time is upward folding, stopping screen capturing.
According to the screen capture method, the folding direction and the folding speed of the terminal screen relative to the reference plane are determined through the angular speed sensor, and the screen capture is controlled by utilizing the folding direction and the folding speed, so that the screen capture mode is optimized, the screen capture mode is more flexible and simpler, and the user experience is improved.
Fig. 4 is a schematic diagram of main blocks of a screen capture apparatus 400 according to an embodiment of the present invention, as shown in fig. 4, the apparatus including:
the information acquisition module 401 is configured to acquire state information of a current angular velocity sensor when it is detected that the terminal enters a screen capture mode;
a judging module 402, configured to determine whether a screen of the terminal is folded according to the state information;
a screen capturing module 403, configured to capture a screen according to the folding direction and the folding speed of the screen if it is determined that the screen of the terminal is folded.
In an alternative embodiment, the screen capture module 403 is further configured to: and if the screen of the terminal is determined not to be folded, capturing the content in the current screen to generate the picture.
In an alternative embodiment, the status information comprises an angle of the terminal measured by the angular velocity sensor relative to a reference plane;
the determining module 402 is further configured to: determining whether a screen of the terminal is folded or not according to whether the angle of the terminal relative to a reference plane is changed or not;
the screen capture module 403 is further configured to: determining the folding direction of the screen according to the change direction of the angle of the terminal relative to a reference plane, determining the change speed according to the change speed of the angle of the terminal relative to the reference plane, and determining the folding speed of the screen; and controlling the direction and speed of the screenshot according to the folding direction and the folding speed.
In an alternative embodiment, the screen capture module 403 is further configured to: and determining the screen capture termination position according to the state information.
In an alternative embodiment, the screen capture module 403 is further configured to: and scrolling the content displayed on the screen of the terminal according to the folding direction and the folding speed of the screen.
The device can execute the method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
As used herein, a "module," "system," and the like are intended to refer to a computer-related entity, either hardware, a combination of hardware and software, or software in execution. In particular, for example, an element may be, but is not limited to being, a process running on a processor, an object, an executable, a thread of execution, a program, and/or a computer. Also, an application or script running on a server, or a server, may be an element. One or more elements may be in a process and/or thread of execution and an element may be localized on one computer and/or distributed between two or more computers and may be operated by various computer-readable media. The elements may also communicate by way of local and/or remote processes based on a signal having one or more data packets, e.g., from a data packet interacting with another element in a local system, distributed system, and/or across a network in the internet with other systems by way of the signal.
The embodiment of the invention also provides a mobile terminal capable of executing the screen capturing method. The mobile terminal comprises an electronic body part, wherein the electronic body part comprises a shell and a foldable screen arranged on the shell. The housing may be made of metal, such as steel or aluminum alloy. In this embodiment, the foldable screen generally includes a display panel, and may also include a circuit or the like for performing a pressing operation in response to the display panel. The Display panel may be a Liquid Crystal Display (LCD) panel. The mobile terminal further includes one or more processors, a memory, a Radio Frequency (RF) module, an audio circuit, a sensor, an input module, and a power module. It will be understood by those skilled in the art that the present application is not limited to the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown, or have a different configuration than shown.
Fig. 5 illustrates an exemplary system architecture 500 to which the screen capture method or screen capture apparatus of an embodiment of the present invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. The terminal devices 501, 502, 503 may have various communication client applications installed thereon, such as a shopping application, a web browser application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 501, 502, 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 505 may be a server that provides various services, such as a background management server that supports shopping websites browsed by users using the terminal devices 501, 502, 503. The background management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (e.g., target push information and product information) to the terminal device.
It should be noted that the screen capture method provided by the embodiment of the present invention is generally executed by the server 505, and accordingly, the screen capture apparatus is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use with a terminal device implementing an embodiment of the invention is shown. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a sending module, an obtaining module, a determining module, and a first processing module. The names of these modules do not in some cases constitute a limitation on the unit itself, and for example, the sending module may also be described as a "module that sends a picture acquisition request to a connected server".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise:
acquiring the state information of a current angular velocity sensor under the condition that the terminal is detected to enter a screen capture mode;
determining whether a screen of the terminal is folded or not according to the state information;
and if so, carrying out screen capture according to the folding direction and the folding speed of the screen.
According to the technical scheme of the embodiment of the invention, the folding direction and the folding speed of the terminal screen relative to the reference plane are determined through the angular speed sensor, and the screen capture is controlled by utilizing the folding direction and the folding speed, so that the screen capture mode is optimized, the screen capture mode is more flexible and simpler, and the user experience is improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A screen capture method, comprising:
acquiring the state information of a current angular velocity sensor under the condition that the terminal is detected to enter a screen capture mode;
determining whether a screen of the terminal is folded or not according to the state information;
and if so, carrying out screen capture according to the folding direction and the folding speed of the screen.
2. The method according to claim 1, characterized in that it comprises:
and if the screen of the terminal is determined not to be folded, capturing the content in the current screen to generate the picture.
3. The method of claim 1, the status information comprising an angle of the terminal measured by the angular velocity sensor relative to a reference plane;
determining whether the screen of the terminal is folded according to the state information includes:
determining whether a screen of the terminal is folded or not according to whether the angle of the terminal relative to a reference plane is changed or not;
the screen capturing according to the folding direction and the folding speed of the screen comprises the following steps:
determining the folding direction of the screen according to the change direction of the angle of the terminal relative to a reference plane, and determining the folding speed of the screen according to the change speed of the angle of the terminal relative to the reference plane;
and controlling the direction and speed of the screenshot according to the folding direction and the folding speed.
4. The method of claim 1, further comprising:
and determining the screen capture termination position according to the state information.
5. The method according to any one of claims 1-4, further comprising:
and scrolling the content displayed on the screen of the terminal according to the folding direction and the folding speed of the screen.
6. A screen capture device, comprising:
the information acquisition module is used for acquiring the state information of the current angular velocity sensor under the condition that the terminal is detected to enter a screen capture mode;
the judging module is used for determining whether the screen of the terminal is folded or not according to the state information;
and the screen capturing module is used for capturing the screen according to the folding direction and the folding speed of the screen under the condition that the screen of the terminal is determined to be folded.
7. The apparatus of claim 6, wherein the screen capture module is further configured to: and if the screen of the terminal is determined not to be folded, capturing the content in the current screen to generate the picture.
8. The apparatus of claim 6, the status information comprising an angle of the terminal measured by the angular velocity sensor relative to a reference plane;
the judging module is further configured to: determining whether a screen of the terminal is folded or not according to whether the angle of the terminal relative to a reference plane is changed or not;
the screen capture module is further configured to:
determining the folding direction of the screen according to the change direction of the angle of the terminal relative to a reference plane, and determining the folding speed of the screen according to the change speed of the angle of the terminal relative to the reference plane;
and controlling the direction and speed of the screenshot according to the folding direction and the folding speed.
9. The apparatus of claim 6, wherein the screen capture module is further configured to: and determining the screen capture termination position according to the state information.
10. The apparatus of any of claims 6-9, wherein the screen capture module is further configured to:
and scrolling the content displayed on the screen of the terminal according to the folding direction and the folding speed of the screen.
11. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.
12. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN201910670189.8A 2019-07-23 2019-07-23 Screen capturing method and device Active CN110597580B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910670189.8A CN110597580B (en) 2019-07-23 2019-07-23 Screen capturing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910670189.8A CN110597580B (en) 2019-07-23 2019-07-23 Screen capturing method and device

Publications (2)

Publication Number Publication Date
CN110597580A true CN110597580A (en) 2019-12-20
CN110597580B CN110597580B (en) 2020-09-22

Family

ID=68853188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910670189.8A Active CN110597580B (en) 2019-07-23 2019-07-23 Screen capturing method and device

Country Status (1)

Country Link
CN (1) CN110597580B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112114733A (en) * 2020-09-23 2020-12-22 青岛海信移动通信技术股份有限公司 Screen capturing and recording method, mobile terminal and computer storage medium
CN116048350A (en) * 2022-07-08 2023-05-02 荣耀终端有限公司 Screen capturing method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106527881A (en) * 2016-09-26 2017-03-22 维沃移动通信有限公司 Method for enabling screen capturing function and mobile terminal
CN107765952A (en) * 2017-11-07 2018-03-06 广东欧珀移动通信有限公司 Screenshotss method, apparatus and terminal
CN108196775A (en) * 2017-12-19 2018-06-22 努比亚技术有限公司 Sectional drawing control method, flexible screen terminal and computer readable storage medium
CN109358793A (en) * 2018-09-27 2019-02-19 维沃移动通信有限公司 A kind of screenshotss method and mobile terminal
CN109857306A (en) * 2018-12-27 2019-06-07 维沃移动通信有限公司 Screenshotss method and terminal device
CN110012154A (en) * 2019-02-22 2019-07-12 华为技术有限公司 A kind of control method and electronic equipment of the electronic equipment with Folding screen

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106527881A (en) * 2016-09-26 2017-03-22 维沃移动通信有限公司 Method for enabling screen capturing function and mobile terminal
CN107765952A (en) * 2017-11-07 2018-03-06 广东欧珀移动通信有限公司 Screenshotss method, apparatus and terminal
CN108196775A (en) * 2017-12-19 2018-06-22 努比亚技术有限公司 Sectional drawing control method, flexible screen terminal and computer readable storage medium
CN109358793A (en) * 2018-09-27 2019-02-19 维沃移动通信有限公司 A kind of screenshotss method and mobile terminal
CN109857306A (en) * 2018-12-27 2019-06-07 维沃移动通信有限公司 Screenshotss method and terminal device
CN110012154A (en) * 2019-02-22 2019-07-12 华为技术有限公司 A kind of control method and electronic equipment of the electronic equipment with Folding screen

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112114733A (en) * 2020-09-23 2020-12-22 青岛海信移动通信技术股份有限公司 Screen capturing and recording method, mobile terminal and computer storage medium
CN112114733B (en) * 2020-09-23 2021-10-15 青岛海信移动通信技术股份有限公司 Screen capturing and recording method, mobile terminal and computer storage medium
CN116048350A (en) * 2022-07-08 2023-05-02 荣耀终端有限公司 Screen capturing method and electronic equipment
CN116048350B (en) * 2022-07-08 2023-09-08 荣耀终端有限公司 Screen capturing method and electronic equipment

Also Published As

Publication number Publication date
CN110597580B (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN111291244B (en) House source information display method, device, terminal and storage medium
CN110633126B (en) Information display method and device and electronic equipment
CN111258736B (en) Information processing method and device and electronic equipment
CN111310482A (en) Real-time translation method, device, terminal and storage medium
WO2014201873A1 (en) Method and device for processing web page content
CN110597580B (en) Screen capturing method and device
CN105808307B (en) Page display method and device
CN109040339B (en) Cross-domain request processing method, device and equipment based on AJAX
US9582584B2 (en) Method, apparatus and system for filtering data of web page
CN110795196A (en) Window display method, device, terminal and storage medium
CN111459364A (en) Icon updating method and device and electronic equipment
CN113434241A (en) Page skipping method and device
CN114064593A (en) Document sharing method, device, equipment and medium
CN115470432A (en) Page rendering method and device, electronic equipment and computer readable medium
WO2014067407A1 (en) Systems and methods for content browsing, generation, and interaction
CN111309416A (en) Information display method, device and equipment of application interface and readable medium
US20230199262A1 (en) Information display method and device, and terminal and storage medium
CN114417782A (en) Display method and device and electronic equipment
CN110069186B (en) Method and equipment for displaying operation interface of application
CN112445394B (en) Screenshot method and screenshot device
TWI712941B (en) Method and device for processing page data, client and server
CN113204299B (en) Display method, display device, electronic equipment and storage medium
CN111274513B (en) Window display method, device, terminal and storage medium
CN113253874A (en) Display device control method, device, terminal and storage medium
CN110807164A (en) Automatic image area adjusting method and device, electronic equipment and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant