CN111083568A - Video data processing method and electronic equipment - Google Patents

Video data processing method and electronic equipment Download PDF

Info

Publication number
CN111083568A
CN111083568A CN201911286085.3A CN201911286085A CN111083568A CN 111083568 A CN111083568 A CN 111083568A CN 201911286085 A CN201911286085 A CN 201911286085A CN 111083568 A CN111083568 A CN 111083568A
Authority
CN
China
Prior art keywords
video
area
content
display
target video
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.)
Pending
Application number
CN201911286085.3A
Other languages
Chinese (zh)
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 CN201911286085.3A priority Critical patent/CN111083568A/en
Publication of CN111083568A publication Critical patent/CN111083568A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/4728End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for selecting a Region Of Interest [ROI], e.g. for requesting a higher resolution version of a selected region
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities

Abstract

The invention provides a video data processing method and electronic equipment, wherein the method comprises the following steps: determining an effective video area in a video picture based on the content of the video picture displayed by the electronic equipment; determining a target video area to be amplified and displayed based on the effective video area; the contents of the display target video area are enlarged. According to the technical scheme of the embodiment of the invention, the target video area with the display size needing to be adjusted can be determined in the video, the content of the target video area can be displayed in an enlarged mode, the effect of highlighting the content of the target video area is achieved, a user can conveniently watch the content of the target video area, and the user experience is improved.

Description

