CN108920226B - Screen recording method and device - Google Patents

Screen recording method and device Download PDF

Info

Publication number
CN108920226B
CN108920226B CN201810418413.XA CN201810418413A CN108920226B CN 108920226 B CN108920226 B CN 108920226B CN 201810418413 A CN201810418413 A CN 201810418413A CN 108920226 B CN108920226 B CN 108920226B
Authority
CN
China
Prior art keywords
area
screen
recorded
region
roi
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
CN201810418413.XA
Other languages
Chinese (zh)
Other versions
CN108920226A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810418413.XA priority Critical patent/CN108920226B/en
Publication of CN108920226A publication Critical patent/CN108920226A/en
Application granted granted Critical
Publication of CN108920226B publication Critical patent/CN108920226B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

本发明公开了一种屏幕录制方法及装置,该方法包括:在录制屏幕的过程中,对待录制屏幕上的指定事件进行监测,该指定事件包括显示页面的跳转事件、控件的触控事件以及显示对象的变化事件中的至少一种;根据监测到的指定事件确定待录制屏幕上的ROI区域;对待录制屏幕上的ROI区域进行录制。本发明中,可以避免生成的录屏文件中包含较多的无用信息,减少了录制文件的大小,从而减少了移动终端上存储空间的浪费;还避免了将待录制屏幕上其它区域的内容录制进去,可以避免在分享录屏文件时导致屏幕上其它区域显示的用户的隐私信息被泄露,从而提高了用户体验。

Figure 201810418413

The invention discloses a screen recording method and device. The method includes: in the process of recording the screen, monitoring a designated event on the screen to be recorded, the designated event includes a jump event of a displayed page, a touch event of a control, and Displaying at least one of the change events of the object; determining the ROI area on the screen to be recorded according to the monitored designated event; recording the ROI area on the screen to be recorded. In the present invention, the generated screen recording file can be prevented from containing a lot of useless information, the size of the recording file can be reduced, and the waste of storage space on the mobile terminal can be reduced; It can avoid the leakage of the user's private information displayed in other areas on the screen when the screen recording file is shared, thereby improving the user experience.

Figure 201810418413

Description

