CN111966271B - Screen panorama screenshot method and device, terminal equipment and storage medium - Google Patents

Screen panorama screenshot method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN111966271B
CN111966271B CN202010781953.1A CN202010781953A CN111966271B CN 111966271 B CN111966271 B CN 111966271B CN 202010781953 A CN202010781953 A CN 202010781953A CN 111966271 B CN111966271 B CN 111966271B
Authority
CN
China
Prior art keywords
target
distance
critical
vertical side
content
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.)
Active
Application number
CN202010781953.1A
Other languages
Chinese (zh)
Other versions
CN111966271A (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.)
TCL Communication Ningbo Ltd
Original Assignee
TCL Communication Ningbo 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 TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN202010781953.1A priority Critical patent/CN111966271B/en
Publication of CN111966271A publication Critical patent/CN111966271A/en
Application granted granted Critical
Publication of CN111966271B publication Critical patent/CN111966271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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
    • 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

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a method and a device for screen panorama screenshot, terminal equipment and a storage medium. The embodiment of the invention intercepts the content by a sliding target; when the target intercepted content stops sliding, recording the distance between the display boundary of the screen display content and the display boundary of the target intercepted content; when the static time of the target intercepted content reaches a first preset time, acquiring a display boundary of the screen display content, which is closest to the display boundary of the target intercepted content, and forming a critical edge; the extension lines of the critical edges are intersected to form the target screenshot, so that a user can intercept content wider and longer than a screen under the condition that the resolution of the intercepted content of the target is guaranteed.

Description