Video data processing method and electronic equipment
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a video data processing method and an electronic device.
Background
Today, it has become normal for users to watch videos on electronic devices. When watching a video, in one case, a non-content frame of the video occupies a part of an area of a video picture, resulting in a poor visual effect of a user watching the video, and in another case, if the user wants to watch the content of a certain area of the video in a focused manner, it is difficult for the electronic device to adjust the display size of the video according to the user's requirement, so as to highlight the content of the part of the area of the video. Therefore, a technical solution is urgently needed to solve the problem of how to highlight the content in a partial area of the video.
Disclosure of Invention
An embodiment of the present invention provides a video data processing method and an electronic device, which solve a problem how to highlight content in a partial area in a video.
To solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a video data processing method applied to an electronic device, including: determining an effective video area in a video picture based on the content of the video picture displayed by the electronic equipment; determining a target video area to be amplified and displayed based on the effective video area; the contents of the display target video area are enlarged.
In a second aspect, an embodiment of the present invention provides an electronic device, including: the effective video area determining module is used for determining an effective video area in the video picture based on the content of the video picture displayed by the electronic equipment; the target video area determining module is used for determining a target video area to be amplified and displayed based on the effective video area; and the content amplifying module is used for amplifying and displaying the content of the target video area.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the video data processing method according to the first aspect as described above.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when executed by a processor, the computer program implements the video data processing method according to the first aspect.
According to the technical scheme of the embodiment of the invention, firstly, an effective video area is determined in a video picture according to the content of the video picture displayed on the electronic equipment; then, based on the effective video area, determining a target video area to be amplified and displayed; finally, the contents of the display target video area are enlarged. By the embodiment of the invention, the target video area with the display size needing to be adjusted can be determined in the video, the content of the target video area can be displayed in an enlarged mode, the effect of highlighting the content of the target video area is achieved, a user can watch the content of the target video area conveniently, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a video data processing method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an application scenario for enlarging a region of interest of a user according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating another application scenario for enlarging a region of interest of a user according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating another application scenario for enlarging a region of interest of a user according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a process of determining a zoom-in parameter of a target video area according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating another application scenario for enlarging a region of interest of a user according to an embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating an effect of enlarging a region of interest of a user according to an embodiment of the present invention;
fig. 8 is a flowchart illustrating a process of identifying a target video region by video decoding according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating an application scenario for improving a video including non-content borders according to an embodiment of the present invention;
FIG. 10 is a flowchart illustrating a method for identifying non-content frames by video decoding according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating another application scenario for improving a video including a non-content border according to an embodiment of the present invention;
FIG. 12 is a diagram illustrating another application scenario for improving non-content-bounding video according to an embodiment of the present invention;
fig. 13 is a schematic block diagram of an electronic device according to an embodiment of the present invention;
fig. 14 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. 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 video data processing method, electronic equipment and a computer readable storage medium. The video data processing method can be applied to an electronic device side and executed by the electronic device, and the electronic device provided by the embodiment of the invention comprises but is not limited to intelligent terminals such as mobile phones, tablet computers, computers and wearable devices.
Fig. 1 is a flowchart illustrating a video data processing method according to an embodiment of the present invention. As described with reference to fig. 1, the video data processing method includes step S110, step S120, and step S130. The video data processing method in the exemplary embodiment of fig. 1 is explained in detail below.
Referring to fig. 1, in step S110, an effective video area is determined in a video picture based on the content of the video picture displayed by the electronic device.
In an example embodiment, some videos have non-content borders, i.e., display borders that are unrelated to the video content. The non-content border may be a meaningless border filled around the video content, such as a solid black area at the periphery of the video, or a static border to which the video content has been previously added.
In an example embodiment, in a video picture, the active video area may be an area where meaningful video content is displayed, so the active video area does not include a non-content border. And when the electronic equipment identifies the non-content frame, determining an effective video area in the video picture according to the area of the non-content frame. In general, in an electronic device, after a region other than a content frame is subtracted from a complete display screen, the remaining region is an effective video region. For example, a recorded video of a news program is played on an electronic device, in a display screen of the electronic device, meaningful video content in the news program video is located in the center of the display screen, a part of pure black area without actual meaning exists on the upper side, the lower side, the left side and the right side of the meaningful video content, an area where the meaningful video content is located is an effective video area in a video picture, and the pure black area is a non-content frame in the video picture.
In an example embodiment, a user opens a certain video for watching, the video is in a full-screen display state, if a non-content frame exists in the video, the user wants to reduce the non-content frame as much as possible and magnify meaningful video content as much as possible, and then the user can notify the electronic device to automatically identify the non-content frame in a display screen on the electronic device through a preset mode. The preset mode may be a preset border recognition control on the electronic device, and after the user selects the control through operations including but not limited to single click, double click, long press, and sliding, the electronic device starts to automatically recognize the non-content border in the display screen.
In an example embodiment, determining an active video area in a video picture based on content of the video picture displayed by an electronic device includes: determining a region with a color value meeting the requirement of a preset color value in a video picture based on the content of the video picture; and taking the area with the color value meeting the preset color value requirement as an effective video area.
In an example embodiment, the electronic device automatically identifies an invalid video pixel region, i.e., a region in the video picture that is not a content border, and an active video pixel region based on color values in the video picture.
In example embodiments, there are two ways for the electronic device to obtain color values for a video picture. In one mode, in the process of decoding a video source by a video decoder, color values of video pictures corresponding to the video source are acquired from decoded data. The second method is that after the video decoder decodes the video source, the display screen of the electronic device displays the video picture of the video source, and the electronic device detects the video picture displayed on the display screen at regular time to obtain the color value of the video picture. And when the content of the target video area is magnified and displayed, the video decoding speed is not influenced, but the content of the magnified and displayed target video area is slower than the content of the magnified and displayed target video area by several seconds, and a user can see the process that the target video area is obviously enlarged. The second approach is to detect the color value of the video picture only when the video picture is displayed on the display screen after decoding for a period of time.
It is noted that in the exemplary embodiment, the video decoder decodes the video source, resulting in decoded data for video pictures that are some time later in the future, e.g., 30 seconds later, and the video picture currently being played is decoded in advance.
In the exemplary embodiment, the color values include, but are not limited to, RGB values, RGBA values, and YUV values, and the form of the color values is not particularly limited by the present invention.
In an exemplary embodiment, based on the content of the video frame, an area having a color value meeting a preset color value requirement is determined in the video frame, and the description may refer to table 1. The color values of the video pictures of a certain key frame of a certain video are shown in table 1, and it should be noted that the specific values in table 1 are only an example. The predetermined color value requirement may be that, based on any one of the values at the four corners in table 1, the values differing by 10 or less are regarded as the same color value, i.e., the difference between a certain value and the base value is regarded as the same color value from-10 to 10. For example, if the value 1 at the top left corner is selected as the base color value, then if the values-10, -5, 0, 2, 5, 10 appear, these values and 1 are all considered to be the same color value. And, if in a row of values, if the difference between each value and the base color value is not more than 3, the row of values is considered to be the same color value as the base value.
1 1 2 3 85 1 2 3 4
2 3 2 3 1 4 5 8 1
1 82 82 52 82 82 52 62 2
1 95 34 57 14 57 57 78 1
2 42 98 74 82 52 82 52 3
1 45 6 57 6 6 26 47 2
3 45 57 6 35 73 82 6 1
2 4 4 5 3 1 78 6 2
TABLE 1
It should be noted that, in the example embodiment, in the aforementioned preset color value requirement, the "difference between numerical values is less than or equal to 10 and is regarded as the same color value" is only an example, and the difference between numerical values may also be less than or equal to 5, or the difference between numerical values is greater than 20, and a specific numerical user may set the difference by himself as needed; "if the difference between each numerical value and the basic color value is not more than 3", this is only an example, and may also be not more than 10, or not more than 20, and the specific numerical value user may set itself as required.
In an example embodiment, the preset base color value may also be a value in the outermost row or the outermost column of table 1, such as a value 2 in the 5 th row of the 1 st column or a value 3 in the 5 th column of the 8 th row of table 1. The base color value should be the color of the pixel in the outermost circle in the video picture, because in general, the non-content borders are outside the active video area.
In an example embodiment, it may be determined that, in table 1, the numerical values of the row 1, the row 2, the row 8, the column 1 and the column 9 are all the same color value of the base color value "1", according to the aforementioned preset color value requirement. The 1 st, 2 nd and 8 th rows are rows of the same color value, and the 1 st and 9 th columns are columns of the same color value.
In an exemplary implementation, assume that the original width and height of the video frame corresponding to the values in table 1 is 170 × 180, the width is 170, and the height is 180, where the value unit has no effect. In table 1, a row of values and a column of values occupy 10 pixels, and the size of the effective video area in the video is calculated as follows:
width of effective video: 170- (1+1) × 10 ═ 150;
height of effective video: 180- (2+1) × 10 ═ 150.
In an example embodiment, the active video area may also be an area selected according to a point of interest of a user, for example, a news program is played on a full screen by a player, news scrolling below a video screen of the player is very interested by the user, and an area where the news scrolling is located is selected as the active video area through an area selection box provided by a player interface.
In an example embodiment, determining an active video area in a video picture based on content of the video picture displayed by an electronic device includes: receiving a region selection input performed in the video picture by a user based on the content of the video picture; in response to a region selection input, an active video region is determined in the video picture.
In an example embodiment, a user opens a certain video for watching, the video source is in a full-screen display state, if the user has an interest in the content of a certain area in the video source and wants to watch the video content of the area in a focused manner, the playing of the video source is paused, and area selection input is performed in a video picture.
In an example embodiment, the user performs the region selection input by presetting a region selection box similar to a drawing tool in the video picture, and the user moves the position of the region selection box and adjusts the size of the region selection box through a preset operation so as to select an effective video region in the video picture, namely a region of interest of the user, through the region selection box. The preset operation includes, but is not limited to, a single click, a double click, a long press, or a drag. The area selection frame may be rectangular, circular, or other shapes, which is not limited in the present invention.
In an example embodiment, the user performs the region selection input by sliding a finger of the user in a video screen on the electronic device, and the electronic device determines that the user wants to select the effective video region, namely the user region of interest, according to a track of the sliding of the finger.
In an example embodiment, the user performs the region selection input may also be that a plurality of regions are preset in the video screen, for example, the entire video screen is divided into 9 regions of squared, upper left, middle left, lower left, upper middle, middle, lower middle, upper right, middle right, and lower right. And (4) the user performs preset operation to select a lower left area, and the lower left area is determined as an effective video area, namely the area of interest of the user. The preset operation may be a single click or a long press, which is not particularly limited in the present invention.
In an exemplary embodiment, a user watches a recorded video of a news program, the video is displayed in a certain player on an electronic device in a full screen mode, the user suddenly notices that the message about earthquake is broadcasted in a rolling mode at the bottom of the news program, the specific details of the message, such as time, place and death number, are very concerned, and the area broadcasted in the rolling mode at the bottom of the video screen is only a narrow line of characters. The user pauses the playing of the video, clicks a preset effective video area selection control in the player interface, then the player enters a preset effective video area selection mode, a rectangular area selector appears in a video picture in the effective video area selection mode, the user can drag the area selector in the video picture to change the position of the area selector, or adjust the length and the width of the area selector to change the size of the area selector, and then the user can select an area containing messages about earthquakes at the lowest part of news programs in the video picture through the area selector, and the area is determined as an effective video area in the video picture.
In another exemplary embodiment, a user suddenly generates an interest in video content of a certain area during video playing, and clicks a preset effective video area selection control, so that after the player enters a preset effective video area selection mode, an area selector appears in a video picture, and the electronic device suspends video playing by default in the effective video area selection mode without the need of suspending the video in advance by the user.
In step S120, a target video area to be displayed enlarged is determined based on the effective video area.
In an example embodiment, the effective video area determined in step S110 may be an area selected by a user or an area automatically recognized by the electronic device. The electronic device may determine the effective video area as a target video area to be displayed enlarged. For example, the electronic device automatically recognizes that an effective video area is obtained, which is directly used as a target video area for enlarged display.
In an example embodiment, the electronic device may also adjust the effective video area first, and then determine the adjusted effective video area as a target video area to be displayed in an enlarged manner.
In an example embodiment, when the valid video area is an area selected by a user, the valid video area may be a regular rectangular area selected by a preset rectangular area selector, an irregular-shaped area determined according to a trace of a user's finger sliding, or an irregular-shaped area selected by a user among a plurality of preset irregular-shaped areas. At this time, the irregular area may be modified into a rectangular area according to a preset rule, and the rectangular area is determined as a target area to be enlarged and displayed. For example, the effective video area determined by the electronic device according to the trace of the sliding of the finger of the user is an elliptical area with uneven edge, at this time, the effective video area is adjusted according to the maximum length value and the maximum width value of the effective video area, the effective video area is automatically corrected to be a rectangular area just containing the effective video area, and the rectangular area obtained after correction is determined as the target video area to be displayed in an enlarged mode.
In an example embodiment, when the valid video area is an area automatically identified by the electronic device, there may be a rectangular area in which the valid video area obtained after the automatic identification by the electronic device is not a specification. At this time, the effective video area can be modified into a standard rectangular area according to a preset rule, and the rectangular area is determined as a target area to be magnified and displayed.
In an example embodiment, the electronic device plays a video in a first display area, which is a screen area for displaying a video picture. For example, when a video is displayed full-screen on the electronic device, the first display area is equivalent to a display screen of the electronic device; when the upper half of the display screen of the electronic equipment plays a video and the lower half of the display screen is a comment area of the video, the first display area is the upper half of the display screen. The electronic device records the width of the first display area and the height of the first display area.
In an example embodiment, when the video is displayed full screen, the electronic device records the width of the target video area to be displayed enlarged, the height of the target video area, the width screenwidth of the display screen on the electronic device, the height screenheight of the display screen, and the position coordinates (x, y) of the upper left corner of the target video area. The width screenwidth of a display screen on the electronic equipment is equal to the width of the first display area; the high screen height of the display screen is equal to the height of the first display area. In addition, the specific position of the target video area in the display screen on the electronic device can be determined from the position coordinates (x, y) of the upper left corner of the target video area and the width and height of the target video area.
In step S130, the content of the display target video area is enlarged.
In an example embodiment, the enlarging display of the content of the target video area includes: acquiring the aspect ratio of a first display area; the first display area is a screen area used for displaying a video picture; determining a magnification parameter of the target video area according to the aspect ratio of the first display area and the aspect ratio of the target video area; amplifying and displaying the content of the target video area in the first display area according to the amplification parameter; the height of the target video area after the enlarged display is equal to the height of the first display area, and the width of the target video area after the enlarged display is less than or equal to the width of the first display area; or the width of the target video area after the enlarged display is equal to the width of the first display area, and the height of the target video area after the enlarged display is less than or equal to the height of the first display area.
In an example embodiment, the first display region may be a display screen or a partial region in the display screen. When the first display area is a display screen, a video picture of an original video is in a full-screen display state, and when the first display area is a part of the display screen, the state of non-full-screen display is possible, for example, a video is played in the upper half part of the electronic device, and the lower half part of the electronic device is a comment area of the video.
In an exemplary embodiment, a method for determining a zoom-in parameter of a target video area is described in the present invention by taking an original video as an example of a full-screen display state.
In the exemplary embodiment, the coordinate position of the target video area in the display screen on the electronic device can be determined from the position coordinates (x, y) of the upper left corner of the target video area obtained in step S110 and the width and height of the target video area. Assuming that the lower left corner of the display screen is the origin of coordinates, the coordinate position of the center point of the target video region in the display screen is (x + width/2, y-height/2). The coordinate position of the center point of the display screen is determined to be (screen width/2, screen height/2) according to the wide screen width of the display screen and the high screen height of the display screen obtained in step S110. And moving the target video area to the central point of the display screen according to the coordinate position of the central point of the target video area in the display screen and the coordinate position of the central point of the display screen, namely moving the target video area until the central point of the target video area is superposed with the central point of the display screen.
In the exemplary embodiment, the aspect ratio screen/screen of the display screen may be obtained from the wide screen width of the display screen and the high screen height of the display screen obtained in step S110. The aspect ratio width/height of the target video area is determined based on the width of the target video area to be enlarged and displayed and the height of the target video area obtained in step S110. Determining a magnification parameter of the target video area according to the aspect ratio of the display screen and the aspect ratio of the target video area, wherein the specific rule is as follows:
1. if the aspect ratio of the display screen is greater than 1 and the aspect ratio of the target video region is greater than the aspect ratio of the display screen, the width newwidth of the target video region after enlarged display is equal to the width of the display screen, namely newwidth ═ screen width, the height newheight of the target video region after enlarged display is equal to the height of the target video region multiplied by the width of the display screen and divided by the width of the target video region, namely newheight ═ screen width/width;
2. if the aspect ratio of the display screen is more than 1, the aspect ratio of the target video area is less than the aspect ratio of the display screen, and the aspect ratio of the target video area is more than 1, the width of the target video area after enlarged display is equal to the width of the display screen, namely newwidth is equal to screenwidth, the height of the target video area after enlarged display is equal to the height of the target video area multiplied by the width of the display screen and divided by the width of the target video area, namely newheight is equal to height ═ screenwidth/width;
3. if the aspect ratio of the display screen is greater than 1, the aspect ratio of the target video area is smaller than the aspect ratio of the display screen, and the aspect ratio of the target video area is smaller than 1, the height of the target video area after enlarged display is equal to the height of the display screen, namely newheight is equal to screenheight, the width of the target video area after enlarged display is equal to the width of the target video area multiplied by the height of the display screen and divided by the height of the target video area, namely newwidth is equal to width of screenheight/height;
4. if the aspect ratio of the display screen is less than 1, the aspect ratio of the target video area is greater than the aspect ratio of the display screen, and the aspect ratio of the target video area is greater than 1, the width of the target video area after enlarged display is equal to the width of the display screen, namely newwidth is equal to screenwidth, and the height of the target video area after enlarged display is equal to the height of the target video area multiplied by the width of the display screen and divided by the width of the target video area, namely newheight is equal to height ═ screenwidth/width;
5. if the aspect ratio of the display screen is less than 1, the aspect ratio of the target video area is greater than the aspect ratio of the display screen, and the aspect ratio of the target video area is less than 1, the height of the target video area after enlarged display is equal to the height of the display screen, namely newheight is equal to screenheight, the width of the target video area after enlarged display is equal to the width of the target video area multiplied by the height of the display screen and divided by the height of the target video area, namely newwidth is equal to width of screenheight/height;
6. if the aspect ratio of the display screen is less than 1 and the aspect ratio of the target video region is less than the aspect ratio of the display screen, the height of the target video region after enlarged display is equal to the height of the display screen, namely newheight ═ screenheight, and the width of the target video region after enlarged display is equal to the width of the target video region multiplied by the height of the display screen and divided by the height of the target video region, namely newwidth ═ screenheight/height.
In an exemplary embodiment, as can be seen from the above rule, when the height of the target video region after the enlarged display of the target video region is the same as the height of the display screen, the width of the target video region after the enlarged display is necessarily smaller than or equal to the height of the display screen; when the width of the target video region after the enlarged display of the target video region is the same as the width of the display screen, the height of the target video region after the enlarged display is necessarily smaller than or equal to the height of the display screen. Therefore, the target video area can be enlarged to the maximum extent, and the target video area can be ensured not to exceed the range of the display screen after being enlarged so that the whole content of the target video area can not be seen.
In an exemplary embodiment, the position coordinates of the upper left corner of the enlarged target video region may be determined according to the enlargement parameter of the target video region obtained by the foregoing rule. If the position coordinates of the upper left corner of the target video region moved to the center of the display screen are (x, y) with the screen center as the origin of coordinates, the position coordinates of the upper left corner of the target video region after the target video region is enlarged and displayed are ((newwidth x)/width, (newheight y)/height).
In another example embodiment, the video content is identified in the electronic device as a target video area, and other areas in the display screen are non-content borders. The electronic device captures a target video area having a size of 140 x 130, a width of 140 and a height of 130. Assuming that the resolution of the display screen of the electronic device under the landscape screen is 1920 × 1080, the aspect ratio of the display screen is 16/9. The electronic device also obtains a protocol video aspect ratio of 17:18 and an aspect ratio of the target video area of 14/13. Therefore, the aspect ratio of the display screen is greater than that of the target video area, which can be understood that the height of the target video area is too large, and the height of the target video area needs to be adapted as a reference, otherwise, the display screen cannot be placed in the target video area, and video stretching occurs. As a result, the height of the target video region after the enlarged display is 1080 and the width of the target video region after the enlarged display is 1080/13 × 14 — 1163. At the moment, the target video area is enlarged as much as possible, and although partial invalid pixel points still exist in the display screen, the partial invalid pixel points can avoid image stretching deformation. The video content in the video is amplified in an equal ratio, the display resolution of the protocol video is reduced, partial invalid pixel points are removed, and the pixel points displayed by the effective video content are not reduced, so that the display area of the video content is enlarged, and the watching experience of a user is improved.
In an example embodiment, the contents of other areas in the video picture are displayed in an enlarged manner in the first display area according to the enlargement parameter; and the other areas are areas except the target video area in the video picture. Specifically, when the content of the target video area is enlarged in the first display area according to the enlargement parameter, the original whole video picture is enlarged, and the actual effect is that after the content of the target video area is enlarged and displayed according to the enlargement parameter, the video content which is enlarged and displayed according to the enlargement parameter and is connected with the target video area still exists in the non-target video area in the first display area, instead of the black screen.
In another exemplary embodiment, the electronic device modifies the encoded data by the video decoder to achieve the purpose of displaying the content of the target video area in an enlarged manner, and the encoded data of the non-target video area is identified and discarded, so that the actual effect on the display screen is that only the content of the target video area displayed in an enlarged manner exists in the first display area, and the other areas are pure black areas, i.e. no content areas.
According to the video data processing method in the exemplary embodiment of fig. 1, first, a target video area to be displayed in an enlarged manner is determined in a video picture according to the content of the video picture displayed on an electronic device; then, the content of the display target video area is enlarged. By the embodiment of the invention, the target video area with the display size needing to be adjusted can be determined in the video, the content of the target video area can be displayed in an enlarged mode, the effect of highlighting the content of the target video area is achieved, a user can watch the content of the target video area conveniently, and the user experience is improved.
In an example embodiment, if the user is no longer interested in the target video area in the video frame or interested in removing the non-content border, the electronic device is notified to return to the original normal video playing mode.
Fig. 2 is a schematic diagram of an application scenario for enlarging a region of interest of a user according to an embodiment of the present invention.
Referring to fig. 2, a video content 210 is displayed in a display screen on an electronic device, the video content 210 being in a full-screen display state. After the user performs the region selection input on the video content 210, a user region of interest 220 is obtained, where the user region of interest 220 includes the user interested content.
Fig. 3 is a schematic diagram of another application scenario for enlarging a region of interest of a user according to an embodiment of the present invention.
Referring to fig. 3, a video content 310 is displayed in a display screen on an electronic device, the video content 310 being in a full-screen display state. In the video content 310, there is a user interest area 320 selected by the user, and the user interest area 320 contains the user interest content. The electronic device moves the user region of interest 320 toward the center of the display screen.
Fig. 4 is a schematic diagram of another application scenario for enlarging a region of interest of a user according to an embodiment of the present invention.
Referring to fig. 4, a video content 410 is displayed in a display screen on an electronic device, the video content 410 being in a full-screen display state. The user interest region 420 is located in the center of the video content 410, i.e., the center of the display screen, and the user interest region 420 contains the content of interest to the user. The electronic device displays the user region of interest 420 in an enlarged scale.
Fig. 5 is a flowchart illustrating a process of determining a zoom-in parameter of a target video area according to an embodiment of the present invention.
Referring to fig. 5, it is determined whether the device aspect ratio is greater than 1 in step S510.
In an example embodiment, the device aspect ratio, i.e. the aspect ratio of the display screen, in particular the width of the display screen divided by the height of the display screen, i.e. screen width/screen height. And judging whether the device aspect ratio is greater than 1 or not according to the width of the display screen and the height of the display screen recorded in the electronic device. If the device aspect ratio is greater than 1, go to step S520; if the device aspect ratio is less than 1, the process proceeds to step S550.
In step S520, it is determined whether the video effective aspect ratio is greater than the device aspect ratio.
In the exemplary embodiment, the effective aspect ratio of the video, that is, the aspect ratio of the target video area, that is, the aspect ratio of the user interested area, specifically, the width of the target video area is divided by the height of the target video area, that is, the width/height. And judging whether the effective video aspect ratio is larger than the device aspect ratio according to the width of the target video area, the height of the target video area and the device aspect ratio recorded in the electronic device in the step S510. If the video effective aspect ratio is greater than the device aspect ratio, the process proceeds to step S540, and if the video effective aspect ratio is less than the device aspect ratio, the process proceeds to step S530.
In step S530, it is determined whether the video effective aspect ratio is greater than 1.
According to the video effective aspect ratio in step S520, it is determined whether the video effective aspect ratio is greater than 1. If the effective aspect ratio of the video is greater than 1, go to step S540; if the video effective aspect ratio is less than 1, the process proceeds to step S570.
In step S540, the electronic device determines a target video region enlargement parameter, specifically, a final display width: the equipment width is wide; the final display is high: video active high device wide/video active wide.
In an example embodiment, the final display width is a width of the target video region after enlarged display, the device width is a width of the display screen, and the final display height is a height of the target video region after enlarged display, and the video effective width and the video effective height are a width and a height of the target video region, respectively. The electronic equipment derives: after the target video area is enlarged and displayed, the final display width is equal to the device width, and the final display height is equal to the effective video height multiplied by the device width divided by the effective video width.
In step S550, it is determined whether the video effective aspect ratio is greater than the device aspect ratio.
In an example embodiment, step S560 is entered if the video effective aspect ratio is greater than the device aspect ratio, and step S570 is entered if the video effective aspect ratio is less than the device aspect ratio.
In step S560, it is determined whether the video effective aspect ratio is greater than 1.
In an example embodiment, if the video effective aspect ratio is greater than 1, proceed to step S540; if the video effective aspect ratio is less than 1, the process proceeds to step S570.
In step S570, the electronic device determines the target video area magnification parameter, specifically, the final display height: the equipment is high; the final display is wide: video active wide device high/video active high
In an example embodiment, the device height is the height of the display screen. The electronic equipment derives: after the target video area is enlarged and displayed, the final display height is higher than the equipment height, and the final display width is equal to the effective width of the video multiplied by the equipment height divided by the effective height of the video.
Fig. 6 is a schematic diagram of another application scenario for enlarging a region of interest of a user according to an embodiment of the present invention.
Referring to fig. 6, a user interest area 610 is displayed in a display screen on the electronic device, and the user interest area 610 contains content of interest to the user. The user interested area 610 is in a full screen display state, specifically, the width of the user interested area 610 is the same as the width of the display screen of the electronic device, and the height of the user interested area 610 is smaller than the height of the display screen of the electronic device. On the display screen of the electronic device, the area other than the user interest area 610 is the other area 620.
In an exemplary embodiment, the region of interest 610 for the user is a partial region of a certain video selected by the user, and the electronic device enlarges the video entirely until the region of interest for the user is displayed in a full screen, so that the other region 620 includes video content of a partial region of the video connected to the region of interest for the user, and is not a region without content.
In another exemplary embodiment, the electronic device identifies the user interested region 610 selected by the user through the decoder, and discards a part of the encoded data in the original video that is not the user interested region 610 after sorting, so that the other regions 620 are no-content regions, and the specific effect is a pure black region.
Fig. 7 is a schematic diagram illustrating an effect of enlarging a region of interest of a user according to an embodiment of the present invention.
Referring to fig. 7, fig. 7 is a schematic diagram of a hypothetical effect that a complete video frame 710 does not actually exist. A user interest area 720 is displayed on the electronic device, wherein the user interest area 720 contains content of interest to the user. The user interested region 720 is in a full screen display state, specifically, the width of the user interested region 720 is the same as the width of the display screen of the electronic device, and the height of the user interested region 720 is smaller than the height of the display screen of the electronic device. On the display screen of the electronic device, the area other than the user interest area 720 is the other area 730. As can be seen from fig. 7, the other region 730 includes the video content of a portion of the complete video frame 710 connected to the user interest region 720.
Fig. 8 is a flowchart illustrating a process of identifying a target video region by video decoding according to an embodiment of the present invention.
Referring to fig. 8, in step S810, the video decoder decodes a video source.
In an exemplary embodiment, a video decoder decodes a certain video to obtain decoded data.
In step S820, a protocol size notification is performed.
In an example embodiment, the video decoder transmits the protocol size of the video source to the video display output device according to the decoded data.
In step S830, the target video area identification module identifies the decoded data.
In an exemplary embodiment, the target video region identification module identifies the decoded data, and if the decoded data belongs to the target video region, that is, the region of interest of the user, the process proceeds to step S870; if the decoded data belongs to the non-target video area, the process proceeds to step S850.
In step S840, an effective size notification.
In an example embodiment, the target video region identification module transmits the size of the target video region to the video display output device according to the decoded data.
In step S850, the non-target video region video-decoded data is acquired.
In an example embodiment, decoded data from other regions in the video source outside of the user-selected region of interest is obtained.
In step S860, the decoded data is sorted and part of the data is discarded.
In an example embodiment, there may be some useful data in the decoded data of other regions, and after the data is collated, the useful data is transmitted to the target video region for video decoding, and then the data is reintegrated, and useless data is discarded.
In step S870, the target video region video-decoded data is acquired.
In an example embodiment, decoded data of a user-selected region of interest in a video source is obtained.
In step S880, the data is transmitted to the video display output device.
In an example embodiment, the modified decoded data is transmitted to a video display output device, such as a display screen of an electronic device. Since the decoded data is modified and the video size is synchronized to the video display output device, the interface display layer does not need to be processed any more at this time, and the content of the target video area can be displayed on the video display output device in an enlarged manner. The non-target video area on the video display output device is displayed as a solid black area because the encoded data is discarded.
Fig. 9 is a diagram illustrating an application scenario for improving a video including a non-content border according to an embodiment of the present invention.
Referring to fig. 9, a display screen on an electronic device, on which a video is playing, is divided into a video content 910 and a non-content border 920, where the video content 910 is located in the center of the display screen, and the non-content border 920 surrounds the video content 910. The non-content border 920 does not have actual video content and appears as a solid black area.
Fig. 10 is a flowchart illustrating a process of identifying non-content frames by video decoding according to an embodiment of the present invention.
Referring to fig. 10, in step S1010, video is decoded.
In an example embodiment, a video decoder decodes a video source containing a non-content border.
In step S1020, decoded data is obtained.
In an exemplary embodiment, according to the decoding of the video decoder in step S1010, the decoded data of the video source containing the non-content frame is obtained.
In step S1030, a video non-content area is detected.
In an example embodiment, the non-content border is identified according to the decoded data, and the detection mode may be manual identification or automatic identification. The manual identification can be that the user selects the video content without the non-content frame in the video picture, and can also be other manual operations. The automatic identification is that the electronic equipment obtains the color value of the video picture according to the decoded data, and then determines the video content and the non-content frame in the video picture according to the preset color value condition.
In step S1040, the true display scale is acquired.
In an example embodiment, after determining video content and a non-content frame in a video picture, the video content is taken as a target video area, the whole display screen is taken as a first display area, and according to an aspect ratio of the target video area and an aspect ratio of the first display area, a magnification parameter of the target video area is determined, that is, a true display proportion of the video content can be obtained.
In step S1050, the display screens are matched.
In an example embodiment, video content with a portion of non-content borders removed is displayed full screen in a display screen according to a true display scale of the video content. It should be noted that, in order to ensure that the video is not stretched and deformed, the non-content border may not be completely removed, but the video content is displayed in a full screen mode, which significantly improves the visual effect.
Fig. 11 is a diagram illustrating another application scenario for improving a video including a non-content border according to an embodiment of the present invention.
Referring to fig. 11, when a video is being played on a display screen on an electronic device, the display screen is divided into a video content 1110 and a non-content border 1120, where the non-content border 1120 is an invalid video pixel region, and there is no actual video content, and the non-content border is represented as a pure black region. Video content 1110 is centered on the display screen and a non-content border 1120 surrounds the video content 1110. The electronic device displays the video content 1110 in an enlarged scale.
Fig. 12 is a diagram illustrating another application scenario for improving non-content-bounding video according to an embodiment of the present invention.
Referring to fig. 12, video content 1210 is displayed in a display screen on an electronic device. The height of the video content 1210 is the same as the height of the display screen and the width of the video content 1210 is less than the width of the display screen. The two sides of the video content 1210 in the display screen are non-content frames 1220, and the non-content frames 1220 are invalid video pixel regions, and have no actual video content and are represented as pure black regions.
Fig. 13 is a schematic block diagram of an electronic device according to an embodiment of the present invention.
Referring to fig. 13, the electronic device 1300 includes: an active video area determination module 1310, a target video area determination module 1320, and a content magnification module 1330. The effective video area determining module 1310 is configured to determine an effective video area in a video picture based on content of the video picture displayed by the electronic device; a target video area determination module 1320, configured to determine a target video area to be displayed in an enlarged manner based on the effective video area; a content enlarging module 1330, configured to enlarge the content of the display target video area.
In some embodiments of the present invention, based on the above solution, the effective video area determining module 1310 includes: the color value determining unit is used for determining an area with a color value meeting the requirement of a preset color value in the video picture based on the content of the video picture; and the effective video area determining unit is used for taking the area with the color value meeting the requirement of the preset color value as an effective video area.
In some embodiments of the present invention, based on the above solution, the effective video area determining module 1310 includes: a region selection input receiving unit for receiving a region selection input performed in the video picture by a user based on the content of the video picture; and the to-be-magnified region determining unit is used for responding to the region selection input and determining the effective video region in the video picture.
In some embodiments of the present invention, based on the above scheme, the content amplification module includes: an aspect ratio acquisition unit configured to acquire an aspect ratio of the first display region; the first display area is a screen area used for displaying a video picture; a magnification parameter determination unit configured to determine a magnification parameter of the target video region based on the aspect ratio of the first display region and the aspect ratio of the target video region; a target content enlargement unit for enlarging and displaying the content of the target video area in the first display area according to the enlargement parameter; the height of the target video area after the enlarged display is equal to the height of the first display area, and the width of the target video area after the enlarged display is less than or equal to the width of the first display area; or the width of the target video area after the enlarged display is equal to the width of the first display area, and the height of the target video area after the enlarged display is less than or equal to the height of the first display area.
According to the technical scheme provided by the embodiment of the invention, firstly, an effective video area is determined in a video picture according to the content of the video picture displayed on the electronic equipment; then, according to the effective video area, determining a target video area to be amplified and displayed; finally, the contents of the display target video area are enlarged. By the embodiment of the invention, the target video area with the display size needing to be adjusted can be determined in the video, the content of the target video area can be displayed in an enlarged mode, the effect of highlighting the content of the target video area is achieved, a user can watch the content of the target video area conveniently, and the user experience is improved.
It should be noted that the electronic device provided in the embodiment of the present invention can implement the foregoing processes of the video data processing method, and achieve the same functions and effects, which are not repeated here.
Fig. 14 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, and as shown in fig. 14, the electronic device 1400 includes, but is not limited to: radio frequency unit 1401, network module 1402, audio output unit 1403, input unit 1404, sensor 1405, display unit 1406, user input unit 1407, interface unit 1408, memory 1409, processor 1410, and power supply 1411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 14 does not constitute a limitation of the electronic device, and that the electronic device 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 electronic device 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.
The memory 1409 stores therein a computer program that, when executed by the processor 1410, implements the following process: determining an effective video area in a video picture based on the content of the video picture displayed by the electronic equipment; determining a target video area to be amplified and displayed based on the effective video area; the contents of the display target video area are enlarged.
Alternatively, the computer program, when executed by the processor 1410, determines an effective video area in a video picture based on content of the video picture displayed by the electronic device, including: determining a region with a color value meeting the requirement of a preset color value in a video picture based on the content of the video picture; and taking the area with the color value meeting the preset color value requirement as an effective video area.
Alternatively, the computer program, when executed by the processor 1410, determines an effective video area in a video picture based on content of the video picture displayed by the electronic device, including: receiving a region selection input performed in the video picture by a user based on the content of the video picture; in response to a region selection input, an active video region is determined in the video picture.
Alternatively, the computer program, when executed by the processor 1410, enlarges and displays the content of the target video region, including: acquiring the aspect ratio of a first display area; the first display area is a screen area used for displaying a video picture; determining a magnification parameter of the target video area according to the aspect ratio of the first display area and the aspect ratio of the target video area; amplifying and displaying the content of the target video area in the first display area according to the amplification parameter; the height of the target video area after the enlarged display is equal to the height of the first display area, and the width of the target video area after the enlarged display is less than or equal to the width of the first display area; or the width of the target video area after the enlarged display is equal to the width of the first display area, and the height of the target video area after the enlarged display is less than or equal to the height of the first display area.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1401 may be configured to receive and transmit signals during a message transmission or call process, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 1410; in addition, the uplink data is transmitted to the base station. In general, radio unit 1401 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. The radio unit 1401 may also communicate with a network and other devices via a wireless communication system.
The electronic device provides wireless, wide-width internet access to the user via the network module 1402, such as assisting the user in emailing, browsing web pages, and accessing streaming media.
The audio output unit 1403 can convert audio data received by the radio frequency unit 1401 or the network module 1402 or stored in the memory 1409 into an audio signal and output as sound. Also, the audio output unit 1403 may also provide audio output related to a specific function performed by the electronic device 1400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1404 is for receiving an audio or video signal. The input Unit 1404 may include a Graphics Processing Unit (GPU) 14041 and a microphone 14042, the Graphics processor 14041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1406. The image frames processed by the graphics processor 14041 may be stored in the memory 1409 (or other storage medium) or transmitted via the radio unit 1401 or the network module 1402. The microphone 14042 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 1401 in case of a phone call mode.
The electronic device 1400 also includes at least one sensor 1405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 14061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 14061 and/or the backlight when the electronic device 1400 is moved to the ear. As one type of motion sensor, an 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 an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 1405 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 1406 is used to display information input by the user or information provided to the user. The Display unit 1406 may include a Display panel 14061, and the Display panel 14061 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 1407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 1407 includes a touch panel 14071 and other input devices 14072. The touch panel 14071, also referred to as a touch screen, may collect touch operations by a user (e.g., operations by a user on or near the touch panel 14071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 14071 may include two parts of 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 1410, receives a command from the processor 1410, and executes the command. In addition, the touch panel 14071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 14071, the user input unit 1407 may include other input devices 14072. In particular, the other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 14071 may be overlaid on the display panel 14061, and when the touch panel 14071 detects a touch operation on or near the touch panel 14071, the touch operation is transmitted to the processor 1410 to determine the type of the touch event, and then the processor 1410 provides a corresponding visual output on the display panel 14061 according to the type of the touch event. Although the touch panel 14071 and the display panel 14061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 14071 and the display panel 14061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 1408 is an interface for connecting an external device to the electronic apparatus 1400. 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 1408 may be used to receive input from an external device (e.g., data information, power, etc.) and transmit the received input to one or more elements within the electronic apparatus 1400 or may be used to transmit data between the electronic apparatus 1400 and the external device.
The memory 1409 may be used to store software programs as well as various data. The memory 1409 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for 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. In addition, the memory 1409 can include high speed random access memory and can 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 1410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 1409 and calling data stored in the memory 1409, thereby performing overall monitoring of the electronic device. Processor 1410 may include one or more processing units; preferably, the processor 1410 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 processor 1410.
The electronic device 1400 may further include a power source 1411 (e.g., a battery) for supplying power to various components, and preferably, the power source 1411 may be logically connected to the processor 1410 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 1400 includes some functional modules that are not shown, and are not described herein.
According to the technical scheme provided by the embodiment of the invention, firstly, an effective video area is determined in a video picture according to the content of the video picture displayed on the electronic equipment; then, according to the effective video area, determining a target video area to be amplified and displayed; finally, the contents of the display target video area are enlarged. By the embodiment of the invention, the target video area with the display size needing to be adjusted can be determined in the video, the content of the target video area can be displayed in an enlarged mode, the effect of highlighting the content of the target video area is achieved, a user can watch the content of the target video area conveniently, and the user experience is improved.
The electronic device in the embodiment of the present application can implement the processes of the foregoing video data processing method, and achieve the same effects and functions, which are not repeated here.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the above-mentioned video data processing method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
Further, an 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 video data processing method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition. 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 solution 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 above-mentioned embodiment 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 (10)

1. A video data processing method applied to electronic equipment is characterized by comprising the following steps:
determining an effective video area in a video picture based on the content of the video picture displayed by the electronic equipment;
determining a target video area to be amplified and displayed based on the effective video area;
and amplifying and displaying the content of the target video area.
2. The method according to claim 1, wherein the determining an active video area in the video picture based on the content of the video picture displayed by the electronic device comprises:
determining a region with a color value meeting the requirement of a preset color value in the video picture based on the content of the video picture;
and taking the area with the color value meeting the requirement of the preset color value as the effective video area.
3. The method according to claim 1, wherein the determining an active video area in the video picture based on the content of the video picture displayed by the electronic device comprises:
receiving a region selection input performed in the video picture by a user based on the content of the video picture;
in response to the region selection input, determining the active video region in the video picture.
4. The method according to any one of claims 1 to 3, wherein the enlarging and displaying the content of the target video area comprises:
acquiring the aspect ratio of a first display area; the first display area is a screen area used for displaying the video picture;
determining a magnification parameter of the target video area according to the aspect ratio of the first display area and the aspect ratio of the target video area;
according to the magnification parameter, displaying the content of the target video area in the first display area in a magnified way;
the height of the target video area after the enlarged display is equal to the height of the first display area, and the width of the target video area after the enlarged display is smaller than or equal to the width of the first display area; or the width of the target video area after the enlarged display is equal to the width of the first display area, and the height of the target video area after the enlarged display is less than or equal to the height of the first display area.
5. An electronic device, comprising:
the effective video area determining module is used for determining an effective video area in a video picture based on the content of the video picture displayed by the electronic equipment;
the target video area determining module is used for determining a target video area to be amplified and displayed based on the effective video area;
and the content amplifying module is used for amplifying and displaying the content of the target video area.
6. The electronic device of claim 5, wherein the active video area determination module comprises:
the color value determining unit is used for determining an area with a color value meeting the requirement of a preset color value in the video picture based on the content of the video picture;
and the effective video area determining unit is used for taking the area with the color value meeting the requirement of the preset color value as the effective video area.
7. The electronic device of claim 5, wherein the active video area determination module comprises:
a region selection input receiving unit for receiving a region selection input performed in the video picture by a user based on the content of the video picture;
a to-be-enlarged region determining unit configured to determine the effective video region in the video picture in response to the region selection input.
8. The electronic device of any of claims 5-7, wherein the content amplification module comprises:
an aspect ratio acquisition unit configured to acquire an aspect ratio of the first display region; the first display area is a screen area used for displaying the video picture;
a magnification parameter determination unit configured to determine a magnification parameter of the target video region based on the aspect ratio of the first display region and the aspect ratio of the target video region;
the target content amplifying unit is used for amplifying and displaying the content of the target video area in the first display area according to the amplifying parameter;
the height of the target video area after the enlarged display is equal to the height of the first display area, and the width of the target video area after the enlarged display is smaller than or equal to the width of the first display area; or the width of the target video area after the enlarged display is equal to the width of the first display area, and the height of the target video area after the enlarged display is less than or equal to the height of the first display area.
9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the video data processing method of any of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, implements the video data processing method according to any one of claims 1 to 4.
CN201911286085.3A 2019-12-13 2019-12-13 Video data processing method and electronic equipment Pending CN111083568A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911286085.3A CN111083568A (en) 2019-12-13 2019-12-13 Video data processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911286085.3A CN111083568A (en) 2019-12-13 2019-12-13 Video data processing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111083568A true CN111083568A (en) 2020-04-28

Family

ID=70314594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911286085.3A Pending CN111083568A (en) 2019-12-13 2019-12-13 Video data processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111083568A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757161A (en) * 2020-06-19 2020-10-09 广州博冠智能科技有限公司 High-definition video playing content switching method, device, equipment and storage medium
CN111757162A (en) * 2020-06-19 2020-10-09 广州博冠智能科技有限公司 High-definition video playing method, device, equipment and storage medium
CN112367559A (en) * 2020-10-30 2021-02-12 北京达佳互联信息技术有限公司 Video display method and device, electronic equipment, server and storage medium
CN112911362A (en) * 2021-01-29 2021-06-04 广州虎牙科技有限公司 Video image moving and zooming method and device, electronic equipment and readable storage medium
CN113891040A (en) * 2021-09-24 2022-01-04 深圳Tcl新技术有限公司 Video processing method, video processing device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576996A (en) * 2009-06-05 2009-11-11 腾讯科技(深圳)有限公司 Processing method and device for realizing image zooming
CN101951493A (en) * 2010-09-25 2011-01-19 中兴通讯股份有限公司 Mobile terminal and method for partially amplifying far-end images in video call thereof
US20140320587A1 (en) * 2013-04-26 2014-10-30 Ozgur Oyman Interactive zooming in video conferencing
CN105578275A (en) * 2015-12-16 2016-05-11 小米科技有限责任公司 Video display method and apparatus
CN106231278A (en) * 2016-08-08 2016-12-14 深圳Tcl数字技术有限公司 Method for processing video frequency and television system
CN108769803A (en) * 2018-06-29 2018-11-06 北京字节跳动网络技术有限公司 Recognition methods, method of cutting out, system, equipment with frame video and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576996A (en) * 2009-06-05 2009-11-11 腾讯科技(深圳)有限公司 Processing method and device for realizing image zooming
CN101951493A (en) * 2010-09-25 2011-01-19 中兴通讯股份有限公司 Mobile terminal and method for partially amplifying far-end images in video call thereof
US20140320587A1 (en) * 2013-04-26 2014-10-30 Ozgur Oyman Interactive zooming in video conferencing
CN105578275A (en) * 2015-12-16 2016-05-11 小米科技有限责任公司 Video display method and apparatus
CN106231278A (en) * 2016-08-08 2016-12-14 深圳Tcl数字技术有限公司 Method for processing video frequency and television system
CN108769803A (en) * 2018-06-29 2018-11-06 北京字节跳动网络技术有限公司 Recognition methods, method of cutting out, system, equipment with frame video and medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757161A (en) * 2020-06-19 2020-10-09 广州博冠智能科技有限公司 High-definition video playing content switching method, device, equipment and storage medium
CN111757162A (en) * 2020-06-19 2020-10-09 广州博冠智能科技有限公司 High-definition video playing method, device, equipment and storage medium
CN112367559A (en) * 2020-10-30 2021-02-12 北京达佳互联信息技术有限公司 Video display method and device, electronic equipment, server and storage medium
CN112911362A (en) * 2021-01-29 2021-06-04 广州虎牙科技有限公司 Video image moving and zooming method and device, electronic equipment and readable storage medium
CN112911362B (en) * 2021-01-29 2024-03-08 广州虎牙科技有限公司 Video picture moving and scaling method and device, electronic equipment and readable storage medium
CN113891040A (en) * 2021-09-24 2022-01-04 深圳Tcl新技术有限公司 Video processing method, video processing device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108182043B (en) Information display method and mobile terminal
CN111083568A (en) Video data processing method and electronic equipment
CN107977652B (en) Method for extracting screen display content and mobile terminal
CN110096326B (en) Screen capturing method, terminal equipment and computer readable storage medium
CN111026301B (en) Display method and electronic equipment
CN111381924B (en) Interface display method, electronic equipment and medium
CN109525710B (en) Method and device for accessing application program
CN107330347B (en) Display method, terminal and computer readable storage medium
CN108920226B (en) Screen recording method and device
CN108881617B (en) Display switching method and mobile terminal
CN109558046B (en) Information display method and terminal equipment
CN109407920B (en) Status icon display method, status icon processing method and related equipment
WO2019223569A1 (en) Information processing method and mobile terminal
CN111026316A (en) Image display method and electronic equipment
CN110750189B (en) Icon display method and device
CN111562896B (en) Screen projection method and electronic equipment
CN111601139A (en) Information display method, electronic device, and storage medium
CN110990172A (en) Application sharing method, first electronic device and computer-readable storage medium
CN108804628B (en) Picture display method and terminal
WO2019129264A1 (en) Interface display method and mobile terminal
CN110941378B (en) Video content display method and electronic equipment
CN110209324B (en) Display method and terminal equipment
CN109597546B (en) Icon processing method and terminal equipment
CN111309429A (en) Display method and electronic equipment
CN107908342B (en) Method for displaying message and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200428

RJ01 Rejection of invention patent application after publication