Screen recording method and device
Technical Field
The invention relates to the technical field of terminals, in particular to a screen recording method and device.
Background
Screen recording, also called screen recording, refers to recording content displayed by a mobile terminal such as a mobile phone or a tablet computer and changes of the displayed content to obtain a screen recording file in a video form.
In the prior art, when screen recording is performed, the whole screen of the mobile terminal is generally recorded, and in some cases, a user may not need to record the whole screen. If the method in the prior art is adopted, the whole screen is recorded, and the generated screen recording file contains more useless information and is larger, so that more storage space is occupied, and the waste of the storage space is caused; in addition, when the whole screen is recorded, the privacy information displayed at other positions of the screen may be recorded, so that the privacy information of the user can be leaked when the screen recording file is shared, and the user experience is poor.
In summary, in the screen recording method in the prior art, the obtained screen recording file contains more useless information, occupies more storage space, and is easy to cause waste of the storage space; moreover, the disclosure of the user privacy information may also be caused, thereby making the user experience poor.
Disclosure of Invention
The embodiment of the invention provides a screen recording method and device, and aims to solve the problems that in the prior art, a generated screen recording file contains more useless information, so that the waste of storage space is easily caused, and the privacy information of a user is possibly leaked by recording the whole screen, so that the user experience is poor.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, a screen recording method is provided, and the method includes:
monitoring a specified event on a screen to be recorded in the process of recording the screen, wherein the specified event comprises at least one of a jump event of a display page, a touch event of a control and a change event of a display object;
determining an ROI (region of interest) on the screen to be recorded according to the monitored specified event;
and recording the ROI area on the screen to be recorded.
In a second aspect, there is provided a screen recording apparatus, the apparatus comprising:
the monitoring module is used for monitoring a specified event on a screen to be recorded in the process of recording the screen, wherein the specified event comprises at least one of a jump event of a display page, a touch event of a control and a change event of a display object;
the determining module is used for determining an ROI (region of interest) on the screen to be recorded according to the monitored specified event;
and the recording module is used for recording the ROI area on the screen to be recorded.
In a third aspect, a mobile terminal is provided, which comprises a processor, a memory and a computer program stored on the memory and operable on the processor, wherein the computer program, when executed by the processor, implements the steps of the screen recording method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the screen recording method according to the first aspect.
In the embodiment of the invention, in the process of recording the screen, monitoring a specified event on the screen to be recorded, determining an ROI (region of interest) on the screen to be recorded according to the monitored specified event, and recording the ROI on the screen to be recorded, wherein the specified event comprises at least one of a touch event of a control, a jump event of a display page and a change event of a display object; the method and the device can realize automatic identification of the ROI area on the screen to be recorded according to the specified event generated on the screen to be recorded and record the ROI area, so that the generated screen recording file can be prevented from containing more useless information, the size of the recording file is reduced, and the waste of storage space on the mobile terminal is reduced; in addition, in the embodiment of the invention, the ROI is recorded, so that the content of other areas on the screen to be recorded is prevented from being recorded, the privacy information of users displayed in other areas on the screen can be prevented from being leaked when the screen recording file is shared, and the user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a first method of a screen recording method according to an embodiment of the present invention;
fig. 2(a) is a schematic diagram illustrating a user touching a control on a screen to be recorded with a single finger in a screen recording method according to an embodiment of the present invention;
fig. 2(b) is a schematic diagram of a circumscribed rectangle of a control touched by a user in the screen recording method according to an embodiment of the present invention;
fig. 2(c) is a schematic diagram of a determined ROI area in the screen recording method according to an embodiment of the present invention;
fig. 3(a) is another schematic diagram of a user using a single finger to touch a control on a screen to be recorded in a screen recording method according to an embodiment of the present invention;
fig. 3(b) is another schematic diagram of a circumscribed rectangle of a control touched by a user in the screen recording method according to an embodiment of the present invention;
fig. 3(c) is a schematic diagram of a first area determined in a screen recording method according to an embodiment of the present invention;
fig. 3(d) is another schematic diagram of the determined ROI area in the screen recording method according to an embodiment of the present invention;
fig. 4(a) is a schematic diagram illustrating a user performing a touch operation using two fingers in a screen recording method according to an embodiment of the present invention;
fig. 4(b) is a schematic diagram of a determined touch position of two fingers in the screen recording method according to an embodiment of the present invention;
fig. 4(c) is a schematic diagram of a touch area determined according to the touch positions of two fingers in the screen recording method according to an embodiment of the present invention;
fig. 5(a) is a schematic diagram of an ROI area determined according to a sliding track of a user in the screen recording method according to an embodiment of the present invention;
fig. 5(b) is another schematic diagram of an ROI area determined according to a sliding track of a user in the screen recording method according to an embodiment of the present invention;
fig. 6(a) is a schematic diagram of a page in a screen recording file obtained in the screen recording method according to an embodiment of the present invention;
fig. 6(b) is another schematic diagram of a page in a screen recording file obtained in the screen recording method according to an embodiment of the present invention;
fig. 7 is a flowchart of a second method of a screen recording method according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of a screen recording apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a screen recording method which can be applied to mobile terminals such as mobile phones and tablet computers and can record screens of the mobile terminals. By adopting the method provided by the embodiment of the invention, the region of interest (ROI) needing to be recorded can be automatically identified according to the specified event occurring on the screen to be recorded, and then the ROI region is recorded. Therefore, other areas on the screen to be recorded can be prevented from being recorded, so that the quantity of useless information in the generated screen recording file is reduced, the size of the screen recording file is reduced, and the waste of storage space on the mobile terminal is reduced; in addition, in the embodiment of the invention, the ROI is recorded, so that the content of other areas on the screen to be recorded is prevented from being recorded, the privacy information of users displayed in other areas on the screen can be prevented from being leaked when the screen recording file is shared, and the user experience is improved.
Fig. 1 is a flowchart of a first method of a screen recording method according to an embodiment of the present invention, where the method shown in fig. 1 at least includes the following steps:
step 102, in the process of recording the screen, monitoring a specified event on the screen to be recorded, wherein the specified event comprises at least one of a jump event of a display page, a touch event of a control and a change event of a display object.
The execution main body of the method provided by the embodiment of the invention is the mobile terminal, and specifically, the execution main body can be a screen recording device installed on the mobile terminal. Generally, screen recording may be performed through a screen recording application installed on a mobile terminal. When a screen is required to be recorded, a user can open a screen recording application program on the mobile terminal and then record a screen through the screen recording application program.
Specifically, in the embodiment of the present invention, any one, two, or three of a jump event of a display page on a screen to be recorded, a touch event of a control, and a change event of a display object may be monitored.
And step 104, determining an ROI (region of interest) on a screen to be recorded according to the monitored specified event.
The specific process of determining the ROI area will be described below for different specified events, respectively.
In an embodiment of the present invention, the specified event may be a jump event of a display page on a screen to be recorded;
correspondingly, in this case, in the step 104, determining the ROI area on the screen to be recorded according to the monitored specified event specifically includes:
and if the display page is monitored to jump, determining the whole screen to be recorded as an ROI (region of interest).
The display page jumping refers to jumping a currently displayed page on a screen to be recorded from one page to another page, and in this case, the entire screen to be recorded needs to be recorded.
For example, the currently displayed page on the screen to be recorded is page a, and if it is monitored that the currently displayed page jumps from page a to page B, the whole screen to be recorded is determined as the ROI area.
Specifically, in the embodiment of the present invention, the mobile terminal may obtain whether the display page jumps from the page manager.
In the embodiment of the invention, whether the display page on the screen to be recorded jumps is monitored, and when the display page jumps, the whole screen to be recorded is determined as the ROI area, so that the jumping of the display page on the screen to be recorded is taken into account when the ROI area is determined, and the accuracy of the identified ROI area is higher.
In another embodiment of the present invention, the specified event may also be a touch event of a control on a screen to be recorded;
correspondingly, in this case, in the step 104, the determining of the ROI area on the screen to be recorded according to the monitored specified event specifically includes the following steps (1) and (2);
determining a touch area of a touch event according to the number of the monitored touch points;
step (2), determining a superposed region of the first region and a screen to be recorded as an ROI; the area of the first area is a set multiple of the area of the touch area, the shape of the first area is the same as that of the touch area, and the center point of the first area coincides with the center point of the touch area.
The control can be an icon of each application program on the screen to be recorded, an icon and a link of a functional module in each application program, a picture on the screen to be recorded, each virtual key and the like.
In the embodiment of the invention, when the user touches the control on the screen to be recorded, single-finger touch can be used, and multi-finger touch can also be used. When a user uses fingers with different numbers to touch the control, the number of touch points monitored by the mobile terminal is different, and the number of touch points monitored by the mobile terminal is generally equal to the number of fingers used by the user through touch. In the step (1), the specific process of determining the touch areas is different according to the monitored number of the touch points, and specifically includes:
if the number of the touch points is one, determining the circumscribed rectangle of the control as a touch area; and if the number of the touch points is multiple, determining a rectangular area containing each touch point as the touch area.
For convenience of understanding, the following will respectively describe a specific determination process of the touch area when the number of touch points is one and more.
If the number of the touch points is one, determining the positions of the touch points on a screen to be recorded, determining a control touched by a user according to the positions, and determining a circumscribed rectangle of the control as a touch area. Wherein, the circumscribed rectangle here can be the smallest circumscribed rectangle of the control.
In the embodiment of the invention, the circumscribed rectangle of the control is determined as the touch area, and the touch area with the same shape as the screen to be recorded is selected as the screen to be recorded is also rectangular, so that the subsequent determination of the ROI can be facilitated.
If the number of the touch points is multiple, determining the position of each touch point on the screen to be recorded, and then determining a rectangular area containing each position as a touch area.
In the embodiment of the invention, when the number of the touch points is multiple, the zooming operation executed by the user by using the controls such as pictures on the screen to be recorded by multiple fingers can be realized; or, some other operations performed on some controls on the screen to be recorded may also be performed, and are not described herein again.
Specifically, if the number of the touch points is two, the positions of the two touch points may be taken as two opposite angles of a rectangle, and the rectangular area determined by the positions may be determined as the touch area.
In the embodiment of the present invention, the determined touch area may be a rectangle, or may also be another shape such as an ellipse, a trapezoid, and the like.
And (3) after the touch control area is determined through the step (1), determining the ROI area according to the step (2). In the step (2), the value of the setting multiple may be any value such as 2, 1.5, 2.5, 3, 4, and the like, and the embodiment of the present invention does not limit the specific value of the setting multiple, and a user may select the specific value of the setting multiple according to an actual application scenario.
In addition, in the step (2), if the first region does not exceed the boundary of the screen to be recorded in the horizontal direction and the vertical direction, determining the first region as the ROI; if the first area exceeds the boundary of the screen to be recorded in the horizontal direction or the vertical direction, the part exceeding the boundary of the screen to be recorded is cut off, namely, only the area which does not exceed the boundary of the screen to be recorded on the first area is determined as the ROI area.
For ease of understanding, the following description will exemplify how the ROI region on the screen to be recorded is determined through the above steps (1) and (2). Of course, the following examples are illustrative, and the specific applications, values and the like mentioned in the following examples are not to be construed as limitations on the embodiments of the present invention.
For example, the user touches an icon of "set application" on the screen to be recorded with the index finger, as shown in fig. 2 (a); at this time, the mobile terminal monitors a touch point, determines that the icon of the 'set application program' is touched according to the position of the touch point on the screen to be recorded, determines the minimum circumscribed rectangle of the icon of the 'set application program' as the touch area of the user, and determines the touch area as shown in fig. 2 (b); specifically, the magnification times of the length and the height may be the same or different, the magnification times of the length and the height may be set according to actual needs, the touch area is magnified to obtain a first area, the first area is still rectangular, and the center point of the first area coincides with the center point of the touch area, in this case, because the first area exceeds the boundary of the screen to be recorded in the horizontal direction and the vertical direction, the first area is determined as the ROI area of the screen to be recorded, as shown in fig. 2 (c).
Of course, in the above process, when the user touches the icon of the "setup application" on the screen to be recorded with the index finger, the touch region shown in fig. 2(b) is not displayed on the screen to be recorded, and the ROI region shown in fig. 2(c) is not necessarily displayed on the screen to be recorded, which is only a schematic diagram drawn for facilitating understanding of the process of determining the ROI region, and does not represent that the process is dynamically displayed on the screen to be recorded.
Also for example, the user touches an icon of "weather application" on the screen to be recorded with the index finger, as shown in fig. 3 (a); at this time, the mobile terminal monitors a touch point, determines that the icon of the weather application program is touched according to the position of the touch point on the screen to be recorded, determines the minimum circumscribed rectangle of the icon of the weather application program as the touch area of the user, and determines the touch area as shown in fig. 3 (b); amplifying the touch area in length and height, specifically, the amplification factors in length and height may be the same or different, and the amplification factors in length and height may be set according to actual needs, respectively, and the touch area is amplified to obtain a first area, the first area is still rectangular, the first area coincides with a central point of the touch area, and the first area obtained after amplification is as shown in fig. 3 (c); because the enlarged first region exceeds the boundary of the screen to be recorded in the horizontal direction, the region exceeding the boundary of the screen to be recorded is cut off, only the part of the first region not exceeding the boundary of the screen to be recorded is reserved, namely the region where the first region is overlapped with the screen to be recorded is included, the region not exceeding the boundary of the screen to be recorded on the first region is determined as the ROI region of the screen to be recorded, and the determined ROI region is as shown in fig. 3 (d).
Of course, in the above process, when the user touches the icon of the "weather application" on the screen to be recorded with the index finger, the touch area shown in fig. 3(b) and the first area shown in fig. 3(c) are not displayed on the screen to be recorded, and the ROI area shown in fig. 3(d) is not necessarily displayed on the screen to be recorded.
For example, when viewing a picture shared by a friend, the user may perform a zoom operation on the picture using two fingers, as shown in fig. 4(a), the user performs a zoom operation on the picture shared by the user using a thumb and an index finger, the mobile terminal monitors two touch points and determines positions of the two touch points on the screen to be recorded, the two determined positions are shown in fig. 4(b), then the two positions are used as two opposite angles of a rectangular area, for example, an upper left corner and a lower right corner, to obtain a touch area, and the determined touch area is shown in fig. 4 (c); then, the process of determining the ROI according to the touch region may refer to the two examples, which are not described herein again.
Of course, in the above process, the touch position of the finger in fig. 4(b) and the touch area shown in fig. 4(c) are not displayed on the screen to be recorded, which is only a schematic diagram for facilitating understanding of the determination process of the touch area and does not represent that the process is dynamically displayed on the screen to be recorded.
In addition, in the embodiment of the present invention, the touch operation may be a sliding operation of a control;
correspondingly, in this case, in step 104, the process of determining the ROI on the screen to be recorded according to the monitored specified event is the same as the process of determining the touch event in which the specified event is the control, and details are not repeated here.
However, in this case, the center point of the touch area changes as the control slides.
Namely, as the control slides on the screen to be recorded, the position of the control changes continuously, and the determined touch area also changes continuously as the control slides, so that the touch area and the central point of the first area also change as the control slides.
In an embodiment of the present invention, the specified event may also be a change event of a display object on a screen to be recorded;
correspondingly, in this case, in the step 104, determining the ROI area on the screen to be recorded according to the monitored specified event specifically includes:
determining a region corresponding to the changed display object; determining the overlapping area of the second area and the screen to be recorded as an ROI area; the area of the second region is a set multiple of the area of the region corresponding to the display object, the shape of the second region is the same as the shape of the region corresponding to the display object, and the center point of the second region coincides with the center point of the region corresponding to the display object.
The display object may be a control, a picture, text content, and the like displayed on a screen to be recorded.
In the embodiment of the present invention, the circumscribed rectangle of the display object may be determined as the region corresponding to the display object.
Specifically, after the area corresponding to the display object is determined, the specific process of determining the ROI on the screen to be recorded is the same as the determination process of the touch event in which the specified event is the control, and the specific process may refer to the above embodiment, which is not described herein again.
In the embodiment of the invention, the ROI area needing to be recorded can be automatically identified according to the specified event on the screen to be recorded, the automatic identification of the ROI area is realized, the operation is convenient, and the ROI area on the screen to be recorded can be dynamically updated according to the specified event on the screen to be recorded, so that the determined ROI area is more consistent with the area which the user wants to record currently.
In addition, in the embodiment of the present invention, the user may further customize the ROI, and at this time, the user may perform a sliding operation on the screen to be recorded, and determine the ROI from a region surrounded by the sliding trajectory of the finger of the user on the screen to be recorded.
For example, if the sliding track of the sliding operation performed by the user on the screen to be recorded is a circle, a circular region surrounded by the sliding track is determined as the ROI region, as shown in fig. 5 (a); if the sliding track of the sliding operation performed by the user on the screen to be recorded is a rectangle, the rectangular region surrounded by the sliding track is determined as the ROI region, as shown in fig. 5 (b).
Of course, when the user performs the sliding operation on the screen to be recorded, the sliding track of the user is not displayed on the interface to be recorded, and the schematic diagrams listed in fig. 5(a) and 5(b) are only for the convenience of understanding of the user, and do not indicate that the sliding track is displayed on the screen to be recorded.
Correspondingly, in the embodiment of the present invention, when the specified event is a change event of a display object on the screen to be recorded and the display object is located in a user-defined area, the determining, in step 104, an ROI area on the screen to be recorded according to the monitored specified event includes:
determining a region corresponding to the changed display object; determining a superposed region of the third region and the self-defined region as an ROI region; the area of the third region is a set multiple of the area of the region corresponding to the display object, the shape of the third region is the same as the shape of the region corresponding to the display object, and the center point of the third region coincides with the center point of the region corresponding to the display object.
In the embodiment of the invention, a user-defined area can be determined through a sliding track obtained by a user executing a sliding operation on a screen to be recorded, whether a display object in the user-defined area changes or not is monitored in the recording process of the user-defined area, and if the display object in the currently recorded ROI area changes, an area corresponding to the changed display object is determined.
The area corresponding to the display object may be a circumscribed rectangle of the display object, for example, a minimum circumscribed rectangle.
In an embodiment of the present invention, the determining, as the ROI region, a region where the third region overlaps with the custom region includes:
if the third area is contained in the self-defined area, determining the third area as the ROI area which needs to be recorded finally; if the user-defined area is contained in the third area, determining the user-defined area as an ROI area needing to be recorded; if the third area and the custom area have a partial overlapping area, the overlapping area can be determined as the area which needs to be recorded finally.
In the embodiment of the invention, by setting the custom area and then monitoring the change of the display object in the custom area, only the display object in the area needing to be recorded can be changed according to the actual requirement, and the area needing to be recorded is determined in the custom area, so that the monitoring area is reduced, and the workload of the mobile terminal is further reduced.
In addition, in the embodiment of the present invention, in addition to determining the overlapping area of the third area and the custom area as the ROI area, in order to prevent some content from being unrecorded, a union of the third area and the custom area may be determined as the ROI area, that is, a region including the third area and the custom area is determined as the ROI area, and in this case, of course, the region including the third area and the custom area cannot exceed the boundary of the screen to be recorded.
The above only introduces the situation that the ROI area needing to be recorded is determined according to the changed display object in the user-defined area; in addition, the ROI area needing to be recorded can be determined in the user-defined area according to the touch event of the control. The specific process may refer to a specific process of determining an ROI area to be recorded according to a change of a display object in a user-defined area, which is not described herein again.
In addition, in the embodiment of the invention, if the ROI area which needs to be recorded currently is determined according to the user-defined area and the display page jumps in the process of recording the ROI area, the whole screen to be recorded is determined as the ROI area.
And 106, recording the ROI on the screen to be recorded.
In the embodiment of the invention, after the ROI area on the screen to be recorded is determined according to the specified event, the ROI area on the screen to be recorded is recorded.
After the ROI area on the screen to be recorded is recorded, a Video encoder, such as Advanced Video Coding (AVC), is used to encode the Video file of the recorded ROI area, so as to obtain a screen recording file of the ROI area.
In addition, when the ROI area on the screen to be recorded is determined and the ROI area is recorded, in order to facilitate the user to know which part of the area on the screen to be recorded is currently recorded, the method provided in the embodiment of the present invention further includes:
and highlighting the ROI area on a screen to be recorded.
Specifically, a frame of the ROI area may be displayed on the screen to be recorded, specifically, the frame may adopt a solid line or a dotted line, or, in order to make the ROI area more conspicuous, the frame of the ROI may be set to a relatively conspicuous color such as red.
In the embodiment of the invention, the determined ROI is displayed on the screen to be recorded, so that the user can clearly know the current recording area, and if the ROI identified according to the specified event is different from the area actually required to be recorded by the user, the user can conveniently adjust in time.
Specifically, in the embodiment of the present invention, as for the non-ROI area on the screen to be recorded except for the ROI area, the recording may be omitted, that is, only the ROI area on the screen to be recorded is recorded, so that the recorded screen recording file only includes the ROI area; or, during the recording process, the non-ROI area may also be recorded, but the non-ROI area in the recorded video needs to be processed.
Therefore, the method provided by the embodiment of the invention further comprises the following steps:
recording a non-ROI area on a screen to be recorded;
and processing the recorded non-ROI area so as to enable the pixel values of all pixel points of the non-ROI area to be the same.
Specifically, the pixel points in the non-ROI region may be set as white pixel points or black pixel points, so that the whole screen to be recorded is recorded in the obtained screen recording file, but the pixel values of all the pixel points in the non-ROI region on the screen to be recorded are the same. For example, all the pixel points in the non-ROI area on the screen to be recorded are black pixel points or white pixel points, and fig. 6(a) and 6(b) show the interface schematic diagram in the screen recording file finally obtained in the case of recording the non-ROI area, of course, fig. 6(a) and 6(b) are only described by taking the case of setting the pixel points in the non-ROI area to be black or white, and the pixel values of the pixel points in the non-ROI area are not limited thereto, as long as the pixel values of all the pixel points in the non-ROI area are the same.
In the embodiment of the present invention, a button for recording the non-ROI region may be provided, and when the user clicks the button, the non-ROI region is recorded, and the above operation is performed on the recorded non-ROI region, and if the user does not click the button, the non-ROI region is not recorded.
In the embodiment of the invention, when screen recording is carried out, a non-ROI (region of interest) can be selected to be recorded, and by processing the pixel values of the pixels of the recorded non-ROI, useless information in a screen recording file can be removed, so that the size of the screen recording file is reduced, and the condition that the storage space of a mobile terminal is wasted due to occupation of more storage space on the mobile terminal is avoided; in addition, since the non-ROI region is processed, even when screen recording file sharing is performed, other users cannot see the original real content of the non-ROI region, and therefore, when screen recording file sharing is performed, leakage of user privacy information is not caused.
The following describes a screen recording method according to an embodiment of the present invention with reference to specific embodiments.
Fig. 7 is a flowchart of a second method of a screen recording method according to an embodiment of the present invention, where the method shown in fig. 7 at least includes the following steps:
step 202, monitoring a specified event on a screen to be recorded in the screen recording process;
step 204, if it is monitored that the control on the screen to be recorded is touched, judging whether the number of touch points is one; if yes, go to step 206, otherwise go to step 208;
step 206, determining the minimum circumscribed rectangle of the touched control as the touch area of the user;
step 208, determining a touch area of the user from the rectangular area containing each touch point;
step 210, determining a first area according to the touch area;
the first area is obtained by amplifying the touch area by a set multiple in the horizontal direction and the vertical direction, and the first area is overlapped with the center point of the touch area.
Step 212, determining a superposition area of the first area and the screen to be recorded, and determining the superposition area as an ROI area;
if the first area does not exceed the boundary of the screen to be recorded in the horizontal direction and the vertical direction, the first area is determined as an ROI area, and if the first area exceeds the boundary of the screen to be recorded in the horizontal direction or the vertical direction, the area which does not exceed the boundary of the screen to be recorded in the first area is determined as the ROI area.
Step 214, recording the ROI area on the screen to be recorded.
The screen recording method provided by the embodiment of the invention monitors the specified event on the screen to be recorded, determines the ROI (region of interest) on the screen to be recorded according to the monitored specified event, and records the ROI on the screen to be recorded, wherein the specified event comprises at least one of a touch event of a control, a jump event of a display page and a change event of a display object; the method and the device can realize automatic identification of the ROI area on the screen to be recorded according to the specified event generated on the screen to be recorded and record the ROI area, so that the generated screen recording file can be prevented from containing more useless information, the size of the recording file is reduced, and the waste of storage space on the mobile terminal is reduced; in addition, in the embodiment of the invention, the ROI is recorded, so that the content of other areas on the screen to be recorded is prevented from being recorded, the privacy information of users displayed in other areas on the screen can be prevented from being leaked when the screen recording file is shared, and the user experience is improved.
An embodiment of the present invention further provides a screen recording apparatus, configured to execute the screen recording method provided in the foregoing embodiment, where the apparatus may be applied to a mobile terminal, fig. 8 is a schematic diagram of module components of the screen recording apparatus provided in the embodiment of the present invention, and the apparatus shown in fig. 8 includes:
the monitoring module 301 is configured to monitor a specified event on a screen to be recorded in a process of recording the screen, where the specified event includes at least one of a jump event of a display page, a touch event of a control, and a change event of a display object;
a determining module 302, configured to determine, according to the monitored specified event, an ROI area on the screen to be recorded;
a first recording module 303, configured to record the ROI on the screen to be recorded.
Optionally, the specified event is a jump event of a display page on the screen to be recorded;
the determining module 302 includes:
and the first ROI area determining unit is used for determining the whole screen to be recorded as the ROI area if the display page is monitored to jump.
Optionally, the specified event is a touch event of a control on the screen to be recorded;
the determining module 302 includes:
the first area determination unit is used for determining the touch area of the touch event according to the number of the monitored touch points;
a second ROI area determination unit, configured to determine an overlapping area between the first area and the screen to be recorded as the ROI area; the area of the first region is a set multiple of the area of the touch region, the shape of the first region is the same as the shape of the touch region, and the center point of the first region coincides with the center point of the touch region.
Optionally, the first area determining unit includes:
a first determining subunit, configured to determine, if the number of the touch points is one, a circumscribed rectangle of the control as the touch area;
and a second determining subunit, configured to determine, if the number of the touch points is multiple, a rectangular area including the multiple touch points as the touch area.
Optionally, the touch operation is a sliding operation of the control;
the center point of the touch area changes along with the sliding of the control.
Optionally, the specified event is a change event of a display object on the screen to be recorded;
the determining module 302 includes:
a second area determination unit, configured to determine an area corresponding to the changed display object;
a third ROI area determination unit, configured to determine a second area and an overlapping area of the screen to be recorded as the ROI area; the area of the second region is a set multiple of the area of the region corresponding to the display object, the shape of the second region is the same as the shape of the region corresponding to the display object, and the center point of the second region coincides with the center point of the region corresponding to the display object.
Optionally, the specified event is a change event of a display object on the screen to be recorded, and the display object is located in a user-defined area;
the determining module 302 includes:
a third area determination unit configured to determine an area corresponding to the changed display object;
a fourth ROI determining unit, configured to determine a region where the third region overlaps with the screen to be recorded as the ROI; the area of the third region is a set multiple of the area of the region corresponding to the display object, the shape of the third region is the same as the shape of the region corresponding to the display object, and the center point of the third region coincides with the center point of the region corresponding to the display object.
Optionally, the apparatus further comprises:
and the highlighting module is used for highlighting the ROI area on the screen to be recorded.
Optionally, the apparatus further comprises:
the second recording module is used for recording the non-ROI area on the screen to be recorded;
and the processing module is used for processing the recorded non-ROI area so as to enable the pixel values of all the pixel points of the non-ROI area to be the same.
The screen recording device provided by the embodiment of the invention can realize each process realized by the screen recording device in the method embodiments of fig. 1 to fig. 7, and is not repeated here to avoid repetition.
In the screen recording device provided by the embodiment of the invention, in the process of recording the screen, a specified event on the screen to be recorded is monitored, an ROI (region of interest) on the screen to be recorded is determined according to the monitored specified event, and the ROI on the screen to be recorded is recorded, wherein the specified event comprises at least one of a touch event of a control, a jump event of a display page and a change event of a display object; the method and the device can realize automatic identification of the ROI area on the screen to be recorded according to the specified event generated on the screen to be recorded and record the ROI area, so that the generated screen recording file can be prevented from containing more useless information, the size of the recording file is reduced, and the waste of storage space on the mobile terminal is reduced; in addition, in the embodiment of the invention, the ROI is recorded, so that the content of other areas on the screen to be recorded is prevented from being recorded, the privacy information of users displayed in other areas on the screen can be prevented from being leaked when the screen recording file is shared, and the user experience is improved.
Figure 9 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 9 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
In the embodiment of the present invention, the memory 409 stores a computer program, and when the computer program is executed by the processor 410, the following steps can be implemented:
monitoring a specified event on a screen to be recorded in the process of recording the screen, wherein the specified event comprises at least one of a jump event of a display page, a touch event of a control and a change event of a display object;
determining a region of interest (ROI) area on the screen to be recorded according to the monitored specified event;
and recording the ROI area on the screen to be recorded.
Optionally, when the computer program is executed by the processor 410, the specified event is a jump event of a display page on the screen to be recorded;
the determining the ROI area on the screen to be recorded according to the monitored specified event comprises the following steps:
and if the display page is monitored to jump, determining the whole screen to be recorded as the ROI.
Optionally, when the computer program is executed by the processor 410, the specified event is a touch event of a control on the screen to be recorded;
the determining the ROI area on the screen to be recorded according to the monitored specified event comprises the following steps:
determining a touch area of the touch event according to the number of the monitored touch points;
determining a first region and a superposed region of the screen to be recorded as the ROI region; the area of the first region is a set multiple of the area of the touch region, the shape of the first region is the same as that of the touch region, and the center point of the first region is coincident with the center point of the touch region.
Optionally, when the computer program is executed by the processor 410, determining the touch area of the touch event according to the monitored number of the touch points includes:
if the number of the touch points is one, determining the external rectangle of the control as the touch area;
and if the number of the touch points is multiple, determining a rectangular area containing the multiple touch points as the determined touch area.
Optionally, when the computer program is executed by the processor 410, the touch operation is a sliding operation of the control;
the central point of the touch area changes along with the sliding of the control.
Optionally, when the computer program is executed by the processor 410, the specified event is a change event of a display object on the screen to be recorded;
the determining the ROI area on the screen to be recorded according to the monitored specified event comprises the following steps:
determining a region corresponding to the changed display object;
determining a second area and a superposed area of the screen to be recorded as the ROI area; the area of the second region is a set multiple of the area of the region corresponding to the display object, the shape of the second region is the same as the shape of the region corresponding to the display object, and the center point of the second region coincides with the center point of the region corresponding to the display object.
Optionally, when the computer program is executed by the processor 410, the specified event is a change of a display object on the screen to be recorded, and the display object is located in a user-defined area;
the determining the ROI area on the screen to be recorded according to the monitored specified event comprises the following steps:
determining a region corresponding to the changed display object;
determining the overlapping area of the third area and the user-defined area as an ROI area; the area of the third region is a set multiple of the area of the region corresponding to the display object, the shape of the third region is the same as the shape of the region corresponding to the display object, and the center point of the third region coincides with the center line point of the region corresponding to the display object.
Optionally, when the computer program is executed by the processor 410, the method further comprises:
and displaying the ROI area on the screen to be recorded.
Optionally, when the computer program is executed by the processor 410, the method further comprises:
recording a non-ROI area on the screen to be recorded;
and processing the recorded non-ROI area so as to enable the pixel values of all pixel points of the non-ROI area to be the same.
In the process of recording the screen, the mobile terminal monitors the specified event on the screen to be recorded, determines the ROI (region of interest) on the screen to be recorded according to the monitored specified event, and records the ROI on the screen to be recorded, wherein the specified event comprises at least one of a touch event of a control, a jump event of a display page and a change event of a display object; the method and the device can realize automatic identification of the ROI area on the screen to be recorded according to the specified event generated on the screen to be recorded and record the ROI area, so that the generated screen recording file can be prevented from containing more useless information, the size of the recording file is reduced, and the waste of storage space on the mobile terminal is reduced; in addition, in the embodiment of the invention, the ROI is recorded, so that the content of other areas on the screen to be recorded is prevented from being recorded, the privacy information of users displayed in other areas on the screen can be prevented from being leaked when the screen recording file is shared, and the user experience is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 402, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the mobile terminal 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The mobile terminal 400 also includes at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the mobile terminal 400 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 9, the touch panel 4071 and the display panel 4061 are two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 408 is an interface through which an external device is connected to the mobile terminal 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 400 or may be used to transmit data between the mobile terminal 400 and external devices.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby integrally monitoring the mobile terminal. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The mobile terminal 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 400 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the above-mentioned screen recording method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the screen recording method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A method for screen recording, the method comprising:
in the process of recording the screen, monitoring specified events on the screen to be recorded, wherein the specified events comprise a jump event of a display page, a touch event of a control and a change event of a display object;
determining an ROI (region of interest) on the screen to be recorded according to the monitored specified event, and dynamically updating the ROI on the screen to be recorded;
recording the ROI area on the screen to be recorded;
when the specified event is a jump event of a display page on the screen to be recorded, the determining the ROI area on the screen to be recorded according to the monitored specified event includes:
if the display page is monitored to jump, determining the whole screen to be recorded as the ROI;
when the specified event is a touch event of a control on the screen to be recorded, the determining the ROI area on the screen to be recorded according to the monitored specified event includes:
determining a touch area of the touch event according to the number of the monitored touch points;
determining a first region and a superposed region of the screen to be recorded as the ROI region, wherein the central point of the first region is superposed with the central point of the touch region;
when the specified event is a change event of a display object on the screen to be recorded, the determining the ROI area on the screen to be recorded according to the monitored specified event includes:
determining a region corresponding to the changed display object;
determining a second region and a superposition region of the screen to be recorded as the ROI region, wherein the central point of the second region is superposed with the central point of the region corresponding to the display object.
2. The method of claim 1,
the area of the first region is a set multiple of the area of the touch region, and the shape of the first region is the same as that of the touch region.
3. The method of claim 1,
the area of the second region is a set multiple of the area of the region corresponding to the display object, and the shape of the second region is the same as the shape of the region corresponding to the display object.
4. The method of claim 1, wherein in case that the designated event is a change event of a display object on the screen to be recorded and the display object is located in a user-defined area,
the determining the ROI area on the screen to be recorded according to the monitored specified event comprises the following steps:
determining a region corresponding to the changed display object;
determining a superposition area of a third area and the custom area as the ROI area; the area of the third region is a set multiple of the area of the region corresponding to the display object, the shape of the third region is the same as the shape of the region corresponding to the display object, and the center point of the third region coincides with the center point of the region corresponding to the display object.
5. A screen recording apparatus, the apparatus comprising:
the monitoring module is used for monitoring a specified event on a screen to be recorded in the process of recording the screen, wherein the specified event comprises at least one of a jump event of a display page, a touch event of a control and a change event of a display object;
the determining module is used for determining the ROI on the screen to be recorded according to the monitored specified event and dynamically updating the ROI on the screen to be recorded;
the first recording module is used for recording the ROI area on the screen to be recorded;
under the condition that the specified event is a jump event of a display page on the screen to be recorded, the determining module comprises:
the first ROI area determination unit is used for determining the whole screen to be recorded as the ROI area if the display page is monitored to jump;
when the specified event is a touch event of a control on the screen to be recorded, the determining module includes:
the first area determination unit is used for determining a touch area of the touch event according to the number of the monitored touch points;
the second ROI area determining unit is used for determining a first area and a superposed area of the screen to be recorded as the ROI area, and the central point of the first area is superposed with the central point of the touch area;
when the specified event is a change event of a display object on the screen to be recorded, the determining module includes:
a second area determination unit, configured to determine an area corresponding to the changed display object;
and the third ROI area determining unit is used for determining a superposed area of a second area and the screen to be recorded as the ROI area, and the central point of the second area is superposed with the central point of the area corresponding to the display object.
6. The apparatus of claim 5,
the area of the first region is a set multiple of the area of the touch region, and the shape of the first region is the same as that of the touch region.
7. The apparatus of claim 5,
the area of the second region is a set multiple of the area of the region corresponding to the display object, and the shape of the second region is the same as the shape of the region corresponding to the display object.
8. The apparatus of claim 5, wherein in case that the designated event is a change event of a display object on the screen to be recorded and the display object is located in a user-defined area,
the determining module includes:
a third area determination unit configured to determine an area corresponding to the changed display object;
a fourth ROI region determining unit, configured to determine a region where a third region and the custom region overlap as the ROI region; the area of the third region is a set multiple of the area of the region corresponding to the display object, the shape of the third region is the same as the shape of the region corresponding to the display object, and the center point of the third region coincides with the center point of the region corresponding to the display object.
CN201810418413.XA 2018-05-04 2018-05-04 Screen recording method and device Active CN108920226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810418413.XA CN108920226B (en) 2018-05-04 2018-05-04 Screen recording method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810418413.XA CN108920226B (en) 2018-05-04 2018-05-04 Screen recording method and device