Screen panorama screenshot method and device, terminal equipment and storage medium
Technical Field
The invention relates to the technical field of image processing, in particular to a screen panorama screenshot method, a screen panorama screenshot device, terminal equipment and a storage medium.
Background
With the development of scientific technology, mobile terminals such as mobile phones and the like have more and more functions, such as screenshot, photographing, video watching and the like, the screenshot function of the terminal equipment meets the requirements of users on more visual information transmission and expression, the users can store any content screenshot browsed on the terminal equipment for convenient later viewing, meanwhile, the screenshot can be sent to other people, and the content of characters and the like in the screenshot can be extracted, so that various requirements of the users are better met, with the development of image processing technology, the requirements of the users on the screenshot function of the terminal equipment are higher and higher, the current screenshot modes are rich, the popular is the long screenshot function of the terminal equipment, the long screenshot function is mainly used for solving the problem that the information of one screen of the screenshot simply cannot meet the requirements of the users, the long screenshot is also called as rolling screenshot, and the display content of the terminal equipment, in the research and practice process of the prior art, the inventor of the present invention finds that when a user browses a picture wider and longer than the screen of the terminal device, the user cannot intercept the picture wider and longer than the screen under the condition of ensuring the resolution of the picture.
Disclosure of Invention
The embodiment of the invention provides a method and a device for screen panorama screenshot, terminal equipment and a storage medium, wherein a user can slide target screenshot content, so that the user can shoot the content which is wider and longer than a screen under the condition of ensuring the resolution of the target screenshot content.
The embodiment of the invention provides a screen panorama screenshot method, which comprises the following steps:
intercepting contents by a sliding target;
when the target intercepted content stops sliding, recording the distance between the display boundary of the screen display content and the display boundary of the target intercepted content;
when the static time of the target intercepted content reaches a first preset time, acquiring a display boundary of the screen display content, which is closest to the display boundary of the target intercepted content, and forming a critical edge;
and intersecting extension lines of the critical edges to form a target screenshot.
Optionally, in some embodiments of the present invention, the intercepting the content by the sliding target includes:
recording the distance between the initial screen display content display boundary and the target intercepted content display boundary.
Optionally, in some embodiments of the present invention, the target-capture-content-display boundary includes a first left vertical edge, a first right vertical edge, a first upper horizontal edge, and a first lower horizontal edge.
Optionally, in some embodiments of the present invention, the screen display content display boundary includes a second left vertical side, a second right vertical side, a second upper horizontal side, and a second lower horizontal side.
Optionally, in some embodiments of the present invention, a distance between the display boundary of the display content of the recording screen and the display boundary of the display content of the target intercepting screen includes:
recording the distance between the first left vertical side and the second left vertical side to form a left vertical side distance sequence, recording the distance between the first right vertical side and the second right vertical side to form a right vertical side distance sequence, recording the distance between the first upper horizontal side and the second upper horizontal side to form an upper horizontal side distance sequence, recording the distance between the first lower horizontal side and the second lower horizontal side to form a lower horizontal side distance sequence.
Optionally, in some embodiments of the present invention, the obtaining the display boundary of the screen display content closest to the display boundary of the target intercepted content to form a critical edge includes:
and acquiring the second left vertical side corresponding to the minimum value in the left vertical side distance sequence to form a left critical side, acquiring the second right vertical side corresponding to the minimum value in the right vertical side distance sequence to form a right critical side, acquiring the second upper horizontal side corresponding to the minimum value in the upper horizontal side distance sequence to form an upper critical side, acquiring the second lower horizontal side corresponding to the minimum value in the lower horizontal side distance sequence to form a lower critical side.
Optionally, in some embodiments of the present invention, the intersection of the extension lines of the critical edges forms a target screenshot, including:
and the extension line of the left critical side, the extension line of the right critical side, the extension line of the upper critical side and the extension line of the lower critical side are intersected to form a target screenshot.
Correspondingly, an embodiment of the present invention further provides a device for capturing a panoramic screen shot, including:
a sliding unit for sliding the target intercepted content;
a recording unit, configured to record a distance between a screen display content display boundary and the target intercepted content display boundary when the target intercepted content stops sliding;
the acquisition unit is used for acquiring the display boundary of the screen display content with the closest distance to the display boundary of the target intercepted content to form a critical edge when the static time of the target intercepted content reaches a first preset time;
and the forming unit is used for forming the target screenshot by intersecting the extension lines of the critical edges.
Similarly, an embodiment of the present invention further provides a terminal device, including:
a memory for storing an application program;
a processor for implementing the steps in the screen shot method when executing the application.
In addition, an embodiment of the present invention further provides a storage medium, where an application program is stored on the storage medium, and the application program, when executed by a processor, implements the steps in the screen panorama screenshot method.
The embodiment of the invention provides a screen panorama screenshot method, which comprises the steps that after a terminal device starts a panorama screenshot function, the distance between an initial screen display content display boundary and a target intercepted content display boundary is recorded, the target intercepted content is slid, when the target intercepted content stops sliding, the distance between the screen display content display boundary and the target intercepted content display boundary is recorded, when the static time of the target intercepted content reaches a first preset time, the screen display content display boundary which is closest to the target intercepted content display boundary is obtained to form a critical edge, then extension lines of the critical edge are intersected to form a target screenshot, and therefore a user can intercept content which is wider and longer than a screen under the condition that the resolution of the target intercepted content is guaranteed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a scene of a panoramic screenshot provided by an embodiment of the present invention;
FIG. 2 is a flowchart of a method for panoramic screenshot provided by an embodiment of the present invention;
FIG. 3 is another flowchart of a method for screenshot according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a panoramic screenshot device provided in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a method and a device for screen panorama screenshot, terminal equipment and a storage medium. The device can be integrated in a terminal, and the terminal can be a mobile phone, a tablet computer, a notebook computer, an intelligent watch and other equipment.
For example, as shown in fig. 1, when a user browses a web page or a high-definition resolution map larger than a screen of a terminal device on the terminal device, the user wants to capture a target captured content being browsed, which is wider than the screen of the terminal device and/or longer than the screen of the terminal device, when generating a panoramic screenshot, a target captured content display boundary is defined to include a first left vertical side, a first right vertical side, a first upper horizontal side and a first lower horizontal side, a screen display content display boundary includes a second left vertical side, a second right vertical side, a second upper horizontal side and a second lower horizontal side, after the terminal device starts a panoramic screenshot function, a distance between an initial screen display content display boundary and the target captured content display boundary is recorded, the target captured content is slid, when the target captured content stops sliding, a distance between the screen display content display boundary and the target captured content display boundary is recorded, recording the distance between the first left vertical side and the second left vertical side to form a left vertical side distance sequence, recording the distance between the first right vertical side and the second right vertical side to form a right vertical side distance sequence, recording the distance between the first upper horizontal side and the second upper horizontal side to form an upper horizontal side distance sequence, recording the distance between the first lower horizontal side and the second lower horizontal side to form a lower horizontal side distance sequence, when the stationary time of the target intercepted content reaches a first preset time, acquiring the second left vertical side corresponding to the minimum value in the left vertical side distance sequence to form a left critical side, acquiring the second right vertical side corresponding to the minimum value in the right vertical side distance sequence to form a right critical side, acquiring the second upper horizontal side corresponding to the minimum value in the upper horizontal side distance sequence, and forming an upper critical edge, acquiring the second lower horizontal edge corresponding to the minimum value in the distance sequence of the lower horizontal edge, and forming a lower critical edge, wherein the extension line of the left critical edge, the extension line of the right critical edge, the extension line of the upper critical edge and the extension line of the lower critical edge are intersected to form a target screenshot.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
The embodiment will be described from the perspective of a screen panorama screenshot device, which may be specifically integrated in a terminal device, where the terminal device may include a notebook computer, a tablet computer, a smart phone, a smart watch, and the like.
A method of screen panorama capture, comprising: intercepting contents by a sliding target; when the target intercepted content stops sliding, recording the distance between the display boundary of the screen display content and the display boundary of the target intercepted content; when the static time of the target intercepted content reaches a first preset time, acquiring a display boundary of the screen display content, which is closest to the display boundary of the target intercepted content, and forming a critical edge; and intersecting extension lines of the critical edges to form a target screenshot.
As shown in fig. 2, the specific flow of the screen panorama screenshot method is as follows:
step 201, sliding the target to intercept the content.
For example, referring to fig. 3 together, when a user browses a web page or a high-definition resolution image larger than a screen of a terminal device on the terminal device, the user wants to capture a target capture content that is being browsed and is wider than the screen of the terminal device and/or longer than the screen of the terminal device, and when a panoramic capture is generated, step 301 is executed, the user may start a panoramic capture function, and step 302 is executed to slide the target capture content in any direction on the screen.
Optionally, please refer to fig. 3 together, where the target intercepted content display boundary includes a first left vertical side, a first right vertical side, a first upper horizontal side and a first lower horizontal side, and the screen display content display boundary includes a second left vertical side, a second right vertical side, a second upper horizontal side and a second lower horizontal side, step 303 is executed, the terminal device records a distance between the initial screen display content display boundary and the target intercepted content display boundary, that is, records a distance between the first left vertical side and the second left vertical side, records a distance between the first right vertical side and the second right vertical side, records a distance between the first upper horizontal side and the second upper horizontal side, and records a distance between the first lower horizontal side and the second lower horizontal side.
Optionally, the initial screen display content is any part of the target capture content, and the initial screen display content is not limited and can be flexibly set according to actual conditions.
Step 202, when the target intercepted content stops sliding, recording the distance between the display boundary of the screen display content and the display boundary of the target intercepted content.
For example, referring to fig. 3 together, when the user stops sliding the target intercepted content in a certain direction, step 304 is executed, the terminal device recognizes that the target intercepted content stops sliding, the terminal device records the distance between the display boundary of the screen display content and the display boundary of the target intercepted content, the user may slide the target intercepted content for multiple times, and each time the user stops sliding the target intercepted content, the terminal device records the distance between the display boundary of the screen display content and the display boundary of the target intercepted content at this time.
Optionally, when a certain edge of the target intercepted content coincides with a certain edge of the screen display content, it indicates that the user slides to the extreme edge of the target intercepted content, and the user cannot slide any more, and the user may stop sliding at this time, and the user may also stop sliding the target intercepted content at any time when the user does not slide to the extreme edge of the certain edge of the target intercepted content.
Optionally, the terminal device records the distance between the first left vertical side and the second left vertical side to form a left vertical side distance sequence, records the distance between the first right vertical side and the second right vertical side to form a right vertical side distance sequence, records the distance between the first upper horizontal side and the second upper horizontal side to form an upper horizontal side distance sequence, records the distance between the first lower horizontal side and the second lower horizontal side to form a lower horizontal side distance sequence.
Optionally, the terminal device records a distance between the first left vertical side and the second left vertical side, records a distance between the first left vertical side and the second right vertical side, records a distance between the first right vertical side and the second left vertical side, records a distance between the first upper horizontal side and the second upper horizontal side, records a distance between the first upper horizontal side and the second lower horizontal side, records a distance between the first lower horizontal side and the second lower horizontal side, and records a distance between the first lower horizontal side and the second upper horizontal side.
Step 203, when the static time of the target intercepted content reaches a first preset time, acquiring the display boundary of the screen display content closest to the display boundary of the target intercepted content to form a critical edge.
For example, referring to fig. 3 together, when the user stops sliding the target intercepted content and the static time of the target intercepted content reaches the first preset time, which indicates that the user does not slide the target intercepted content in the screenshot process, the terminal device obtains the left vertical side distance sequence, the right vertical side distance sequence, the upper horizontal side distance sequence and the lower horizontal side distance sequence, then executes step 305, obtains the second left vertical side corresponding to the minimum value in the left vertical side distance sequence, and forms a left critical side, executes step 306, obtains the second right vertical side corresponding to the minimum value in the right vertical side distance sequence, and forms a right critical side, executes step 307, obtains the second upper horizontal side corresponding to the minimum value in the upper horizontal side distance sequence, and forms an upper critical side, executes step 308, obtains the second lower horizontal side corresponding to the minimum value in the lower horizontal side distance sequence, forming a lower critical edge.
Optionally, the first preset time is a time period, for example, 5 seconds, and the time duration of the first preset time is not limited, and can be flexibly set according to an actual situation.
And step 204, intersecting extension lines of the critical edges to form a target screenshot.
For example, referring to fig. 3, step 309 is executed to intersect the extension line of the left critical side, the extension line of the right critical side, the extension line of the upper critical side, and the extension line of the lower critical side to form the target screenshot.
In order to better implement the method, an embodiment of the present invention may further provide a screen panorama screenshot device.
For example, as shown in fig. 4, the screen panorama screenshot apparatus may include: the sliding unit 401, the recording unit 402, the acquiring unit 403, and the forming unit 404 are as follows:
(1) slide unit 401
A sliding unit 401, configured to slide the target intercepted content.
For example, when a user browses a webpage or a high-definition resolution map larger than a screen of a terminal device on the terminal device, the user wants to capture a target capture content which is being browsed and is wider than the screen of the terminal device and/or longer than the screen of the terminal device, when a panoramic capture is generated, after a panoramic capture function of the terminal device is started, the user slides the target capture content in any direction on the screen, and after the terminal device receives a sliding instruction, the sliding unit 401 is used to slide the target capture content.
Optionally, before the sliding unit 401 slides the target capture content, the recording unit 402 records a distance between an initial screen display content display boundary and the target capture content display boundary, where the target capture content display boundary includes a first left vertical side, a first right vertical side, a first upper horizontal side and a first lower horizontal side, the screen display content display boundary includes a second left vertical side, a second right vertical side, a second upper horizontal side and a second lower horizontal side, that is, a distance between the first left vertical side and the second left vertical side is recorded, a distance between the first right vertical side and the second right vertical side is recorded, a distance between the first upper horizontal side and the second upper horizontal side is recorded, and a distance between the first lower horizontal side and the second lower horizontal side is recorded.
(2) Recording unit 402
A recording unit 402, configured to record a distance between a screen display content display boundary and the target cut content display boundary when the target cut content stops sliding.
For example, when the user stops sliding the captured target content in a certain direction, the terminal device recognizes that the captured target content stops sliding, and the terminal device records the distance between the screen display content display boundary and the captured target content display boundary using the recording unit 402.
Optionally, the recording unit 402 records a distance between the first left vertical side and the second left vertical side to form a left vertical side distance sequence, records a distance between the first right vertical side and the second right vertical side to form a right vertical side distance sequence, records a distance between the first upper horizontal side and the second upper horizontal side to form an upper horizontal side distance sequence, records a distance between the first lower horizontal side and the second lower horizontal side to form a lower horizontal side distance sequence.
Optionally, the recording unit 402 records a distance between the first left vertical side and the second left vertical side, simultaneously records a distance between the first left vertical side and the second right vertical side, records a distance between the first right vertical side and the second right vertical side, simultaneously records a distance between the first right vertical side and the second left vertical side, records a distance between the first upper horizontal side and the second upper horizontal side, simultaneously records a distance between the first upper horizontal side and the second lower horizontal side, records a distance between the first lower horizontal side and the second lower horizontal side, and simultaneously records a distance between the first lower horizontal side and the second upper horizontal side.
(3) Acquisition unit 403
An obtaining unit 403, configured to obtain, when the static time of the target intercepted content reaches a first preset time, a display boundary of the screen display content closest to the display boundary of the target intercepted content, so as to form a critical edge.
For example, after the static time of the target-intercepted content reaches the first preset time, the obtaining unit 403 obtains a second left vertical side corresponding to the minimum value in the left vertical side distance sequence to form a left critical side, obtains a second right vertical side corresponding to the minimum value in the right vertical side distance sequence to form a right critical side, obtains a second upper horizontal side corresponding to the minimum value in the upper horizontal side distance sequence to form an upper critical side, and obtains a second lower horizontal side corresponding to the minimum value in the lower horizontal side distance sequence to form a lower critical side.
(4) Forming unit 404
And a forming unit 404, configured to form a target screenshot by intersecting extension lines of the critical edges.
For example, forming section 404 forms a target screenshot by intersecting an extension line of the left critical side, an extension line of the right critical side, an extension line of the upper critical side, and an extension line of the lower critical side.
Accordingly, an embodiment of the present application also provides a terminal, as shown in fig. 5, the terminal may include a Radio Frequency (RF) circuit 501, a memory 502 including one or more computer-readable storage media, an input unit 503, a display unit 504, a sensor 505, an audio circuit 506, a Wireless Fidelity (WiFi) module 507, a processor 508 including one or more processing cores, and a power supply 509. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 501 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 508 for processing; in addition, data relating to uplink is transmitted to the base station. In general, RF circuit 501 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 501 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 502 may be used to store software programs and modules, and the processor 508 executes various functional applications and data processing by operating the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 508 and the input unit 503 access to the memory 502.
The input unit 503 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 503 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 508, and can receive and execute commands sent by the processor 508. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 503 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 504 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 504 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 508 to determine the type of touch event, and then the processor 508 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 5 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 506, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 506 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 506 and converted into audio data, which is then processed by the audio data output processor 508, and then transmitted to, for example, another terminal via the RF circuit 501, or the audio data is output to the memory 502 for further processing. The audio circuit 506 may also include an earbud jack to provide communication of peripheral headphones with the terminal.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 507, and provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 507, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 508 is a control center of the terminal, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 502 and calling data stored in the memory 502, thereby integrally monitoring the mobile phone. Optionally, processor 508 may include one or more processing cores; preferably, the processor 508 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 508.
The terminal also includes a power supply 509 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 508 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 509 may also include any component such as one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 508 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 508 runs the application programs stored in the memory 502, thereby implementing various functions: intercepting contents by a sliding target; when the target intercepted content stops sliding, recording the distance between the display boundary of the screen display content and the display boundary of the target intercepted content; when the static time of the target intercepted content reaches a first preset time, acquiring a display boundary of the screen display content, which is closest to the display boundary of the target intercepted content, and forming a critical edge; and intersecting extension lines of the critical edges to form a target screenshot.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The screen panorama screenshot method, the screen panorama screenshot device, the terminal device and the storage medium provided by the embodiment of the invention are introduced in detail, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the technical scheme and the core idea of the invention; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (5)

