CN112596827A - Display information extraction method and device and computer equipment - Google Patents

Display information extraction method and device and computer equipment Download PDF

Info

Publication number
CN112596827A
CN112596827A CN202011461174.XA CN202011461174A CN112596827A CN 112596827 A CN112596827 A CN 112596827A CN 202011461174 A CN202011461174 A CN 202011461174A CN 112596827 A CN112596827 A CN 112596827A
Authority
CN
China
Prior art keywords
preset
preset operation
display information
time
screen
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
CN202011461174.XA
Other languages
Chinese (zh)
Other versions
CN112596827B (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.)
Shanghai Wentai Information Technology Co Ltd
Original Assignee
Shanghai Wentai Information Technology 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 Shanghai Wentai Information Technology Co Ltd filed Critical Shanghai Wentai Information Technology Co Ltd
Priority to CN202011461174.XA priority Critical patent/CN112596827B/en
Publication of CN112596827A publication Critical patent/CN112596827A/en
Application granted granted Critical
Publication of CN112596827B publication Critical patent/CN112596827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Landscapes

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

Abstract

The embodiment of the invention provides a display information extraction method, a display information extraction device and computer equipment, and relates to the technical field of terminals. The method comprises the following steps: the method comprises the steps of extracting display information corresponding to a first moment when a first preset operation is detected, judging whether a second preset operation is received within a preset time or not when the first preset operation is detected, storing the display information corresponding to the first moment to a preset database if the second preset operation is received within the preset time, and deleting the display information corresponding to the first moment if the second preset operation is not received within the preset time. The embodiment of the invention is used for quickly starting the screen capturing or recording function and avoiding wasting the storage space.

Description

