CN110505512A - Played in full screen method, terminal device and computer readable storage medium - Google Patents

Played in full screen method, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN110505512A
CN110505512A CN201910615315.XA CN201910615315A CN110505512A CN 110505512 A CN110505512 A CN 110505512A CN 201910615315 A CN201910615315 A CN 201910615315A CN 110505512 A CN110505512 A CN 110505512A
Authority
CN
China
Prior art keywords
play area
video
played
frame
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910615315.XA
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.)
MIGU Video Technology Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
MIGU Video Technology Co Ltd
MIGU Culture Technology 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 MIGU Video Technology Co Ltd, MIGU Culture Technology Co Ltd filed Critical MIGU Video Technology Co Ltd
Priority to CN201910615315.XA priority Critical patent/CN110505512A/en
Publication of CN110505512A publication Critical patent/CN110505512A/en
Pending legal-status Critical Current

Links

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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present embodiments relate to information technology field, a kind of played in full screen method, terminal device and computer readable storage medium are disclosed.In the present invention, a kind of played in full screen method, comprising: determine the play area of video;Wherein, play area are as follows: for effectively showing the region of video content;Obtain the aspect ratio of play area;According to aspect ratio, played in full screen is carried out to play area.The embodiment of the invention also provides a kind of terminal device and computer readable storage mediums;Allow to show video content more in large area.

Description