1. A method for screen panorama capture, comprising:
intercepting contents by a sliding target;
when the target intercepted content stops sliding, recording the distance between a screen display content display boundary and the target intercepted content display boundary, wherein the target intercepted content display boundary comprises a first left vertical side, a first right vertical side, a first upper horizontal side and a first lower horizontal side, and the screen display content display boundary comprises a second left vertical side, a second right vertical side, a second upper horizontal side and a second lower horizontal side;
when the static time of the target intercepted content reaches a first preset time, acquiring a display boundary of the screen display content, which is closest to the display boundary of the target intercepted content, and forming a critical edge;
the extension lines of the critical edges are intersected to form a target screenshot;
the recording of the distance between the screen display content display boundary and the target capturing content display boundary comprises:
recording the distance between the first left vertical side and the second left vertical side to form a left vertical side distance sequence, recording the distance between the first right vertical side and the second right vertical side to form a right vertical side distance sequence, recording the distance between the first upper horizontal side and the second upper horizontal side to form an upper horizontal side distance sequence, recording the distance between the first lower horizontal side and the second lower horizontal side to form a lower horizontal side distance sequence;
the obtaining of the screen display content display boundary closest to the target intercepted content display boundary to form a critical edge includes:
obtaining the second left vertical side corresponding to the minimum value in the left vertical side distance sequence to form a left critical side, obtaining the second right vertical side corresponding to the minimum value in the right vertical side distance sequence to form a right critical side, obtaining the second upper horizontal side corresponding to the minimum value in the upper horizontal side distance sequence to form an upper critical side, obtaining the second lower horizontal side corresponding to the minimum value in the lower horizontal side distance sequence to form a lower critical side;
the intersection of the extension lines of the critical edges forms a target screenshot, which comprises the following steps:
and the extension line of the left critical side, the extension line of the right critical side, the extension line of the upper critical side and the extension line of the lower critical side are intersected to form the target screenshot.
2. The method of claim 1, wherein the sliding target intercepts content, comprising:
recording the distance between the initial screen display content display boundary and the target intercepted content display boundary.
3. A screen panorama screenshot apparatus, comprising:
a sliding unit for sliding the target intercepted content;
the recording unit is used for recording the distance between a screen display content display boundary and the target intercepted content display boundary when the target intercepted content stops sliding, wherein the target intercepted content display boundary comprises a first left vertical side, a first right vertical side, a first upper horizontal side and a first lower horizontal side, and the screen display content display boundary comprises a second left vertical side, a second right vertical side, a second upper horizontal side and a second lower horizontal side;
the acquisition unit is used for acquiring the display boundary of the screen display content with the closest distance to the display boundary of the target intercepted content to form a critical edge when the static time of the target intercepted content reaches a first preset time;
the forming unit is used for forming a target screenshot by intersecting extension lines of the critical edges;
the recording unit is further configured to record a distance between the first left vertical side and the second left vertical side to form a left vertical side distance sequence, record a distance between the first right vertical side and the second right vertical side to form a right vertical side distance sequence, record a distance between the first upper horizontal side and the second upper horizontal side to form an upper horizontal side distance sequence, record a distance between the first lower horizontal side and the second lower horizontal side to form a lower horizontal side distance sequence;
the obtaining unit is further configured to obtain the second left vertical side corresponding to the minimum value in the left vertical side distance sequence to form a left critical side, obtain the second right vertical side corresponding to the minimum value in the right vertical side distance sequence to form a right critical side, obtain the second upper horizontal side corresponding to the minimum value in the upper horizontal side distance sequence to form an upper critical side, obtain the second lower horizontal side corresponding to the minimum value in the lower horizontal side distance sequence to form a lower critical side;
the forming unit is further used for forming the target screenshot by intersecting the extension line of the left critical side, the extension line of the right critical side, the extension line of the upper critical side and the extension line of the lower critical side.
4. A terminal device, comprising:
a memory for storing an application program;
a processor for implementing the steps in the method of screen shot of any one of claims 1 to 2 when executing the application program.
5. A storage medium having an application program stored thereon, wherein the application program, when executed by a processor, implements the steps of the method for panoramic screenshots according to any one of claims 1 to 2.
CN202010781953.1A 2020-08-06 2020-08-06 Screen panorama screenshot method and device, terminal equipment and storage medium Active CN111966271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010781953.1A CN111966271B (en) 2020-08-06 2020-08-06 Screen panorama screenshot method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010781953.1A CN111966271B (en) 2020-08-06 2020-08-06 Screen panorama screenshot method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111966271A CN111966271A (en) 2020-11-20
CN111966271B true CN111966271B (en) 2022-03-01

