CN113723397B - Screen capturing method and electronic equipment - Google Patents

Screen capturing method and electronic equipment Download PDF

Info

Publication number
CN113723397B
CN113723397B CN202010455200.1A CN202010455200A CN113723397B CN 113723397 B CN113723397 B CN 113723397B CN 202010455200 A CN202010455200 A CN 202010455200A CN 113723397 B CN113723397 B CN 113723397B
Authority
CN
China
Prior art keywords
screen
picture
electronic device
screen capturing
area
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
CN202010455200.1A
Other languages
Chinese (zh)
Other versions
CN113723397A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010455200.1A priority Critical patent/CN113723397B/en
Priority to PCT/CN2021/094619 priority patent/WO2021238740A1/en
Publication of CN113723397A publication Critical patent/CN113723397A/en
Application granted granted Critical
Publication of CN113723397B publication Critical patent/CN113723397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • 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/04845Interaction 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 for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A screen capturing method and an electronic device. In the method, in response to the screen capturing operation of a user, the electronic equipment captures the video for a plurality of times within a period of time, intelligently detects the target to be processed in the plurality of times of screen capturing and processes the target to be processed into a transparent area, and superimposes the processed screen capturing pictures to obtain a final screen capturing picture. By means of the technical scheme, shielding of the person to the background can be avoided when the video is captured, and more information can be displayed on the captured picture.

Description