Played in full screen method, terminal device and computer readable storage medium
Technical field
The present embodiments relate to information technology field, in particular to a kind of played in full screen method, terminal device and calculating Machine readable storage medium storing program for executing.
Background technique
With the continuous development of information technology, watching video becomes the common entertainment way of people.Further, in order to obtain Better viewing effect is obtained, user is generally preferred that and watched by the way of played in full screen.
However, it is found by the inventors that at least there are the following problems in the related technology: if video itself includes the regions such as black surround, Video after played in full screen necessarily includes the regions such as black surround, leads to not show video content more in large area.
Summary of the invention
Embodiment of the present invention is designed to provide a kind of played in full screen method, terminal device and computer-readable storage Medium allows to show video content more in large area.
In order to solve the above technical problems, embodiments of the present invention provide a kind of played in full screen method, comprising: determine view The play area of frequency;Wherein, play area are as follows: for effectively showing the region of video content;Obtain the picture ratio of play area Example;According to aspect ratio, played in full screen is carried out to play area.
Embodiments of the present invention additionally provide a kind of terminal device, comprising: at least one processor;And at least The memory of one processor communication connection;Wherein, memory is stored with the instruction that can be executed by least one processor, instruction It is executed by least one processor, so that at least one processor is able to carry out above-mentioned played in full screen method.
Embodiments of the present invention additionally provide a kind of computer readable storage medium, are stored with computer program, calculate Such as above-mentioned played in full screen method is realized when machine program is executed by processor.
Embodiment of the present invention in terms of existing technologies, used by first determining by a kind of played in full screen method provided In the play area for effectively showing video content, the aspect ratio of play area is then obtained again, and according to aspect ratio, to broadcasting It puts region and carries out played in full screen.Due to play area here are as follows: for effectively showing the region of video content, therefore, this is broadcast It does not include that can not effectively show the regions such as the black surround of video content that it is inevitable, which to put region, is carried out so as to be based only upon the play area Played in full screen allows to show video content more in large area.
In addition, determining the play area of video, comprising: detect in several frames of video, adjacent two frame is with the presence or absence of identical Region;It counts in several frames, there are the quantity of the frame of same area;According to there are the quantity of the frame of same area and videos Several frames quantity, determine the play area of video.It, can be with by providing a kind of specific implementation of determining play area The realization for allowing the process of determining play area flexible and changeable.
In addition, determining the play area of video, comprising: any frame of selected video is as target frame;Determine target frame First transverse edge and/or the first vertical edges;Wherein, the similarity between the parameter information of the first transverse edge two sides is small In the first parameter threshold;Similarity between the parameter information of first vertical edges two sides, less than the second parameter threshold;According to One transverse edge and/or the first vertical edges, determine the play area of video.By providing another tool for determining play area Body implementation, the realization that the process of determining play area can be allowed flexible and changeable.
In addition, determining the play area of video, comprising: in video according to the first transverse edge and/or the first vertical edges Other frames in addition to target frame in, select an at least frame as examine frame;Obtain it is each examine frame the second transverse edge and/or Second vertical edges;Wherein, the similarity between the parameter information of the second transverse edge two sides is less than third parameter threshold;The Similarity between the parameter information of two vertical edges two sides, less than the 4th parameter threshold;According to the first transverse edge and/or One vertical edges obtain the first coordinate data for determining four vertex of the play area of video;According to each inspection frame Second transverse edge and/or the second vertical edges, obtain four vertex for determining the play area of video each second sit Mark data;According to the first coordinate data and each second coordinate data, the flat of the coordinate data on four vertex vertex Zhong Ge is calculated Mean value;According to the average value of the coordinate data on each vertex, the play area of video is determined.
Due to the play area according to the first transverse edge and/or the determination of the first vertical edges in target frame, with other Play area in frame might have slight difference, therefore, by obtaining each the second transverse edge and/or second for examining frame Vertical edges, and first coordinate data on four vertex according to target frame for determining play area and each frame of examining For determining each second coordinate data on four vertex of the play area of video, the number of coordinates on four vertex vertex Zhong Ge is calculated According to average value mode, to determine play area, the accuracy for the play area that can be improved.
In addition, carrying out played in full screen to play area, comprising: according to aspect ratio, judge broadcast area according to aspect ratio Whether domain is vertical screen play area;If it is determined that being vertical screen play area, then played using the length direction of display interface as vertical screen The length direction in region, using the width direction of display interface as the width direction of vertical screen play area, to vertical screen play area Carry out played in full screen.Do so, not only eliminate it is in the prior art to vertical screen play area carry out 90 degree rotate after it is full frame again The processing operation of broadcasting, so as to promote the efficiency of played in full screen;It is again base by the dimensional directions thus according to display interface Standard executes played in full screen to vertical screen play area, and hence it is also possible to further show the view of vertical screen play area more in large area Frequency content.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove Non- to have special statement, composition does not limit the figure in attached drawing.
Fig. 1 is a kind of flow chart for played in full screen method that first embodiment provides according to the present invention;
Fig. 2 is a kind of showing for one of played in full screen method that first embodiment provides according to the present invention play area It is intended to;
Fig. 3 is a kind of flow chart for played in full screen method that second embodiment provides according to the present invention;
Fig. 4 is a kind of showing for adjacent two frame of one of played in full screen method that second embodiment provides according to the present invention It is intended to;
Fig. 5 be according to the present invention second embodiment provide a kind of played in full screen method in, the sub-step of step 201 Flow chart;
Fig. 6 is a kind of flow chart for played in full screen method that third embodiment provides according to the present invention;
Fig. 7 is the first of one of a kind of played in full screen method that third embodiment provides according to the present invention target frame The schematic diagram of transverse edge and the first vertical edges;
Fig. 8 be according to the present invention third embodiment provide a kind of played in full screen method in, the sub-step of step 303 Flow chart;
Fig. 9 is a kind of flow chart for played in full screen method that the 4th embodiment provides according to the present invention;
Figure 10 is a kind of flow chart for played in full screen method that the 4th embodiment provides according to the present invention;
Figure 11 be according to the present invention the 4th embodiment provide a kind of played in full screen method in, to vertical screen play area into The schematic diagram of row played in full screen;
Figure 12 is a kind of structural schematic diagram for terminal device that the 5th embodiment provides according to the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details And various changes and modifications based on the following respective embodiments, the application technical solution claimed also may be implemented.
The first embodiment of the present invention is related to a kind of played in full screen methods.The core of present embodiment is: determining view The play area of frequency;Wherein, play area are as follows: for effectively showing the region of video content;Obtain the picture ratio of play area Example;According to aspect ratio, played in full screen is carried out to play area.
In present embodiment, due to play area here are as follows:, therefore, should for effectively showing the region of video content Play area inevitable does not include that can not effectively show the regions such as the black surround of video content, so as to be based only upon the play area into Row played in full screen allows to show video content more in large area.
The realization details of the played in full screen method of present embodiment is specifically described below, the following contents is only side The realization details of offer is just provided, the necessary of this programme is not implemented.
The flow chart of played in full screen method in present embodiment is as shown in Figure 1, comprising:
Step 101, the play area of video is determined.
Referring to fig. 2, therein 11 play area is indicated, i.e., for effectively showing the region of video content, 12 expressions can not Effectively show region of video content, such as decorative pattern filling region, filled black region, white filling region etc..
Specifically, fuzzy diagnosis can be carried out to several frames of video, respectively obtains the non-play area of several frames, then According to non-play area, the play area of video is determined.Wherein it is possible to by convolutional neural networks model to several frames of video Carry out fuzzy diagnosis.
In one example, any one frame that can be randomly selected in video carries out fuzzy diagnosis, and non-broadcasting can be obtained Region, removing the part other than non-play area is play area.
In another example, fuzzy diagnosis can be carried out respectively to multiple frames in video.Assuming that the number of frame herein Amount is 3, then after carrying out fuzzy diagnosis to these frames, can respectively obtain 3 non-play area, and then can be 3 according to this Non- play area determines 3 play area of video.Assuming that the coordinate data on four vertex of this 3 play area is respectively as follows: (a1, a2, a3, a4), (b1, b2, b3, b4), (c1, c2, c3, c4).Can then calculate separately a1, b1, c1 average value A, a2, The average value C of the average value B, a3, b3, c3 of b2, c2 and the average value D of a4, b4, c4, by (A, B, C, D) as determination Play area.May dimensionally there be small difference due to carrying out the play area that fuzzy diagnosis obtains respectively to different frame Not, therefore, in four vertex by calculating separately each play area, the average value mode of the data on each vertex determines broadcast area Domain, the accuracy for the play area that can be improved.
Wherein, in the above example, can also be in four vertex for calculating separately each play area, the data on each vertex Average value before, calculate separately difference between a1, b1, c1, the difference between a2, b2, c2, the difference between a3, b3, c3, And the difference between a4, b4, c4, after play area corresponding to the biggish coordinate data of difference is deleted, then calculate remaining Each play area four vertex in, the average value of the data on each vertex.By differing greatly in deletion with each play area Play area after, then calculate in four vertex of remaining each play area, the average value of the data on each vertex, can be to avoid The play area to differ greatly with each play area has an impact the average value of the data on each vertex finally calculated, thus The accuracy for the play area that can be further improved.
It in other examples, can also be multiple to what is obtained after carrying out fuzzy diagnosis respectively to multiple frames in video Play area takes the mode of intersection, and to determine the play area of video, the present embodiment is not especially limited this.
Step 102, the aspect ratio of play area is obtained.
Wherein, aspect ratio mentioned here can be the width and length ratio of play area, be also possible to broadcast area The ratio between the length and width in domain is not especially limited herein.
Step 103, according to aspect ratio, played in full screen is carried out to play area.
Specifically, it is assumed that the aspect ratio of play area is 16:9, shows that the ratio of the display interface of equipment is also 16: 9, then it is played in full screen truly to the played in full screen that play area carries out;Assuming that the aspect ratio of play area is 16:9, and show that the ratio of the display interface of equipment is 18:9, then in the amplification process of played in full screen, it can be set when detection When into the length of play area, width, any one is equal to the corresponding length of display interface, width, then do not continue to amplify, And remaining area is filled, for example carry out filled black.
It is according to the entire displaying interface of video (including Fig. 2 it will be understood by those skilled in the art that in the related art In 11 and 12) carry out played in full screen, therefore, can be still in the video after carrying out played in full screen if video itself includes 12 So include 12, leads to not show video content more in large area.And in the present embodiment, in the aspect ratio of play area Under the ratio unanimous circumstances of display interface, if video itself includes that can not effectively show the regions such as the black surround of video content, Then by carrying out played in full screen to play area, the purpose of played in full screen truly can achieve.In play area In the case that the ratio of aspect ratio and display interface is inconsistent, video content can be caused to be distorted not influencing video quality In the case where, carrying out played in full screen to the full extent to play area (ought detect the length of play area, appoint in width It when anticipating one equal to the corresponding length of display interface, width, then does not continue to amplify, and be filled remaining area).
It is not difficult to find that a kind of played in full screen method that present embodiment provides, by first determining for effectively showing video Then the play area of content obtains the aspect ratio of play area again, and according to aspect ratio, carry out to play area full frame It plays.Due to play area here are as follows: for effectively showing the region of video content, therefore, which is not wrapped necessarily The regions such as the black surround of video content can not effectively be shown by including, and carry out played in full screen so as to be based only upon the play area, so that Video content can be shown more in large area.
Second embodiment of the present invention is related to a kind of played in full screen method.Present embodiment and first embodiment are substantially It is identical, the difference is that: in the present embodiment, another specific implementation for determining play area is provided, it can be with The realization for allowing the process of determining play area flexible and changeable.
The flow chart of played in full screen method in present embodiment is as shown in Figure 3, comprising:
Step 201, it detects in several frames of video, adjacent two frame whether there is same area.
Referring to fig. 4, it is illustrated in figure 4 the schematic diagram of adjacent two frame, what the solid black areas in adjacent two frame indicated The as same area of adjacent two frame.Wherein it is possible to being determined as follows adjacent two frame whether there is same area, Flow chart is as shown in Figure 5, comprising:
Sub-step 2011 obtains the corresponding display parameter value of each frame in several frames.
Wherein, display parameter value mentioned here can be but be not limited to: pixel, color value are not especially limited herein.
Sub-step 2012 judges in adjacent two frame whether the difference of the display parameter value in same position is less than preset value. If being less than preset value, enter sub-step 2013, otherwise, into sub-step 1024.
In one example, it is assumed that 100 frames for getting video are indicated with digital 1-100, also, adjacent digital institute Corresponding two frame is adjacent two frame.Then judge in the 1st frame and the 2nd frame, whether the difference of the display parameter value in same position is small In preset value, if being less than preset value, that is, it can determine that there are same areas for adjacent two frame.Then the 3rd frame and the 4th frame be may determine that In, in the 4th frame and the 5th frame ... until obtaining in the 99th frame and the 100th frame, the difference of the display parameter value in same position Whether the judging result of preset value is less than.
In the above example, if in the 1st frame and the 2nd frame, the difference of the display parameter value in same position is less than preset value, It then can determine that there are same areas for adjacent two frame, the same area be denoted as region 1 herein.Similarly, if in the 2nd frame and the 3rd frame, There are same areas, then judge whether the same area is identical as region 1, if they are the same, are then denoted as region 1, otherwise, are denoted as region 2.If in the 3rd frame and the 4th frame, there are same areas, then judge whether the same area and region 1 or region 2 are identical, and if area Domain 1 is identical, then is denoted as region 1, if identical as region 2, is denoted as region 2, otherwise, is denoted as region 3 ... until obtaining to In 99 frames and the 100th frame, if there are same areas, and same area judgement identical with which predetermined region As a result.Assuming that existing same area is that the quantity of the frame in region 1 is 70, existing if counting in 100 frames of video Same area is that the quantity of the frame in region 2 is 2, and the quantity there are the frame that same area is region 3 is 2, since there are phases The 70% of the quantity for the frame for accounting for counting by the quantity of the frame in region 1 with region is greater than preset threshold value (such as 50%), then It can determine that the region 1 is that can not effectively show therefore the region of video content removes the region other than the region 1, as The play area of determining video.Similarly, since there are the quantity for the frame that same area is region 2, and there are same areas Quantity for the frame in region 3 is few, hence, it can be determined that region 2 and region 3 are not belonging to effectively show the area of video content Domain.
Although it should be noted that being to judge since the 1st frame and the 2nd frame in the above example, until the 30th frame end Sequence is successively judged.However the application does not carry out any restriction to judgement sequence, as long as being to the judgement of adjacent two frame It can.
Sub-step 2013 determines that there are same areas for adjacent two frame.
Sub-step 2014 determines that same area is not present in adjacent two frame.
Step 202, it counts in several frames, there are the quantity of the frame of same area.
Step 203, according to there are the quantity of the quantity of the frame of same area and several frames of video, video is determined Play area.
Step 202 and step 203 are illustrated here in connection with an example.If counting in 100 frames of video, deposit It is 60 in the quantity of the frame of same area, then the quantity that there is the frame of same area accounts for the quantity of counted frame 60%, then it can determine that same area here is that can not effectively show therefore the region of video content removes the same zone Region other than domain, the as play area of determining video.
Step 204, the aspect ratio of play area is obtained.
Step 205, according to aspect ratio, played in full screen is carried out to play area.
Since step 102, the step 103 in step 204, step 205 and the first embodiment in present embodiment are big Cause identical, to avoid repeating, details are not described herein again.
It is not difficult to find that a kind of played in full screen method that present embodiment provides, provides a kind of tool of determining play area Body implementation, the realization that the process of determining play area can be allowed flexible and changeable.
Third embodiment of the invention is related to a kind of played in full screen method, present embodiment and first embodiment or second Embodiment is roughly the same, the difference is that: in the present embodiment, provide another specific reality for determining play area Existing mode, the realization that the process of determining play area can be allowed flexible and changeable.
The flow chart of played in full screen method in present embodiment is as shown in Figure 6, comprising:
Step 301, any frame of video is selected as target frame.
Step 302, the first transverse edge and/or the first vertical edges of target frame are determined.
Wherein, the similarity between the parameter information of the first transverse edge two sides, less than the first parameter threshold;First is vertical Similarity between the parameter information of both sides of edges, less than the second parameter threshold.
A kind of the first transverse edge of target frame and the schematic diagram of the first vertical edges are shown referring to Fig. 7, Fig. 7.Wherein, 21 indicate the first transverse edge, and 22 indicate the first vertical edges.In present embodiment, the quantity of the first transverse edge can with 0, It can be 1 or 2, the quantity of the second transverse edge can be 0, or 1 or 2, be not especially limited herein.
Parameter information mentioned here can include but is not limited to: pixel, color value are not especially limited herein.
In one example, from top to bottom, parameter information can be examined line by line using the upper left corner of target frame as vertex It surveys, and obtains the similarity between the parameter information that mutually row two arranges, when the similarity between the parameter information of adjacent rows is less than When the first parameter threshold, may indicate that the adjacent rows be it is discontinuous, therefore, using the line of demarcation between the adjacent rows as First the first transverse edge;Continue from left to right, in the same way, to determine second the first transverse edge.Wherein, first Parameter threshold can be 10%, when the similarity between the information of adjacent rows is less than 10%, may indicate that the adjacent rows It is discontinuous.
In one example, from left to right, parameter information can be examined by column using the upper left corner of target frame as vertex It surveys, and obtains the similarity between the parameter information that adjacent two arrange, when the similarity between the parameter information of adjacent two column is less than When the second parameter threshold, may indicate that this it is adjacent two column be it is discontinuous, therefore, using this it is adjacent two column between line of demarcation as First the first vertical edges;Continue from left to right, in the same way, to determine second the first vertical edges.Wherein, second Parameter threshold can be 10%, when the similarity between the information of adjacent two column is less than 10%, may indicate that the adjacent rows It is discontinuous.
Furthermore it is possible to which target can be improved before the first transverse edge and/or the first vertical edges for determining target frame The brightness and/or contrast of frame, do so, and the identifiability to play area can be improved, thus can be improved determining The accuracy of one transverse edge and/or the first vertical edges.
Step 303, according to the first transverse edge and/or the first vertical edges, the play area of video is determined.
In one example, the play area of video can be determined according to the first transverse edge and/or the first vertical edges Four vertex determine the play area of video and according to four vertex.
In addition, determining the play area of video according to the first transverse edge and/or the first vertical edges, can also include: According to the first transverse edge and/or the first vertical edges, play area undetermined is obtained;Judge whether play area undetermined is rectangle Region;If so, using play area undetermined as the play area of video;Otherwise, play area undetermined is adjusted to rectangle region Domain, and using rectangular area as the play area of video.Such as it can be taken based on the min coordinates data in four vertex Symmetrical mode, obtains rectangular area.So without being limited thereto, any mode that play area undetermined can be adjusted to rectangular area is equal Within the protection scope of present embodiment.
It is appreciated that the first vertical edges may not also be perpendicular since the first transverse edge may not be a horizontal line Straight line, and it is not a rectangular area that this, which will lead to determining play area,.Therefore, by being examined to play area undetermined It surveys, when detecting play area undetermined not is rectangular area, play area undetermined is adjusted, rectangle region is made Domain, it is ensured that determining play area is rectangular area, to will not influence the viewing experience of user.
In other examples, according to the first transverse edge and/or the first vertical edges, the stream of the play area of video is determined Journey figure can be as shown in Figure 8, comprising:
Sub-step 3031 selectes an at least frame as inspection frame in other frames in addition to target frame of video.
Sub-step 3032 obtains each the second transverse edge and/or the second vertical edges for examining frame.
Wherein, the similarity between the parameter information of the second transverse edge two sides is less than third parameter threshold;Second is vertical Similarity between the parameter information of both sides of edges, less than the 4th parameter threshold.
Sub-step 3033 obtains the broadcast area for determining video according to the first transverse edge and/or the first vertical edges First coordinate data on four vertex in domain.
In one example, the first coordinate data determined can be indicated with (A1, A2, A3, A4), wherein A1 can be with table Show that the vertex coordinates data in the upper left corner of play area, A2 can indicate the vertex coordinates data in the upper right corner of play area, A3 It can indicate that the vertex coordinates data in the lower left corner of play area, A4 can indicate the apex coordinate number in the lower right corner of play area According to.
Sub-step 3034 is obtained according to each the second transverse edge and/or the second vertical edges for examining frame for determining view Each second coordinate data on four vertex of the play area of frequency.
In one example, each second coordinate data determined can be indicated with (B1, B2, B3, B4), wherein B1 can be with Indicate play area the upper left corner vertex coordinates data, B2 can indicate the upper right corner of play area vertex coordinates data, B3 can indicate that the vertex coordinates data in the lower left corner of play area, B4 can indicate the apex coordinate in the lower right corner of play area Data.
Sub-step 3035 calculates four vertex vertex Zhong Ge according to the first coordinate data and each second coordinate data The average value of coordinate data.
Carry out sub-paragraphs 3035 here in connection with the example in sub-step 3033 and sub-step 3034 to be illustrated.It is broadcast with calculating For the average value for putting the vertex coordinates data in the upper left corner in region: assuming that the value of the coordinate data for characterizing A1 is 199, inspection The quantity for testing frame is 9, be respectively as follows: 180 for characterizing the value of coordinate data of B1,180,181,181,178,130,179, 180,195.The number of coordinates that can then take the average value of { 199,180,180,181,181,178,130,179,180,195 } to characterize According to the vertex coordinates data in the upper left corner as play area.Similarly, its of play area can be obtained by the same method The coordinate data on his three vertex.It is appreciated that due to according to the first transverse edge and/or the first vertical edges in target frame Play area in determining play area, with other frames might have slight difference, therefore, by obtaining each inspection frame Second transverse edge and/or the second vertical edges, and first of four vertex for determining play area according to target frame Each second coordinate data on four vertex of coordinate data and each play area for determining video for examining frame, calculates four The mode of the average value of the coordinate data on the vertex a vertex Zhong Ge, to determine play area, the play area that can be improved Accuracy.
Wherein, can also in four vertex for calculating separately each play area, before the average value of the data on each vertex, Removal characterizes in the value of the coordinate data of A1, B1, the coordinate data to differ greatly.Such as in the above example, it can go It is averaged after 199,130,195, then to the value of the coordinate data of remaining characterization A1, B1, then this obtained is averaged It is worth the coordinate data of characterization, the vertex coordinates data in the upper left corner as play area.
Sub-step 3036 determines the play area of video according to the average value of the coordinate data on each vertex.
Step 304, the aspect ratio of play area is obtained.
Step 305, according to aspect ratio, played in full screen is carried out to play area.
Since step 102, the step 103 in step 304, step 305 and the first embodiment in present embodiment are big Cause identical, to avoid repeating, details are not described herein again.
It is not difficult to find that a kind of played in full screen method that present embodiment provides, provides a kind of tool of determining play area Body implementation, the realization that the process of determining play area can be allowed flexible and changeable.
4th embodiment of the invention is related to a kind of played in full screen method.Present embodiment is in first embodiment On the basis of the improvement made, specifically the improvement is that: in the present embodiment, by judging broadcast area according to aspect ratio Whether domain is vertical screen play area;If it is determined that being vertical screen play area, then played using the length direction of display interface as vertical screen The length direction in region, using the width direction of display interface as the width direction of vertical screen play area, to vertical screen play area Carry out played in full screen.Do so, not only eliminate it is in the prior art to vertical screen play area carry out 90 degree rotate after it is full frame again The processing operation of broadcasting, so as to promote the efficiency of played in full screen;It is again base by the dimensional directions thus according to display interface Standard executes played in full screen to vertical screen play area, and hence it is also possible to further show the view of vertical screen play area more in large area Frequency content.
The flow chart of played in full screen method in present embodiment is as shown in Figure 9, comprising:
Step 401, the play area of video is determined.
Wherein, play area are as follows: for effectively showing the region of video content.
Step 402, the aspect ratio of play area is obtained.
Since step 101, the step 102 in step 401, step 402 and the first embodiment in present embodiment are big Cause identical, to avoid repeating, details are not described herein again.
Step 403, according to aspect ratio, judge whether play area is vertical screen play area.If it is determined that being that vertical screen plays Region then enters step 404, otherwise, enters step 405.
Specifically, according to aspect ratio, when the width of play area is less than length, then can be determined that it is that vertical screen plays Region enters step 404;When the width of play area is greater than length, then can be determined that it is transverse screen play area, enter step 405。
As shown in Figure 10, play area 31 shown in Fig. 10 is vertical screen play area.
In one example, play area here is the play area of video frequency color ring.
Step 404, using the length direction of display interface as the length direction of vertical screen play area, with the width of display interface Width direction of the direction as vertical screen play area is spent, played in full screen is carried out to vertical screen play area.
It is appreciated that, when vertically holding terminal device, can not be carried out to video due to the limitation of terminal device specification Played in full screen, video only account for the very small part of display interface, cause user experience bad.Therefore, in the related art, In order to realize the played in full screen of video, user usually requires terminal device carrying out transverse screen placement, that is to say, that many videos are past Toward after terminal device carries out transverse screen placement, it is just able to achieve played in full screen.And in this application, vertical screen play area 31 is carried out The schematic diagram of played in full screen is as shown in figure 11.
In one example, terminal device monitors the touch control operation to vertical screen play area, and obtains vertical screen play area Central point and display interface central point.When detecting that played in full screen event of the user to vertical screen play area is (such as single Hit, double-click, long-pressing) after, using the length direction of display interface as the length direction of vertical screen play area, with the width of display interface Width direction of the direction as vertical screen play area is spent, played in full screen is carried out to vertical screen play area.
Step 405, played in full screen is carried out according to the play rules of transverse screen play area.
In one example, after detecting played in full screen event of the user to transverse screen play area, play area is revolved It turn 90 degrees, played in full screen is carried out to transverse screen play area, this is same as the prior art, therefore repeats no more.
In addition, it is necessary to explanation, according to aspect ratio, before carrying out played in full screen to play area, it can be determined that Whether user display requirement to play area is received;If receiving display requirement of the user to play area, according to aobvious Show that requirement plays out play area;Otherwise, played in full screen is carried out to play area.Alternatively, being carried out entirely to play area After screen plays, if receiving display requirement of the user to play area, require to play out play area according to display. Wherein, display requirement mentioned here can be but be not limited to: amplified play area accounts for the ratio of entire display interface.
In one example, user A is watching the video content after carrying out played in full screen to play area, if user B looks for user A to chat, and user A had not only want to chat with user B, but also wants to continue to watch video content, then, user A can be to terminal Equipment sends the display requirement to play area, for example may is that amplified play area accounts for the 2/3 of entire display interface, In this way, terminal device can be required according to display, control play area accounts for the 2/3 of entire display interface.Wherein, by broadcast area During domain is adjusted to account for the 2/3 of entire display interface, play area can be with normal play.Play area is being adjusted to account for Behind the 2/3 of entire display interface, user can arbitrarily adjust play area the location of in display interface, in order to user The application program of display interface (i.e. remaining 1/3 display interface) in addition to play area is operated, for example, can be with Wechat is opened, and the chat window of wechat is adjusted to the display interface in addition to play area, in this way, user can be on one side Video content is watched, is chatted on one side with user B.
It should be noted that present embodiment changing of being also possible to make on the basis of second or third embodiment Into.
It is not difficult to find that a kind of played in full screen method that present embodiment provides, by judging broadcast area according to aspect ratio Whether domain is vertical screen play area;If it is determined that being vertical screen play area, then played using the length direction of display interface as vertical screen The length direction in region, using the width direction of display interface as the width direction of vertical screen play area, to vertical screen play area Carry out played in full screen.Do so, not only eliminate it is in the prior art to vertical screen play area carry out 90 degree rotate after it is full frame again The processing operation of broadcasting, so as to promote the efficiency of played in full screen;It is again base by the dimensional directions thus according to display interface Standard executes played in full screen to vertical screen play area, and hence it is also possible to further show the view of vertical screen play area more in large area Frequency content.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection scope of this patent It is interior;To adding inessential modification in algorithm or in process or introducing inessential design, but its algorithm is not changed Core design with process is all in the protection scope of the patent.
Fifth embodiment of the invention is related to a kind of terminal device, as shown in figure 12, comprising: at least one processor 41; And the memory 42 with the communication connection of at least one described processor 41;Wherein, be stored with can be described for the memory 42 The instruction that at least one processor 41 executes, described instruction is executed by least one described processor 41, so that described at least one A processor 41 is able to carry out the played in full screen method as described in any one of first to fourth embodiment.
Wherein, memory 42 is connected with processor 41 using bus mode, and bus may include any number of interconnection Bus and bridge, bus is by one or more processors 41 together with the various circuit connections of memory 42.Bus can also incite somebody to action Together with various other circuit connections of management circuit or the like, these are all abilities for such as peripheral equipment, voltage-stablizer Well known to domain, therefore, it will not be further described herein.Bus interface is provided between bus and transceiver and is connect Mouthful.Transceiver can be an element, is also possible to multiple element, such as multiple receivers and transmitter, provides for passing The unit communicated on defeated medium with various other devices.The data handled through processor 41 are carried out on the radio medium by antenna Transmission, further, antenna also receives data and transfers data to processor 41.
Processor 41 is responsible for management bus and common processing, can also provide various functions, including timing, periphery connects Mouthful, voltage adjusting, power management and other control functions.And memory 42 can be used for storage processor 41 and execute behaviour Used data when making.
Sixth embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.Computer Above method embodiment is realized when program is executed by processor.
That is, it will be understood by those skilled in the art that implement the method for the above embodiments be can be with Relevant hardware is instructed to complete by program, which is stored in a storage medium, including some instructions are to make It obtains an equipment (can be single-chip microcontroller, chip etc.) or processor (processor) executes side described in each embodiment of the application The all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention, And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.