Publications (2)

Publication Number Publication Date
CN108920226A CN108920226A (en) 2018-11-30
CN108920226B true CN108920226B (en) 2022-04-29

Family

ID=64403237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810418413.XA Active CN108920226B (en) 2018-05-04 2018-05-04 Screen recording method and device

Country Status (1)

Country Link
CN (1) CN108920226B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656827B (en) * 2018-12-17 2021-10-19 北京云测信息技术有限公司 A control tree generation method and terminal device
CN110417991B (en) * 2019-06-18 2021-01-29 华为技术有限公司 Screen recording method and electronic device
CN111666024B (en) * 2020-05-28 2022-04-12 维沃移动通信(杭州)有限公司 Screen recording method and device and electronic equipment
CN113014987A (en) * 2021-02-22 2021-06-22 Oppo广东移动通信有限公司 Screen recording method and device, electronic equipment and storage medium
CN113448817A (en) * 2021-06-25 2021-09-28 未鲲(上海)科技服务有限公司 Page screen recording method and device and storage medium
CN113946256B (en) * 2021-10-28 2022-11-18 北京海泰方圆科技股份有限公司 A page operation recording method, device, medium and equipment
CN115460450B (en) * 2022-09-09 2025-03-25 北京有竹居网络技术有限公司 Screen recording method, device, electronic device, storage medium and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001127987A (en) * 1999-10-29 2001-05-11 Olympus Optical Co Ltd Method and device for recording image and recording medium
CN102333247A (en) * 2011-07-29 2012-01-25 深圳市万兴软件有限公司 Video recording device and method
CN105843494A (en) * 2015-01-15 2016-08-10 中兴通讯股份有限公司 Method and device for realizing region screen capture, and terminal
CN106406710A (en) * 2016-09-30 2017-02-15 维沃移动通信有限公司 Screen recording method and mobile terminal
CN107465958A (en) * 2017-09-07 2017-12-12 北京奇虎科技有限公司 A kind of video sharing method, apparatus, electronic equipment and medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8601172B2 (en) * 2011-05-19 2013-12-03 International Business Machines Corporation Recognition techniques to enhance automation in a computing environment
US20150277571A1 (en) * 2014-03-31 2015-10-01 Kobo Incorporated User interface to capture a partial screen display responsive to a user gesture
CN104836992A (en) * 2015-05-08 2015-08-12 无锡天脉聚源传媒科技有限公司 Surveillance video recording method and device
CN104967803B (en) * 2015-07-01 2018-01-19 广东欧珀移动通信有限公司 A kind of video recording method and device
CN105245809A (en) * 2015-09-30 2016-01-13 小米科技有限责任公司 Video recording method and video recording device
US10547776B2 (en) * 2016-09-23 2020-01-28 Apple Inc. Devices, methods, and graphical user interfaces for capturing and recording media in multiple modes

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001127987A (en) * 1999-10-29 2001-05-11 Olympus Optical Co Ltd Method and device for recording image and recording medium
CN102333247A (en) * 2011-07-29 2012-01-25 深圳市万兴软件有限公司 Video recording device and method
CN105843494A (en) * 2015-01-15 2016-08-10 中兴通讯股份有限公司 Method and device for realizing region screen capture, and terminal
CN106406710A (en) * 2016-09-30 2017-02-15 维沃移动通信有限公司 Screen recording method and mobile terminal
CN107465958A (en) * 2017-09-07 2017-12-12 北京奇虎科技有限公司 A kind of video sharing method, apparatus, electronic equipment and medium

