CN108235118A - A kind of video toning treating method and apparatus - Google Patents
A kind of video toning treating method and apparatus Download PDFInfo
- Publication number
- CN108235118A CN108235118A CN201810085223.0A CN201810085223A CN108235118A CN 108235118 A CN108235118 A CN 108235118A CN 201810085223 A CN201810085223 A CN 201810085223A CN 108235118 A CN108235118 A CN 108235118A
- Authority
- CN
- China
- Prior art keywords
- designated
- video
- image scene
- toning
- video image
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 239000000463 material Substances 0.000 claims abstract description 100
- 238000003672 processing method Methods 0.000 claims abstract description 8
- 238000010801 machine learning Methods 0.000 claims description 118
- 239000003086 colorant Substances 0.000 claims description 38
- 230000000694 effects Effects 0.000 abstract description 26
- 238000010586 diagram Methods 0.000 description 9
- 230000002087 whitening effect Effects 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 8
- 238000004590 computer program Methods 0.000 description 4
- 230000001815 facial effect Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000001228 spectrum Methods 0.000 description 2
- 238000000151 deposition Methods 0.000 description 1
- 238000001035 drying 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N20/00—Machine learning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
- G06V20/49—Segmenting video sequences, i.e. computational techniques such as parsing or cutting the sequence, low-level clustering or determining units such as shots or scenes
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/23418—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Computing Systems (AREA)
- General Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Evolutionary Computation (AREA)
- Mathematical Physics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Artificial Intelligence (AREA)
- Medical Informatics (AREA)
- Image Analysis (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The invention discloses a kind of video toning processing method, device, electronic equipment and computer readable storage mediums.This method includes:Default different classes of video image scene;The picture material of designated is identified;When the picture material for identifying designated belongs to a kind of video image scene of preset classification, beginning and ending time of the video image scene of the category in the designated is recorded in the configuration file of the designated;When the picture material for identifying designated is not belonging to preset any video image scene classification, the label designated in the configuration file of the designated is applicable in toning processing general rule;The configuration file of the designated is provided, to realize that client carries out toning processing according to configuration file to video.By the technical program, the color matching that can not only cause designated is more bright, it is also possible that the toning processing of video is more pervasive fully, further improves the bandwagon effect of designated broadcasting.
Description
Technical field
The present invention relates to field of computer technology, and in particular to a kind of video toning processing method, device, electronic equipment and
Computer readable storage medium.
Background technology
With electronic equipment function it is increasing, by electronic equipment play video function it is also more and more perfect,
For example, broadcasting or network direct broadcasting to designated etc., for user when playing corresponding video, often what video resource is
Effect, when playing, which type of effect video will show.But it is inevitable, the bandwagon effect of some videos is simultaneously
Undesirable, for example, when in the Video Reservoir for preserving to server in video, the color saturation of video in itself is smaller, makes
User is obtained after request plays the video, which has fuzzy effect when being shown at user, color effect is not strong, can not
Reach customer satisfaction system effect, it is impossible to meet the needs of users.
Invention content
In view of the above problems, it is proposed that the present invention overcomes the above problem in order to provide one kind or solves at least partly
State video toning processing method, device, electronic equipment and the computer readable storage medium of problem.
According to an aspect of the invention, there is provided a kind of video toning processing method, wherein, this method includes:
Default different classes of video image scene;
The picture material of designated is identified;
It is specified at this when the picture material for identifying designated belongs to a kind of video image scene of preset classification
Beginning and ending time of the video image scene of the category in the designated is recorded in the configuration file of video;
When the picture material for identifying designated is not belonging to preset any video image scene classification, at this
The label designated in the configuration file of designated is applicable in toning processing general rule;
The configuration file of the designated is provided, is mixed colours with realizing according to the configuration file the video
Processing.
Optionally, this method further comprises:
When the picture material for identifying designated belongs to a kind of video image scene of preset classification, also described
Toning processing scheme corresponding with the video image scene of the category is written in configuration file.
Optionally, this method further comprises:
When the picture material of designated is not belonging to preset any video image scene classification, judge that this is specified
Whether video is applicable in toning processing general rule;
If applicable, then the designated of the label in the configuration file of the designated is applicable in toning processing Universal gauge
Then;
If inapplicable, the label designated in the configuration file of the designated is not suitable for doing any toning
Processing.
Optionally, judge whether the designated is applicable in toning processing general rule and includes:
The histogram of the designated is input in the machine learning model for identifying the video for being not suitable for toning;
If the output of the machine learning model confirms that the designated is not suitable for the result of toning, it is determined that this is specified and regards
The inapplicable toning processing general rule of frequency;Conversely, determine that the designated is applicable in toning processing general rule.
Optionally, this method further comprises:
Obtain the video of a certain number of unsuitable tonings;
The histogram of these videos for being not suitable for toning is input to as training data in machine learning model and is instructed
Practice study, obtain the machine learning model for identifying the video for being not suitable for toning.
Optionally, the picture material to designated be identified including:
Each machine for the different classes of video image scene that designated is sequentially inputted to be respectively used in identification video
In device learning model;
Obtain the recognition result of each machine learning model output.
Optionally, this method further comprises:
For a kind of video image scene of classification, the video for the video image scene for belonging to the category is obtained, will be obtained
Video be input to machine learning model as training data and be trained study, obtain identifying the category in video
The machine learning model of video image scene;
And so on, obtain the corresponding machine learning model of video image scene of all categories.
Optionally, the configuration file for providing the designated includes:
When receiving the request message for the configuration file for asking the designated of intelligent terminal transmission, by configuration text
Part is sent to intelligent terminal or the download address of the configuration file is sent to the intelligent terminal.
According to another aspect of the present invention, a kind of video toning processing unit is provided, wherein, which includes:
Video image scene presets unit, suitable for default different classes of video image scene;
Recognition unit is identified suitable for the picture material to designated;
Beginning and ending time recording unit, suitable for belonging to a kind of regarding for preset classification when the picture material for identifying designated
During frequency image scene, the video image scene of the category is recorded in the configuration file of the designated in the designated
Beginning and ending time;
Indexing unit, suitable for being not belonging to preset any video picture field when the picture material for identifying designated
During scape classification, the label designated in the configuration file of the designated is applicable in toning processing general rule;
Unit is provided, is adapted to provide for the configuration file of the designated, to realize according to the configuration file to institute
It states video and carries out toning processing.
Optionally, which further comprises:
Toning processing scheme writing unit, suitable for belonging to a kind of preset classification when the picture material for identifying designated
Video image scene when, also in the configuration file write-in it is corresponding with the video image scene of the category mix colours processing side
Case.
Optionally, which further comprises:
Judging unit, the picture material suitable for working as designated are not belonging to preset any video image scene classification
When, judge whether the designated is applicable in toning processing general rule;
The indexing unit, suitable for if applicable, then designated of the label in the configuration file of the designated
It is applicable in toning processing general rule;If inapplicable, the label designated in the configuration file of the designated is not
It is suitble to do any toning processing.
Optionally,
The judging unit, suitable for being input to the histogram of the designated to identify the video for being not suitable for mixing colours
In machine learning model;If the output of the machine learning model confirms that the designated is not suitable for the result of toning, it is determined that
The designated does not apply to toning processing general rule;Conversely, determine that the designated is applicable in toning processing general rule.
Optionally, which further comprises:
First machine learning model acquiring unit, suitable for obtaining the video of a certain number of unsuitable tonings;By these not
The histogram of the video of toning is suitble to be input in machine learning model as training data and is trained study, obtains knowing
The machine learning model of video that Bu Shihe do not mix colours.
Optionally,
The recognition unit different classes of regards suitable for be sequentially inputted to be respectively used in identification video by designated
In each machine learning model of frequency image scene;Obtain the recognition result of each machine learning model output.
Optionally, which further comprises:
Second machine learning model acquiring unit, suitable for the video image scene for a kind of classification, acquisition belongs to such
The video of acquisition is input to machine learning model as training data and is trained by the video of other video image scene
Practise, obtain for identify the category in video video image scene machine learning model;And so on, it obtains of all categories
The corresponding machine learning model of video image scene.
Optionally,
The offer unit, suitable for when the request for the configuration file for asking the designated for receiving intelligent terminal transmission
During message, which is sent to intelligent terminal or the download address of the configuration file is sent to the intelligent terminal.
According to another aspect of the invention, a kind of electronic equipment is provided, wherein, which includes:
Processor;And
The memory of storage computer executable instructions is arranged to, the executable instruction makes the place when executed
Device is managed to perform according to aforementioned method.
In accordance with a further aspect of the present invention, a kind of computer readable storage medium is provided, wherein, it is described computer-readable
The one or more programs of storage medium storage, one or more of programs when being executed by a processor, realize aforementioned method.
According to the technique and scheme of the present invention, different classes of video image scene is preset;To the picture material of designated
It is identified;When the picture material for identifying designated belongs to a kind of video image scene of preset classification, refer at this
Determine to record beginning and ending time of the video image scene of the category in the designated in the configuration file of video;Refer to when identifying
When determining the picture material of video and being not belonging to preset any video image scene classification, in the configuration file of the designated
In the label designated be applicable in toning processing general rule;The configuration file of the designated is provided, to realize client
Toning processing is carried out to video according to configuration file.By the technical program, client can be regarded according to configuration file to specified
Frequency carries out toning processing, and the color matching that can not only cause designated is more bright, when the picture material of designated is not belonging to
During preset any one video image scene classification, designated can also be adjusted according to toning processing general rule
Color so that the toning processing of video is more pervasive fully, further improves the bandwagon effect of designated broadcasting, reaching user expires
The effect of meaning can more meet the broadcasting demand of user, enhance the usage experience of user.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, below the special specific embodiment for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this field
Technical staff will become clear.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow diagram of video toning processing method according to an embodiment of the invention;
Fig. 2 shows the structure diagrams of the device of video according to an embodiment of the invention toning processing;
Fig. 3 shows the structure diagram of electronic equipment according to an embodiment of the invention;
Fig. 4 shows the structure diagram of computer readable storage medium according to an embodiment of the invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
Fig. 1 shows the flow diagram of video toning processing method according to an embodiment of the invention.Such as Fig. 1 institutes
Show, this method includes:
Step S110 presets different classes of video image scene.
In the present embodiment, preset different classes of video image scene can carry out toning processing according to actual needs
Video image scene is preset, for example, the video image scene containing face and/or landscape class video image scene (such as fresh flower,
Meadow).When carrying out the toning of the video image scene containing face, the U.S. face processing such as mill skin, whitening can be carried out to face;When
When toning processing is carried out to landscape class video image scene, the saturation degree of the color of landscape can be adjusted so that the color of landscape
It is more bright-coloured.
The picture material of designated is identified in step S120.
In the present embodiment, the picture material of designated is identified, actually identifies the image of designated
Video image scene classification belonging to content.
Step S130, when the picture material for identifying designated belongs to a kind of video image scene of preset classification
When, beginning and ending time of the video image scene of the category in the designated is recorded in the configuration file of the designated.
In the present embodiment, different classes of video image scene, such as personage, landscape are first preset, then identification is specified
Whether the scene in the picture material of video belongs to the one or more of preset video image scene, identifies affiliated classification
Afterwards, also to record beginning and ending time of the video image scene of respective classes in the designated, so as in client in basis
When configuration file is mixed colours, the beginning and ending time specifically mixed colours is obtained, prevents the image in not corresponding video image scene
Also corresponding toning has been carried out in content, has influenced the bandwagon effect of video instead.In configuration file, the figure of the video of record
The classification of video image as belonging to content and beginning and ending time in video.
For example, preset video image scene includes face, sky, in a designated, the 0- of video is recognized
There is the video image scene of face in the period of 5s, then recorded in the configuration file of the designated in the designated
There is the scene of face in the picture material of 0-5s;There is the video figure of sky in picture material within the period of 3-10s
Image field scape, then recorded in the configuration file of the designated in the designated has sky in the picture material of 3-10s
Video image scene.
Step S140, when the picture material for identifying designated is not belonging to preset any video image scene class
When other, the label designated in the configuration file of the designated is applicable in toning processing general rule.
When carrying out the identification of video image scene classification to the picture material of designated, unavoidably there is None- identified
To the classification of video image scene.So, in the present embodiment, toning processing general rule is also set with, when designated
When picture material is not belonging to preset any video image scene classification, it can be adjusted using toning processing general rule
Color processing, the i.e. designated of the label in the configuration file of the designated are applicable in toning processing general rule in this way can be with
Ensure designated toning handle more abundant, and not be only to the video of the screen image scene comprising pre-set categories into
Row toning is handled, and further improves the usage experience of user.
In the present embodiment, when designated meets toning processing general rule, client-side can utilize general regard
Frequency modulation color processing model mixes colours to designated, video here toning processing model be in client-side or
In configuration file, specifically using the method for machine learning, using the existing video image with certain Color Scheme as
Training data generates corresponding generic video toning processing model, processing model is mixed colours to being applicable in toning using the generic video
The video of processing general rule carries out toning processing.For example, selection color matching is more conform with several films of requirement, learn its color matching
Method generates corresponding generic video toning processing model, then after video input generic video toning processing model, tone
Also the tone consistent with the film chosen can be showed.
Step S150 provides the configuration file of the designated, and video is carried out at toning according to configuration file with realizing
Reason.
In the present embodiment, it is that the technical program is illustrated from server side, server can be to the figure of designated
As the classification of video image scene of the content recognition belonging to it, and initial time is recorded in configuration file, when identification less than
During affiliated video image classification, it is general that the label designated in the configuration file of the designated is applicable in toning processing
Rule when user end to server sends the request for playing the designated, by the designated file and corresponding is matched
It puts file and is supplied to client, client-side can carry out toning processing according to configuration file to designated first, then will adjust
Treated that designated plays out for color.For example, personage is identified from picture material, then the designated of generation is matched
Putting has the description of personage in the picture material for just including in file and change designated, when client carries out the designated broadcasting
Before, according to the description for having personage in configuration file, the toning that personage is carried out to the designated is handled, is then played.
In the present embodiment, toning processing is carried out to designated, can is that U.S. face is carried out to the face in designated
Processing or toning processing is carried out to the color of the landscape in designated so that the saturation degree of the color in designated or
The effect of facial image is more perfect.
In a specific example, preset video image scene classification is face and fresh flower, for designated 1
Face is recognized in picture material, the initial time that record recognizes the video image scene comprising face is designated 1
The video image scene of face and initial time 3-10s are then recorded in the configuration file of the designated 1 by 3-10s;It is right
In designated 2, identify that the picture material of designated is not belonging to preset facial video image scene type, be also not belonging to
During fresh flower video image scene, it is general that the label designated in the configuration file of the designated 2 is applicable in toning processing
Regular provides the configuration file of the designated 1 when client sends the request for playing the designated 1, client according to
The 3-10s of the designated includes face described in the configuration file of the designated 1, then to the designated before broadcasting
Face in 1 3-10s carries out toning processing, then plays again;When sending the broadcasting designated 2, specified regard is provided
Frequently 2 configuration file, client meet designated 2 toning processing general rule accordingly according to the configuration file
Toning processing, then play out again.
As it can be seen that through this embodiment, client can carry out toning processing according to configuration file to designated, not only may be used
So that the color matching of designated is more bright, when the picture material of designated is not belonging to preset any video image
During scene type, it can be mixed colours according to toning processing general rule designated so that the toning processing of video is more
It is pervasive abundant, the bandwagon effect of designated broadcasting is further improved, reaches customer satisfaction system effect, can more meet broadcasting for user
Demand is put, enhances the usage experience of user.
In one embodiment of the invention, method shown in FIG. 1 further comprises:
When the picture material for identifying designated belongs to a kind of video image scene of preset classification, also it is being configured
Toning processing scheme corresponding with the video image scene of the category is written in file.
In actual use, client can carry out toning processing according to configuration file after server provides configuration file, visitor
Family end can be carried out when how selection is specifically mixed colours according to the toning processing scheme of client itself.In this implementation
In example, server will be in corresponding toning processing scheme write-in configuration file, then client can be according to configuration file
Processing scheme of mixing colours carries out specific toning processing, carries out the selection of toning processing scheme again without client, it is possible to reduce
The process step of client-side toning processing procedure.
For example, the recognition result of server, which is the 0-3s of the designated, includes the video image scene of face, client
End then can to the video image of the 0-3s of the designated carry out face toning handle, when being handled selection to face into
The processing such as row whitening, mill skin.If server presets the toning processing scheme that the 0-3s includes the video image scene of face
It is whitening processing to be carried out to face, and be written in configuration file, then client is according to configuration file, only to the designated
The video image of 0-3s carries out the whitening processing of face.For another example, it is written in the configuration file of designated to fresh flower class
When the video of video image scene is mixed colours, the saturation degree of colored color is improved 20%, then client is to carry out this specified
During the toning of video, the saturation degree of the color of fresh flower part is just improved 20%.
In one embodiment of the invention, method shown in FIG. 1 further comprises:When designated picture material not
When belonging to preset any video image scene classification, judge whether the designated is applicable in toning processing general rule;
If applicable, then the designated of the label in the configuration file of the designated is applicable in toning processing general rule;If
Inapplicable, then the designated of the label in the configuration file of the designated is not suitable for doing any toning processing.
In practical applications, the toning that video can be carried out using toning processing general rule is handled, so that in video
Color matching it is distincter.But be not suitable for carrying out any toning processing there are also video, for example, art form is song-and-dance duet
Legitimate drama in, fancy is compared in wearing for personage in itself, and curtain color also can be more beautiful, if it is easy to carry out toning processing again
There is the situation of overexposure, instead so that the bandwagon effect of video is worse, such as the clothing on clothes is buckled and can not can normally be shown.Institute
With in the present embodiment, when the picture material of designated is not belonging to preset any video image scene classification, also
It needs first to judge whether the designated is applicable in toning processing general rule, only when applicable, just can specify and regard at this
The label designated in the configuration file of frequency is applicable in toning processing general rule, prevents the displaying of the video after toning
The worse situation of effect.
Further, it is above-mentioned to judge whether the designated is applicable in toning processing general rule and includes:This is specified and is regarded
The histogram of frequency is input in the machine learning model for identifying the video for being not suitable for toning;If the machine learning model
Output confirms that the designated is not suitable for the result of toning, it is determined that the designated does not apply to toning processing general rule;Instead
It, determines that the designated is applicable in toning processing general rule.
In the present embodiment, the histogram of video is the exposed feature of image or the figure of color characteristic in description video
Spectrum.For example, it is different color ratio shared in entire image that color histogram is described.
In the present embodiment, judge designated whether using toning processing general rule using machine learning model.
Specifically the histogram of designated is inputted in the machine learning model for identifying the video for being not suitable for toning, according to
The result of model output determines whether the designated is suitable for toning processing general rule.
Specifically, on the basis of above-described embodiment, method shown in FIG. 1 further comprises:Obtain it is a certain number of not
It is suitble to the video of toning;The histogram of these videos for being not suitable for toning is input to as training data in machine learning model
Study is trained, obtains the machine learning model for identifying the video for being not suitable for toning.
In order to judge whether the designated is applicable in toning processing general rule using machine learning model, need to obtain
The machine learning model because the machine learning model is for identifying the video for being not suitable for toning, is obtaining video
When sample is trained, acquisition be not suitable for toning video histogram.Then this is used to identify the video for being not suitable for toning
Machine learning model output result when being to determine, then the designated is not suitable for mixing colours, that is, it is general to be not suitable for toning processing
Rule;When output result whether when, then the designated is suitble to mix colours, that is, be suitble to toning processing general rule.
Further, method shown in FIG. 1 further comprises:Obtain it is a certain number of be confirmed as be suitble to toning regard
Frequently;By these be suitble to toning video input to for identify be not suitable for toning video machine learning model in, to the machine
Device learning model is verified.
In the present embodiment, in order to verify above-described embodiment obtain for identify be not suitable for toning video engineering
The accuracy of model is practised, a certain number of videos for being known to be and being suitble to toning can be obtained, be input to acquisition is used for identification not
It is suitble in the machine learning model of the video of toning, because the accurate recognition result of the video of input is known, if machine
Whether the result of device learning model output, then the machine learning model is accurate, if what the result of input was to determine, it should
The accuracy needs of machine learning model further improve, and are verified using the video for being confirmed as suitable toning, Ke Yibao
Demonstrate,prove the accuracy of the recognition result of the machine learning model.
In one embodiment of the invention, the picture material to designated in step S120 shown in FIG. 1 carries out
Identification includes:Each machine for the different classes of video image scene that designated is sequentially inputted to be respectively used in identification video
In device learning model;Obtain the recognition result of each machine learning model output.
In the present embodiment, it is identification that all kinds of video image scene classifications is carried out by machine learning model.At this
In, the video image scene of each classification corresponds to a kind of machine learning model.For example, have the video image scene of face class
The engineering of the video image scene of machine learning model, the machine learning model of the video image scene of day empty class and fresh flower class
Model is practised, a designated is separately input in three kinds of above-mentioned machine learning models, as a result identified in the designated
Picture material in have face and fresh flower, that is to say, that in the machine learning model and fresh flower of the video image scene of face class
The machine learning model output of the video image scene of class is existing recognition result, and the video image scene of day empty class
Machine learning model output is the recognition result being not present.Different classes of video image scene can thus be carried out accurate
True identification.
Further, on the basis of above-described embodiment, method shown in FIG. 1 further comprises:For a kind of classification
Video image scene obtains the video for the video image scene for belonging to the category, is inputted the video of acquisition as training data
Be trained study to machine learning model, obtain for identify the category in video video image scene machine learning
Model;And so on, obtain the corresponding machine learning model of video image scene of all categories.
In order to realize the identification of different classes of video image scene, need to obtain the machine of video image scene of all categories
Device learning model, in the present embodiment, the video image scene of each classification is to obtain the video image for belonging to the category first
Video sample of the video of scene as the category, carries out the training of machine learning, then obtains the video picture field of the category
The machine learning model of scape.For example, for the video image scene of face classification, the video picture field with face is obtained first
The video of scape is input to training in machine learning model, obtains the machine learning model of the video image scene of face classification;It is right
In the video image scene of sky classification, the video of the video image scene with sky is obtained first, is input to machine learning
Training, obtains the machine learning model of the video image scene of sky classification in model.
In one embodiment of the invention, the configuration file of the offer designated in step S150 includes:When connecing
When receiving the request message of the configuration file for asking the designated of intelligent terminal transmission, which is sent to intelligence
The download address of the configuration file is sent to the intelligent terminal by terminal.
In the technical program, server side can provide the configuration file of designated, specifically mix colours video
The step of processing, is carried out in client-side, and therefore, server needs to provide configuration file to client, is particularly taking
When business device receives the request message of the configuration file for asking the designated of intelligent terminal transmission, which is sent
The intelligent terminal is sent to intelligent terminal or by the download address of the configuration file, so that designated terminal is according to download ground
Download the configuration file of the designated in location.
In client-side, the request for playing designated can be sent when playing designated to server, when getting
During designated, in order to realize the toning processing to designated, need to obtain the configuration file of the designated.Refer in broadcasting
When determining video, toning processing is carried out according to configuration file first, then plays toning treated video again, that is to say, that use
The video that family perceives is handled by toning.When being mixed colours, adjusted according to the configuration file of designated
Color.
It (1), will when the designated described in the configuration file includes picture material and its beginning and ending time of scenery class
The saturation degree of three color of red, green, blue in scenery class picture material in the designated increases default value.
For example, include fresh flower, meadow and blue sky in the picture material of scenery class in designated, according to configuration text
The description of part, the beginning and ending time of the picture material of the scenery class is 10s-25s, then when being mixed colours, by the of video
The saturation degree of red, green, blue three in the picture material of 10s-25s increases by 20%, then the fresh flower in video, meadow and blue sky
Color can be more beautiful, improves the bandwagon effect of video.
(2) include when configuration file describes the designated containing the picture material of face and during its beginning and ending time, to this
The picture material containing face in designated carries out beautifying faces processing.
For example, include face in the picture material of scenery class in designated, it, should according to the description of configuration file
The beginning and ending time of picture material comprising face is 0s-20s, then when being mixed colours, by the image of the 0s-20s of video
Face in content carries out whitening processing so that the bandwagon effect of the face in video is more preferable.
(3) when configuration file, which describes the designated, is applicable in video processing general rule, which is input to
Toning processing is carried out in generic video toning processing model.
It (4), will when the designated described in the configuration file includes picture material and its beginning and ending time of scenery class
The saturation degree of three color of red, green, blue in scenery class picture material in the designated increases default value;And when configuration text
Part describes the designated and includes containing the picture material of face and during its beginning and ending time, in the designated containing face
Picture material carries out beautifying faces processing;Then, then the designated is input in generic video toning processing model and carried out
Toning is handled.
The time of picture material comprising scenery class and the picture material comprising face in video can be overlapped,
For example, the beginning and ending time of the picture material comprising scenery class is 10s-25s, the beginning and ending time of the picture material comprising face is
0s-20s, that is to say, that both included scenery class in the picture material of the 10s-20s in designated or comprising someone
Face, then will be the toning processing also progress beautifying faces processing for carrying out scenery class to the picture material of the period content.
In this way, playing toning treated video in client-side, the bandwagon effect of video is improved, meets the broadcasting of user
Demand.
Fig. 2 shows the structure diagrams of the device of video according to an embodiment of the invention toning processing.Such as Fig. 2 institutes
Show, video toning processing unit 200 includes:
Video image scene presets unit 210, suitable for default different classes of video image scene.
In the present embodiment, preset different classes of video image scene can carry out toning processing according to actual needs
Video image scene is preset, for example, the video image scene containing face and/or landscape class video image scene (such as fresh flower,
Meadow).When carrying out the toning of the video image scene containing face, the U.S. face processing such as mill skin, whitening can be carried out to face;When
When toning processing is carried out to landscape class video image scene, the saturation degree of the color of landscape can be adjusted so that the color of landscape
It is more bright-coloured.
Recognition unit 220 is identified suitable for the picture material to designated.
In the present embodiment, the picture material of designated is identified, actually identifies the image of designated
Video image scene classification belonging to content.
Beginning and ending time recording unit 230, suitable for belonging to a kind of preset classification when the picture material for identifying designated
Video image scene when, in the configuration file of the designated record the category video image scene in the designated
In beginning and ending time.
In the present embodiment, different classes of video image scene, such as personage, landscape are first preset, then identification is specified
Whether the scene in the picture material of video belongs to the one or more of preset video image scene, identifies affiliated classification
Afterwards, also to record beginning and ending time of the video image scene of respective classes in the designated, so as in client in basis
When configuration file is mixed colours, the beginning and ending time specifically mixed colours is obtained, prevents the image in not corresponding video image scene
Also corresponding toning has been carried out in content, has influenced the bandwagon effect of video instead.In configuration file, the figure of the video of record
The classification of video image as belonging to content and beginning and ending time in video.
For example, preset video image scene includes face, sky, in a designated, the 0- of video is recognized
There is the video image scene of face in the period of 5s, then recorded in the configuration file of the designated in the designated
There is the scene of face in the picture material of 0-5s;There is the video figure of sky in picture material within the period of 3-10s
Image field scape, then recorded in the configuration file of the designated in the designated has sky in the picture material of 3-10s
Video image scene.
Indexing unit 240, suitable for being not belonging to preset any video figure when the picture material for identifying designated
During as scene type, the label designated in the configuration file of the designated is applicable in toning processing general rule.
When carrying out the identification of video image scene classification to the picture material of designated, unavoidably there is None- identified
To the classification of video image scene.So, in the present embodiment, toning processing general rule is also set with, when designated
When picture material is not belonging to preset any video image scene classification, it can be adjusted using toning processing general rule
Color processing, the i.e. designated of the label in the configuration file of the designated are applicable in toning processing general rule in this way can be with
Ensure designated toning handle more abundant, and not be only to the video of the screen image scene comprising pre-set categories into
Row toning is handled, and further improves the usage experience of user.
In the present embodiment, when designated meets toning processing general rule, client-side can utilize general regard
Frequency modulation color processing model mixes colours to designated, video here toning processing model be in client-side or
In configuration file, specifically using the method for machine learning, using the existing video image with certain Color Scheme as
Training data generates corresponding generic video toning processing model, processing model is mixed colours to being applicable in toning using the generic video
The video of processing general rule carries out toning processing.For example, selection color matching is more conform with several films of requirement, learn its color matching
Method generates corresponding generic video toning processing model, then after video input generic video toning processing model, tone
Also the tone consistent with the film chosen can be showed.
Unit 250 is provided, is adapted to provide for the configuration file of the designated, video is carried out according to configuration file with realizing
Toning is handled.
In the present embodiment, it is to this technology side from server side (server side includes video toning processing unit)
Case illustrates, and server can identify the picture material of designated the classification of the video image scene belonging to it, and will rise
Time beginning is recorded in configuration file, when identification is less than affiliated video image classification, in the configuration file of the designated
In the label designated be applicable in toning processing general rule, when user end to server send play the designated please
When asking, the designated file and corresponding configuration file are supplied to client, client-side can be first according to configuration text
Part carries out toning processing to designated, then will toning treated that designated plays out.For example, from picture material
Identify personage, then just including in the configuration file of the designated of generation has personage in the picture material for change designated
Description, before client carries out the designated broadcasting, according to the description for having personage in configuration file, to the designated into
The toning processing of pedestrian's object, then plays.
In the present embodiment, toning processing is carried out to designated, can is that U.S. face is carried out to the face in designated
Processing or toning processing is carried out to the color of the landscape in designated so that the saturation degree of the color in designated or
The effect of facial image is more perfect.
In a specific example, preset video image scene classification is face and fresh flower, for designated 1
Face is recognized in picture material, the initial time that record recognizes the video image scene comprising face is designated 1
The video image scene of face and initial time 3-10s are then recorded in the configuration file of the designated 1 by 3-10s;It is right
In designated 2, identify that the picture material of designated is not belonging to preset facial video image scene type, be also not belonging to
During fresh flower video image scene, it is general that the label designated in the configuration file of the designated 2 is applicable in toning processing
Regular provides the configuration file of the designated 1 when client sends the request for playing the designated 1, client according to
The 3-10s of the designated includes face described in the configuration file of the designated 1, then to the designated before broadcasting
Face in 1 3-10s carries out toning processing, then plays again;When sending the broadcasting designated 2, specified regard is provided
Frequently 2 configuration file, client meet designated 2 toning processing general rule accordingly according to the configuration file
Toning processing, then play out again.
As it can be seen that through this embodiment, client can carry out toning processing according to configuration file to designated, not only may be used
So that the color matching of designated is more bright, when the picture material of designated is not belonging to preset any video image
During scene type, it can be mixed colours according to toning processing general rule designated so that the toning processing of video is more
It is pervasive abundant, the bandwagon effect of designated broadcasting is further improved, reaches customer satisfaction system effect, can more meet broadcasting for user
Demand is put, enhances the usage experience of user.
In one embodiment of the invention, device shown in Fig. 2 further comprises:
Toning processing scheme writing unit, suitable for belonging to a kind of preset classification when the picture material for identifying designated
Video image scene when, corresponding with the video image scene of the category toning processing scheme of write-in also in configuration file.
In actual use, client can carry out toning processing according to configuration file after server provides configuration file, visitor
Family end can be carried out when how selection is specifically mixed colours according to the toning processing scheme of client itself.In this implementation
In example, server will be in corresponding toning processing scheme write-in configuration file, then client can be according to configuration file
Processing scheme of mixing colours carries out specific toning processing, carries out the selection of toning processing scheme again without client, it is possible to reduce
The process step of client-side toning processing procedure.
For example, the recognition result of server, which is the 0-3s of the designated, includes the video image scene of face, client
End then can to the video image of the 0-3s of the designated carry out face toning handle, when being handled selection to face into
The processing such as row whitening, mill skin.If server presets the toning processing scheme that the 0-3s includes the video image scene of face
It is whitening processing to be carried out to face, and be written in configuration file, then client is according to configuration file, only to the designated
The video image of 0-3s carries out the whitening processing of face.For another example, it is written in the configuration file of designated to fresh flower class
When the video of video image scene is mixed colours, the saturation degree of colored color is improved 20%, then client is to carry out this specified
During the toning of video, the saturation degree of the color of fresh flower part is just improved 20%.
In one embodiment of the invention, device shown in Fig. 2 further comprises:
Judging unit, the picture material suitable for working as designated are not belonging to preset any video image scene classification
When, judge whether the designated is applicable in toning processing general rule.
Indexing unit, suitable for if applicable, then the designated of the label in the configuration file of the designated is applicable in
Toning processing general rule;If inapplicable, the label designated in the configuration file of the designated is not suitable for
Do any toning processing.
In practical applications, the toning that video can be carried out using toning processing general rule is handled, so that in video
Color matching it is distincter.But be not suitable for carrying out any toning processing there are also video, for example, art form is song-and-dance duet
Legitimate drama in, fancy is compared in wearing for personage in itself, and curtain color also can be more beautiful, if it is easy to carry out toning processing again
There is the situation of overexposure, instead so that the bandwagon effect of video is worse, such as the clothing on clothes is buckled and can not can normally be shown.Institute
With in the present embodiment, when the picture material of designated is not belonging to preset any video image scene classification, also
It needs first to judge whether the designated is applicable in toning processing general rule, only when applicable, just can specify and regard at this
The label designated in the configuration file of frequency is applicable in toning processing general rule, prevents the displaying of the video after toning
The worse situation of effect.
Further, above-mentioned judging unit, it is unsuitable for identifying suitable for being input to the histogram of the designated
In the machine learning model of the video of toning;If the output of the machine learning model confirms that the designated is not suitable for toning
As a result, it is determined that the designated does not apply to toning processing general rule;Conversely, it is logical to determine that the designated is applicable in toning processing
With rule.
In the present embodiment, the histogram of video is the exposed feature of image or the figure of color characteristic in description video
Spectrum.For example, it is different color ratio shared in entire image that color histogram is described.
In the present embodiment, judge designated whether using toning processing general rule using machine learning model.
Specifically the histogram of designated is inputted in the machine learning model for identifying the video for being not suitable for toning, according to
The result of model output determines whether the designated is suitable for toning processing general rule.
Specifically, on the basis of above-described embodiment, device shown in Fig. 2 further comprises:
First machine learning model acquiring unit, suitable for obtaining the video of a certain number of unsuitable tonings;By these not
The histogram of the video of toning is suitble to be input in machine learning model as training data and is trained study, obtains knowing
The machine learning model of video that Bu Shihe do not mix colours.
In order to judge whether the designated is applicable in toning processing general rule using machine learning model, need to obtain
The machine learning model because the machine learning model is for identifying the video for being not suitable for toning, is obtaining video
When sample is trained, acquisition be not suitable for toning video histogram.Then this is used to identify the video for being not suitable for toning
Machine learning model output result when being to determine, then the designated is not suitable for mixing colours, that is, it is general to be not suitable for toning processing
Rule;When output result whether when, then the designated is suitble to mix colours, that is, be suitble to toning processing general rule.
Further, the first above-mentioned machine learning model acquiring unit is confirmed as fitting suitable for acquisition is a certain number of
Close the video of toning;By these be suitble to toning video input arrive for identify be not suitable for mix colours video machine learning model
In, which is verified.
In the present embodiment, in order to verify above-described embodiment obtain for identify be not suitable for toning video engineering
The accuracy of model is practised, a certain number of videos for being known to be and being suitble to toning can be obtained, be input to acquisition is used for identification not
It is suitble in the machine learning model of the video of toning, because the accurate recognition result of the video of input is known, if machine
Whether the result of device learning model output, then the machine learning model is accurate, if what the result of input was to determine, it should
The accuracy needs of machine learning model further improve, and are verified using the video for being confirmed as suitable toning, Ke Yibao
Demonstrate,prove the accuracy of the recognition result of the machine learning model.
In one embodiment of the invention, recognition unit 220, suitable for designated to be sequentially inputted to be respectively used to know
In each machine learning model of different classes of video image scene in other video;Obtain the knowledge of each machine learning model output
Other result.
In the present embodiment, it is identification that all kinds of video image scene classifications is carried out by machine learning model.At this
In, the video image scene of each classification corresponds to a kind of machine learning model.For example, have the video image scene of face class
The engineering of the video image scene of machine learning model, the machine learning model of the video image scene of day empty class and fresh flower class
Model is practised, a designated is separately input in three kinds of above-mentioned machine learning models, as a result identified in the designated
Picture material in have face and fresh flower, that is to say, that in the machine learning model and fresh flower of the video image scene of face class
The machine learning model output of the video image scene of class is existing recognition result, and the video image scene of day empty class
Machine learning model output is the recognition result being not present.Different classes of video image scene can thus be carried out accurate
True identification.
Further, on the basis of above-described embodiment, device shown in Fig. 2 further comprises:
Second machine learning model acquiring unit, suitable for the video image scene for a kind of classification, acquisition belongs to such
The video of acquisition is input to machine learning model as training data and is trained by the video of other video image scene
Practise, obtain for identify the category in video video image scene machine learning model;And so on, it obtains of all categories
The corresponding machine learning model of video image scene.
In order to realize the identification of different classes of video image scene, need to obtain the machine of video image scene of all categories
Device learning model, in the present embodiment, the video image scene of each classification is to obtain the video image for belonging to the category first
Video sample of the video of scene as the category, carries out the training of machine learning, then obtains the video picture field of the category
The machine learning model of scape.For example, for the video image scene of face classification, the video picture field with face is obtained first
The video of scape is input to training in machine learning model, obtains the machine learning model of the video image scene of face classification;It is right
In the video image scene of sky classification, the video of the video image scene with sky is obtained first, is input to machine learning
Training, obtains the machine learning model of the video image scene of sky classification in model.
In one embodiment of the invention, unit 250 is provided, this refers to suitable for that ought receive the request of intelligent terminal transmission
When determining the request message of the configuration file of video, which is sent to intelligent terminal or will be under the configuration file
Set address is sent to the intelligent terminal.
In the technical program, server side can provide the configuration file of designated, specifically mix colours video
The step of processing, is carried out in client-side, and therefore, server needs to provide configuration file to client, is particularly taking
When business device receives the request message of the configuration file for asking the designated of intelligent terminal transmission, which is sent
The intelligent terminal is sent to intelligent terminal or by the download address of the configuration file, so that designated terminal is according to download ground
Download the configuration file of the designated in location.
The present invention also provides a kind of electronic equipment, wherein, which includes:
Processor;And the memory of storage computer executable instructions is arranged to, executable instruction is when executed
Make the method for video toning processing that processor is performed according to figure 1 and its each embodiment
Fig. 3 shows the structure diagram of electronic equipment according to an embodiment of the invention.As shown in figure 3, the electronics
Equipment 300 includes:
Processor 310;And the memory 320 of storage computer executable instructions (program code) is arranged to, it is depositing
In reservoir 320, there is the memory space 330 of storage program code, for performing the program code of steps of a method in accordance with the invention
330 are stored in memory space 330, and it is according to figure 1 and its each which when executed perform processor 310
The method of video toning processing in embodiment.
Fig. 4 shows the structure diagram of computer readable storage medium according to an embodiment of the invention.Such as Fig. 4 institutes
Show, the computer readable storage medium 400, store one or more programs (program code) 410, one or more program (journeys
Sequence code) 410 when being executed by a processor, for performing steps of a method in accordance with the invention, i.e., shown in FIG. 1 and its each reality
The method for applying the video toning processing in example.
It should be noted that each embodiment of electronic equipment shown in Fig. 3 and computer readable storage medium shown in Fig. 4
It is corresponding identical with each embodiment of method shown in FIG. 1, it has been described in detail above, details are not described herein.
In conclusion according to the technique and scheme of the present invention, preset different classes of video image scene;To designated
Picture material is identified;When the picture material for identifying designated belongs to a kind of video image scene of preset classification
When, beginning and ending time of the video image scene of the category in the designated is recorded in the configuration file of the designated;
When the picture material for identifying designated is not belonging to preset any video image scene classification, in the designated
Configuration file in the label designated be applicable in toning processing general rule;The configuration file of the designated is provided, with
Realize that client carries out toning processing according to configuration file to video.By the technical program, client can be according to configuration text
Part carries out toning processing to designated, and the color matching that can not only cause designated is more bright, when the image of designated
It, can be according to toning processing general rule to designated when content is not belonging to preset any video image scene classification
It mixes colours so that the toning processing of video is more pervasive fully, further improves the bandwagon effect of designated broadcasting, reaches
Customer satisfaction system effect can more meet the broadcasting demand of user, enhance the usage experience of user.
It should be noted that:
Algorithm and display be not inherently related to any certain computer, virtual bench or miscellaneous equipment provided herein.
Various fexible units can also be used together with teaching based on this.As described above, required by constructing this kind of device
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the specification provided in this place, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim is in itself
Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.It can be the module or list in embodiment
Member or component be combined into a module or unit or component and can be divided into addition multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Profit requirement, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization or to be run on one or more processor
Software module realize or realized with combination thereof.It will be understood by those of skill in the art that it can use in practice
Microprocessor or digital signal processor (DSP) realize video toning processing unit according to embodiments of the present invention, electronics
The some or all functions of some or all components in equipment and computer readable storage medium.It is of the invention acceptable real
It is now for performing some or all equipment of method as described herein or program of device (for example, computer journey
Sequence and computer program product).Such program for realizing the present invention can may be stored on the computer-readable medium or can be with
Form with one or more signal.Such signal can be downloaded from internet website to be obtained or believes in carrier
It provides on number or is provided in the form of any other.
For example, Fig. 3 shows the structure diagram of electronic equipment according to an embodiment of the invention.The electronic equipment
300 conventionally comprise processor 310 and are arranged to the memory 320 of storage computer executable instructions (program code).It deposits
Reservoir 320 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk or ROM etc
Electronic memory.Memory 320 has storage for performing any method and step in shown in FIG. 1 and each embodiment
The memory space 330 of program code 340.For example, the memory space 330 for program code can include being respectively used to realization
Each program code 340 of various steps in the method in face.These program codes can be from one or more computer journey
It reads or is written in sequence product in this one or more computer program product.These computer program products include all
Such as hard disk, the program code carrier of compact-disc (CD), storage card or floppy disk etc.Such computer program product is usually
Such as the computer readable storage medium 400 described in Fig. 4.The computer readable storage medium 400 can have the electronics with Fig. 3
Memory paragraph, memory space of 320 similar arrangement of memory in equipment etc..Program code can be pressed for example in a suitable form
Contracting.In general, storage unit is stored with the program code 410 for performing steps of a method in accordance with the invention, you can with by such as
The program code that 310 etc processor is read, when these program codes are run by electronic equipment, causes the electronic equipment to be held
Each step in row method described above.
It should be noted that the present invention will be described rather than limits the invention, and ability for above-described embodiment
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and run after fame
Claim.
The invention discloses A1, a kind of video toning processing method, wherein, this method includes:
Default different classes of video image scene;
The picture material of designated is identified;
It is specified at this when the picture material for identifying designated belongs to a kind of video image scene of preset classification
Beginning and ending time of the video image scene of the category in the designated is recorded in the configuration file of video;
When the picture material for identifying designated is not belonging to preset any video image scene classification, at this
The label designated in the configuration file of designated is applicable in toning processing general rule;
The configuration file of the designated is provided, is mixed colours with realizing according to the configuration file the video
Processing.
A2, the method as described in A1, wherein, this method further comprises:
When the picture material for identifying designated belongs to a kind of video image scene of preset classification, also described
Toning processing scheme corresponding with the video image scene of the category is written in configuration file.
A3, the method as described in A1, wherein, this method further comprises:
When the picture material of designated is not belonging to preset any video image scene classification, judge that this is specified
Whether video is applicable in toning processing general rule;
If applicable, then the designated of the label in the configuration file of the designated is applicable in toning processing Universal gauge
Then;
If inapplicable, the label designated in the configuration file of the designated is not suitable for doing any toning
Processing.
A4, the method as described in A3, wherein, judge whether the designated is applicable in toning processing general rule and includes:
The histogram of the designated is input in the machine learning model for identifying the video for being not suitable for toning;
If the output of the machine learning model confirms that the designated is not suitable for the result of toning, it is determined that this is specified and regards
The inapplicable toning processing general rule of frequency;Conversely, determine that the designated is applicable in toning processing general rule.
A5, the method as described in A4, wherein, this method further comprises:
Obtain the video of a certain number of unsuitable tonings;
The histogram of these videos for being not suitable for toning is input to as training data in machine learning model and is instructed
Practice study, obtain the machine learning model for identifying the video for being not suitable for toning.
A6, the method as described in A1, wherein, the picture material to designated be identified including:
Each machine for the different classes of video image scene that designated is sequentially inputted to be respectively used in identification video
In device learning model;
Obtain the recognition result of each machine learning model output.
A7, the method as described in A6, wherein, this method further comprises:
For a kind of video image scene of classification, the video for the video image scene for belonging to the category is obtained, will be obtained
Video be input to machine learning model as training data and be trained study, obtain identifying the category in video
The machine learning model of video image scene;
And so on, obtain the corresponding machine learning model of video image scene of all categories.
A8, the method as described in any one of A1-A7, wherein, the configuration file packet which is provided
It includes:
When receiving the request message for the configuration file for asking the designated of intelligent terminal transmission, by configuration text
Part is sent to intelligent terminal or the download address of the configuration file is sent to the intelligent terminal.
The invention also discloses B9, a kind of video toning processing unit, wherein, which includes:
Video image scene presets unit, suitable for default different classes of video image scene;
Recognition unit is identified suitable for the picture material to designated;
Beginning and ending time recording unit, suitable for belonging to a kind of regarding for preset classification when the picture material for identifying designated
During frequency image scene, the video image scene of the category is recorded in the configuration file of the designated in the designated
Beginning and ending time;
Indexing unit, suitable for being not belonging to preset any video picture field when the picture material for identifying designated
During scape classification, the label designated in the configuration file of the designated is applicable in toning processing general rule;
Unit is provided, is adapted to provide for the configuration file of the designated, to realize according to the configuration file to institute
It states video and carries out toning processing.
B10, the device as described in B9, wherein, which further comprises:
Toning processing scheme writing unit, suitable for belonging to a kind of preset classification when the picture material for identifying designated
Video image scene when, also in the configuration file write-in it is corresponding with the video image scene of the category mix colours processing side
Case.
B11, the device as described in B9, wherein, which further comprises:
Judging unit, the picture material suitable for working as designated are not belonging to preset any video image scene classification
When, judge whether the designated is applicable in toning processing general rule;
The indexing unit, suitable for if applicable, then designated of the label in the configuration file of the designated
It is applicable in toning processing general rule;If inapplicable, the label designated in the configuration file of the designated is not
It is suitble to do any toning processing.
B12, the device as described in B11, wherein,
The judging unit, suitable for being input to the histogram of the designated to identify the video for being not suitable for mixing colours
In machine learning model;If the output of the machine learning model confirms that the designated is not suitable for the result of toning, it is determined that
The designated does not apply to toning processing general rule;Conversely, determine that the designated is applicable in toning processing general rule.
B13, the device as described in B12, wherein, which further comprises:
First machine learning model acquiring unit, suitable for obtaining the video of a certain number of unsuitable tonings;By these not
The histogram of the video of toning is suitble to be input in machine learning model as training data and is trained study, obtains knowing
The machine learning model of video that Bu Shihe do not mix colours.
B14, the device as described in B9, wherein,
The recognition unit different classes of regards suitable for be sequentially inputted to be respectively used in identification video by designated
In each machine learning model of frequency image scene;Obtain the recognition result of each machine learning model output.
B15, the device as described in B14, wherein, which further comprises:
Second machine learning model acquiring unit, suitable for the video image scene for a kind of classification, acquisition belongs to such
The video of acquisition is input to machine learning model as training data and is trained by the video of other video image scene
Practise, obtain for identify the category in video video image scene machine learning model;And so on, it obtains of all categories
The corresponding machine learning model of video image scene.
B16, the device as described in any one of B9-B15, wherein,
The offer unit, suitable for when the request for the configuration file for asking the designated for receiving intelligent terminal transmission
During message, which is sent to intelligent terminal or the download address of the configuration file is sent to the intelligent terminal.
The invention also discloses C17, a kind of electronic equipment, wherein, which includes:
Processor;And
The memory of storage computer executable instructions is arranged to, the executable instruction makes the place when executed
Manage method of the device execution according to any one of A1~A8.
The invention also discloses D18, a kind of computer readable storage medium, wherein, the computer readable storage medium
The one or more programs of storage, one or more of programs when being executed by a processor, are realized described in any one of A1~A9
Method.
Claims (10)
- The processing method 1. a kind of video is mixed colours, wherein, this method includes:Default different classes of video image scene;The picture material of designated is identified;When the picture material for identifying designated belongs to a kind of video image scene of preset classification, in the designated Configuration file in the record category beginning and ending time of the video image scene in the designated;It is specified at this when the picture material for identifying designated is not belonging to preset any video image scene classification The label designated in the configuration file of video is applicable in toning processing general rule;The configuration file of the designated is provided, the video is carried out at toning according to the configuration file with realizing Reason.
- 2. the method for claim 1, wherein this method further comprises:When the picture material for identifying designated belongs to a kind of video image scene of preset classification, also in the configuration Toning processing scheme corresponding with the video image scene of the category is written in file.
- 3. the method for claim 1, wherein this method further comprises:When the picture material of designated is not belonging to preset any video image scene classification, the designated is judged Whether toning processing general rule is applicable in;If applicable, then the designated of the label in the configuration file of the designated is applicable in toning processing general rule;If inapplicable, the label designated in the configuration file of the designated is not suitable for doing at any toning Reason.
- 4. method as claimed in claim 3, wherein, judge whether the designated is applicable in toning processing general rule and includes:The histogram of the designated is input in the machine learning model for identifying the video for being not suitable for toning;If the output of the machine learning model confirms that the designated is not suitable for the result of toning, it is determined that the designated is not It is applicable in toning processing general rule;Conversely, determine that the designated is applicable in toning processing general rule.
- 5. method as claimed in claim 4, wherein, this method further comprises:Obtain the video of a certain number of unsuitable tonings;The histogram of these videos for being not suitable for toning is input to as training data in machine learning model and is trained It practises, obtains the machine learning model for identifying the video for being not suitable for toning.
- 6. the method for claim 1, wherein the picture material to designated be identified including:Each engineering for the different classes of video image scene that designated is sequentially inputted to be respectively used in identification video It practises in model;Obtain the recognition result of each machine learning model output.
- 7. method as claimed in claim 6, wherein, this method further comprises:For a kind of video image scene of classification, the video for the video image scene for belonging to the category is obtained, by regarding for acquisition Frequency is input to machine learning model as training data and is trained study, obtains the video for identifying the category in video The machine learning model of image scene;And so on, obtain the corresponding machine learning model of video image scene of all categories.
- The processing unit 8. a kind of video is mixed colours, wherein, which includes:Video image scene presets unit, suitable for default different classes of video image scene;Recognition unit is identified suitable for the picture material to designated;Beginning and ending time recording unit, suitable for belonging to a kind of video figure of preset classification when the picture material for identifying designated During image field scape, start-stop of the video image scene of the category in the designated is recorded in the configuration file of the designated Time;Indexing unit, suitable for being not belonging to preset any video image scene class when the picture material for identifying designated When other, the label designated in the configuration file of the designated is applicable in toning processing general rule;Unit is provided, is adapted to provide for the configuration file of the designated, is regarded with realizing according to the configuration file to described Frequency carries out toning processing.
- 9. a kind of electronic equipment, wherein, which includes:Processor;AndThe memory of storage computer executable instructions is arranged to, the executable instruction makes the processor when executed Perform method according to any one of claims 1 to 7.
- 10. a kind of computer readable storage medium, wherein, the computer-readable recording medium storage one or more program, One or more of programs when being executed by a processor, realize method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810085223.0A CN108235118A (en) | 2018-01-29 | 2018-01-29 | A kind of video toning treating method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810085223.0A CN108235118A (en) | 2018-01-29 | 2018-01-29 | A kind of video toning treating method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108235118A true CN108235118A (en) | 2018-06-29 |
Family
ID=62667802
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810085223.0A Pending CN108235118A (en) | 2018-01-29 | 2018-01-29 | A kind of video toning treating method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108235118A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110163050A (en) * | 2018-07-23 | 2019-08-23 | 腾讯科技(深圳)有限公司 | A kind of method for processing video frequency and device, terminal device, server and storage medium |
CN110798729A (en) * | 2019-10-31 | 2020-02-14 | 安徽康佳电子有限公司 | Automatic adjusting method and system for scene color of smart television |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102111546A (en) * | 2009-12-25 | 2011-06-29 | 佳能株式会社 | Method for processing image, image processing apparatus, and imaging apparatus |
CN103581558A (en) * | 2012-08-09 | 2014-02-12 | 三星电子株式会社 | Image capturing apparatus and image capturing method |
CN103606158A (en) * | 2013-11-29 | 2014-02-26 | 深圳市龙视传媒有限公司 | Preprocessing method and terminal for video clipping |
CN103617432A (en) * | 2013-11-12 | 2014-03-05 | 华为技术有限公司 | Method and device for recognizing scenes |
US20140232879A1 (en) * | 2013-02-20 | 2014-08-21 | Hewlett-Packard Development Company, Llp | Color calibration chart acquisition |
CN106657810A (en) * | 2016-09-26 | 2017-05-10 | 维沃移动通信有限公司 | Filter processing method and device for video image |
CN107368603A (en) * | 2017-07-28 | 2017-11-21 | 上海鋆创信息技术有限公司 | A kind of method and device, storage medium and the terminal of the processing of picture filter |
CN107395960A (en) * | 2017-07-07 | 2017-11-24 | 珠海市魅族科技有限公司 | Photographic method and device, computer installation and computer-readable recording medium |
CN107533758A (en) * | 2015-07-24 | 2018-01-02 | 谷歌有限责任公司 | Smoothed video strengthens in time |
CN107622281A (en) * | 2017-09-20 | 2018-01-23 | 广东欧珀移动通信有限公司 | Image classification method, device, storage medium and mobile terminal |
-
2018
- 2018-01-29 CN CN201810085223.0A patent/CN108235118A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102111546A (en) * | 2009-12-25 | 2011-06-29 | 佳能株式会社 | Method for processing image, image processing apparatus, and imaging apparatus |
CN103581558A (en) * | 2012-08-09 | 2014-02-12 | 三星电子株式会社 | Image capturing apparatus and image capturing method |
US20140232879A1 (en) * | 2013-02-20 | 2014-08-21 | Hewlett-Packard Development Company, Llp | Color calibration chart acquisition |
CN103617432A (en) * | 2013-11-12 | 2014-03-05 | 华为技术有限公司 | Method and device for recognizing scenes |
CN103606158A (en) * | 2013-11-29 | 2014-02-26 | 深圳市龙视传媒有限公司 | Preprocessing method and terminal for video clipping |
CN107533758A (en) * | 2015-07-24 | 2018-01-02 | 谷歌有限责任公司 | Smoothed video strengthens in time |
CN106657810A (en) * | 2016-09-26 | 2017-05-10 | 维沃移动通信有限公司 | Filter processing method and device for video image |
CN107395960A (en) * | 2017-07-07 | 2017-11-24 | 珠海市魅族科技有限公司 | Photographic method and device, computer installation and computer-readable recording medium |
CN107368603A (en) * | 2017-07-28 | 2017-11-21 | 上海鋆创信息技术有限公司 | A kind of method and device, storage medium and the terminal of the processing of picture filter |
CN107622281A (en) * | 2017-09-20 | 2018-01-23 | 广东欧珀移动通信有限公司 | Image classification method, device, storage medium and mobile terminal |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110163050A (en) * | 2018-07-23 | 2019-08-23 | 腾讯科技(深圳)有限公司 | A kind of method for processing video frequency and device, terminal device, server and storage medium |
CN110163050B (en) * | 2018-07-23 | 2022-09-27 | 腾讯科技(深圳)有限公司 | Video processing method and device, terminal equipment, server and storage medium |
CN110798729A (en) * | 2019-10-31 | 2020-02-14 | 安徽康佳电子有限公司 | Automatic adjusting method and system for scene color of smart television |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108235117A (en) | A kind of video shading process and device | |
CN108174099A (en) | Method for displaying image, device and computer readable storage medium | |
US20170270679A1 (en) | Determining a hair color treatment option | |
CN107592474A (en) | A kind of image processing method and device | |
US8379999B2 (en) | Methods, circuits, devices, apparatuses and systems for providing image composition rules, analysis and improvement | |
CN108236784B (en) | Model training method and device, storage medium and electronic device | |
CN107147955A (en) | The method and device of live game | |
CN107862277A (en) | Live dress ornament, which is dressed up, recommends method, apparatus, computing device and storage medium | |
KR102308369B1 (en) | Automatic video editing system through artificial intelligence sound source analysis | |
CN105126342B (en) | A kind of game score method and apparatus | |
CN107948640A (en) | Video playing test method, device, electronic equipment and storage medium | |
US20210271921A1 (en) | Wallpaper management method, apparatus, mobile terminal, and storage medium | |
CN108235118A (en) | A kind of video toning treating method and apparatus | |
CN107341762A (en) | Take pictures processing method, device and terminal device | |
CN107426626B (en) | Method and device for sharing gifts | |
KR102082766B1 (en) | Method and apparatus for distinguishing objects | |
US9712796B2 (en) | Metadata for use in color grading | |
CN108470362A (en) | A kind of method and apparatus for realizing video toning | |
CN108495107A (en) | A kind of method for processing video frequency and device | |
CN110415318B (en) | Image processing method and device | |
CN114610995B (en) | Lipstick color recommendation method, lipstick color recommendation device, lipstick color recommendation medium and lipstick color recommendation program product | |
CN108648139A (en) | A kind of image processing method and device | |
CN110427499A (en) | Processing method, device and the storage medium and electronic device of multimedia resource | |
CN108109450A (en) | On-line study implementation method and device | |
CN110287343A (en) | Picture Generation Method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180629 |