Claims (10)

1. a kind of played in full screen method characterized by comprising
Determine the play area of video;Wherein, the play area are as follows: for effectively showing the region of video content;
Obtain the aspect ratio of the play area;
According to the aspect ratio, played in full screen is carried out to the play area.
2. played in full screen method according to claim 1, which is characterized in that the play area of the determining video, comprising:
It detects in several frames of the video, adjacent two frame whether there is same area;
It counts in several frames, there are the quantity of the frame of same area;
According to described there are the quantity of the frame of same area and the quantity of several frames of the video, the video is determined Play area.
3. played in full screen method according to claim 2, which is characterized in that in several frames of the detection video, Adjacent two frame whether there is same area, comprising:
Obtain the corresponding display parameter value of each frame in several frames;
Judge in adjacent two frame, whether the difference of the display parameter value in same position is less than preset value;
If being less than the preset value, determine that there are the same areas for adjacent two frame.
4. played in full screen method according to claim 1, which is characterized in that the play area of the determining video, comprising:
Any frame of the video is selected as target frame;
Determine the first transverse edge and/or the first vertical edges of the target frame;Wherein, first transverse edge two sides Similarity between parameter information, less than the first parameter threshold;Phase between the parameter information of first vertical edges two sides Like degree, less than the second parameter threshold;
According to first transverse edge and/or first vertical edges, the play area of the video is determined.
5. played in full screen method according to claim 4, which is characterized in that it is described according to first transverse edge and/ Or first vertical edges, determine the play area of the video, comprising:
According to first transverse edge and/or first vertical edges, play area undetermined is obtained;
Judge whether the play area undetermined is rectangular area;
If so, using the play area undetermined as the play area of the video;Otherwise, by the play area tune undetermined Whole is the rectangular area, and using the rectangular area as the play area of the video.
6. played in full screen method according to claim 4, which is characterized in that it is described according to first transverse edge and/ Or first vertical edges, determine the play area of the video, comprising:
In other frames in addition to the target frame of the video, an at least frame is selected as inspection frame;
Obtain each second transverse edge and/or the second vertical edges for examining frame;Wherein, second transverse edge two sides Parameter information between similarity, be less than third parameter threshold;Between the parameter information of second vertical edges two sides Similarity, less than the 4th parameter threshold;
According to first transverse edge and/or first vertical edges, the play area for determining the video is obtained Four vertex the first coordinate data;
According to each second transverse edge and/or the second vertical edges for examining frame, obtain for determining broadcasting for the video Put each second coordinate data on four vertex in region;
According to first coordinate data and each second coordinate data, the coordinate on four vertex vertex Zhong Ge is calculated The average value of data;
According to the average value of the coordinate data on each vertex, the play area of the video is determined.
7. played in full screen method according to claim 1, which is characterized in that the play area of the determining video, comprising:
Fuzzy diagnosis is carried out to several frames of the video, respectively obtains the non-play area of several frames;
According to the non-play area, the play area of video is determined.
8. played in full screen method according to claim 1, which is characterized in that it is described according to the aspect ratio, to described Play area carries out played in full screen, comprising:
According to the aspect ratio, judge whether the play area is vertical screen play area;
If it is determined that being the vertical screen play area, then using the length direction of display interface as the length of the vertical screen play area Direction, using the width direction of the display interface as the width direction of the vertical screen play area, to the vertical screen broadcast area Domain carries out played in full screen.
9. a kind of terminal device characterized by comprising at least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one It manages device to execute, so that at least one described processor is able to carry out played in full screen as claimed in any of claims 1 to 8 in one of claims Method.
10. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the computer program is located Reason device realizes played in full screen method as claimed in any of claims 1 to 8 in one of claims when executing.
CN201910615315.XA 2019-07-09 2019-07-09 Played in full screen method, terminal device and computer readable storage medium Pending CN110505512A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910615315.XA CN110505512A (en) 2019-07-09 2019-07-09 Played in full screen method, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910615315.XA CN110505512A (en) 2019-07-09 2019-07-09 Played in full screen method, terminal device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110505512A true CN110505512A (en) 2019-11-26