Screen capturing method and electronic equipment
Technical Field
The application relates to the technical field of terminals and communication, in particular to a screen capturing method and electronic equipment.
Background
With the development of network technology, more and more users begin to learn through the network lesson. Therefore, the fragmented time can be effectively utilized, the video of the net lesson can be repeatedly watched, and the user can perform strengthening training aiming at the weak item learned by the user.
During the course of viewing the video of the lesson, the user can screen capture and save important contents so as to facilitate subsequent quick review and note taking. However, in current online lesson videos, a teacher usually shields a part of a blackboard or a display screen during lecturing. And part of the content in the blackboard on the picture which is shot out can be blocked by a teacher, so that the information displayed by the shot picture is less.
Disclosure of Invention
The application provides a screen capturing method and electronic equipment, which can avoid shielding of a person on the background during video screen capturing, so that a screen capturing picture displays more information.
In a first aspect, the present application provides a screen capturing method, the method comprising: responding to the screen capturing operation of a user, and carrying out N times of screen capturing on the video in the first time period by the electronic equipment to obtain N first screen capturing pictures, wherein N is a positive integer not less than 2; the electronic equipment detects the target of the first screen shot picture, and determines the area where the target to be processed in the first screen shot picture is located, wherein the target to be processed is the target detected by the target; the electronic equipment processes an area where a target to be processed is located in the first screen capturing picture into a transparent area to obtain M second screen capturing pictures, wherein M is a positive integer less than or equal to N; the electronic equipment superimposes the M second screen capturing pictures to obtain a third screen capturing picture; when the M is equal to 2, displaying information of a non-transparent area of the second screen shot picture overlapped on the uppermost layer and information of a first area corresponding to the transparent area of the second screen shot picture overlapped on the uppermost layer in the third screen shot picture; the first area is an area of which the position on the second screen capturing picture of the next layer corresponds to the transparent area of the second screen capturing picture of the uppermost layer; the information of the first region includes information of a non-transparent region in the first region; when the M is larger than 2, the information of the first area also comprises the information of a second area corresponding to the transparent area of the first area; the second area is an area of which the position on the second screen capturing picture of the next layer corresponds to the transparent area of the first area; the information of the second area includes information of a non-transparent area of the second area; and so on until the third screen shot has no transparent area, or the second screen shot of the next layer is the second screen shot overlapped on the lowest layer.
In the above embodiment, after the user performs the screen capturing operation, the electronic device can perform multiple screen capturing on the video. And detecting targets of the first screen capturing pictures obtained by the screen capturing for multiple times, detecting the region where the person serving as the target to be processed is, and processing the region into a transparent region to obtain a plurality of second screen capturing pictures. Since the object to be processed moves during a plurality of screen shots, the position of the object to be processed is different relative to the background (e.g., blackboard) in the video, and the information in the background where the object to be processed is blocked and exposed is also different. The electronic device superimposes a plurality of second screen shots containing different information. After the pictures are overlapped, the transparent area of the upper picture can display the information of the corresponding area in the lower picture. Therefore, in addition to the information superimposed in the second screen shot of the uppermost layer, the third screen shot finally superimposed may also display information superimposed in a corresponding region on the second screen shot of the lower layer displayed in the transparent region of the second screen shot of the uppermost layer. It can be appreciated that if the corresponding region on the second screenshot of the lower layer is a transparent region, the transparent region may display information of the corresponding region on the second screenshot of the lower layer. Thus, more information than each second screenshot and each first screenshot may be displayed on the third screenshot. The shielding of the character to the background during the video screen capturing is avoided, so that the screen capturing picture displays more information.
In combination with the first aspect, in some embodiments, the responding to the screen capturing operation of the user, the electronic device captures the video in the first period for N times to obtain N first screen capturing pictures specifically includes: in response to a screen capturing operation of a user, the electronic device determines a starting moment of a first time period and a stopping moment of the first time period; and the electronic equipment performs N screen shots on the video in the first time period to obtain N first screen shots.
In the embodiment of the application, the electronic device may determine the start time and the stop time of the first time period according to the screen capturing operation of the user, and the user controls the screen capturing start-stop time, so that the finally obtained third screen capturing picture better accords with the user's expectations.
Alternatively, determining the start-stop time of the first time period may be based on different user operations:
with reference to some embodiments of the first aspect, in some embodiments, the screen capture operation includes a first operation and a second operation that are completed discontinuously; the responding to the screen capturing operation of the user, the electronic device determining the starting time and the stopping time of the first time period specifically comprises the following steps: in response to the first operation of the user, the electronic device determines a starting moment of the first time period; in response to the second operation of the user, the electronic device determines a stop time of the first period of time.
In the embodiment of the application, the start and stop moments are respectively determined by discontinuous different operations, so that the determination process of the first time period is simpler.
With reference to some embodiments of the first aspect, in some embodiments, the screen capture operation includes a series of operations that are completed in succession; the responding to the screen capturing operation of the user, the electronic device determining the starting time and the stopping time of the first time period specifically comprises the following steps: responding to the operation of triggering screen capturing by a user, and displaying a time period selection control by the electronic equipment; in response to a user operation on the time period selection control, the electronic device determines a start time and a stop time of the first time period.
In the embodiment of the application, the start and stop time is determined from the time selection control through a series of continuous operations by a user, so that the determination of the first time period is more accurate.
Optionally, there are a number of ways in which the electronic device may take N screen shots of the video during the first period:
with reference to some embodiments of the first aspect, in some embodiments, the electronic device performs N screen shots on the video in the first period of time to obtain N first screen shots, including: and the electronic equipment performs N screen shots on the video in the first time period according to a preset time period to obtain N first screen shot pictures.
In the embodiment of the application, the electronic equipment performs screen capturing in the first time period according to the preset time period, so that the time interval between different screen capturing pictures is ensured, and the probability of obtaining more information in the third screen capturing picture is improved.
With reference to some embodiments of the first aspect, in some embodiments, the electronic device performs N screen shots on the video in the first period of time to obtain N first screen shots, including: the electronic equipment performs target detection on the video in the first time period; and each time the position change of the target to be processed in the video exceeds a preset distance threshold, performing screen capturing once to generate a first screen capturing picture until the N first screen capturing pictures are obtained.
According to the method and the device for capturing the screen, according to the target detection result, when the moving position of the target to be processed exceeds the preset distance threshold, more information in the background can be exposed in the obtained first screen capturing picture, and more information can be displayed in the third screen capturing picture.
With reference to some embodiments of the first aspect, in some embodiments, the method further includes: the electronic device deletes a first screenshot picture which does not meet the picture quality requirement for target detection in the N first screenshot pictures.
Alternatively, the order in which the second screenshot pictures are superimposed may be obtained in a number of ways:
with reference to some embodiments of the first aspect, in some embodiments, the electronic device superimposes the M second screenshot pictures to obtain a third screenshot picture, including: and the electronic equipment superimposes the M second screen capturing pictures according to a preset default sequence to obtain a third screen capturing picture.
With reference to some embodiments of the first aspect, in some embodiments, the preset default order is an order in which pictures with later playing times are superimposed in the video.
In the above embodiment, the second screen capturing pictures are overlapped according to the preset default sequence, so that the overlapping processing process is faster. And superposing the pictures with the later playing time in the video according to a preset default sequence, so that the information displayed in the finally obtained third screen capturing picture is the latest information.
With reference to some embodiments of the first aspect, in some embodiments, the electronic device superimposes the M second screenshot pictures to obtain a third screenshot picture, including: the electronic equipment displays the superposition sequence of the M second screen capturing pictures;
And responding to the operation of adjusting the superposition order by the user, and superposing the M second screen capturing pictures according to the superposition order adjusted by the user by the electronic equipment to obtain a third screen capturing picture.
In the embodiment of the application, the stacking sequence can be adjusted by the user independently, so that the third screen capturing picture obtained by stacking meets the user requirement.
With reference to some embodiments of the first aspect, in some embodiments, the method further includes: the electronic device fills in the transparent region in the third screenshot using the background color in the third screenshot.
In this embodiment of the present application, if there is a transparent area in the third screenshot, the transparent area may be filled with a background color, so as to improve the aesthetic property of the third screenshot.
With reference to some embodiments of the first aspect, in some embodiments, the method further includes: the electronic device fills up the transparent region in the third screenshot using an intelligent repair technique.
In this embodiment of the present application, if there is a transparent region in the third screenshot, the transparent region in the third screenshot may be filled and complemented by using an intelligent repair technology, so as to improve the aesthetic property of the third screenshot.
With reference to some embodiments of the first aspect, in some embodiments, the method further includes: the electronic equipment carries out semitransparent treatment on the region where the target to be treated is located in the first screen capture picture corresponding to the second screen capture picture overlapped on the uppermost layer to obtain a semitransparent target to be treated; and the electronic equipment superimposes the semitransparent target to be processed on the third screen capture picture to obtain a fourth screen capture picture.
In the embodiment of the application, the semitransparent target to be processed is overlapped on the third screen capture picture, so that the actions and the gestures of the target to be processed can be seen while more information in the background can be obtained. Further improving the obtained information quantity.
With reference to some embodiments of the first aspect, in some embodiments, the video is a teaching video, and the target to be processed is a teacher.
In a second aspect, embodiments of the present application provide an electronic device, including: one or more processors and memory; the memory is coupled to the one or more processors, the memory for storing computer program code, the computer program code comprising computer instructions that the one or more processors call to cause the electronic device to perform: responding to the screen capturing operation of a user, carrying out N times of screen capturing on the video in the first time period to obtain N first screen capturing pictures, wherein N is a positive integer not smaller than 2; performing target detection on the first screen capture picture, and determining an area where a target to be processed in the first screen capture picture is located, wherein the target to be processed is a target detected by the target; the electronic equipment processes an area where a target to be processed is located in the first screen capturing picture into a transparent area to obtain M second screen capturing pictures, wherein M is a positive integer less than or equal to N; overlapping the M second screen capturing pictures to obtain a third screen capturing picture; when the M is equal to 2, displaying information of a non-transparent area of the second screen shot picture overlapped on the uppermost layer and information of a first area corresponding to the transparent area of the second screen shot picture overlapped on the uppermost layer in the third screen shot picture; the first area is an area of which the position on the second screen capturing picture of the next layer corresponds to the transparent area of the second screen capturing picture of the uppermost layer; the information of the first region includes information of a non-transparent region in the first region; when the M is larger than 2, the information of the first area also comprises the information of a second area corresponding to the transparent area of the first area; the second area is an area of which the position on the second screen capturing picture of the next layer corresponds to the transparent area of the first area; the information of the second area includes information of a non-transparent area of the second area; and so on until the third screen shot has no transparent area, or the second screen shot of the next layer is the second screen shot overlapped on the lowest layer.
In the above embodiment, after the user performs the screen capturing operation, the electronic device can perform multiple screen capturing on the video. And detecting targets of the first screen capturing pictures obtained by the screen capturing for multiple times, detecting the region where the person serving as the target to be processed is, and processing the region into a transparent region to obtain a plurality of second screen capturing pictures. Since the object to be processed moves during a plurality of screen shots, the position of the object to be processed is different relative to the background (e.g., blackboard) in the video, and the information in the background where the object to be processed is blocked and exposed is also different. The electronic device superimposes a plurality of second screen shots containing different information. After the pictures are overlapped, the transparent area of the upper picture can display the information of the corresponding area in the lower picture. Therefore, in addition to the information superimposed in the second screen shot of the uppermost layer, the third screen shot finally superimposed may also display information superimposed in a corresponding region on the second screen shot of the lower layer displayed in the transparent region of the second screen shot of the uppermost layer. It can be appreciated that if the corresponding region on the second screenshot of the lower layer is a transparent region, the transparent region may display information of the corresponding region on the second screenshot of the lower layer. Thus, more information than each second screenshot and each first screenshot may be displayed on the third screenshot. The shielding of the character to the background during the video screen capturing is avoided, so that the screen capturing picture displays more information.
With reference to the second aspect, in some embodiments, the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform: determining a starting time of the first time period and a stopping time of the first time period in response to a screen capturing operation of a user; and carrying out N screen shots on the video in the first time period to obtain N first screen shots.
In the embodiment of the application, the electronic device may determine the start time and the stop time of the first time period according to the screen capturing operation of the user, and the user controls the screen capturing start-stop time, so that the finally obtained third screen capturing picture better accords with the user's expectations.
Alternatively, determining the start-stop time of the first time period may be based on different user operations:
with reference to some embodiments of the second aspect, in some embodiments, the screen capture operation includes a first operation and a second operation that are completed discontinuously; the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform: determining a starting moment of the first time period in response to the first operation of the user; responsive to the second operation by the user, a stop time of the first period of time is determined.
In the embodiment of the application, the start and stop moments are respectively determined by discontinuous different operations, so that the determination process of the first time period is simpler.
With reference to some embodiments of the second aspect, in some embodiments, the screen capture operation includes a series of operations that are completed in succession; the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform: responding to the operation of triggering screen capturing by a user, and displaying a time period selection control; in response to a user operation on the time period selection control, a start time and a stop time of the first time period are determined.
In the embodiment of the application, the start and stop time is determined from the time selection control through a series of continuous operations by a user, so that the determination of the first time period is more accurate.
Optionally, there are a number of ways in which the electronic device may take N screen shots of the video during the first period:
with reference to some embodiments of the second aspect, in some embodiments, the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform: and carrying out N screen shots on the video in the first time period according to a preset time period to obtain N first screen shots.
In the embodiment of the application, the electronic equipment performs screen capturing in the first time period according to the preset time period, so that the time interval between different screen capturing pictures is ensured, and the probability of obtaining more information in the third screen capturing picture is improved.
With reference to some embodiments of the second aspect, in some embodiments, the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform: performing object detection on the video in the first time period; and each time the position change of the target to be processed in the video exceeds a preset distance threshold, performing screen capturing once to generate a first screen capturing picture until the N first screen capturing pictures are obtained.
According to the method and the device for capturing the screen, according to the target detection result, when the moving position of the target to be processed exceeds the preset distance threshold, more information in the background can be exposed in the obtained first screen capturing picture, and more information can be displayed in the third screen capturing picture.
With reference to some embodiments of the second aspect, in some embodiments, the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform: and deleting the first screen capturing pictures which do not meet the picture quality requirement of target detection in the N first screen capturing pictures.
Alternatively, the order in which the second screenshot pictures are superimposed may be obtained in a number of ways:
with reference to some embodiments of the second aspect, in some embodiments, the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform: and superposing the M second screen capturing pictures according to a preset default sequence to obtain a third screen capturing picture.
With reference to some embodiments of the second aspect, in some embodiments, the preset default order is an order in which pictures with later playing times are superimposed in the video.
In the above embodiment, the second screen capturing pictures are overlapped according to the preset default sequence, so that the overlapping processing process is faster. And superposing the pictures with the later playing time in the video according to a preset default sequence, so that the information displayed in the finally obtained third screen capturing picture is the latest information.
With reference to some embodiments of the second aspect, in some embodiments, the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform: displaying the superposition sequence of the M second screen capturing pictures; and responding to the operation of adjusting the superposition order by the user, and superposing the M second screen capturing pictures according to the superposition order adjusted by the user to obtain a third screen capturing picture.
In the embodiment of the application, the stacking sequence can be adjusted by the user independently, so that the third screen capturing picture obtained by stacking meets the user requirement.
With reference to some embodiments of the second aspect, in some embodiments, the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform: and filling the transparent area in the third screenshot picture with the background color in the third screenshot picture.
In this embodiment of the present application, if there is a transparent area in the third screenshot, the transparent area may be filled with a background color, so as to improve the aesthetic property of the third screenshot.
With reference to some embodiments of the second aspect, in some embodiments, the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform: and filling and complementing the transparent area in the third screen capturing picture by using an intelligent repairing technology.
In this embodiment of the present application, if there is a transparent region in the third screenshot, the transparent region in the third screenshot may be filled and complemented by using an intelligent repair technology, so as to improve the aesthetic property of the third screenshot.
With reference to some embodiments of the second aspect, in some embodiments, the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform: semitransparent processing is carried out on the region where the target to be processed is located in the first screen capture picture corresponding to the second screen capture picture overlapped on the uppermost layer, so that a semitransparent target to be processed is obtained; and superposing the semitransparent target to be processed on the third screen capturing picture to obtain a fourth screen capturing picture.
In the embodiment of the application, the semitransparent target to be processed is overlapped on the third screen capture picture, so that the actions and the gestures of the target to be processed can be seen while more information in the background can be obtained. Further improving the obtained information quantity.
With reference to some embodiments of the second aspect, in some embodiments, the video is a teaching video, and the target to be processed is a teacher.
In a third aspect, embodiments of the present application provide a chip system for application to an electronic device, the chip system comprising one or more processors for invoking computer instructions to cause the electronic device to perform a method as described in the first aspect and any possible implementation of the first aspect.
It will be appreciated that the system-on-chip may include a processor 110 in the electronic device 100 shown in fig. 3, or may include a plurality of processors 110 in the electronic device 100 shown in fig. 3. The chip system may further include one or more other chips, for example, an image signal processing chip in the camera 193 of the electronic device 100 shown in fig. 5, an image display chip in the display screen 194, and the like, which are not limited herein.
In a fourth aspect, embodiments of the present application provide a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform a method as described in the first aspect and any possible implementation of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium comprising instructions that, when executed on an electronic device, cause the electronic device to perform a method as described in the first aspect and any possible implementation of the first aspect.
It will be appreciated that the electronic device provided in the second aspect, the chip system provided in the third aspect, the computer program product provided in the fourth aspect and the computer storage medium provided in the fifth aspect described above are all configured to perform the method provided by the embodiments of the present application. Therefore, the advantages achieved by the method can be referred to as the advantages of the corresponding method, and will not be described herein.
Drawings
FIG. 1 is a schematic view of a prior art effect of a screen shot of a teaching video;
FIG. 2 is a schematic illustration of an effect of a screen capture image obtained by a video capture of a teaching in an embodiment of the present application;
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a software structural block diagram of an electronic device provided in an embodiment of the present application;
FIG. 5 is a schematic flow chart of a screen capturing method in an embodiment of the present application;
FIG. 6 is an interface schematic diagram of a set of screen capture operations provided by an embodiment of the present application;
FIG. 7 is an interface schematic of another set of screen capture operations provided by embodiments of the present application;
FIG. 8 is a schematic view of an exemplary scenario for determining an area where a target to be processed is located in an embodiment of the present application;
FIG. 9 is a schematic illustration of an exemplary scenario of a transparent region in an embodiment of the present application;
FIG. 10 is a set of interface schematic diagrams provided in an embodiment of the present application;
FIG. 11 is an exemplary schematic diagram of a process of one screen capture method in an embodiment of the present application;
FIG. 12 is an exemplary schematic diagram of a process for overlaying a second screenshot in an embodiment of the present application;
FIG. 13 is another set of interface schematic diagrams provided in an embodiment of the present application;
FIG. 14 is another set of interface schematic diagrams provided in an embodiment of the present application;
FIG. 15 is an exemplary schematic diagram of superimposing a semi-transparent object to be processed on a third screenshot in an embodiment of the application.
Detailed Description
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates to the contrary. It should also be understood that the term "and/or" as used in this application refers to and encompasses any or all possible combinations of one or more of the listed items.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
Since the embodiments of the present application relate to the application of image processing technology, for convenience of understanding, related terms and concepts related to the embodiments of the present application are described below.
(1) Target detection algorithm based on deep learning:
deep learning is the inherent regularity and presentation hierarchy of machine learning sample data, and the information obtained during such learning is helpful in interpreting data such as text, images and sounds. The machine can be provided with the capability of analyzing and learning like a person, and can recognize data such as characters, images, sounds and the like.
The deep learning-based object detection algorithm may enable the electronic device to automatically find objects in the image, determine their location and size.
It can be understood that the target detection algorithm based on deep learning is used for target detection, and labeled samples are used as training sets to train the target detection algorithm to obtain a target detection algorithm meeting the requirements of the user.
The target detected by the target detection algorithm is determined by training the labeled sample used. For example, in embodiments of the present application, the target detection algorithm may be trained using a series of images labeled on a person. So that the object detection algorithm can identify the person in the image and determine the position and body area of the person in the image.
According to different requirements of the target detection use scenario, the person in the embodiment of the present application may include only a person, and may also include a person and an object related to the person, for example, an object contacting with a human body, which is not limited herein. For different target requirement conditions, only a sample marked on a target to be identified is required to be used as a training set to train out a corresponding target detection algorithm.
For example, in the embodiment of the present application, the characters in the training set may be a teacher and an article in contact with the body of the teacher. In the embodiment of the present application, the target detected by the target is referred to as a target to be processed.
The target detection algorithm in the embodiment of the present application may be factory preset, or may be trained by the user using the training set of the user, which is not limited herein.
Fig. 1 is a schematic view of an effect of a screen capturing picture obtained by capturing a screen of a teaching video in the prior art. When the screen capturing is carried out on the teaching video, a teacher always shields the background, so that the information displayed by the screen capturing picture is less.
In the embodiment of the application, after the user performs the screen capturing operation, the electronic device can automatically capture the teaching video for multiple times. As the character in the teaching video moves, the previously occluded area is exposed. The electronic equipment acquires a final screen capture picture by splicing the areas exposed by movement in the screen capture pictures acquired by the screen capture for multiple times, so that more information can be displayed in the final screen capture picture. Fig. 2 is a schematic diagram of an effect of a screen capture picture obtained by capturing a teaching video according to an embodiment of the present application.
An exemplary electronic device 100 provided in an embodiment of the present application is first described below.
Fig. 3 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application.
The embodiment will be specifically described below taking the electronic device 100 as an example. It should be understood that electronic device 100 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (universal serial bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing functions of electronic device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display functionality of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The SIM interface may be used to communicate with the SIM card interface 195 to perform functions of transferring data to or reading data from the SIM card.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present invention is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long termevolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (flex), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an operating system, an application required for at least one function (such as a face recognition function, a fingerprint recognition function, a mobile payment function, etc.), and the like. The storage data area may store data created during use of the electronic device 100 (e.g., face information template data, fingerprint information templates, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 can detect that the user holds the electronic device 100 close to the ear by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication.
Fig. 4 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the system is divided into four layers, from top to bottom, an application layer, an application framework layer, runtime and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 4, the application package may include applications (also referred to as applications) such as a screenshot module, camera, gallery, calendar, talk, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The screen capturing module may be configured to support the electronic device to execute the screen capturing method in the embodiment of the application.
The application framework layer provides an application programming interface (application programminginterface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 4, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification presented in the form of a chart or scroll bar text in the system top status bar, such as a notification of a background running application, or a notification presented on a screen in the form of a dialog interface. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
The runtime includes a core library and a virtual machine. The runtime is responsible for scheduling and management of the system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of the system.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), two-dimensional graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of two-Dimensional (2D) and three-Dimensional (3D) layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing 3D graphic drawing, image rendering, synthesis, layer processing and the like.
The two-dimensional graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The kernel layer at least comprises a display driver, a camera driver, an audio driver, a sensor driver and a virtual card driver.
The workflow of the electronic device 100 software and hardware is illustrated below in connection with capturing a photo scene.
When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into the original input event (including information such as touch coordinates, time stamp of touch operation, etc.). The original input event is stored at the kernel layer. The application framework layer acquires an original input event from the kernel layer, and identifies a control corresponding to the input event. Taking the touch operation as a touch click operation, taking a control corresponding to the click operation as an example of a control of a camera application icon, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera driver by calling a kernel layer, and captures a still image or video by the camera 193.
The screen capturing method in the embodiment of the present application is specifically described below in conjunction with the above-described software and hardware structures of the exemplary electronic device 100. FIG. 5 is a schematic flow chart of a screen capturing method in an embodiment of the present application:
S501, responding to screen capturing operation of a user, and carrying out N times of screen capturing on the video in a first time period by the electronic equipment to obtain N first screen capturing pictures;
wherein N is a positive integer not less than 2.
It will be appreciated that the moment of start and stop of the first period is determined in accordance with a user's screen capture operation. The first time period may be determined in different manners according to the screen capturing operation of the user, which is not limited herein.
An exemplary description of the manner in which the first time period is determined from the user's screen capture operation is provided below:
for example, the screen capturing operation of the user may include a first operation and a second operation that are not continuously completed. In response to a first operation by the user, the electronic device may determine a starting time of the first time period. In response to a second operation by the user, the electronic device may determine a stop time of the first period of time. It will be appreciated that S501 and subsequent steps may begin when the electronic device determines the start of the first time period. The execution of S501 and the subsequent steps is not necessarily started at the stop timing at which the first period is determined.
FIG. 6 is a schematic diagram of an interface of a set of screen capturing operations according to an embodiment of the present application.
Fig. 6 (a) is an exemplary schematic diagram of the user interface 61 when playing a teaching video on the display 194 of the electronic device.
As shown in fig. 6 (b), an exemplary diagram of the user interface 62 after the user has triggered the screenshot function is shown. When the user triggers the screen capture function, a screen capture mode option indicator 601 may be displayed in the user interface 62, under which a plurality of screen capture mode selection controls may be included: such as a generic screen capture control 601A, a long graph screen capture control 601B, a first mode screen capture control 601C, a second mode screen capture control 601D, and the like.
The operation manner of triggering the screen capturing function by the user may be numerous, for example, by triggering a combination key, or by triggering a preset touch action, or by triggering a preset number of taps on the screen, etc., which is not limited herein.
The common screen capturing control 601A is configured to provide a common screen capturing function after receiving a click operation of a user;
a long-graph screen shot control 601B for providing a long-graph screen shot function after receiving a user click operation;
the first manner screen capturing control 601C is configured to provide a video screen capturing function after receiving a click operation of a user, and determine a time of the click operation as a starting time of a first time period;
The second scheme screen capture control 602C is configured to provide a video screen capture function after receiving a click operation from a user, and provide a time period selection control for the user to select the first time period.
It will be appreciated that this is merely one illustrative example of a screen capture option. In practice, screen capture options may also be displayed in the user interface 62 in other ways. The different screen capturing modes that may be selected in the screen capturing mode options may be more or less, and are not limited herein.
As shown in fig. 6 (C), an exemplary schematic diagram of a user clicking on the first mode screen capture control 601C. When the user clicks the first mode screen capture control 601C in the user interface 62, the electronic device can display the user interface 63 as shown in FIG. 6 (d) on the display 194.
It will be appreciated that the user illustrated in fig. 6 (b) triggers the operation of the screen capture function, and that the user illustrated in fig. 6 (C) clicks on the first mode screen capture control 601C together belong to one implementation of the first of the user's screen capture operations described above. In practical applications, the first operation may also be a single operation. For example, some combination key may be provided, or a preset touch action may trigger the function of the first mode screen capture control directly. Then, when the user interface 61 shown in (a) of fig. 6 is displayed on the display screen 194 of the electronic device, the electronic device may display the user interface 63 shown in (d) of fig. 6 on the display screen 194 in response to the first operation of the user while playing the teaching video. And are not limited herein.
As shown in fig. 6 (d), is an exemplary schematic diagram of the user interface 63 in the screen capturing state. The user interface 63 may have displayed therein a screen capture status indicator 602, a cancel control 603 and a stop control 604.
The screen capture status indicator 602 has text displayed therein: the screen capturing device is used for indicating that the current video screen capturing state is in;
the cancellation control 603 is configured to cancel the screen capturing operation after receiving the clicking operation of the user;
the stop control 604 is configured to determine, after receiving a click operation from a user, that the click time is a stop time of the first period, and complete a video screenshot function.
As shown in fig. 6 (e), upon receiving a user click on the stop control 604 in the user interface 63, the display 194 of the electronic device may display the user interface 64 as shown in fig. 6 (f).
It will be appreciated that this operation of the click-to-stop control 604 is one implementation of the second operation of the user's screen capture operations described above.
As shown in fig. 6 (f), a screen capture status indicator 605 may be displayed in the user interface 64. The screen capturing status indicator 605 has text displayed therein: the screen capture is successful, which is used for indicating that the video screen capture is successful.
It is to be understood that the first and second operations illustrated in fig. 6 are merely one exemplary implementation. In practical applications, there may be many other implementations of the first operation and the second operation, as long as the first operation can determine the start time of the first period, and the second operation can determine the stop time of the first period, which is not limited herein.
For example, the user's screen capturing operation may also be performed continuously at one time. In response to a screen capture operation by the user, the electronic device may provide a time period selection control for the user to select a start-stop time of the first time period. After the user selects to determine the start-stop time of the first period, S501 and subsequent steps may be continued.
Fig. 7 is a schematic diagram of an interface of another set of screen capturing operations according to an embodiment of the present application.
Fig. 7 (a) and (b) and fig. 6 (a) and (b) are similar, and are not described here.
As shown in fig. 7 (c), upon receiving a user click on the second mode screen capture control 601D in the user interface 62, the user interface 73 as shown in fig. 7 (D) may be displayed on the display 194 of the electronic device.
In this user interface 73, a time selection control 701, a start time flag 702, a stop time flag 703, a determination control 704, and a cancellation control 705 may be included.
Wherein time selection control 701 is used to present the timeline of the video.
The start time flag bit 702 is used for determining the start time of the first time period according to the dragging of the user;
a stop time flag 703, configured to determine a stop time of the first period according to the dragging of the user;
a determining control 704, configured to determine, after receiving a click operation from a user, a start-stop time of the first period according to positions of the start time zone bit 702 and the stop time zone bit 703 on the time selection control 701, and complete a video screen capturing function;
the cancel control 705 is configured to cancel the screen capturing operation after receiving the click operation of the user.
As shown in (d) of fig. 7, the user may drag the start time flag bit 702 and the stop time flag bit 703 to determine the start time and the stop time of the first period.
As shown in (e) of fig. 7, after the user drags the positions of the start time flag 702 and the stop time flag 703, the determination control 704 may be clicked to determine the start and stop time of the first period. At which point the electronic device will continue to complete the video capture function and display a user interface 74 as shown in fig. 7 (f).
As shown in fig. 7 (f), a screen capture status indicator 706 may be displayed in the user interface 74. The screen capture status indicator 706 has text displayed therein: the screen capture is successful, which is used for indicating that the video screen capture is successful.
It will be appreciated that fig. 7 is merely an example of a continuous screen capturing operation, and that many other screen capturing operations are possible in practical applications, so long as the start and stop time of the first period can be determined, which is not limited herein.
There are also many alternative ways for the electronic device to screen capture the video N times during the first period:
for example, the electronic device may screen capture during the first period of time according to a preset period of time. For example, assuming a preset time period of 2 seconds, the electronic device may screen capture video every 2 seconds during the first time period, resulting in a first screen capture.
The electronic device may also detect the target in real time for the video within the first period after the screen capturing function is started, and perform a screen capturing to generate a first screen capturing picture whenever it is determined that the detected position change of the target to be processed in the video exceeds the preset distance threshold.
It will be appreciated that there may be many ways to screen capture the video N times during the first period, for example, the user may capture a screen each time he receives a user click during the first period, generate a first screen capture picture, etc., which are not limited herein.
It will be appreciated that in step S501, a plurality of first screen shots may be continuously generated for a first period of time. The electronic device does not need to wait for all of the N screen shots in the first time period to be generated before executing the subsequent steps. Subsequent steps, not limited herein, may be initiated simultaneously after the first screenshot is generated.
S502, the electronic equipment detects the target of the first screen shot picture and determines the area where the target to be processed is located;
after the electronic equipment obtains the first screen capture picture, target detection is carried out on the first screen capture picture, and the target detection can automatically identify the target to be processed in the first screen capture picture, so that the area of the target to be processed in the picture is determined.
The target detection algorithm used by the electronic device 100 for performing target detection may be stored in the internal memory 121 of the electronic device 100, which is preset by a manufacturer, may be downloaded from a cloud server when the electronic device 100 needs to use the target detection algorithm, may be stored in the internal memory 121 after the processor 110 of the electronic device 100 is trained by a training set selected by a user, may be obtained from a server of another third party service provider, or the like, and is not limited herein.
Exemplary, as shown in fig. 8, an exemplary scenario diagram is provided for determining an area where an object to be processed is located. Fig. 8 (a) is a first screenshot of a video taken during the first time period, wherein a teacher stands in front of the background. And the electronic equipment detects the target of the first screen shot picture, and the target to be processed of the target detection algorithm is a teacher, so that the area of the teacher in the first screen shot picture can be determined. As shown in (b) of fig. 8, the area indicated by the dotted line box is the area where the teacher is located, which is determined by the target detection, that is, the area where the target to be processed is located.
Optionally, the electronic device may obtain N first screen shots in the first period, and if a certain first screen shot does not meet the requirement for quality of the image for performing target detection due to the problem of quality of the screen shots in the process of performing target detection on the N first screen shots, the electronic device may delete the first screen shot and continue to process subsequent first screen shots.
S503, the electronic equipment processes the region where the target to be processed is located in the first screen capturing picture into a transparent region to obtain M second screen capturing pictures;
After the electronic device determines the region where the target to be processed is located in the first screen capture picture, the region can be processed into a transparent region, and M second screen capture pictures are obtained. Wherein M is a positive integer less than or equal to N.
It can be appreciated that if the electronic device deletes the first screenshot picture that does not meet the requirement of the picture quality for performing the target detection, M is smaller than N. If the electronic device does not delete the first screenshot, M is equal to N.
It should be noted that, after the region where the target to be processed is located in the first screen capturing picture is processed into the transparent region, and a second screen capturing picture is obtained, if the second screen capturing picture is superimposed on a certain picture, the content located in the position of the transparent region on the picture below the second screen capturing picture can be seen through the transparent region on the second screen capturing picture. As shown in fig. 9, an exemplary scene diagram of a transparent region is shown. As shown in fig. 9 (a), a second screen shot is displayed on the display 194 of the electronic device 100, wherein the area surrounded by the dashed box is a transparent area. As shown in fig. 9 (b), there is another picture a in which there are text information EF and 1234 at the position portion corresponding to the transparent region of the second screen shot picture and some text information at other portions. When the second screen capturing picture shown in fig. 9 (a) is above and the picture a shown in fig. 9 (B) is below and these two pictures are superimposed, the picture B shown in fig. 9 (c) is displayed on the display 194 of the electronic device 100. In this picture B, not only the content on the second screen shot picture but also the content in the picture a at the position corresponding to the transparent region of the second screen shot picture are included.
S504, overlapping the M second screen capturing pictures to obtain a third screen capturing picture;
after the electronic device obtains two or more second screen capturing pictures, the electronic device can start to superimpose the second screen capturing pictures. And after the electronic equipment is used for finishing overlapping the obtained M second screen capturing pictures, obtaining a third screen capturing picture. More information than the first screen capturing pictures is displayed in the third screen capturing pictures, wherein the information refers to information displayed in the background and does not comprise the target to be processed.
When the M is equal to 2, displaying information of a non-transparent area of the second screen shot picture overlapped on the uppermost layer and information of a first area corresponding to the transparent area of the second screen shot picture overlapped on the uppermost layer in the third screen shot picture; the first area is an area of which the position on the second screen capturing picture of the next layer corresponds to the transparent area of the second screen capturing picture of the uppermost layer; the information of the first region includes information of a non-transparent region in the first region;
when the M is larger than 2, the information of the first area also comprises the information of a second area corresponding to the transparent area of the first area; the second area is an area of which the position on the second screen capturing picture of the next layer corresponds to the transparent area of the first area; the information of the second area includes information of a non-transparent area of the second area; and so on until the third screen shot has no transparent area, or the second screen shot of the next layer is the second screen shot overlapped on the lowest layer.
It will be appreciated that the order in which the M second screen shots are superimposed is not limited herein. After two second screen capturing pictures are generated, the second screen capturing pictures are overlapped, and then the newly obtained second screen capturing pictures and the overlapped screen capturing pictures are overlapped; and all second screen capturing pictures can be obtained and then overlapped together; and the obtained partial second screen capturing pictures can be respectively overlapped, and then the pictures obtained after the respective overlapping are overlapped, which is not limited herein.
Optionally, when the electronic device superimposes the M second screen shots, there may be different superimposing orders according to different situations.
For example, when the user clicks the screen capture setting control in the setting option of the electronic device, the display 194 of the electronic device may display the user interface 101 as shown in fig. 10 (a). The user interface 101 interfaces for a screenshot, which may include a screenshot function switch control 1001, a video screenshot overlay sequence selection control 1002, and a screenshot shortcut gesture selection control 1003.
The screen capturing function switch control 1001 is used for determining whether to start the screen capturing function according to user selection;
A video screenshot overlapping sequence selection control 1002, configured to display a video screenshot overlapping sequence selection interface after receiving a click operation from a user;
the screen capturing shortcut gesture control 1003 is configured to display a selection interface of the screen capturing shortcut gesture after receiving a click operation of a user.
As shown in fig. 10 (a), upon receiving a user click on the video capture overlay sequence selection control 1002, a user interface 102 as shown in fig. 10 (b) may be displayed on the display 194 of the electronic device. The user interface 102 is a video screenshot overlay order selection interface.
A manual adjustment switch control 1004, a default sequence selection control 1005, may be included in the user interface 102. Two option sub-controls are included in the default sequential selection control 1005, including an option sub-control 1005A with a picture at a later playing time and an option sub-control 1005B with a picture at a previous playing time.
Wherein, the manual adjustment switch control 1004 is used for turning on and off the manual adjustment function according to the user operation.
When the manual adjustment function is turned off, the electronic device directly selects the sequence represented by the selected child control in the controls 1005 according to the default sequence when overlapping the M second screen shots in S504, and performs overlapping of the second screen shots.
When the manual adjustment function is turned on, after obtaining N first screen shots, the electronic device selects the sequence represented by the selected child controls in the control 1005 according to a default sequence, and displays the N first screen shots obtained by screen shots or displays the M second screen shots obtained by processing. After the user manually adjusts the sequence and determines, step S504 is performed.
It should be noted that, when the electronic device displays the N first screen capturing pictures obtained by screen capturing for the user to manually adjust the sequence, the electronic device is not affected to continue to execute steps S502 and S503, which is not limited herein.
It will be appreciated that, because the M second screen shots are processed from the N first screen shots, a manual adjustment by the user of the order of the N first screen shots may represent a user adjustment of the order of the overlapping of the M second screen shots.
And the option sub-control 1005A with the last picture of the playing time is used for being set when the second screen capturing picture is overlapped after the clicking operation of the user is received, and overlapping is performed according to the order in which the last pictures of the playing time are overlapped. Displaying N first screen capturing pictures obtained by screen capturing or M second screen capturing pictures obtained by display processing in the manual adjustment function starting state according to the sequence that the pictures with the later playing time are overlapped;
And an option sub-control 1005B for setting, after receiving the click operation of the user, that the pictures with the previous playing time are superimposed according to the order in which the pictures with the previous playing time are superimposed when the second screenshot picture is superimposed. And when N first screen capturing pictures obtained by screen capturing or M second screen capturing pictures obtained by display processing are displayed in the manual adjustment function on state, displaying according to the sequence that the pictures with the previous playing time are overlapped.
As shown in fig. 10 (b), if the user selects the manual adjustment switch control 1004 to be in the off state in the video capturing and superimposing sequence selection interface, the option sub-control 1005A on which the picture with the subsequent play time of the default sequence selection control 1005 is selected. When executing step S504, the electronic device may superimpose the M second screen capturing pictures in order according to the order in which the pictures with subsequent playing time are in the last order by default, so as to obtain a third screen capturing picture.
It will be appreciated that fig. 10 is merely one exemplary illustration of a screen capture setup interface and a video screen capture overlay order selection interface. In practical applications, the screen capture setting interface may have more or fewer options than those shown in fig. 10 (a). Similarly, the video screenshot overlapping sequence selection interface may or may not be present. If there is a video screenshot overlapping sequence selection interface, there may be more or fewer options than those shown in fig. 10 (b), which is not limited herein.
Taking the example that the screen capturing setting interface in the electronic device is shown in fig. 10 (a), the video screen capturing stacking sequence selection interface is shown in fig. 10 (b), and 3 second screen capturing pictures are obtained in step S503, and the process of stacking the 3 second screen capturing pictures in step S504 to obtain a third screen capturing picture is described in an exemplary manner:
FIG. 11 is an exemplary schematic diagram of a process of a screen capture method in an embodiment of the present application. In step S501, 3 first screen capturing pictures are obtained by the electronic device during the first period, and the pictures are respectively picture 1, picture 2 and picture 3 in the order from front to back according to the playing time of the pictures in the video.
In picture 1, there are two strings on the blackboard, ABCDE and 123456, respectively, but the teacher's body obscures the 123 portion of the string 123456, so the complete contents of these two strings cannot be seen in picture 1.
In the picture 2, a character string is added on the blackboard: FGHIJK. The teacher moves the position, and the ABCDE and FGHIJK strings on the blackboard can be displayed completely in the picture, but the body of the teacher shields the 3456 part of the 123456 strings. Thus, the complete content of the current 3 strings cannot be seen in picture 2.
In the picture 3, a new character string is added on the blackboard: 789. the teacher moves the position again, and the ABCDE and 789 strings on the blackboard can be displayed completely in the picture, but the teacher's body is hidden from the 1 part of the 123456 string and the JK part of the FGHIJK string. Thus, the complete content of the current 4 strings cannot be seen in picture 3.
According to steps S502 and S503, the electronic device may identify the regions where the teacher is located in the picture 1, the picture 2 and the picture 3 through target detection, and process these regions into transparent regions, so as to obtain 3 second screen shots, which are respectively: picture 1A, picture 2A, and picture 3A.
Because the option sub-control 1005A with the last picture of the playing time is selected in the video screenshot overlapping sequence interface, when executing step S504, the electronic device will sequentially perform overlapping processing on the obtained second screenshot picture according to the mode that the last picture of the playing time is overlapped.
As shown in fig. 11, after the second screen shot 1A and the second screen shot 2A are obtained, since the playing time of the picture 2 corresponding to the picture 2A is located behind the picture a corresponding to the picture 1A in the video. Therefore, when the electronic device superimposes the picture 2A and the picture 1A, the picture 4 as in fig. 10 is obtained by superimposing the picture 2A with the picture 1A down. In the superimposed picture 4, ABCDE and FGHIJK strings can be displayed completely, and for the 123456 strings, more content can be displayed than in the case of the pictures 1 and 2 alone, but only 3 in the 123456 strings cannot be displayed in the picture 4 because both the picture 1 and the picture 2 are blocked by a teacher.
As shown in fig. 12, a process diagram of generating a picture 4 by superimposing a picture 1A and a picture 2A is shown. The transparent region 1 is in the picture 1A, and the transparent region 2 is in the picture 2A. Picture 2A is on top and picture 1A is superimposed on top of it to give picture 4. Therefore, not only the entire contents of the picture 2A but also the contents of the picture 1A at the position corresponding to the transparent region 2 of the picture 2A are displayed in the picture 4. The portion of the picture 2A where the transparent region 2 overlaps the transparent region 1 of the picture 1A is also a transparent region, and becomes a transparent region 3 of the picture 4.
As shown in fig. 11, after the second screenshot 3A is obtained, since the playing time of the picture 3 corresponding to the picture 3A is located behind the picture 2 corresponding to the picture 2A in the video. Therefore, when the electronic device superimposes the picture 3A and the picture 4, the picture 5 as in fig. 11 is obtained by superimposing the picture 3A on top and the picture 4 on bottom. In the superimposed picture 5, the ABCDE, FGHIJK, 789, and 123456 strings may be displayed in their entirety. More content is displayed than for each of picture 1, picture 2 and picture 3. At this time, the obtained 3 second screen capturing pictures are all overlapped, and the obtained picture 5 is the third screen capturing picture.
For example, as shown in fig. 13, if the user sets the state of the manual adjustment switch control 1004 to be activated in the video capture superimposition order selection interface, the electronic device defaults to the first capture picture for the user to select the superimposition order. Then in step S501, after the user performs the screen capturing operation and the display screen 194 of the electronic device displays the user interfaces shown as (a), (b), (c), (d), (e) in fig. 6 or as (a), (b), (c), (d), (e) in fig. 7, the display screen 194 of the electronic device may also display the user interface 141 shown as (a) in fig. 14 after displaying (f) in fig. 6 or before (f) in fig. 7. In this user interface 141, the electronic device pops up the overlay order selection window 1401.
The stacking sequence selection window 1401 may include a text identifier: the overlay order is selected (top to bottom) to indicate to the user that this window is available to adjust the overlay order of the video screenshot pictures and that the pictures are displayed top to bottom in the overlay order. Since, as shown in fig. 13, the option sub-control 1005A on which the picture with the subsequent play time of the default order selection control 1005 is in the selected state, the display order of the 4 first screen shots for adjusting the order shown in fig. 14 is: a first screenshot taken at 1 hour 20 of the video, a first screenshot taken at 1 hour 16 of the video, a first screenshot taken at 1 hour 13 of the video, and a first screenshot taken at 1 hour 8 of the video.
A determination control 1402 may also be included in the overlay order selection window 1401 for determining the overlay order adjusted using the user; and a cancel control 1403 for canceling the superimposition order adjusted by the user, directly using the default order.
As shown in fig. 14 (a), in response to a user dragging and interchanging a first screenshot taken at 1 hour 20 of a video with a first screenshot taken at 1 hour 8 of the video, a user interface 141 as shown in fig. 14 (b) is displayed on a display 194 of the electronic device. At this time, the order of the two first screen shots is changed, and when the second screen shot overlapping process is performed in step S504, the electronic device overlaps the corresponding second screen shot according to the order adjusted by the user.
As shown in (b) of fig. 14, in response to the user clicking on the determination control 1402, the electronic device may display a user interface as shown in (f) of fig. 6 or (f) of fig. 7 on the display screen.
It will be appreciated that there may be other ways of determining the order in which the M second screen shots are to be superimposed, and this is not limiting.
Optionally, after the electronic device completes the superposition of the M second screenshot pictures to obtain a third screenshot picture, the third screenshot picture may be stored in the internal memory 121 of the electronic device, and used as the screenshot picture finally obtained by the screenshot operation. The third screenshot may also be output to the display 194 of the electronic device as the resulting screenshot of the screenshot operation. And are not limited herein.
Optionally, before storing or outputting the third screenshot, if a transparent area still exists in the obtained third screenshot, the electronic device may use a background color of the picture to fill the transparent area, or may use a picture intelligent repair technology to fill and complement the transparent area, which is not limited herein.
Optionally, before or after storing or outputting the third screenshot, the electronic device may further perform semitransparent processing on an area where the target to be processed in the first screenshot corresponding to the second screenshot superimposed on the uppermost layer is located, to obtain a semitransparent target to be processed; and then superposing the semitransparent target to be processed on the third screen capturing picture to obtain a fourth screen capturing picture, and storing the fourth screen capturing picture.
The semitransparent degree in semitransparent treatment of the area where the target to be treated is located can be set according to preset, can be manually adjusted in real time by a user, and can be intelligently adjusted by the electronic equipment according to the third screen capture picture and the content of the area where the target to be treated is located to a degree which does not affect the content on the third screen capture picture, and the method is not limited herein.
When the semitransparent target to be processed is superimposed on the third screen capture picture, the semitransparent target to be processed may be superimposed on the same position of the target to be processed corresponding to the semitransparent target to be processed on the first screen capture picture, or may be superimposed on a position designated by the user on the third screen capture picture, which is not limited herein.
In combination with the exemplary schematic diagram shown in fig. 11, as shown in fig. 15, an exemplary schematic diagram of a semitransparent object to be processed is superimposed on the third screenshot in the embodiment of the application. The second screen capture picture 3A overlapped on the uppermost layer corresponds to the first screen capture picture 3, and the electronic equipment can carry out semitransparent processing on the area where the target to be processed in the first screen capture picture 3 is located, so as to obtain a semitransparent target to be processed. And then the semitransparent object to be processed is overlapped on the third screen capturing picture 5 to obtain a picture 6, namely a fourth screen capturing picture. In the fourth screen shot, not only can all character strings on the background be completely displayed, but also the gesture of a translucent teacher can be seen.
The above embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to determination …" or "in response to detection …" depending on the context. Similarly, the phrase "at the time of determination …" or "if detected (a stated condition or event)" may be interpreted to mean "if determined …" or "in response to determination …" or "at the time of detection (a stated condition or event)" or "in response to detection (a stated condition or event)" depending on the context.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.

Claims (28)

1. A method of screen capturing, comprising:
responding to the screen capturing operation of a user, and carrying out N times of screen capturing on the video in the first time period by the electronic equipment to obtain N first screen capturing pictures, wherein N is a positive integer not less than 2;
the electronic equipment detects the target of the first screen shot picture, and determines the area where the target to be processed in the first screen shot picture is located, wherein the target to be processed is the target detected by the target;
the electronic equipment processes an area where a target to be processed is located in the first screen capturing picture into a transparent area to obtain M second screen capturing pictures, wherein M is a positive integer less than or equal to N;
the electronic equipment superimposes the M second screen capturing pictures to obtain a third screen capturing picture;
When the M is equal to 2, displaying information of a non-transparent area of the second screen shot picture overlapped on the uppermost layer and information of a first area corresponding to the transparent area of the second screen shot picture overlapped on the uppermost layer in the third screen shot picture; the first area is an area of which the position on the second screen capturing picture of the next layer corresponds to the transparent area of the second screen capturing picture of the uppermost layer; the information of the first area comprises information of a non-transparent area in the first area;
when the M is larger than 2, the information of the first area also comprises the information of a second area corresponding to the transparent area of the first area; the second area is an area of which the position on a second screen capture picture of the next layer corresponds to the transparent area of the first area; the information of the second region includes information of a non-transparent region of the second region; and so on until no transparent area exists in the third screen shot picture, or the second screen shot picture of the next layer is the second screen shot picture overlapped on the lowest layer.
2. The method of claim 1, wherein the electronic device, in response to the user's screen capturing operation, captures the video N times in the first period of time to obtain N first screen capturing pictures, specifically includes:
In response to a screen capturing operation of a user, the electronic device determines a starting moment of a first time period and a stopping moment of the first time period;
and the electronic equipment performs N times of screen capturing on the video in the first time period to obtain N first screen capturing pictures.
3. The method of claim 2, wherein the screen capture operation comprises a first operation and a second operation that are completed discontinuously;
the responding to the screen capturing operation of the user, the electronic equipment determines the starting time and the stopping time of the first time period, and the method specifically comprises the following steps:
in response to the first operation of the user, the electronic device determines a starting moment of the first time period;
in response to the second operation of the user, the electronic device determines a stop time of the first period of time.
4. A method according to claim 2 or 3, wherein the screen capture operation comprises a series of operations performed in succession;
the responding to the screen capturing operation of the user, the electronic equipment determines the starting time and the stopping time of the first time period, and the method specifically comprises the following steps:
responding to the operation of triggering screen capturing by a user, and displaying a time period selection control by the electronic equipment;
In response to a user operation on the time period selection control, the electronic device determines a start time and a stop time of the first time period.
5. A method according to claim 2 or 3, wherein the electronic device performs N screen shots on the video in the first period of time to obtain N first screen shots, and specifically includes:
and the electronic equipment performs N screen shots on the video in the first time period according to a preset time period to obtain N first screen shot pictures.
6. A method according to claim 2 or 3, wherein the electronic device performs N screen shots on the video in the first period of time to obtain N first screen shots, and specifically includes:
the electronic equipment performs target detection on the video in the first time period;
and performing screen capturing once every time the position change of the target to be processed in the video exceeds a preset distance threshold value, and generating a first screen capturing picture until the N first screen capturing pictures are obtained.
7. The method of claim 6, wherein the method further comprises:
and deleting the first screen capturing pictures which do not meet the picture quality requirement for target detection in the N first screen capturing pictures by the electronic equipment.
8. The method according to any one of claims 1-3 and 7, wherein the electronic device superimposes the M second screen shots to obtain a third screen shot, specifically including:
and the electronic equipment superimposes the M second screen capturing pictures according to a preset default sequence to obtain a third screen capturing picture.
9. The method of claim 8, wherein the predetermined default order is an order in which pictures at a later play time are superimposed in the video.
10. The method according to any one of claims 1-3 and 7, wherein the electronic device superimposes the M second screen shots to obtain a third screen shot, specifically including:
the electronic equipment displays the superposition sequence of the M second screen capturing pictures;
and responding to the operation of adjusting the superposition order by the user, and superposing the M second screen capturing pictures according to the superposition order adjusted by the user by the electronic equipment to obtain a third screen capturing picture.
11. The method according to any one of claims 1-3, 7, further comprising:
the electronic device fills in the transparent region in the third screenshot using the background color in the third screenshot.
12. The method according to any one of claims 1-3, 7, further comprising:
and the electronic equipment fills and complements the transparent area in the third screen capturing picture by using an intelligent repairing technology.
13. The method according to any one of claims 1-3, 7, further comprising:
the electronic equipment performs semitransparent processing on the region where the target to be processed is located in the first screen capture picture corresponding to the second screen capture picture overlapped on the uppermost layer to obtain a semitransparent target to be processed;
and the electronic equipment superimposes the semitransparent target to be processed on the third screen capture picture to obtain a fourth screen capture picture.
14. An electronic device, the electronic device comprising: one or more processors and memory;
the memory is coupled with the one or more processors, the memory is for storing computer program code, the computer program code comprising computer instructions that the one or more processors call to cause the electronic device to perform:
responding to the screen capturing operation of a user, carrying out N times of screen capturing on the video in the first time period to obtain N first screen capturing pictures, wherein N is a positive integer not smaller than 2;
Performing target detection on the first screen capture picture, and determining an area where a target to be processed in the first screen capture picture is located, wherein the target to be processed is a target detected by the target;
processing an area where a target to be processed is located in the first screen capturing picture into a transparent area to obtain M second screen capturing pictures, wherein M is a positive integer less than or equal to N;
superposing the M second screen capturing pictures to obtain a third screen capturing picture;
when the M is equal to 2, displaying information of a non-transparent area of the second screen shot picture overlapped on the uppermost layer and information of a first area corresponding to the transparent area of the second screen shot picture overlapped on the uppermost layer in the third screen shot picture; the first area is an area of which the position on the second screen capturing picture of the next layer corresponds to the transparent area of the second screen capturing picture of the uppermost layer; the information of the first area comprises information of a non-transparent area in the first area;
when the M is larger than 2, the information of the first area also comprises the information of a second area corresponding to the transparent area of the first area; the second area is an area of which the position on a second screen capture picture of the next layer corresponds to the transparent area of the first area; the information of the second region includes information of a non-transparent region of the second region; and so on until no transparent area exists in the third screen shot picture, or the second screen shot picture of the next layer is the second screen shot picture overlapped on the lowest layer.
15. The electronic device of claim 14, wherein the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform:
determining a starting time of the first time period and a stopping time of the first time period in response to a screen capturing operation of a user;
and carrying out N screen shots on the video in the first time period to obtain N first screen shots.
16. The electronic device of claim 15, wherein the screen capture operation comprises a first operation and a second operation that are completed discontinuously;
the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform:
determining a starting moment of the first time period in response to the first operation of the user;
responsive to the second operation by the user, a stop time of the first period of time is determined.
17. The electronic device of claim 15 or 16, wherein the screen capture operation comprises a series of consecutively completed operations;
the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform:
Responding to the operation of triggering screen capturing by a user, and displaying a time period selection control;
and determining the starting moment and the stopping moment of the first time period in response to the operation of the user on the time period selection control.
18. The electronic device of any one of claims 15 or 16, wherein the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform:
and carrying out N times of screen capturing on the video in the first time period according to a preset time period to obtain N first screen capturing pictures.
19. The electronic device of any one of claims 15 or 16, wherein the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform:
performing object detection on the video in the first time period;
and performing screen capturing once every time the position change of the target to be processed in the video exceeds a preset distance threshold value, and generating a first screen capturing picture until the N first screen capturing pictures are obtained.
20. The electronic device of claim 19, wherein the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform:
And deleting the first screen capturing pictures which do not meet the picture quality requirement of target detection in the N first screen capturing pictures.
21. The electronic device of any one of claims 14-16, 20, wherein the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform:
and superposing the M second screen capturing pictures according to a preset default sequence to obtain a third screen capturing picture.
22. The electronic device of claim 21, wherein the predetermined default order is an order in which pictures at a later play time in the video are superimposed.
23. The electronic device of any one of claims 14-16, 20, wherein the one or more processors are specifically configured to invoke the computer instructions to cause the electronic device to perform:
displaying the superposition sequence of the M second screen capturing pictures;
and responding to the operation of adjusting the superposition order by the user, and superposing the M second screen capturing pictures according to the superposition order adjusted by the user to obtain a third screen capturing picture.
24. The electronic device of any one of claims 14-16, 20, wherein the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform:
And filling the transparent area in the third screenshot picture with a background color in the third screenshot picture.
25. The electronic device of any one of claims 14-16, 20, wherein the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform:
and filling and complementing the transparent area in the third screen capturing picture by using an intelligent repairing technology.
26. The electronic device of any one of claims 14-16, 20, wherein the one or more processors are further configured to invoke the computer instructions to cause the electronic device to perform:
semitransparent processing is carried out on the region where the target to be processed is located in the first screen capture picture corresponding to the second screen capture picture overlapped on the uppermost layer, so that a semitransparent target to be processed is obtained;
and superposing the semitransparent target to be processed on the third screen capturing picture to obtain a fourth screen capturing picture.
27. A chip system for application to an electronic device, the chip system comprising one or more processors to invoke computer instructions to cause the electronic device to perform the method of any of claims 1-13.
28. A computer readable storage medium comprising instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of claims 1-13.
CN202010455200.1A 2020-05-26 2020-05-26 Screen capturing method and electronic equipment Active CN113723397B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010455200.1A CN113723397B (en) 2020-05-26 2020-05-26 Screen capturing method and electronic equipment
PCT/CN2021/094619 WO2021238740A1 (en) 2020-05-26 2021-05-19 Screen capture method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010455200.1A CN113723397B (en) 2020-05-26 2020-05-26 Screen capturing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN113723397A CN113723397A (en) 2021-11-30
CN113723397B true CN113723397B (en) 2023-07-25

Family

ID=78671944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010455200.1A Active CN113723397B (en) 2020-05-26 2020-05-26 Screen capturing method and electronic equipment

Country Status (2)

Country Link
CN (1) CN113723397B (en)
WO (1) WO2021238740A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115562525B (en) * 2022-03-15 2023-06-13 荣耀终端有限公司 Screen capturing method and device
CN115086774B (en) * 2022-05-31 2024-03-05 北京达佳互联信息技术有限公司 Resource display method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103997616A (en) * 2013-12-20 2014-08-20 三亚中兴软件有限责任公司 Method and device for processing video conference picture, and conference terminal
CN104516644A (en) * 2014-12-09 2015-04-15 广东欧珀移动通信有限公司 Method for free screen capture and terminal
CN106227419A (en) * 2016-07-11 2016-12-14 北京小米移动软件有限公司 Screenshotss method and device
CN106851385A (en) * 2017-02-20 2017-06-13 北京金山安全软件有限公司 Video recording method and device and electronic equipment
CN106970754A (en) * 2017-03-28 2017-07-21 北京小米移动软件有限公司 The method and device of screenshotss processing
CN109005446A (en) * 2018-06-27 2018-12-14 聚好看科技股份有限公司 A kind of screenshotss processing method and processing device, electronic equipment, storage medium
CN109144370A (en) * 2018-09-30 2019-01-04 珠海市君天电子科技有限公司 A kind of screenshotss method, apparatus, terminal and computer-readable medium
CN109525874A (en) * 2018-09-27 2019-03-26 维沃移动通信有限公司 A kind of screenshotss method and terminal device
CN110502117A (en) * 2019-08-26 2019-11-26 三星电子(中国)研发中心 Screenshot method and electric terminal in electric terminal
CN111143015A (en) * 2019-12-31 2020-05-12 维沃移动通信有限公司 Screen capturing method and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103997616A (en) * 2013-12-20 2014-08-20 三亚中兴软件有限责任公司 Method and device for processing video conference picture, and conference terminal
CN104516644A (en) * 2014-12-09 2015-04-15 广东欧珀移动通信有限公司 Method for free screen capture and terminal
CN106227419A (en) * 2016-07-11 2016-12-14 北京小米移动软件有限公司 Screenshotss method and device
CN106851385A (en) * 2017-02-20 2017-06-13 北京金山安全软件有限公司 Video recording method and device and electronic equipment
CN106970754A (en) * 2017-03-28 2017-07-21 北京小米移动软件有限公司 The method and device of screenshotss processing
CN109005446A (en) * 2018-06-27 2018-12-14 聚好看科技股份有限公司 A kind of screenshotss processing method and processing device, electronic equipment, storage medium
CN109525874A (en) * 2018-09-27 2019-03-26 维沃移动通信有限公司 A kind of screenshotss method and terminal device
CN109144370A (en) * 2018-09-30 2019-01-04 珠海市君天电子科技有限公司 A kind of screenshotss method, apparatus, terminal and computer-readable medium
CN110502117A (en) * 2019-08-26 2019-11-26 三星电子(中国)研发中心 Screenshot method and electric terminal in electric terminal
CN111143015A (en) * 2019-12-31 2020-05-12 维沃移动通信有限公司 Screen capturing method and electronic equipment

Also Published As

Publication number Publication date
CN113723397A (en) 2021-11-30
WO2021238740A1 (en) 2021-12-02

Similar Documents

Publication Publication Date Title
CN114467297B (en) Video call display method and related device applied to electronic equipment
CN111666119B (en) UI component display method and electronic device
WO2020253719A1 (en) Screen recording method and electronic device
CN115866121B (en) Application interface interaction method, electronic device and computer readable storage medium
CN112262563B (en) Image processing method and electronic device
WO2020029306A1 (en) Image capture method and electronic device
CN114040242B (en) Screen projection method, electronic equipment and storage medium
CN112887583A (en) Shooting method and electronic equipment
CN113170037B (en) Method for shooting long exposure image and electronic equipment
CN113935898A (en) Image processing method, system, electronic device and computer readable storage medium
WO2020107463A1 (en) Electronic device control method and electronic device
CN112383664B (en) Device control method, first terminal device, second terminal device and computer readable storage medium
CN115129196A (en) Application icon display method and terminal
US11816494B2 (en) Foreground element display method and electronic device
CN113641271B (en) Application window management method, terminal device and computer readable storage medium
CN113723397B (en) Screen capturing method and electronic equipment
CN110138999B (en) Certificate scanning method and device for mobile terminal
US20230125072A1 (en) Photo preview method, electronic device, and storage medium
CN117009005A (en) Display method, automobile and electronic equipment
CN113867851A (en) Electronic equipment operation guide information recording method, electronic equipment operation guide information acquisition method and terminal equipment
CN114115772B (en) Method and device for off-screen display
CN116522400B (en) Image processing method and terminal equipment
CN115328592B (en) Display method and related device
CN116991274B (en) Upper sliding effect exception handling method and electronic equipment
CN113986406B (en) Method, device, electronic equipment and storage medium for generating doodle pattern

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