Display information extraction method and device and computer equipment
Technical Field
The invention relates to the technical field of terminals, in particular to a display information extraction method and device and computer equipment.
Background
The richness of the functions of the intelligent terminal equipment brings more and more convenience to the life of people, for example: the screen capturing and recording functions of the mobile phone enable a user to store images which the user wants to keep through screen capturing, store videos required by the user through screen recording, or record the operation process of the user on the terminal device to serve as learning materials.
In the prior art, most of screen capture or recording functions of smart phones are hidden in a certain menu, for example, a shortcut icon designed as a status bar or a screen recording option set in an advanced function menu makes the screen recording mode cumbersome, and a user needs to start the function through a series of searching operations, so that when the user needs to record a section of video being played or capture a currently displayed image, the user easily misses an opportunity or cannot capture the needed image and video clip. However, if the starting mode of screen capture or screen recording is set too simply, for example, sliding or clicking operation can start the function, so that the function easily conflicts with the existing operation on one hand, and on the other hand, the function easily causes misoperation to the user, extracts unnecessary images or videos, and wastes storage space. In summary, there is a need in the art for a method for extracting display information that can not only quickly start screen capture or recording, but also avoid wasting storage space.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a display information extraction method, device and computer equipment, which can avoid wasting storage space while enabling quick start of screen capture or screen recording.
In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:
in a first aspect, an embodiment of the present invention provides a display information extraction method, where the method includes:
under the condition that a first preset operation is detected, extracting display information corresponding to a first moment, wherein the first moment is the moment when the first preset operation is detected;
judging whether a second preset operation is received within preset time;
if the second preset operation is received within the preset time, storing the display information corresponding to the first time into a preset database;
and if the second preset operation is not received within the preset time, deleting the display information corresponding to the first moment.
As an optional implementation manner of the embodiment of the present invention, the display information corresponding to the first time is an image displayed on a screen of the terminal device at the first time, or the display information corresponding to the first time is an image stream displayed on the screen of the terminal device at the first time and after the first time.
As an optional implementation manner of the embodiment of the present invention, the detecting whether the second preset operation is received within the preset time includes:
starting a timer when a first preset operation is detected, and detecting a second preset operation before the timer finishes timing;
if the second preset operation is detected before the timer finishes timing, determining that the second preset operation is received within the preset time;
and if the second preset operation is not detected after the timer finishes timing, determining that the second preset operation is not received within the preset time.
As an optional implementation manner of the embodiment of the present invention, the first preset operation is an operation of tapping a screen by a finger joint;
the second preset operation is an operation of knocking the screen by a finger joint, or the second preset operation is an operation of double-clicking the screen by the finger joint.
As an optional implementation manner of the embodiment of the present invention, the detecting the first preset operation or the detecting the second preset operation includes:
detecting whether the acceleration of the terminal equipment is greater than a threshold acceleration or not;
if the acceleration of the terminal equipment is larger than the threshold acceleration, judging whether a touch event exists;
if the touch event exists, judging whether the touch area of the touch event is smaller than a threshold area;
and if the touch area of the touch event is smaller than the threshold area, determining that the operation of knocking the screen by the knuckle is detected.
As an optional implementation manner of the embodiment of the present invention, the method includes:
and if the second preset operation is received within the preset time, outputting indication information, wherein the indication information is used for indicating that the display information corresponding to the first time is extracted.
As an optional implementation manner of the embodiment of the present invention, the display information corresponding to the first time is the first time and an image stream displayed on the screen after the first time, and the method further includes:
receiving a third preset operation input by a user;
and responding to the third preset operation, and stopping extracting the display information corresponding to the first moment.
In a second aspect, an embodiment of the present invention provides a terminal device, including:
the device comprises an extraction unit, a display unit and a control unit, wherein the extraction unit is used for extracting display information corresponding to a first moment when a first preset operation is detected, and the first moment is the moment when the first preset operation is detected;
the processing unit is used for judging whether a second preset operation is received within preset time;
and the storage unit is used for storing the display information corresponding to the first moment to a preset database under the condition that the second preset operation is received within the preset time, and deleting the display information corresponding to the first moment under the condition that the second preset operation is not received within the preset time.
As an optional implementation manner of the embodiment of the present invention, the display information corresponding to the first time is an image displayed on a screen of the terminal device at the first time, or the display information corresponding to the first time is an image stream displayed on the screen of the terminal device at the first time and after the first time.
As an optional implementation manner of the embodiment of the present invention, the processing unit is further configured to detect whether a second preset operation is received within a preset time, and includes:
starting a timer when a first preset operation is detected, and detecting a second preset operation before the timer finishes timing;
if the second preset operation is detected before the timer finishes timing, determining that the second preset operation is received within the preset time;
and if the second preset operation is not detected after the timer finishes timing, determining that the second preset operation is not received within the preset time.
The first preset operation is an operation of knocking a screen by a finger joint;
the second preset operation is an operation of knocking the screen by a finger joint, or the second preset operation is an operation of double-clicking the screen by the finger joint.
As an optional implementation manner of the embodiment of the present invention, the processing unit, configured to detect the first preset operation or detect the second preset operation, further includes:
detecting whether the acceleration of the terminal equipment is greater than a threshold acceleration or not;
if the acceleration of the terminal equipment is larger than the threshold acceleration, judging whether a touch event exists;
if the touch event exists, judging whether the touch area of the touch event is smaller than a threshold area;
and if the touch area of the touch event is smaller than the threshold area, determining that the operation of knocking the screen by the knuckle is detected.
As an optional implementation manner of the embodiment of the present invention, the terminal device further includes: an output unit;
the output unit is further configured to output indication information if the second preset operation is received within the preset time, where the indication information is used to indicate that the display information corresponding to the first time has been extracted.
As an optional implementation manner of the embodiment of the present invention, the terminal device further includes: a receiving unit;
the receiving unit is also used for receiving a third preset operation input by the user;
and responding to the third preset operation, and stopping extracting the display information corresponding to the first moment.
In a third aspect, an embodiment of the present invention provides a computer device, where the computer device includes a processor and a memory, and the processor is configured to implement the display information extraction method provided in the first aspect or any optional implementation manner of the first aspect when executing a computer program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the display information extraction method provided in the first aspect or any one of the optional implementations of the first aspect.
The display information extraction method provided by the embodiment of the invention extracts the display information corresponding to the moment when the first preset operation is detected under the condition that the first preset operation is detected, and judges whether a second preset operation is received within a preset time, if the second preset operation is received within the preset time, the display information corresponding to the first moment is stored in a preset database, and if the second preset operation is not received within the preset time, the display information corresponding to the first moment is deleted. On the first hand, when a user wants to extract the display information of the screen, the display information of the screen can be immediately extracted by inputting a first preset operation, so that even if the display information of the screen is a video picture which rolls from time to time, the user can quickly start a screen capture or recording function to extract the display information of the screen, and the situation that the user misses the opportunity and cannot extract the required picture or video clip is avoided; in a second aspect, after the first preset operation is detected and the display information of the screen is extracted, the second preset operation needs to be detected to store the extracted display information into the preset database, otherwise, the extracted display information is deleted, so that the embodiment of the invention can also avoid the storage space occupied by extracting the unnecessary images or videos. In summary, the embodiments of the present invention can avoid wasting the storage space while quickly starting screen capture or recording.
Drawings
FIG. 1 is a flow diagram illustrating the steps of a method for extracting display information in one embodiment;
FIG. 2 is a flow chart of steps of a display information extraction method in another embodiment;
FIG. 3 is a schematic illustration of indication information in one embodiment;
FIG. 4 is a block diagram showing the structure of a terminal device according to an embodiment;
fig. 5 is a block diagram showing the structure of a terminal device in another embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The execution main body of the display information extraction method provided by the embodiment of the present invention may be a terminal device, or may also be a functional module and/or a functional entity capable of implementing the display information extraction method in the terminal device, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited.
The terminal device provided in the embodiment of the present invention may be a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, an electronic photo frame, a Personal Digital Assistant (PDA), an intelligent watch, an intelligent bracelet, or the like, or the terminal device may be other types of terminal devices, which is not limited in the embodiment of the present invention.
An embodiment of the present invention provides a display information extraction method, which is shown in fig. 1 and includes:
s101, under the condition that the first preset operation is detected, extracting display information corresponding to the first time.
The first moment is the moment when the first preset operation is detected.
Specifically, the first preset operation in the embodiment of the present invention may specifically be a touch click operation of a screen of the terminal device by a user, or a click operation of a control of the terminal device by a peripheral device such as a mouse by the user, or a voice instruction input by the user, or a specific gesture input by the user.
In some embodiments of the present invention, the specific gesture may be any one of a single-tap gesture, a slide gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-tap gesture.
Optionally, the display information corresponding to the first time is an image displayed on a screen of the terminal device at the first time.
Namely, the first preset operation is used for triggering screen capture, and the captured image is an image displayed on a screen of the terminal device at the first moment. For example: the terminal equipment plays a cartoon, when a user wants to intercept a certain image, a first preset operation is input to the terminal equipment, and the terminal equipment detects the first preset operation and immediately extracts the image displayed on a current screen.
Optionally, the display information corresponding to the first time is an image stream displayed on a screen of the terminal device at the first time and after the first time.
Namely, the first preset operation is used for triggering screen recording, and the recorded video is an image stream displayed on a screen of the terminal equipment at the first moment and after the first moment. For example, when a user wants to record a screen from a current time while a terminal device is playing a teaching video, a first preset operation is input to the terminal device, and the terminal device detects the first preset operation and immediately extracts an image stream displayed on the screen at the current time and after the current time.
Further, the implementation manner of detecting the first preset operation may be: and under the condition that the screen of the terminal equipment is lightened, starting a corresponding sensor based on the type of the first preset operation, and detecting the first preset operation in real time. For example: the first preset operation is voice input, and then the microphone is started to detect the first preset operation in real time, for example: and if the first preset operation is a touch operation, starting the touch panel to detect the first preset operation in real time.
It should be noted that the extracted display information corresponding to the first time may be stored in a temporary storage space, such as a cache, a memory, and the like, which is not limited in this embodiment of the present invention.
Because the extracted display information is the display information corresponding to the moment when the terminal device detects the first preset operation of the user, no matter a static picture is captured or a video picture which is played in a rolling mode is captured or recorded, the embodiment of the invention can capture the required picture information by setting the first preset operation which can be input quickly, so that the user can capture the picture information which is required by the user through inputting the first preset operation quickly, and the situation that the display information which is required to be extracted is missed due to the fact that the video picture information rolls constantly is avoided.
S102, judging whether a second preset operation is received within a preset time.
Specifically, the second preset operation in the embodiment of the present invention may be the same operation as the first preset operation, or may be another operation different from the first preset operation, and if the terminal device receives the second preset operation within the preset time, the following step S103 is executed; if the second predetermined operation is not received within the predetermined time, the following step S104 is executed.
In order to input the first preset operation quickly, the first preset operation needs to be set simply, and therefore, the user may trigger the first preset operation by mistake in the process of using the terminal device. The embodiment of the invention has the effect of confirming the screen capturing or recording operation sent by the user by detecting whether the second preset operation is received within the preset time, and can effectively avoid the terminal equipment from carrying out unnecessary screen capturing or recording due to misoperation of the user.
S103, storing the display information corresponding to the first moment to a preset database.
Specifically, when the display information corresponding to the first moment is an image displayed on the screen of the terminal device at the first moment, if the terminal device detects a second preset operation of screen capture within a preset time, the image captured at the first moment is stored in a preset database, and when the display information corresponding to the first moment is the first moment and an image stream displayed on the screen of the terminal device after the first moment, if the terminal device detects the second preset operation of screen capture within the preset time, the screen capture result starting from the first moment is stored in the preset database, and the video information of the terminal device is continuously captured, and an instruction of receiving and capturing the screen is waited.
And S104, deleting the display information corresponding to the first moment.
It should be noted that, in the embodiment of the present invention, deleting the display information corresponding to the first time refers to deleting the display information corresponding to the first time from a temporary storage space for storing the display information corresponding to the first time. In the using process of the terminal equipment, a user inputs a first preset operation by mistake, the terminal equipment extracts the display information corresponding to the first moment, but because the first preset operation is the misoperation, the user can not input a second preset operation to the terminal equipment, and the terminal equipment can not receive the second preset operation within the preset time, the terminal equipment can confirm that the detected first preset operation is the misoperation of the user, and then the extracted display information corresponding to the first moment is deleted, so that the occupation of unnecessary images or video information and the waste of the storage space of the terminal equipment are effectively avoided.
In addition, the display information corresponding to the first moment is extracted and deleted, so that the user can be unaware of the deletion of the display information corresponding to the first moment, and the use experience of the user is improved.
The display information extraction method provided by the embodiment of the invention extracts the display information corresponding to the moment when the first preset operation is detected under the condition that the first preset operation is detected, and judges whether a second preset operation is received within a preset time, if the second preset operation is received within the preset time, the display information corresponding to the first moment is stored in a preset database, and if the second preset operation is not received within the preset time, the display information corresponding to the first moment is deleted. On the first hand, when a user wants to extract the display information of the screen, the display information of the screen can be immediately extracted by inputting a first preset operation, so that even if the display information of the screen is a video picture which rolls from time to time, the user can quickly start a screen capture or recording function to extract the display information of the screen, and the situation that the user misses the opportunity and cannot extract the required picture or video clip is avoided; in a second aspect, after the first preset operation is detected and the display information of the screen is extracted, the second preset operation needs to be detected to store the extracted display information into the preset database, otherwise, the extracted display information is deleted, so that the embodiment of the invention can also avoid the storage space occupied by extracting the unnecessary images or videos. In summary, the embodiments of the present invention can avoid wasting the storage space while enabling to quickly start screen capturing or recording.
As an optional implementation manner of the embodiment of the present invention, detecting whether a second preset operation is received within a preset time specifically includes:
starting a timer when a first preset operation is detected, and detecting a second preset operation before the timer finishes timing; if a second preset operation is detected before the timer finishes timing, determining that the second preset operation is received within a preset time, and storing display information corresponding to the first time into a preset database; and if the second preset operation is not detected after the timer finishes timing, determining that the second preset operation is not received within the preset time, and deleting the display information corresponding to the first moment.
Illustratively, the preset time may be 0.5 second, within 0.5 second after the terminal device detects the first preset operation, if the terminal device detects the second preset operation at any time, timing is stopped, and the display information corresponding to the first time is stored in the preset database; and if the terminal equipment does not detect any operation or only detects other operations except the second preset operation, deleting the display information corresponding to the first moment.
In one embodiment, the first preset operation is an operation of knocking the screen by a finger joint; the second preset operation is an operation of knocking the screen by the finger joint.
On one hand, the operation of knocking the screen by the finger joint is easy to input, and the user does not need to spend much time, so that the first preset operation can be quickly input when the user wants to extract the display information of the screen, and the picture or the video clip which is wanted to be extracted is avoided missing. On the other hand, the operation of knocking the screen by the finger joint is less used in the process of operating the terminal device, so that the first preset operation and the second preset operation are set as the operation of knocking the screen by the finger joint, the conflict with other operations can be avoided, and the misoperation is reduced.
Referring to fig. 2, when the first preset operation is an operation of tapping the screen by a finger joint and the second preset operation is an operation of tapping the screen by a finger joint, the method for extracting display information according to the embodiment of the present invention includes:
s201, detecting whether the acceleration of the terminal equipment is larger than a threshold acceleration.
Specifically, the acceleration of the terminal device can be obtained in real time through an acceleration sensor of the terminal device, and whether the acceleration of the terminal device is greater than a threshold acceleration is judged.
When the terminal equipment receives the operation of knocking the screen by the knuckle, the terminal equipment generates certain acceleration under the knocking action, so that whether the terminal equipment possibly receives the operation of knocking the screen by the knuckle can be judged by judging whether the acceleration of the terminal equipment is greater than the threshold acceleration.
In step S201, if the acceleration of the terminal device is greater than the threshold acceleration, the following step S202 is executed.
S202, judging whether a touch event exists or not.
Specifically, a touch panel of the terminal device may be started, and whether a touch event exists is detected in real time through the touch panel.
The terminal device can generate a touch event when receiving the operation of knocking the screen by the knuckle, so that when the acceleration of the terminal device is detected to be larger than the threshold acceleration, whether the touch event exists or not can be further judged, whether the operation of knocking the screen by the knuckle is possibly received by the terminal device or not is judged, if the touch event is detected, the operation of knocking the screen by the knuckle is determined to be possibly received, and if the touch event is not detected, the operation of knocking the screen by the knuckle is determined not to be received.
In step S202, if a touch event is detected, the following step S203 is performed.
S203, judging whether the touch area of the touch event is smaller than the threshold area.
Compared with the touch area of the touch event generated by the finger tip and the like, the touch area of the touch event generated by the finger joint is smaller, so that whether the touch event is generated by the operation of knocking the screen by the finger joint can be further judged based on whether the touch area is smaller than the threshold area, and whether the received operation is the operation of knocking the screen by the finger joint is further determined.
In step S203 described above, if the touch area of the touch event is smaller than the threshold area, it may be determined that the terminal device has received an operation of tapping the screen with a finger joint (first preset operation), and the following step S204 is performed.
And S204, extracting the display information corresponding to the first moment.
After the display information corresponding to the first time is extracted, the display information extraction method according to the embodiment of the present invention further needs to perform the following steps S205 to S207 to determine whether the first preset operation is a misoperation.
S205, detecting whether the acceleration of the terminal equipment is larger than the threshold acceleration within the preset time.
Also, whether the acceleration of the terminal device is greater than the threshold acceleration may be detected by an acceleration sensor of the terminal device.
If the acceleration of the terminal device is always less than or equal to the threshold acceleration within the preset time, it may be determined that the operation of tapping the screen by the knuckle for the second time (the second preset operation) is not received within the preset time after the first preset operation is detected, and thus the following step S206 is performed.
S206, deleting the display information corresponding to the first moment.
If the acceleration of the terminal device at a certain time within the preset time is greater than the threshold acceleration, it may be determined that an operation of tapping the screen by the knuckle for the second time (a second preset operation) may be received within the preset time after the first preset operation is detected, and thus the following step S207 is performed to further determine whether an operation of tapping the screen by the knuckle for the second time is received within the preset time.
And S207, judging whether a touch event exists in the preset time.
In the above step S207, if there is no touch event within the preset time, it may be determined that the operation of tapping the screen by the knuckle for the second time (the second preset operation) is not received within the preset time after the first preset operation is detected, and thus the above step S206 is performed, whereas if there is a touch event within the preset time, it may be determined that the operation of tapping the screen by the knuckle for the second time (the second preset operation) is likely to be received within the preset time after the first preset operation is detected, and thus the following step S208 is performed to further determine whether the operation of tapping the screen by the knuckle for the second time is received within the preset time.
And S208, judging whether the touch area of the touch event is smaller than a threshold area.
In step S208, if the touch area of the touch event is greater than or equal to the threshold area, it may be determined that the current operation is not an operation of tapping the screen with a finger joint, and may be an operation generated by a finger tip or the like, and thus step S206 is performed. On the other hand, if the touch area of the touch event is smaller than the threshold area, it may be determined that an operation of tapping the screen by the knuckle for the second time (a second preset operation) is received within a preset time after the first preset operation is detected, and thus the following step S209 is performed.
S209, storing the display information corresponding to the first moment to a preset database.
In another embodiment, the first preset operation is an operation of knocking the screen by a finger joint; the second preset operation is an operation of double-clicking the screen by the finger joint.
Compared with the operation of knocking the screen by the finger joint in the second preset operation, when the second preset operation is the operation of double-clicking the screen by the finger joint, the operation of knocking the screen by the finger joint is received twice in the preset time, and the display information corresponding to the first moment is stored in the preset database, otherwise, the display information corresponding to the first moment is deleted. That is, in the embodiment shown in fig. 2, after the execution of the above S204, the above steps S205 to S208 need to be executed twice in succession, and the above step S209 is executed only if the operations of tapping the screen by the knuckle are received twice in succession within a preset time, otherwise, the above step S206 is executed.
Setting the second preset operation as an operation of double-clicking the screen with the finger joint can further reduce the erroneous operation, compared with an operation of tapping the screen with the finger joint as the second preset operation.
As an optional implementation manner of the embodiment of the present invention, the display information extraction method provided by the present invention includes:
and outputting the indication information.
The indication information is used for indicating that the display information corresponding to the first moment is extracted.
For example, referring to fig. 3, in fig. 3, a thumbnail of the captured image is displayed on the screen of the terminal device in a manner that the display information corresponding to the first time is the image displayed on the screen of the terminal device at the first time and the indication information is output. As shown in fig. 3, when a second preset operation is received within a preset time, a thumbnail 31 of the captured image is displayed on the screen of the terminal device to prompt the user that the display information corresponding to the first time has been extracted.
As an optional implementation manner of the embodiment of the present invention, the display information corresponding to the first time is an image stream displayed on the screen at the first time and after the first time, and the method provided by the embodiment of the present invention further includes:
and receiving a third preset operation input by the user.
And responding to a third preset operation, stopping extracting the display information corresponding to the first moment, namely stopping recording the screen.
Specifically, the third preset operation in the embodiment of the present invention may be a touch and click operation of a virtual control used for triggering to stop recording of a screen by a user, or a click operation of a virtual control used for triggering to stop recording of a screen by a user through a peripheral device such as a mouse, or a voice instruction input by the user, or a specific gesture input by the user.
That is, when the embodiment of the present invention is used for recording a screen, the user may also stop extracting the display information corresponding to the first time through the third operation control terminal device, so as to obtain an image stream from the first time to a time when the third preset operation is input.
Based on the same inventive concept, as an implementation of the foregoing method, an embodiment of the present invention further provides a terminal device that executes the method for extracting display information provided in the foregoing embodiment, where the embodiment of the terminal device corresponds to the foregoing method embodiment, and for convenience of reading, details in the foregoing method embodiment are not repeated one by one in the embodiment of the present device, but it should be clear that the terminal device in the present embodiment can correspondingly implement all the contents in the foregoing method embodiment.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, and as shown in fig. 4, the terminal device 400 according to this embodiment includes:
the extracting unit 401 is configured to, when a first preset operation is detected, extract display information corresponding to a first time, where the first time is a time when the first preset operation is detected.
The processing unit 402 is configured to determine whether a second preset operation is received within a preset time.
The storage unit 403 is configured to store the display information corresponding to the first time into a preset database when a second preset operation is received within a preset time, and delete the display information corresponding to the first time when the second preset operation is not received within the preset time.
As an optional implementation manner of the embodiment of the present invention, the display information corresponding to the first time is an image displayed on the screen of the terminal device at the first time, or the display information corresponding to the first time is an image stream displayed on the screen of the terminal device at the first time and after the first time.
As an optional implementation manner of the embodiment of the present invention, the processing unit 402 is specifically configured to start a timer when detecting a first preset operation, and detect a second preset operation before the timer finishes timing; if the second preset operation is detected before the timer finishes timing, determining that the second preset operation is received within the preset time; and if the second preset operation is not detected after the timer finishes timing, determining that the second preset operation is not received within the preset time.
As an optional implementation manner of the embodiment of the present invention, the first preset operation is an operation of tapping the screen by a finger joint;
the second preset operation is an operation of knocking the screen by the finger joint, or the second preset operation is an operation of knocking the screen by the finger joint twice within a preset time.
As an optional implementation manner of the embodiment of the present invention, the processing unit 402 is specifically configured to detect whether an acceleration of the terminal device is greater than a threshold acceleration; if the acceleration of the terminal equipment is larger than the threshold acceleration, judging whether a touch event exists; if the touch event exists, judging whether the touch area of the touch event is smaller than the threshold area. And if the touch area of the touch event is smaller than the threshold area, determining that the operation of knocking the screen by the knuckle is detected.
As an optional implementation manner of the embodiment of the present invention, referring to fig. 5, the terminal device 400 further includes: an output unit 404.
And the output unit is used for outputting indication information under the condition that a second preset operation is received within the preset time, wherein the indication information is used for indicating that the display information corresponding to the first moment is extracted.
As an optional implementation manner of the embodiment of the present invention, the processing unit 402 is further configured to receive a third preset operation input by the user; and responding to a third preset operation, and stopping extracting the display information corresponding to the first moment.
The terminal device provided in this embodiment may execute the display information extraction method provided in the foregoing method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
For specific limitations of the terminal device, reference may be made to the above limitations of the display information extraction method, which is not described herein again. The modules in the terminal device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal device, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, Near Field Communication (NFC) or other technologies. The computer program is executed by a processor to implement the display information extraction method provided by the above-mentioned embodiments. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the terminal device provided in the present application may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in fig. 6. The memory of the computer device may store therein various program modules constituting the terminal device, such as the extracting unit, the processing unit, and the storage unit shown in fig. 4. The computer program constituted by the respective program modules causes the processor to execute the steps in the display information extraction method of the respective embodiments of the present application described in the present specification.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: under the condition that a first preset operation is detected, extracting display information corresponding to a first moment, wherein the first moment is the moment when the first preset operation is detected; judging whether a second preset operation is received within preset time; if the second preset operation is received within the preset time, storing the display information corresponding to the first time into a preset database; and if the second preset operation is not received within the preset time, deleting the display information corresponding to the first moment.
In one embodiment, the processor, when executing the computer program, further performs the steps of: starting a timer when a first preset operation is detected, and detecting a second preset operation before the timer finishes timing; if the second preset operation is detected before the timer finishes timing, determining that the second preset operation is received within the preset time; and if the second preset operation is not detected after the timer finishes timing, determining that the second preset operation is not received within the preset time.
In one embodiment, the processor, when executing the computer program, further performs the steps of: detecting whether the acceleration of the terminal equipment is greater than a threshold acceleration or not; if the acceleration of the terminal equipment is larger than the threshold acceleration, judging whether a touch event exists; if the touch event exists, judging whether the touch area of the touch event is smaller than a threshold area; and if the touch area of the touch event is smaller than the threshold area, determining that the operation of knocking the screen by the knuckle is detected.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and if the second preset operation is received within the preset time, outputting indication information, wherein the indication information is used for indicating that the display information corresponding to the first time is extracted.
In one embodiment, the processor, when executing the computer program, further performs the steps of: receiving a third preset operation input by a user under the condition that the display information corresponding to the first moment is the first moment and the image stream displayed on the screen after the first moment; and responding to the third preset operation, and stopping extracting the display information corresponding to the first moment.
The computer device provided in this embodiment may implement the display information extraction method provided in the foregoing method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: under the condition that a first preset operation is detected, extracting display information corresponding to a first moment, wherein the first moment is the moment when the first preset operation is detected; judging whether a second preset operation is received within preset time; if the second preset operation is received within the preset time, storing the display information corresponding to the first time into a preset database; and if the second preset operation is not received within the preset time, deleting the display information corresponding to the first moment.
In one embodiment, the computer program when executed by the processor further performs the steps of: starting a timer when a first preset operation is detected, and detecting a second preset operation before the timer finishes timing; if the second preset operation is detected before the timer finishes timing, determining that the second preset operation is received within the preset time; and if the second preset operation is not detected after the timer finishes timing, determining that the second preset operation is not received within the preset time.
In one embodiment, the computer program when executed by the processor further performs the steps of: detecting whether the acceleration of the terminal equipment is greater than a threshold acceleration or not; if the acceleration of the terminal equipment is larger than the threshold acceleration, judging whether a touch event exists; if the touch event exists, judging whether the touch area of the touch event is smaller than a threshold area; and if the touch area of the touch event is smaller than the threshold area, determining that the operation of knocking the screen by the knuckle is detected.
In one embodiment, the computer program when executed by the processor further performs the steps of: and if the second preset operation is received within the preset time, outputting indication information, wherein the indication information is used for indicating that the display information corresponding to the first time is extracted.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving a third preset operation input by a user under the condition that the display information corresponding to the first moment is the first moment and the image stream displayed on the screen after the first moment; and responding to the third preset operation, and stopping extracting the display information corresponding to the first moment.
The computer program stored on the computer-readable storage medium provided in this embodiment may implement the method for extracting display information provided in the foregoing method embodiment, and the implementation principle and the technical effect are similar, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM is available in many forms, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), and the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A display information extraction method, characterized by comprising:
under the condition that a first preset operation is detected, extracting display information corresponding to a first moment, wherein the first moment is the moment when the first preset operation is detected;
judging whether a second preset operation is received within preset time;
if the second preset operation is received within the preset time, storing the display information corresponding to the first time into a preset database;
and if the second preset operation is not received within the preset time, deleting the display information corresponding to the first moment.
2. The method according to claim 1, wherein the display information corresponding to the first time is an image displayed on a screen of a terminal device at the first time, or the display information corresponding to the first time is the first time and an image stream displayed on the screen of the terminal device after the first time.
3. The method of claim 1, wherein the detecting whether the second predetermined operation is received within a predetermined time comprises:
starting a timer when a first preset operation is detected, and detecting a second preset operation before the timer finishes timing;
if the second preset operation is detected before the timer finishes timing, determining that the second preset operation is received within the preset time;
and if the second preset operation is not detected after the timer finishes timing, determining that the second preset operation is not received within the preset time.
4. The method according to claim 1, wherein the first preset operation is an operation of tapping a screen with a finger joint;
the second preset operation is an operation of knocking the screen by a finger joint, or the second preset operation is an operation of double-clicking the screen by the finger joint.
5. The method of claim 3, wherein detecting the first preset operation or detecting the second preset operation comprises:
detecting whether the acceleration of the terminal equipment is greater than a threshold acceleration or not;
if the acceleration of the terminal equipment is larger than the threshold acceleration, judging whether a touch event exists;
if the touch event exists, judging whether the touch area of the touch event is smaller than a threshold area;
and if the touch area of the touch event is smaller than the threshold area, determining that the operation of knocking the screen by the knuckle is detected.
6. The method of claim 1, further comprising:
and if the second preset operation is received within the preset time, outputting indication information, wherein the indication information is used for indicating that the display information corresponding to the first time is extracted.
7. The method of claim 2, wherein the display information corresponding to the first time is the first time and an image stream displayed on the screen after the first time, and the method further comprises:
receiving a third preset operation input by a user;
and responding to the third preset operation, and stopping extracting the display information corresponding to the first moment.
8. A terminal device, comprising:
the device comprises an extraction unit, a display unit and a control unit, wherein the extraction unit is used for extracting display information corresponding to a first moment when a first preset operation is detected, and the first moment is the moment when the first preset operation is detected;
the processing unit is used for judging whether a second preset operation is received within preset time;
and the storage unit is used for storing the display information corresponding to the first moment to a preset database under the condition that the second preset operation is received within the preset time, and deleting the display information corresponding to the first moment under the condition that the second preset operation is not received within the preset time.
9. A computer device, characterized in that the computer device comprises a processor and a memory, the processor being configured to implement the display information extraction method according to any one of claims 1 to 7 when executing a computer program stored in the memory.
10. A computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the display information extraction method according to any one of claims 1 to 7.
CN202011461174.XA 2020-12-11 2020-12-11 Display information extraction method and device and computer equipment Active CN112596827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011461174.XA CN112596827B (en) 2020-12-11 2020-12-11 Display information extraction method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011461174.XA CN112596827B (en) 2020-12-11 2020-12-11 Display information extraction method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN112596827A true CN112596827A (en) 2021-04-02
CN112596827B CN112596827B (en) 2022-07-29