Family

ID=68586182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910615315.XA Pending CN110505512A (en) 2019-07-09 2019-07-09 Played in full screen method, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110505512A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111225266A (en) * 2020-02-25 2020-06-02 上海哔哩哔哩科技有限公司 User interface interaction method and system
CN111726688A (en) * 2020-07-02 2020-09-29 深圳市鹰硕技术有限公司 Method and device for self-adapting screen projection picture in network teaching

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102254544A (en) * 2011-07-12 2011-11-23 北京海尔集成电路设计有限公司 Method for automatically adjusting video signal proportion and television using same
CN102404642A (en) * 2011-12-06 2012-04-04 鄂文轩 Advisement publishing method and device in mobile terminal
CN103369205A (en) * 2012-03-26 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and video image processing method
CN106028095A (en) * 2016-06-07 2016-10-12 北京奇虎科技有限公司 Method and device for controlling video playing
CN107707954A (en) * 2017-10-27 2018-02-16 北京小米移动软件有限公司 Video broadcasting method and device
CN109547644A (en) * 2018-12-27 2019-03-29 维沃移动通信有限公司 A kind of information display method and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102254544A (en) * 2011-07-12 2011-11-23 北京海尔集成电路设计有限公司 Method for automatically adjusting video signal proportion and television using same
CN102404642A (en) * 2011-12-06 2012-04-04 鄂文轩 Advisement publishing method and device in mobile terminal
CN103369205A (en) * 2012-03-26 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and video image processing method
CN106028095A (en) * 2016-06-07 2016-10-12 北京奇虎科技有限公司 Method and device for controlling video playing
CN107707954A (en) * 2017-10-27 2018-02-16 北京小米移动软件有限公司 Video broadcasting method and device
CN109547644A (en) * 2018-12-27 2019-03-29 维沃移动通信有限公司 A kind of information display method and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111225266A (en) * 2020-02-25 2020-06-02 上海哔哩哔哩科技有限公司 User interface interaction method and system
US11442606B2 (en) 2020-02-25 2022-09-13 Shanghai Bilibili Technology Co., Ltd. User interface interaction method and system
CN111726688A (en) * 2020-07-02 2020-09-29 深圳市鹰硕技术有限公司 Method and device for self-adapting screen projection picture in network teaching
WO2022001027A1 (en) * 2020-07-02 2022-01-06 深圳市鹰硕技术有限公司 Projection screen picture self-adaption method and apparatus in network teaching

