Search

CN-122019019-A - Screen capturing method and device, electronic equipment and computer readable storage medium

CN122019019ACN 122019019 ACN122019019 ACN 122019019ACN-122019019-A

Abstract

The embodiment of the application relates to the technical field of man-machine interaction and discloses a screen capturing method and device, electronic equipment and a computer readable storage medium, wherein the method comprises the steps of responding to screen capturing operation, capturing a current target interface image of a target interface and recording target video data of a first duration for the target interface; and generating a screen capturing live image corresponding to the screen capturing operation according to the target interface image and the target video data. By implementing the embodiment of the application, the screen capturing live image comprising the static effect and the dynamic effect can be captured, and the screen capturing experience of the user is improved.

Inventors

  • YANG LIU

Assignees

  • 深圳市欢太科技有限公司

Dates

Publication Date
20260512
Application Date
20241111

Claims (12)

  1. 1. A method of screen capture, the method comprising: Responding to screen capturing operation, capturing a current target interface image of a target interface, and recording target video data of a first duration aiming at the target interface; And generating a screen capturing live image corresponding to the screen capturing operation according to the target interface image and the target video data.
  2. 2. The method of claim 1, wherein the generating a screenshot live image corresponding to the screenshot operation from the target interface image and the target video data comprises: Inserting the target video data into the image data of the target interface image to obtain a screen capturing live image corresponding to the screen capturing operation; And adding the insertion information of the target video data in the description file corresponding to the screen capturing live image, wherein the insertion information is used for describing the position of the target video data in the screen capturing live image.
  3. 3. The method of claim 1, wherein recording target video data for the target interface for a first duration comprises: collecting multi-frame real-time display data of the target interface; Acquiring multi-frame historical display data, wherein the multi-frame historical display data is cached display data of the target interface before the screen capturing operation is detected; and generating target video data of a first duration according to the multi-frame real-time display data and the multi-frame historical display data.
  4. 4. A method according to claim 3, characterized in that the method further comprises: in the process of displaying the target interface, storing display data of the target interface into a target cache space; the acquiring multi-frame historical display data includes: and acquiring multi-frame historical display data from the target cache space.
  5. 5. The method of claim 4, wherein storing the display data of the target interface into a target cache space comprises: Acquiring current frame display data of the target interface; if the data amount stored in the target cache space does not reach the data amount threshold, storing the current frame display data into an idle storage space of the target cache space; and if the data quantity stored in the target cache space reaches the data quantity threshold, the display data stored in the target cache space at first is covered by the display data of the current frame.
  6. 6. The method of claim 1, wherein prior to the generating a screenshot live image corresponding to the screenshot operation from the target interface image and the target video data, the method further comprises: Responsive to a screen capture operation, collecting target audio data associated with the target video data in the target interface; the generating the screen capturing live image corresponding to the screen capturing operation according to the target interface image and the target video data comprises the following steps: and generating a screen capturing live image corresponding to the screen capturing operation according to the target interface image, the target video data and the target audio data.
  7. 7. The method of claim 1, wherein after the generating the screenshot live image corresponding to the screenshot operation from the target interface image and the target video data, the method further comprises: displaying the target interface image and playing the target video data in different display areas, respectively, in response to a first viewing operation for the screenshot live image, or Displaying the target interface image, and playing the target video data if a second viewing operation for the target video data is detected.
  8. 8. The method of claim 7, wherein after said playing said target video data, said method further comprises: Responding to a third viewing operation for the target video data, decoding the target video data to obtain multi-frame video images, and displaying the multi-frame video images; the target video image is stored in response to a save operation for the target video image in the multi-frame video image.
  9. 9. The method of any one of claims 1-8, wherein the target interface comprises a real-time operation interface, the real-time operation interface comprising one or more touch components, the one or more touch components changing interface content of the real-time operation interface when triggered; The real-time operation interface includes a game interface.
  10. 10. A screen capture device, the device comprising: The intercepting unit is used for intercepting a current target interface image of a target interface in response to screen capturing operation and recording target video data of a first duration aiming at the target interface; and the generating unit is used for generating a screen capturing live image corresponding to the screen capturing operation according to the target interface image and the target video data.
  11. 11. An electronic device comprising a memory storing executable program code and a processor coupled to the memory, wherein the processor invokes the executable program code stored in the memory to perform the method of any of claims 1-9.
  12. 12. A computer readable storage medium storing a computer program, which when executed by a processor implements the method of any one of claims 1-9.

Description

Screen capturing method and device, electronic equipment and computer readable storage medium Technical Field The application relates to the technical field of man-machine interaction, in particular to a screen capturing method and device, electronic equipment and a computer readable storage medium. Background The application of the current screen capturing technology on the electronic equipment enables a user to capture the interface image currently displayed on the interface of the electronic equipment at any time, thereby facilitating the user to store some interesting interface images and improving the use experience of the user. The current screen capturing technology cannot meet different screen capturing requirements of users, and places needing further optimization are also available. Disclosure of Invention The embodiment of the application discloses a screen capturing method and device, electronic equipment and a computer readable storage medium, which can capture a screen capturing live image comprising a static effect and a dynamic effect, and improve the screen capturing experience of a user. The first aspect of the embodiment of the application discloses a screen capturing method, which comprises the following steps: Responding to screen capturing operation, capturing a current target interface image of a target interface, and recording target video data of a first duration aiming at the target interface; And generating a screen capturing live image corresponding to the screen capturing operation according to the target interface image and the target video data. In a second aspect, an embodiment of the present application discloses a screen capturing device, where the device includes: The intercepting unit is used for intercepting a current target interface image of a target interface in response to screen capturing operation and recording target video data of a first duration aiming at the target interface; and the generating unit is used for generating a screen capturing live image corresponding to the screen capturing operation according to the target interface image and the target video data. A third aspect of an embodiment of the present application discloses an electronic device, including: a memory storing executable program code; a processor coupled to the memory; the processor invokes the executable program code stored in the memory to execute the screen capturing method disclosed in the first aspect of the embodiment of the present application. A fourth aspect of the embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute the screen capturing method disclosed in the first aspect of the embodiment of the present application. A fifth aspect of the embodiments of the present application discloses a computer program product which, when run on a computer, causes the computer to perform part or all of the steps of any one of the methods of the first aspect of the embodiments of the present application. A sixth aspect of the embodiments of the present application discloses an application publishing platform for publishing a computer program product, wherein the computer program product, when run on a computer, causes the computer to perform some or all of the steps of any one of the methods of the first aspect of the embodiments of the present application. Compared with the related art, the embodiment of the application has the following beneficial effects: in the embodiment of the application, the current target interface image of the target interface can be intercepted in response to the screen capturing operation, and meanwhile, the target video data of the first duration can be recorded aiming at the target interface, so that the screen capturing live image with both the static effect and the dynamic effect can be generated according to the target interface image and the target video data. Compared with the prior art that only static interface images can be intercepted, the screen capturing live image provided by the embodiment of the application also has a dynamic effect, and a user can intercept the screen capturing live image with the dynamic display effect by triggering the screen capturing operation, so that different screen capturing requirements of the user are met, and the screen capturing experience of the user is improved. Drawings In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. FIG. 1 is a schematic flow diagram of an embodiment of the present application; FIG. 2 is a schematic flow chart of