Also Published As

Publication number Publication date
CN108920226A (en) 2018-11-30

Similar Documents

Publication Publication Date Title
CN108920226B (en) Screen recording method and device
CN109375890B (en) Screen display method and multi-screen electronic equipment
US12340234B2 (en) Application sharing method and electronic device
CN110874147B (en) Display method and electronic equipment
CN110196667B (en) Notification message processing method and terminal
CN110062105B (en) Interface display method and terminal equipment
CN109460177A (en) A kind of image processing method and terminal device
CN111142769A (en) Split-screen display method and electronic device
CN109240577B (en) Screen capturing method and terminal
CN108845853A (en) A kind of application program launching method and mobile terminal
CN111026299A (en) Information sharing method and electronic equipment
CN109525710B (en) A method and apparatus for accessing an application
CN110752981B (en) Information control method and electronic equipment
CN110209331A (en) Information cuing method and terminal
CN110196668B (en) Information processing method and terminal device
CN109491738A (en) A kind of control method and terminal device of terminal device
CN108595201A (en) A kind of application program update method and mobile terminal
CN111124706A (en) Application program sharing method and electronic equipment
CN108491130A (en) A kind of application programe switch-over method and mobile terminal
CN108536509A (en) A kind of application is attended to anything else method and mobile terminal
CN109407948B (en) Interface display method and mobile terminal
CN110750187A (en) Method for moving icon of application program and terminal device
CN110647277A (en) Control method and terminal equipment
CN111124231B (en) Picture generation method and electronic equipment
CN110597437A (en) Screen capturing method and terminal equipment

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