Family

ID=75192815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011461174.XA Active CN112596827B (en) 2020-12-11 2020-12-11 Display information extraction method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN112596827B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528153A (en) * 2015-12-09 2016-04-27 广东欧珀移动通信有限公司 Screenshot method, screenshot device and electronic device
CN107580131A (en) * 2017-09-04 2018-01-12 维沃移动通信有限公司 Image processing method and mobile terminal
CN107765952A (en) * 2017-11-07 2018-03-06 广东欧珀移动通信有限公司 Screenshotss method, apparatus and terminal
CN109828715A (en) * 2018-12-20 2019-05-31 平安科技(深圳)有限公司 Record screen method and device
CN109862415A (en) * 2018-11-26 2019-06-07 努比亚技术有限公司 A kind of record screen method, double screen terminal and computer readable storage medium
CN110401870A (en) * 2019-07-30 2019-11-01 努比亚技术有限公司 Method of adjustment, terminal and the computer readable storage medium of record screen frame per second
CN110688051A (en) * 2019-09-23 2020-01-14 捷开通讯(深圳)有限公司 Screen recording operation method and device, computer readable storage medium and terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528153A (en) * 2015-12-09 2016-04-27 广东欧珀移动通信有限公司 Screenshot method, screenshot device and electronic device
CN107580131A (en) * 2017-09-04 2018-01-12 维沃移动通信有限公司 Image processing method and mobile terminal
CN107765952A (en) * 2017-11-07 2018-03-06 广东欧珀移动通信有限公司 Screenshotss method, apparatus and terminal
CN109862415A (en) * 2018-11-26 2019-06-07 努比亚技术有限公司 A kind of record screen method, double screen terminal and computer readable storage medium
CN109828715A (en) * 2018-12-20 2019-05-31 平安科技(深圳)有限公司 Record screen method and device
CN110401870A (en) * 2019-07-30 2019-11-01 努比亚技术有限公司 Method of adjustment, terminal and the computer readable storage medium of record screen frame per second
CN110688051A (en) * 2019-09-23 2020-01-14 捷开通讯(深圳)有限公司 Screen recording operation method and device, computer readable storage medium and terminal