Family

ID=73365103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010781953.1A Active CN111966271B (en) 2020-08-06 2020-08-06 Screen panorama screenshot method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111966271B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984502B (en) * 2014-05-30 2017-09-29 天津三星通信技术研究有限公司 The method and portable terminal of a kind of screen printing content
CN108939556B (en) * 2018-07-27 2021-08-20 珠海金山网络游戏科技有限公司 Screenshot method and device based on game platform
CN109298827A (en) * 2018-08-13 2019-02-01 珠海格力电器股份有限公司 Suitable for mobile terminal screenshot method, device, computing device and storage medium
EP3640804B1 (en) * 2018-10-17 2020-11-25 Eyevido GmbH Screen recording preparation method for evaluating software usability, computing system, computer program and computer-readable storage medium implementing the method
CN110597439B (en) * 2019-08-29 2021-06-15 Oppo广东移动通信有限公司 Screen capture method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN111966271A (en) 2020-11-20

Similar Documents

Publication Publication Date Title
US9697622B2 (en) Interface adjustment method, apparatus, and terminal
US20170371678A1 (en) Method and apparatus for running game client
US10269163B2 (en) Method and apparatus for switching real-time image in instant messaging
CN106993227B (en) Method and device for information display
US20140365892A1 (en) Method, apparatus and computer readable storage medium for displaying video preview picture
CN106254910B (en) Method and device for recording image
CN105975190B (en) Graphical interface processing method, device and system
CN109525710B (en) Method and device for accessing application program
WO2015131768A1 (en) Video processing method, apparatus and system
CN105094501B (en) Method, device and system for displaying messages in mobile terminal
WO2014194713A1 (en) Method,apparatus and computer readable storage medium for displaying video preview picture
CN106791916B (en) Method, device and system for recommending audio data
CN111966254B (en) Image shooting method and device, storage medium and terminal
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
CN104991699A (en) Video display control method and apparatus
CN110688051B (en) Screen recording operation method and device, computer readable storage medium and terminal
CN111158815B (en) Dynamic wallpaper blurring method, terminal and computer readable storage medium
CN105700801B (en) Interface intercepting method and equipment
US11327639B2 (en) Split view exiting method, split view exiting device, and electronic device
CN105513098B (en) Image processing method and device
CN107622234B (en) Method and device for displaying budding face gift
CN109660445B (en) Message processing method, device and storage medium
CN106454083B (en) Image acquisition method and device of mobile terminal and mobile terminal
CN110083205B (en) Page switching method, wearable device and computer-readable storage medium
CN111372003A (en) Camera switching method and device and terminal

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