Similar Documents

Publication Publication Date Title
CN108322788B (en) Advertisement display method and device in live video
CN101222589A (en) Image processing device and image display device having the same
CN109151504A (en) A kind of video adaptive identifying method, apparatus and storage medium
EP2573670B1 (en) Character display method and device
CN108769776A (en) Main title detection method, device and electronic equipment
CN102084397A (en) Image processing device, method, and program
CN110505512A (en) Played in full screen method, terminal device and computer readable storage medium
JP2005122361A (en) Image processor, its processing method, computer program, and recording medium
CN106658119A (en) Video application testing method and apparatus
CN107645684A (en) A kind of barrage adjusting method, device and storage medium
CN110120039A (en) A kind of flower screen detection method, detection device, electronic equipment and readable storage medium storing program for executing
CN112700456A (en) Image area contrast optimization method, device, equipment and storage medium
CN108093246A (en) A kind of recognition methods of top box of digital machine video playback area and device
CN106792163A (en) The detection method and device of a kind of video broadcasting condition
CN110324707A (en) A kind of video starts broadcasting time-consuming test method and device
CN110865911B (en) Image testing method, device, storage medium, image acquisition card and upper computer
CN103858421A (en) Image processing device, image processing method, and recording medium
CN108111914A (en) Video playback area recognition methods, device and apparatus for media playing
CN113117334B (en) Method and related device for determining visible area of target point
CN114881889A (en) Video image noise evaluation method and device
CN115002540A (en) Method, device and equipment for processing violation video in live broadcast and readable storage medium
CN114416005A (en) Interface display method and device and computer readable storage medium
CN106851168A (en) Video format recognition methods, device and player
CN103716676B (en) The video program play method and device of intelligent television
CN113408440A (en) Video data jam detection method, device, equipment and storage medium

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: 20191126

RJ01 Rejection of invention patent application after publication