Also Published As

Publication number Publication date
CN112596827B (en) 2022-07-29

Similar Documents

Publication Publication Date Title
CN105224195B (en) Terminal operation method and device
WO2017032068A1 (en) Text message viewing method and user terminal
CN106227585B (en) Application program starting method, device and equipment
WO2017032067A1 (en) Call recording method and user terminal
JP2012203899A (en) Method for customizing user interface and its electronic equipment
WO2019127195A1 (en) Touch method and terminal
CN109783335B (en) User operation recording and restoring method, device and equipment and readable storage medium
CN110806833A (en) Single-hand mode starting method, terminal and computer storage medium
CN114387398A (en) Three-dimensional scene loading method, loading device, electronic equipment and readable storage medium
CN107967177B (en) Memory optimization method based on core process, mobile terminal and readable storage medium
WO2017032069A1 (en) Text-message processing method and user terminal
CN107621921B (en) Application program starting method and mobile device
CN109634762B (en) Data recovery method and device, electronic equipment and storage medium
CN111880701B (en) Page switching method and device and electronic equipment
WO2019020008A1 (en) Missed call prompt method, and mobile terminal
CN112596827B (en) Display information extraction method and device and computer equipment
CN110244889B (en) Picture scaling method, device, terminal and storage medium
CN104156344A (en) Text editing method and text editing device
US10817702B2 (en) Method, terminal, and computer-readable storage medium for processing fingerprint
CN108984024B (en) Touch operation method and device, storage medium and electronic equipment
CN106527907B (en) Screen capture processing method and device for intelligent terminal
US11175821B2 (en) Pressure touch method and terminal
CN110519433B (en) Camera application control method, device, equipment and storage medium
CN114245017A (en) Shooting method and device and electronic equipment
CN111880707A (en) Long screenshot method, system, device, computer and 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