CN108966005A - A kind of adjusting method of video resolution, device, storage medium and terminal - Google Patents
A kind of adjusting method of video resolution, device, storage medium and terminal Download PDFInfo
- Publication number
- CN108966005A CN108966005A CN201810749408.7A CN201810749408A CN108966005A CN 108966005 A CN108966005 A CN 108966005A CN 201810749408 A CN201810749408 A CN 201810749408A CN 108966005 A CN108966005 A CN 108966005A
- Authority
- CN
- China
- Prior art keywords
- video
- frame pictures
- coincidence factor
- resolution
- pixel number
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 230000003068 static effect Effects 0.000 claims abstract description 20
- 238000000605 extraction Methods 0.000 claims abstract description 19
- 230000001105 regulatory effect Effects 0.000 claims description 10
- 230000000694 effects Effects 0.000 abstract description 10
- 239000000284 extract Substances 0.000 abstract description 8
- 238000012545 processing Methods 0.000 description 11
- 230000002093 peripheral effect Effects 0.000 description 9
- 230000008901 benefit Effects 0.000 description 7
- 238000004590 computer program Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 235000013399 edible fruits Nutrition 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 210000000887 face Anatomy 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 210000001331 nose Anatomy 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440263—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4884—Data services, e.g. news ticker for displaying subtitles
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of adjusting method of video resolution, device, storage medium and terminals, when detecting mobile terminal playing video, extract at least two frame pictures;According to the extraction at least two frame pictures, judge whether the video type is preset kind;Wherein, the preset kind includes at least static background type;If so, reducing the resolution ratio of the Online Video.Adjusting method, device, storage medium and the terminal of a kind of video resolution of the invention, it may be implemented in the case where resolution requirement of the user to the video being currently played be not high, the resolution ratio of currently playing Online Video is adjusted, to optimize the resource distribution of mobile terminal and save the effect of Internet resources.
Description
Technical field
The present invention relates to field of video broadcasting technology, and in particular, to a kind of adjusting method of video resolution, device,
Storage medium and terminal.
Background technique
Mobile terminal performance increasingly rises to the universal of mobile terminal video player software and provides good condition,
Video is watched on mobile terminal has become one of mainstream applications on intelligent mobile terminal.Video player point on mobile terminal
For two classes: local video player and Online Video player.When passing through mobile terminal playing Online Video, need to occupy big
The graphics processor (Graphics Processing Unit, GPU) and central processing unit (Central Processing of amount
Unit, CPU) resource come carry out largely decode etc operation.However when there is no user to watch Online Video, always
It plays Online Video and will lead to mobile terminal CPU usage in this way and continue higher, influence the performance of mobile terminal, while also wasting
The energy of mobile terminal.Therefore, it how in the case where resolution requirement of the user for played video be not high, can reduce
The resolution ratio of played video becomes the still unsolved technical problem of those skilled in the art.
Summary of the invention
It is an object of the present invention in view of the above-mentioned problems, propose a kind of adjusting method of video resolution, device, storage
Medium and terminal may be implemented in the case where resolution requirement of the user to the video being currently played be not high, to current
The resolution ratio of the Online Video of broadcasting is adjusted, to optimize the resource distribution of mobile terminal and save the effect of Internet resources
Fruit.
To achieve the above object, the technical solution adopted by the present invention is that: a kind of adjusting method of video resolution, it is main to wrap
It includes:
Step 110: when detecting mobile terminal playing video, extracting at least two frame pictures;
Step 120: according at least two frame pictures of the extraction, judging whether the video type is preset kind;Its
In, the preset kind includes at least static background type;
Step 130: if so, reducing the resolution ratio of the Online Video.
Further, whether the video type is judged according at least two frame pictures of the extraction described in step 200
For preset kind, further comprise:
Step 121: according at least two frame pictures are extracted, pixel data comparison being carried out at least two frame pictures;
Step 122: according to pixel number according to comparing result, determining the pixel number of at least two frame pictures according to coincidence
Rate;
Step 123: according to the pixel number according to the size relation of coincidence factor and the first setting coincidence factor threshold value, determining institute
State whether video type is preset kind.
Further, described in step 122 according to pixel number according to comparing result, determine at least two frame pictures
Before pixel number is according to coincidence factor, further comprise:
Using the predeterminable area of at least two frame pictures as caption area;
When the pixel number of the caption area is more than the second setting coincidence factor threshold value according to coincidence factor, it is determined that the word
The coincidence factor in curtain region is 100%.
Further, according at least two frame pictures are extracted described in step 121, pixel is carried out at least two frame pictures
After point data comparison, further comprise:
Recognition of face is carried out at least two frame pictures respectively;
Judge whether at least two frame picture face characteristics are consistent;
If so, determining institute according to the size relation of coincidence factor and the second setting coincidence factor threshold value according to the pixel number
State whether video type is preset kind;Wherein, the second setting coincidence factor threshold value is less than the first setting coincidence factor threshold
Value.
Further, the time span for extracting at least two frame pictures is not less than the broadcasting video total duration
50%.
Further, a kind of regulating device of video resolution, comprising:
Picture abstraction module, for extracting at least two frame pictures when detecting mobile terminal playing video;
Video type judgment module, for according to the extraction at least two frame pictures, judge the video type whether be
Preset kind;Wherein, the preset kind includes at least static background type;
Resolution adjustment module reduces the Online Video if being judged as YES for the video type judgment module
Resolution ratio.
Further, the video type judgment module includes:
Pixel number is according to comparison unit, for extracting at least two frame pictures, carries out pixel at least two frame pictures
Data comparison;
Coincidence factor determination unit, for, according to comparing result, determining the pixel of at least two frame pictures according to pixel number
Point data coincidence factor;
First video type determination unit, for setting coincidence factor threshold value according to coincidence factor and first according to the pixel number
Size relation, determine whether the video type is preset kind.
Further, the video type judgment module further include:
Caption area division unit, for using the predeterminable area of at least two frame pictures as caption area;
Caption area coincidence factor determination unit according to coincidence factor is more than second to set for the pixel number when the caption area
When determining coincidence factor threshold value, it is determined that the coincidence factor of the caption area is 100%.
Further, a kind of computer readable storage medium, storage medium are executed for loading such as claim 1-5 institute
State a kind of computer program of the adjusting method of Online Video resolution ratio.
Further, a kind of mobile terminal, specifically includes that
Storage medium and processor;
The processor loads a kind of adjusting method of Online Video resolution ratio as described in claim 1-5 for executing
Computer program.
Advantageous effects of the invention:
Adjusting method, device, storage medium and the terminal of a kind of video resolution of the invention, when detecting mobile terminal
When playing video, at least two frame pictures are extracted;According to the extraction at least two frame pictures, judge whether the video type is pre-
If type;Wherein, the preset kind includes at least static background type;If so, reducing the resolution ratio of the Online Video.
By using technical solution provided herein, the resolution requirement in user to the video being currently played may be implemented
In the case where not high, the resolution ratio of currently playing Online Video is adjusted, to optimize the resource distribution of mobile terminal
And save the effect of Internet resources.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention
It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart of the adjusting method for the video resolution that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of the adjusting method of video resolution provided by Embodiment 2 of the present invention;
Fig. 3 is the flow chart of the adjusting method for the video resolution that the embodiment of the present invention three provides;
Fig. 4 is the structural schematic diagram of the regulating device for the video resolution that the embodiment of the present invention four provides;
Fig. 5 is a kind of structural schematic diagram of mobile terminal provided by the embodiments of the present application.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein
Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing or method described as flow chart.Although each step is described as the processing of sequence by flow chart, many of these
Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation
The processing can be terminated when completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with
Corresponding to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is the flow chart of the adjusting method for the video resolution that the embodiment of the present invention one provides, and the present embodiment is applicable
The case where video playing, the regulating device of this method video resolution provided by the embodiment of the present invention execute, should
Device can be realized by the mode of software and/or hardware, and can be integrated in mobile terminal or intelligent terminal.
As shown in Figure 1, the adjusting method of the video resolution includes:
S110, when detecting mobile terminal playing video, extract at least two frame pictures.
Wherein, for the broadcasting of Online Video, it can be and Online Video is played out by application program, as Tencent regards
Frequently, Sohu's video and wechat etc. can also be the broadcasting for carrying out Online Video by browser, such as play news by webpage
Deng, for Online Video broadcasting detect, can by detection current foreground operation application program thread in, if exist
Graphical interface of user is being called to carry out the mode of the broadcasting of video to determine.
It can be extracted in the present embodiment by the frame picture to video file, then by being determined than Peer
At least similarity or other information of two frame pictures.In the present embodiment, two frame pictures, three frame pictures or more can be extracted
More pictures, the quantity for extracting picture can be determined according to the comparing result of the two frame pictures extracted at first, be also possible in advance
It sets, in the extraction process for carrying out frame picture every time, all extracts the frame picture of setting quantity.
In the present embodiment, optionally, the time span for extracting at least two frame pictures is not less than the broadcasting video
Total duration 50%.Wherein, for local video, the time for extracting picture can be determined according to the time span information of video
Point, can be at least half of according to the past of the time span currently played if it is live video in Online Video
At least two frame pictures are extracted in time span can then be not less than time span in process of caching if it is cache contents
The 50% of the total duration for playing video carries out the extraction of frame picture.The benefit being arranged in this way is can to guarantee extracted frame
Picture is dispersed throughout entire video file, rather than because caused by the extraction completed within some shorter period
Erroneous judgement.
S120, according to the extraction at least two frame pictures, judge whether the video type is preset kind;Wherein, institute
Preset kind is stated including at least static background type.
Wherein, preset kind includes static background type, and described static state Beijing type can be records similar to online education
The video etc. of system, such as Dancing Teaching video, or education video of preparing for the postgraduate qualifying examination etc., because its content mainly expressed is not required for needing
Will be by the way that especially clearly picture is expressed, it is possible to suitably reduce resolution ratio in this case so that it is mobile eventually
End can save cpu load and memory overhead.Therefore by using the mode for extracting frame picture in the application, described in video
Type is judged, if the background of the multiple frame pictures extracted is all always, can be determined as static background type.It is different from
Static Beijing type, such as certain extremely strong films of scene rendering power, such as film " 2012 ", it is necessary to pass through high point
Resolution supports the rendering effect of scenic picture, so being directed to the video of non-static background type, can not use the application
Provided technical solution, to meet user for the appreciation effect of pictured scene.
S130, if so, reducing the resolution ratio of the Online Video.
When determining video type is preset kind, the behaviour for reducing resolution ratio can be carried out to the Online Video played
Make.In the present embodiment, optionally, if video is Online Video, it can be determined that the current resolution of the Online Video is
No is lowest resolution.Specifically, can determine Online Video in the message file by identifying currently playing Online Video
Current resolution, then by read application program for user selection resolution value, whether to determine current resolution
For lowest resolution.When current resolution is not the lowest resolution of Online Video, current resolution can be adjusted downwards
One resolution levels, the benefit being arranged in this way and can be saved to mobile terminal while not influencing user's viewing
The expense of memory.
In the present embodiment, optionally, after automatic adjustment, if getting user's being herein turned up to resolution ratio
Instruction is no longer adjusted resolution ratio then during current Online Video plays, and the benefit being arranged in this way is can be
User's Online Video viewing effect wanted is provided when user needs for user.
Technical solution provided by the embodiment of the present application extracts at least two frames when detecting mobile terminal playing video
Picture;According to the extraction at least two frame pictures, judge whether the video type is preset kind;Wherein, the default class
Type includes at least static background type;If so, reducing the resolution ratio of the Online Video.By using provided herein
Technical solution may be implemented in the case where resolution requirement of the user to the video being currently played be not high, to currently broadcasting
The resolution ratio for the Online Video put is adjusted, to optimize the resource distribution of mobile terminal and save the effect of Internet resources
Fruit.
Based on the above technical solution, optionally, according to the extraction at least two frame pictures, judge the video class
Whether type is preset kind, comprising: extracts at least two frame pictures, carries out pixel data comparison at least two frame pictures;
According to pixel number according to comparing result, determine the pixel number of at least two frame pictures according to coincidence factor;According to the pixel
The size relation of data coincidence factor and the first setting coincidence factor threshold value, determines whether the video type is preset kind.Wherein,
First setting coincidence factor threshold value can be 90%.By the determination of the coincidence factor to pixel number evidence, can determine currently playing
The type of video, specifically, can carry out down-sampling before pixel is compared at least two frame pictures, in this way may be used
Compare speed to improve, reduce power consumption, avoids influence of the comparison because of picture to CPU excessively high, because in video display process
In, can inherently it occupy biggish ratio to the utilization rate of CPU, it is therefore desirable to consider the utilization rate of CPU emphatically.
Embodiment two
Fig. 2 is the flow chart of the adjusting method of video resolution provided by Embodiment 2 of the present invention.The present embodiment is above-mentioned
On the basis of embodiment, optimization are as follows: before the pixel number for judging at least two frame pictures is according to coincidence factor, further includes: will
The predeterminable area of at least two frame pictures is as caption area;When the pixel number of the caption area is more than the according to coincidence factor
When two setting coincidence factor threshold values, it is determined that the coincidence factor of the caption area is 100%.
As shown in Fig. 2, the adjusting method of the video resolution includes:
S210, when detecting mobile terminal playing video, extract at least two frame pictures.
S220, according to extract at least two frame pictures, at least two frame pictures carry out pixel data comparison.
S230, using the predeterminable area of at least two frame pictures as caption area.
Wherein it is possible to individually compared to the caption area at least two frame pictures, the wherein at least word of two frame pictures
The position in curtain region can be determined by modes such as statistics, such as by the lateral rectangular strip of at least close lower position of two frame pictures
As caption area.The benefit that the present embodiment is arranged in this way be for example during instructional video, other possible background areas
It is higher that pixel compares consistency, but due to caption area is likely to occur subtitle, will lead to the consistent of caption area
Property is lower, influences background area calculated result, therefore, present embodiments provides a kind of side that individually caption area is compared
The accuracy of calculating can be improved in case.
S240, when the pixel number of the caption area according to coincidence factor be more than second setting coincidence factor threshold value when, it is determined that
The coincidence factor of the caption area is 100%.
Wherein, the second setting coincidence factor threshold value can be 50%.That is, the pixel coincidence factor when caption area is super
When 50%, it is determined that the coincidence factor of caption area is 100%.The benefit being arranged in this way is to avoid being brought because subtitle is different
Interference, and in actual video playing process, be often difficult to determine identical subtitle, so, can be to caption area
Similarity carries out Fuzzy processing.
S250, according to pixel number according to comparing result, determine the pixel number of at least two frame pictures according to coincidence factor.
The pixel number of other background areas other than caption area is calculated according to coincidence factor, wherein caption area can be according to
Aforesaid way is determined.
S260, according to the pixel number according to coincidence factor and first setting coincidence factor threshold value size relation, determine described in
Whether video type is preset kind.
S270, if so, reducing the resolution ratio of the Online Video.
The present embodiment on the basis of the above embodiments, provides determining for a kind of pair of background pixel point data coincidence factor
Cheng Zhong, for the scheme that caption area is individually handled, the benefit being arranged in this way be can to avoid because subtitle difference for
Influence caused by background pixel point data coincidence factor.While improving at least identification accuracy of two frame pictures, improves and calculate
Speed.
Embodiment three
Fig. 3 is the flow chart of the adjusting method for the video resolution that the embodiment of the present invention three provides.The present embodiment is above-mentioned
On the basis of embodiment, optimization are as follows: before the pixel number for judging at least two frame pictures is according to coincidence factor, further includes: will
The predeterminable area of at least two frame pictures is as caption area;When the pixel number of the caption area is more than the according to coincidence factor
When two setting coincidence factor threshold values, it is determined that the coincidence factor of the caption area is 100%.
As shown in figure 3, the adjusting method of the video resolution includes:
S310, when detecting mobile terminal playing video, extract at least two frame pictures.
S320, according to extract at least two frame pictures, at least two frame pictures carry out pixel data comparison.
S330, recognition of face is carried out at least two frame pictures respectively.
Wherein it is possible to determine the facial contour of user according to the color data of pixel, or pass through identification present image
Whether containing specific images such as glasses and noses in information, to determine whether there is face information.
At least whether two frame picture face characteristics are consistent described in S340, judgement.
Wherein it is possible to judge whether at least two frame picture face characteristics are consistent according to the face information of recognition of face.If one
It causes, then can determine at least two frame pictures all there is the same person, in addition the higher situation of background pixel point data coincidence factor
Under, determine that the type of current video is static background type.
S350, if so, according to the pixel number according to coincidence factor and second setting coincidence factor threshold value size relation, really
Whether the fixed video type is preset kind;Wherein, the second setting coincidence factor threshold value is less than first setting and is overlapped
Rate threshold value.
Wherein, the second setting coincidence factor threshold value can be 80%.The second setting coincidence factor threshold value is less than described the
One the reasons why setting coincidence factor threshold value, is if currently two frame pictures only included a personage respectively less, and at least two frames
The face characteristic of the personage of picture is consistent, then the type of current video is higher a possibility that belonging to the video of education type, than
Such as impart knowledge to students singing, teaching is danced and teaching is prepared for the postgraduate qualifying examination subject.In this case, instructional video may pass through the background of video
Play the lantern slide etc. of switching, then it can be using the side for when at least two frame picture faces are consistent, reducing whole coincidence factor threshold value
Formula determines that current video is static background type.
S360, if so, reducing the resolution ratio of the Online Video.
The present embodiment on the basis of the above embodiments, provides a kind of for the face progress for extracting at least two frame pictures
Know method for distinguishing, determines whether as static background type, to adjust the resolution ratio of video.Setting can be in user in this way
In the case where not needing high resolution ratio, suitably reduction video resolution is saved to reduce the video decoding burden of CPU
Memory overhead.
Example IV
Fig. 4 is the structural schematic diagram of the regulating device for the video resolution that the embodiment of the present invention four provides.As shown in figure 4,
The regulating device of the video resolution, comprising:
Picture abstraction module 410, for extracting at least two frame pictures when detecting mobile terminal playing video;
Video type judgment module 420, for whether judging the video type according to the extraction at least two frame pictures
For preset kind;Wherein, the preset kind includes at least static background type;
Resolution adjustment module 430, if being judged as YES for the video type judgment module 420, reduce it is described
The resolution ratio of line video.
Technical solution provided by the embodiment of the present application extracts at least two frames when detecting mobile terminal playing video
Picture;According to the extraction at least two frame pictures, judge whether the video type is preset kind;Wherein, the default class
Type includes at least static background type;If so, reducing the resolution ratio of the Online Video.By using provided herein
Technical solution may be implemented in the case where resolution requirement of the user to the video being currently played be not high, to currently broadcasting
The resolution ratio for the Online Video put is adjusted, to optimize the resource distribution of mobile terminal and save the effect of Internet resources
Fruit.
On the basis of the various embodiments described above, optionally, the video type judgment module includes:
Pixel number is according to comparison unit, for extracting at least two frame pictures, carries out pixel at least two frame pictures
Data comparison;
Coincidence factor determination unit, for, according to comparing result, determining the pixel of at least two frame pictures according to pixel number
Point data coincidence factor;
First video type determination unit, for setting coincidence factor threshold value according to coincidence factor and first according to the pixel number
Size relation, determine whether the video type is preset kind.
On the basis of the various embodiments described above, optionally, the video type judgment module further include:
Caption area division unit, for using the predeterminable area of at least two frame pictures as caption area;
Caption area coincidence factor determination unit according to coincidence factor is more than second to set for the pixel number when the caption area
When determining coincidence factor threshold value, it is determined that the coincidence factor of the caption area is 100%.
On the basis of the various embodiments described above, optionally, the video type judgment module further include:
Face information recognition unit, for carrying out recognition of face at least two frame pictures respectively;
Face information judging unit, for judging whether at least two frame picture face characteristics are consistent;
Second video type determination unit, if the face information judging unit is judged as YES, according to the pixel
The size relation of data coincidence factor and the second setting coincidence factor threshold value, determines whether the video type is preset kind;Wherein,
The second setting coincidence factor threshold value is less than the first setting coincidence factor threshold value.
On the basis of the various embodiments described above, optionally, the time span for extracting at least two frame pictures is not less than institute
State the 50% of the total duration for playing video.
Method provided by any embodiment of the invention can be performed in the said goods, has the corresponding functional module of execution method
And beneficial effect.
Embodiment five
The embodiment of the present application also provides a kind of storage medium comprising computer executable instructions, and the computer is executable
It instructs when being executed by computer processor for executing a kind of adjusting method of video resolution, this method comprises:
When detecting mobile terminal playing video, at least two frame pictures are extracted;
According to the extraction at least two frame pictures, judge whether the video type is preset kind;Wherein, described default
Type includes at least static background type;
If so, reducing the resolution ratio of the Online Video.
Storage medium --- any various types of memory devices or storage equipment.Term " storage medium " is intended to wrap
It includes: install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as
DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium
(such as hard disk or optical storage);Register or the memory component of other similar types etc..Storage medium can further include other
Memory of type or combinations thereof.In addition, storage medium can be located at program in the computer system being wherein performed, or
It can be located in different second computer systems, second computer system is connected to computer by network (such as internet)
System.Second computer system can provide program instruction to computer for executing.Term " storage medium " may include can
To reside in different location two or more storage mediums of (such as in the different computer systems by network connection).
Storage medium can store the program instruction (such as being implemented as computer program) that can be performed by one or more processors.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present application
The adjusting for the Online Video resolution ratio that executable instruction is not limited to the described above operates, and the application any embodiment can also be performed
Relevant operation in the adjusting method of provided video resolution.
Embodiment six
The embodiment of the present application provides a kind of mobile terminal, can be integrated in the mobile terminal it is provided by the embodiments of the present application
The regulating device of line video resolution.Fig. 5 is a kind of structural schematic diagram of mobile terminal provided by the embodiments of the present application.Such as Fig. 5
Shown, which may include: memory 501, central processing unit (Central Processing Unit, CPU) 502
(also known as processor, hereinafter referred to as CPU), circuit board (not shown) and power circuit (not shown).The circuit board
It is placed in the space interior that the shell surrounds;The CPU502 and the memory 501 are arranged on the circuit board;It is described
Power circuit, for each circuit or the device power supply for the mobile terminal;The memory 501, it is executable for storing
Program code;The CPU502 run by reading the executable program code stored in the memory 501 with it is described can
The corresponding computer program of program code is executed, to perform the steps of
When detecting mobile terminal playing video, at least two frame pictures are extracted;
According to the extraction at least two frame pictures, judge whether the video type is preset kind;Wherein, described default
Type includes at least static background type;
If so, reducing the resolution ratio of the Online Video.
The mobile terminal further include: Peripheral Interface 503, RF (Radio Frequency, radio frequency) circuit 505, audio-frequency electric
Road 506, loudspeaker 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other input/controls
Control equipment 510 and outside port 504, these components are communicated by one or more communication bus or signal wire 507.
It should be understood that illustrating the example that mobile terminal 500 is only mobile terminal, and mobile terminal 500
It can have than shown in the drawings more or less component, can combine two or more components, or can be with
It is configured with different components.Various parts shown in the drawings can include one or more signal processings and/or dedicated
It is realized in the combination of hardware, software or hardware and software including integrated circuit.
Just the adjusting mobile terminal provided in this embodiment for Online Video resolution ratio is described in detail below, should
Mobile terminal takes the mobile phone as an example.
Memory 501, the memory 501 can be accessed by CPU502, Peripheral Interface 503 etc., and the memory 501 can
It can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory,
Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU502 and deposited by Peripheral Interface 503, the Peripheral Interface 503
Reservoir 501.
I/O subsystem 509, the I/O subsystem 509 can be by the input/output peripherals in equipment, such as touch screen 512
With other input/control devicess 510, it is connected to Peripheral Interface 503.I/O subsystem 509 may include 5091 He of display controller
For controlling one or more input controllers 5092 of other input/control devicess 510.Wherein, one or more input controls
Device 5092 processed receives electric signal from other input/control devicess 510 or sends electric signal to other input/control devicess 510,
Other input/control devicess 510 may include physical button (push button, rocker buttons etc.), dial, slide switch, behaviour
Vertical pole clicks idler wheel.It is worth noting that input controller 5092 can with it is following any one connect: keyboard, infrared port,
The indicating equipment of USB interface and such as mouse.
Touch screen 512, the touch screen 512 are the input interface and output interface between customer mobile terminal and user,
Visual output is shown to user, visual output may include figure, text, icon, video etc..
Display controller 5091 in I/O subsystem 509 receives electric signal from touch screen 512 or sends out to touch screen 512
Electric signals.Touch screen 512 detects the contact on touch screen, and the contact that display controller 5091 will test is converted to and is shown
The interaction of user interface object on touch screen 512, i.e. realization human-computer interaction, the user interface being shown on touch screen 512
Object can be the icon of running game, the icon for being networked to corresponding network etc..It is worth noting that equipment can also include light
Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuit 505 is mainly used for establishing the communication of mobile phone Yu wireless network (i.e. network side), realizes mobile phone and wireless network
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuit 505 receives and sends RF letter
Number, RF signal is also referred to as electromagnetic signal, and RF circuit 505 converts electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications
Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuit 505 may include for executing
The known circuit of these functions comprising but it is not limited to antenna system, RF transceiver, one or more amplifiers, tuner, one
A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould
Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 506 is mainly used for receiving audio data from Peripheral Interface 503, which is converted to telecommunications
Number, and the electric signal is sent to loudspeaker 511.
Loudspeaker 511 is reduced to sound for mobile phone to be passed through RF circuit 505 from the received voice signal of wireless network
And the sound is played to user.
Power management chip 508, the hardware for being connected by CPU502, I/O subsystem and Peripheral Interface are powered
And power management.
The resolution ratio in user to the video being currently played may be implemented in mobile terminal provided by the embodiments of the present application
In the case where of less demanding, the resolution ratio of currently playing Online Video is adjusted, to optimize the resource of mobile terminal
Configuration and the effect for saving Internet resources.
Regulating device, storage medium and the mobile terminal of the Online Video resolution ratio provided in above-described embodiment are executable originally
The adjusting method for applying for video resolution provided by any embodiment has and executes the corresponding functional module of this method and beneficial
Effect.The not technical detail of detailed description in the above-described embodiments, reference can be made to video provided by the application any embodiment point
The adjusting method of resolution.
Finally, it should be noted that the foregoing is only a preferred embodiment of the present invention, it is not intended to restrict the invention,
Although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art, still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features.
All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in of the invention
Within protection scope.
Claims (10)
1. a kind of adjusting method of video resolution, which is characterized in that specifically include that
Step 110: when detecting mobile terminal playing video, extracting at least two frame pictures;
Step 120: according at least two frame pictures of the extraction, judging whether the video type is preset kind;Wherein, institute
Preset kind is stated including at least static background type;
Step 130: if so, reducing the resolution ratio of the Online Video.
2. a kind of adjusting method of video resolution according to claim 1, which is characterized in that root described in step 120
According at least two frame pictures of the extraction, judge whether the video type is preset kind, further comprises:
Step 121: according at least two frame pictures are extracted, pixel data comparison being carried out at least two frame pictures;
Step 122: according to pixel number according to comparing result, determining the pixel number of at least two frame pictures according to coincidence factor;
Step 123: according to the pixel number according to the size relation of coincidence factor and the first setting coincidence factor threshold value, determining the view
Whether frequency type is preset kind.
3. a kind of adjusting method of video resolution according to claim 2, which is characterized in that described in step 122
Further comprise before the pixel number of the determining at least two frame pictures is according to coincidence factor according to comparing result according to pixel number:
Using the predeterminable area of at least two frame pictures as caption area;
When the pixel number of the caption area is more than the second setting coincidence factor threshold value according to coincidence factor, it is determined that the subtitle region
The coincidence factor in domain is 100%.
4. a kind of adjusting method of video resolution according to claim 2, which is characterized in that root described in step 121
According at least two frame pictures are extracted, after carrying out pixel data comparison at least two frame pictures, further comprise:
Recognition of face is carried out at least two frame pictures respectively;
Judge whether at least two frame picture face characteristics are consistent;
If so, determining the view according to the size relation of coincidence factor and the second setting coincidence factor threshold value according to the pixel number
Whether frequency type is preset kind;Wherein, the second setting coincidence factor threshold value is less than the first setting coincidence factor threshold value.
5. a kind of adjusting method of video resolution according to claim 1-4, which is characterized in that the extraction
At least the time span of two frame pictures plays the 50% of video total duration not less than described.
6. a kind of regulating device of video resolution characterized by comprising
Picture abstraction module, for extracting at least two frame pictures when detecting mobile terminal playing video;
Video type judgment module, for judging whether the video type is default according to the extraction at least two frame pictures
Type;Wherein, the preset kind includes at least static background type;
Resolution adjustment module reduces point of the Online Video if being judged as YES for the video type judgment module
Resolution.
7. a kind of regulating device of video resolution according to claim 6, which is characterized in that the video type judgement
Module includes:
Pixel number is according to comparison unit, for extracting at least two frame pictures, carries out pixel number evidence at least two frame pictures
Comparison;
Coincidence factor determination unit, for, according to comparing result, determining the pixel number of at least two frame pictures according to pixel number
According to coincidence factor;
First video type determination unit, for setting the big of coincidence factor threshold value with first according to coincidence factor according to the pixel number
Small relationship determines whether the video type is preset kind.
8. a kind of regulating device of video resolution according to claim 7, which is characterized in that the video type judgement
Module further include:
Caption area division unit, for using the predeterminable area of at least two frame pictures as caption area;
Caption area coincidence factor determination unit, for when the caption area pixel number according to coincidence factor be more than second setting weigh
When conjunction rate threshold value, it is determined that the coincidence factor of the caption area is 100%.
9. a kind of computer readable storage medium, which is characterized in that
Storage medium executes a kind of calculating of the adjusting method of Online Video resolution ratio as described in claim 1-5 for loading
Machine program.
10. a kind of mobile terminal, which is characterized in that specifically include that
Storage medium and processor;
The processor loads based on a kind of adjusting method of Online Video resolution ratio as described in claim 1-5 by executing
Calculation machine program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810749408.7A CN108966005B (en) | 2018-07-10 | 2018-07-10 | Video resolution adjusting method and device, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810749408.7A CN108966005B (en) | 2018-07-10 | 2018-07-10 | Video resolution adjusting method and device, storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108966005A true CN108966005A (en) | 2018-12-07 |
CN108966005B CN108966005B (en) | 2021-04-27 |
Family
ID=64483499
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810749408.7A Active CN108966005B (en) | 2018-07-10 | 2018-07-10 | Video resolution adjusting method and device, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108966005B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112449241A (en) * | 2019-08-29 | 2021-03-05 | 中兴通讯股份有限公司 | Power consumption adjusting method and device and computer readable storage medium |
CN115174965A (en) * | 2022-06-30 | 2022-10-11 | 杭州海康威视数字技术股份有限公司 | Video preview method and device, electronic equipment and computer readable storage medium |
CN115442657A (en) * | 2021-10-15 | 2022-12-06 | 佛山欧神诺云商科技有限公司 | Method, device, medium and product for dynamically adjusting image resolution |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101326821A (en) * | 2006-03-14 | 2008-12-17 | 索尼株式会社 | Image processing device and image processing method |
CN101755460A (en) * | 2007-07-20 | 2010-06-23 | 富士胶片株式会社 | Image processing apparatus, image processing method, image processing system and program |
CN102771119A (en) * | 2009-12-22 | 2012-11-07 | 思杰***有限公司 | Systems and methods for video-aware screen capture and compression |
CN105139792A (en) * | 2015-08-18 | 2015-12-09 | 京东方科技集团股份有限公司 | Display method and display device |
CN105979283A (en) * | 2015-08-12 | 2016-09-28 | 乐视云计算有限公司 | Video transcoding method and device |
CN107277419A (en) * | 2017-07-28 | 2017-10-20 | 京东方科技集团股份有限公司 | A kind of display device and its display methods |
CN107659828A (en) * | 2017-10-30 | 2018-02-02 | 广东欧珀移动通信有限公司 | Video image quality adjustment method, device, terminal device and storage medium |
-
2018
- 2018-07-10 CN CN201810749408.7A patent/CN108966005B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101326821A (en) * | 2006-03-14 | 2008-12-17 | 索尼株式会社 | Image processing device and image processing method |
CN101755460A (en) * | 2007-07-20 | 2010-06-23 | 富士胶片株式会社 | Image processing apparatus, image processing method, image processing system and program |
CN102771119A (en) * | 2009-12-22 | 2012-11-07 | 思杰***有限公司 | Systems and methods for video-aware screen capture and compression |
CN105979283A (en) * | 2015-08-12 | 2016-09-28 | 乐视云计算有限公司 | Video transcoding method and device |
CN105139792A (en) * | 2015-08-18 | 2015-12-09 | 京东方科技集团股份有限公司 | Display method and display device |
CN107277419A (en) * | 2017-07-28 | 2017-10-20 | 京东方科技集团股份有限公司 | A kind of display device and its display methods |
CN107659828A (en) * | 2017-10-30 | 2018-02-02 | 广东欧珀移动通信有限公司 | Video image quality adjustment method, device, terminal device and storage medium |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112449241A (en) * | 2019-08-29 | 2021-03-05 | 中兴通讯股份有限公司 | Power consumption adjusting method and device and computer readable storage medium |
CN115442657A (en) * | 2021-10-15 | 2022-12-06 | 佛山欧神诺云商科技有限公司 | Method, device, medium and product for dynamically adjusting image resolution |
CN115442657B (en) * | 2021-10-15 | 2023-12-26 | 佛山欧神诺云商科技有限公司 | Method, equipment, medium and product for dynamically adjusting resolution of image picture |
CN115174965A (en) * | 2022-06-30 | 2022-10-11 | 杭州海康威视数字技术股份有限公司 | Video preview method and device, electronic equipment and computer readable storage medium |
CN115174965B (en) * | 2022-06-30 | 2024-01-02 | 杭州海康威视数字技术股份有限公司 | Video preview method, device, electronic equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108966005B (en) | 2021-04-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10475413B2 (en) | Method and apparatus for adjusting backlight brightness of screen, and mobile terminal | |
CN109783178B (en) | Color adjusting method, device, equipment and medium for interface component | |
US20200008153A1 (en) | Method for Dynamically Adjusting Energy-Saving Grade of Terminal, Non-Transitory Computer-Readable Storage Medium, and Terminal | |
CN110795056B (en) | Method, device, terminal and storage medium for adjusting display parameters | |
US10037070B2 (en) | Image display method and display system | |
CN107659828A (en) | Video image quality adjustment method, device, terminal device and storage medium | |
CN112203034B (en) | Frame rate control method and device and electronic equipment | |
CN108966005A (en) | A kind of adjusting method of video resolution, device, storage medium and terminal | |
CN109157839A (en) | Frame per second regulates and controls method, apparatus, storage medium and terminal | |
CN108648259B (en) | Image drawing method and device, storage medium and intelligent terminal | |
CN112199140A (en) | Application frame insertion method and related device | |
EP4177782A1 (en) | Font adjustment method and apparatus, storage medium, and electronic device | |
CN109460364A (en) | Application program detection method, device, storage medium and mobile terminal | |
CN108845840A (en) | Management method, device, storage medium and the intelligent terminal of application program sound | |
CN108693948B (en) | Frame rate adjusting method and device, terminal equipment and storage medium | |
CN110647366A (en) | Method, device, terminal and storage medium for processing card pause | |
CN108762465A (en) | Frame per second self-adapting regulation method, device, storage medium and intelligent terminal | |
CN108628429B (en) | Frame rate adjusting method and device, terminal equipment and storage medium | |
CN108966010A (en) | Adjusting method, device, storage medium and the terminal of Online Video resolution ratio | |
CN108811055A (en) | Frame per second method of adjustment, device, terminal device and storage medium | |
US20180262983A1 (en) | Mobile terminal and working method thereof | |
CN107846625B (en) | Video image quality adjustment method, device, terminal device and storage medium | |
CN116721007B (en) | Task control method, system and device, electronic equipment and storage medium | |
CN108594982A (en) | Frame per second method of adjustment, device, terminal device and storage medium | |
CN108712556B (en) | Frame rate adjusting method and device, terminal 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |