CN108470362A - A kind of method and apparatus for realizing video toning - Google Patents
A kind of method and apparatus for realizing video toning Download PDFInfo
- Publication number
- CN108470362A CN108470362A CN201810084371.0A CN201810084371A CN108470362A CN 108470362 A CN108470362 A CN 108470362A CN 201810084371 A CN201810084371 A CN 201810084371A CN 108470362 A CN108470362 A CN 108470362A
- Authority
- CN
- China
- Prior art keywords
- video
- specified video
- configuration file
- color
- processing
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/04—Context-preserving transformations, e.g. by using an importance map
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10016—Video; Image sequence
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20081—Training; Learning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30196—Human being; Person
- G06T2207/30201—Face
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Television Signal Processing For Recording (AREA)
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机技术领域,具体涉及一种实现视频调色的方法、装置、电子设备和计算机可读存储介质。The present invention relates to the field of computer technology, in particular to a method, device, electronic equipment and computer-readable storage medium for realizing video color adjustment.
背景技术Background technique
随着电子设备的功能的日益增多,通过电子设备播放视频的功能也越来越完善,例如,对指定视频的播放或者网络直播等,用户在播放相应的视频时,往往视频资源是什么效果的,在客户端装置侧进行播放时,视频就会展示什么样的效果。但是不可避免的,有些视频的展示效果并不理想,特别是在色彩方面,当视频保存至服务器的视频资源库中时,其视频本身的颜色饱和度较小,使得客户端装置在播放该视频时,呈现给用户的视频展示效果会会有模糊的情况,使得用户有中视频不清晰的感知,无法达到用户满意的效果,不能满足用户的需求。With the increasing functions of electronic devices, the function of playing video through electronic devices is becoming more and more perfect. For example, when playing a specified video or live broadcasting on the Internet, when users play the corresponding video, they often wonder what the effect of the video resource is. , when played on the client device side, what effect the video will show. However, it is unavoidable that the display effect of some videos is not ideal, especially in terms of color. When the video is saved in the video resource library of the server, the color saturation of the video itself is small, which makes the client device play the video Sometimes, the video display effect presented to the user will be blurred, which makes the user feel that the video is not clear, and cannot achieve the satisfactory effect of the user and cannot meet the needs of the user.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的实现视频调色的方法、装置、电子设备和计算机可读存储介质。In view of the above problems, the present invention is proposed to provide a method, device, electronic device and computer-readable storage medium for realizing video color adjustment that overcome the above problems or at least partially solve the above problems.
根据本发明的一个方面,提供了一种实现视频调色的方法,其中,该方法包括:According to one aspect of the present invention, a method for implementing video color adjustment is provided, wherein the method includes:
获取待播放的指定视频的配置文件;所述配置文件中描述了该指定视频的图像内容;Obtain the configuration file of the specified video to be played; the configuration file describes the image content of the specified video;
在播放所述指定视频时,根据所述配置文件对该指定视频进行调色处理,从而播放调色处理后的视频。When the specified video is played, the specified video is toned according to the configuration file, so as to play the video after toning.
可选地,根据所述配置文件对该指定视频进行调色处理包括:Optionally, performing color adjustment processing on the specified video according to the configuration file includes:
当所述配置文件中描述该指定视频包括景色类的图像内容以及其起止时间时,将该指定视频中的景色类图像内容中的红、绿、蓝三色的饱和度增加预设数值。When it is described in the configuration file that the specified video includes scene image content and its start and end times, the saturation of red, green, and blue colors in the scene image content in the specified video is increased by a preset value.
可选地,根据所述配置文件对该指定视频进行调色处理包括:Optionally, performing color adjustment processing on the specified video according to the configuration file includes:
当所述配置文件描述该指定视频包括含人脸的图像内容以及其起止时间时,对该指定视频中的含人脸的图像内容进行人脸美化处理。When the configuration file describes that the specified video includes image content containing a human face and its start and end times, perform face beautification processing on the image content containing a human face in the specified video.
可选地,根据所述配置文件对该指定视频进行调色处理包括:Optionally, performing color adjustment processing on the specified video according to the configuration file includes:
当所述配置文件描述该指定视频适用视频处理通用规则时,将该指定视频输入到通用视频调色处理模型中进行调色处理。When the configuration file describes that the specified video is applicable to the general rule of video processing, the specified video is input into the general video grading processing model for grading processing.
可选地,Optionally,
当所述配置文件中描述该指定视频包括景色类的图像内容以及其起止时间时,将该指定视频中的景色类图像内容中的红、绿、蓝三色的饱和度增加预设数值;以及当所述配置文件描述该指定视频包括含人脸的图像内容以及其起止时间时,对该指定视频中的含人脸的图像内容进行人脸美化处理;When it is described in the configuration file that the specified video includes scene image content and its start and end time, the saturation of the red, green, and blue colors in the scene image content in the specified video is increased by a preset value; and When the configuration file describes that the specified video includes image content containing a human face and its start and end time, perform face beautification processing on the image content containing a human face in the specified video;
然后,再将该指定视频输入到通用视频调色处理模型中进行调色处理。Then, the specified video is input into the general video color-grading processing model for color-grading processing.
可选地,该方法进一步包括:Optionally, the method further includes:
获取被确定为调色处理结果符合预设标准的一定数量的视频;Obtaining a certain number of videos that are determined to be color-graded and meet preset criteria;
将这些视频作为训练数据输入的调色处理机器学习模型中进行训练学习,得到所述通用视频调色处理模型。These videos are input as training data into the color-grading processing machine learning model for training and learning to obtain the general-purpose video color-grading processing model.
可选地,在根据所述配置文件对该指定视频进行调色处理之前,该方法进一步包括:Optionally, before performing color adjustment processing on the specified video according to the configuration file, the method further includes:
检测智能终端的参数信息;Detect the parameter information of the smart terminal;
根据检测到的智能终端的参数信息,判断是否对该指定视频进行调色处理;According to the detected parameter information of the intelligent terminal, it is judged whether to perform color adjustment processing on the specified video;
如果判断为是,则执行所述根据所述配置文件对该指定视频进行调色处理的步骤;If it is judged to be yes, then perform the step of performing color adjustment processing on the specified video according to the configuration file;
如果判断为否,则不对该指定视频进行调色处理。If the judgment is negative, the specified video will not be color-graded.
可选地,所述智能终端的参数信息包括如下中的一种或多种:Optionally, the parameter information of the smart terminal includes one or more of the following:
时间信息;time information;
显示模式;display mode;
姿态信息。attitude information.
根据本发明的另一方面,提供了一种实现视频调色的装置,其中,该装置包括:According to another aspect of the present invention, a device for implementing video color adjustment is provided, wherein the device includes:
获取单元,适于获取待播放的指定视频的配置文件;所述配置文件中描述了该指定视频的图像内容;The obtaining unit is adapted to obtain the configuration file of the specified video to be played; the configuration file describes the image content of the specified video;
调色处理单元,适于在播放所述指定视频时,根据所述配置文件对该指定视频进行调色处理,从而播放调色处理后的视频。The grading processing unit is adapted to perform grading processing on the specified video according to the configuration file when playing the specified video, so as to play the grading-processed video.
可选地,Optionally,
所述调色处理单元,适于当所述配置文件中描述该指定视频包括景色类的图像内容以及其起止时间时,将该指定视频中的景色类图像内容中的红、绿、蓝三色的饱和度增加预设数值。The toning processing unit is adapted to, when it is described in the configuration file that the specified video includes scene-like image content and its start and end times, red, green, and blue colors in the scene-like image content in the specified video Saturation increases by a preset value.
可选地,Optionally,
所述调色处理单元,适于当所述配置文件描述该指定视频包括含人脸的图像内容以及其起止时间时,对该指定视频中的含人脸的图像内容进行人脸美化处理。The toning processing unit is adapted to perform face beautification processing on the image content containing a human face in the specified video when the configuration file describes that the specified video includes image content containing a human face and its start and end time.
可选地,Optionally,
所述调色处理单元,适于当所述配置文件描述该指定视频适用视频处理通用规则时,将该指定视频输入到通用视频调色处理模型中进行调色处理。The grading processing unit is adapted to input the specified video into a general video grading processing model to perform grading processing when the configuration file describes that the specified video is applicable to general video processing rules.
可选地,Optionally,
所述调色处理单元,适于当所述配置文件中描述该指定视频包括景色类的图像内容以及其起止时间时,将该指定视频中的景色类图像内容中的红、绿、蓝三色的饱和度增加预设数值;以及当所述配置文件描述该指定视频包括含人脸的图像内容以及其起止时间时,对该指定视频中的含人脸的图像内容进行人脸美化处理;然后,再将该指定视频输入到通用视频调色处理模型中进行调色处理。The toning processing unit is adapted to, when it is described in the configuration file that the specified video includes scene-like image content and its start and end times, red, green, and blue colors in the scene-like image content in the specified video The saturation of the specified video is increased by a preset value; and when the configuration file describes that the specified video includes image content containing a human face and its start and end time, face beautification processing is performed on the image content containing a human face in the specified video; then , and then input the specified video into the general video color-grading processing model for color-grading processing.
可选地,该装置进一步包括:Optionally, the device further includes:
训练学习单元,适于获取被确定为调色处理结果符合预设标准的一定数量的视频;将这些视频作为训练数据输入的调色处理机器学习模型中进行训练学习,得到所述通用视频调色处理模型。The training and learning unit is adapted to obtain a certain number of videos that are determined to be the results of the color adjustment processing that meet the preset standards; these videos are input as training data into the color adjustment processing machine learning model for training and learning, and the general video color adjustment is obtained. Handle the model.
可选地,在所述调色处理单元根据所述配置文件对该指定视频进行调色处理之前,该装置进一步包括:Optionally, before the color adjustment processing unit performs color adjustment processing on the specified video according to the configuration file, the device further includes:
参数检测单元,适于检测智能终端的参数信息;根据检测到的智能终端的参数信息,判断是否对该指定视频进行调色处理;如果判断为是,则执行所述根据所述配置文件对该指定视频进行调色处理的步骤;如果判断为否,则不对该指定视频进行调色处理。The parameter detection unit is suitable for detecting the parameter information of the intelligent terminal; according to the detected parameter information of the intelligent terminal, it is judged whether to perform color adjustment processing on the specified video; The step of performing color correction processing on the specified video; if the judgment is no, the specified video color processing will not be performed.
可选地,所述智能终端的参数信息包括如下中的一种或多种:Optionally, the parameter information of the smart terminal includes one or more of the following:
时间信息;time information;
显示模式;display mode;
姿态信息。attitude information.
根据本发明的又一方面,提供了一种电子设备,其中,该电子设备包括:According to yet another aspect of the present invention, an electronic device is provided, wherein the electronic device includes:
处理器;以及,Processor; and,
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行根据前述的方法。A memory arranged to store computer-executable instructions which, when executed, cause the processor to perform the method according to the foregoing.
根据本发明的再一方面,提供了一种计算机可读存储介质,其中,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被处理器执行时,实现前述的方法。According to still another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the aforementioned Methods.
根据本发明的技术方案,获取待播放的指定视频的配置文件;配置文件中描述了该指定视频的图像内容;在播放指定视频时,根据配置文件对该指定视频进行调色处理,从而播放调色处理后的视频。通过本技术方案,对视频进行调色处理,相比较未进行调色处理的视频,调色处理后的视频的配色更加鲜明,播放该调色处理后的视频,提高视频的色彩展示效果,可以达到用户满意的效果,更能满足用户的播放需求,增强用户的使用体验。According to the technical solution of the present invention, the configuration file of the specified video to be played is obtained; the image content of the specified video is described in the configuration file; when the specified video is played, the specified video is toned according to the configuration file, so as to play the tuned video. Color processed video. Through this technical solution, the video is toned. Compared with the video without toning, the color of the video after toning is more vivid. Playing the video after toning can improve the color display effect of the video. To achieve the effect of user satisfaction, it can better meet the user's playback needs and enhance the user experience.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1示出了根据本发明一个实施例的实现视频调色的方法的流程示意图;Fig. 1 shows a schematic flow diagram of a method for implementing video color adjustment according to an embodiment of the present invention;
图2示出了根据本发明一个实施例的实现视频调色的装置的结构示意图;FIG. 2 shows a schematic structural diagram of a device for implementing video color adjustment according to an embodiment of the present invention;
图3示出了根据本发明一个实施例的电子设备的结构示意图;FIG. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention;
图4示出了根据本发明一个实施例的计算机可读存储介质的结构示意图。Fig. 4 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
图1示出了根据本发明一个实施例的实现视频调色的方法的流程示意图。如图1所示,该方法包括:Fig. 1 shows a schematic flowchart of a method for implementing video color adjustment according to an embodiment of the present invention. As shown in Figure 1, the method includes:
步骤S110,获取待播放的指定视频的配置文件;配置文件中描述了该指定视频的图像内容。Step S110, acquiring the configuration file of the specified video to be played; the configuration file describes the image content of the specified video.
本实施例中,当播放指定视频时会向服务器发送播放指定视频的请求,当获取到指定视频时,为了实现对指定视频的调色处理,需要获取该指定视频的配置文件。这里的配置文件是服务器侧提供的用于描述该指定视频的图像内容,例如,该指定视频的图像内容中的视频图像场景(如含人脸的视频图像场景或风景类视频图像场景),以及该视频图像场景在视频中的起始时间。In this embodiment, when the specified video is played, a request to play the specified video will be sent to the server. When the specified video is obtained, in order to implement the color adjustment process for the specified video, the configuration file of the specified video needs to be obtained. The configuration file here is provided by the server side to describe the image content of the specified video, for example, the video image scene (such as a video image scene containing a human face or a landscape video image scene) in the image content of the specified video, and The start time of this video image scene in the video.
步骤S120,在播放指定视频时,根据配置文件对该指定视频进行调色处理,从而播放调色处理后的视频。Step S120, when playing the specified video, perform color adjustment processing on the specified video according to the configuration file, so as to play the color adjusted video.
在本实施例中,在播放指定视频时,首先根据配置文件进行调色处理,然后再播放调色处理后的视频,也就是说,用户感知的视频已经是经过调色处理的。在进行调色时,是根据指定视频的配置文件进行调色,例如,基于上述例子中,配置文件中记录中指定视频的图像内容中的人脸视频图像场景以及包含人脸的图像内容的起始时间,则在进行调色时,根据配置文件中的上述描述,则对该指定视频中相应的人脸进行美颜调色处理。In this embodiment, when playing a specified video, the color-grading process is first performed according to the configuration file, and then the color-graded video is played, that is, the video perceived by the user has been color-graded. When performing grading, the grading is performed according to the configuration file of the specified video. For example, based on the above example, the face video image scene in the image content of the specified video recorded in the configuration file and the starting point of the image content containing the human face According to the above description in the configuration file, the face in the specified video will be beautified and toned.
可见,通过本实施例,对视频进行调色处理,相比较未进行调色处理的视频,调色处理后的视频的配色更加鲜明,播放该调色处理后的视频,提高视频的色彩展示效果,可以达到用户满意的效果,更能满足用户的播放需求,增强用户的使用体验。It can be seen that, through this embodiment, the video is toned, compared with the video without toning, the color of the video after toning is more vivid, and the video after toning is played to improve the color display effect of the video , can achieve the effect of user satisfaction, better meet the user's playback needs, and enhance the user experience.
在上述说明中,指定视频中可能会包含有不同的视频图像场景,在进行调色处理时,可以根据预设调色处理规则对包含有不同的视频图像场景的图像内容进行调色。下面通过优选实施例进行说明。In the above description, different video image scenes may be included in the specified video, and the image content including different video image scenes may be toned according to the preset color adjustment processing rules during the toning process. The preferred embodiments are described below.
在本发明的一个实施例中,步骤S120中的根据配置文件对该指定视频进行调色处理包括:当配置文件中描述该指定视频包括景色类的图像内容以及其起止时间时,将该指定视频中的景色类图像内容中的红、绿、蓝三色的饱和度增加预设数值。In one embodiment of the present invention, the color-grading processing of the specified video according to the configuration file in step S120 includes: when the specified video is described in the configuration file as including scene-type image content and its start and end time, the specified video The saturation of the red, green, and blue colors in the scene image content in the image is increased by a preset value.
在本实施例中,是对指定视频中的景色类的图像内容进行调色,具体是在进行景色类图像内容进行调色时,是对图像内容中的红、绿、蓝三色的饱和度进行调整。In this embodiment, the color adjustment is performed on the scene image content in the specified video. Specifically, when performing color adjustment on the scene image content, the saturation of the red, green, and blue colors in the image content is adjusted. Make adjustments.
例如,在指定视频中的景色类的图像内容中包括有鲜花、草地和蓝天,根据配置文件的描述,该景色类的图像内容的起止时间是第10s-25s,则在进行调色时,将视频的第10s-25s的图像内容中的红、绿、蓝三个的饱和度增加20%,则视频中的鲜花、草地和蓝天的颜色会更加亮丽,提高视频的展示效果。For example, the scene image content in the specified video includes flowers, grass, and blue sky. According to the description of the configuration file, the start and end time of the scene image content is 10s-25s. When performing color adjustment, the If the saturation of red, green and blue in the image content of the 10s-25s of the video is increased by 20%, the colors of the flowers, grass and blue sky in the video will be brighter and the display effect of the video will be improved.
在本发明的一个实施例中,步骤S120中的根据配置文件对该指定视频进行调色处理包括:当配置文件描述该指定视频包括含人脸的图像内容以及其起止时间时,对该指定视频中的含人脸的图像内容进行人脸美化处理。In one embodiment of the present invention, the color-grading processing of the specified video according to the configuration file in step S120 includes: when the configuration file describes that the specified video includes image content containing human faces and its start and end time, the specified video Face beautification processing is performed on the image content containing human faces.
在本实施例中,是对指定视频中的包含人脸的图像内容进行调色。具体是对包含人脸的图像内容中的人脸进行人脸美化处理,如美颜、磨皮、美白等等处理,或者使用预设的一键美颜的处理操作对人脸进行处理。In this embodiment, the color adjustment is performed on the image content including the human face in the specified video. Specifically, face beautification processing is performed on the face in the image content containing the face, such as beautification, skin smoothing, whitening, etc., or the face is processed by using the preset one-key beautification processing operation.
例如,在指定视频中的景色类的图像内容中包括有人脸,根据配置文件的描述,该包含人脸的图像内容的起止时间是第0s-20s,则在进行调色时,将视频的第0s-20s的图像内容中的人脸进行美白处理,使得视频中的人脸的展示效果更好。For example, if the scene image content in the specified video contains a human face, according to the description of the configuration file, the start and end time of the image content containing the human face is 0s-20s, then when performing color correction, the video’s first The face in the image content of 0s-20s is whitened, so that the display effect of the face in the video is better.
上述的实施例中,配置文件中记录有相应类别的图像内容在该指定视频中的起止时间,以便在客户端在根据配置文件进行调色时,获取具体调色的起止时间,防止在没有相应的视频图像场景的图像内容中也进行了对应的调色,反而影响视频的展示效果。In the above-mentioned embodiment, the configuration file records the start and end time of the corresponding type of image content in the specified video, so that when the client performs color adjustment according to the configuration file, it can obtain the specific start and end time of color adjustment, preventing the The image content of the video image scene in the video is also adjusted accordingly, which affects the display effect of the video.
在本发明的一个实施例中,步骤S120中的根据配置文件对该指定视频进行调色处理包括:当配置文件描述该指定视频适用视频处理通用规则时,将该指定视频输入到通用视频调色处理模型中进行调色处理。In one embodiment of the present invention, performing the grading processing on the specified video according to the configuration file in step S120 includes: when the configuration file describes that the specified video is applicable to video processing general rules, inputting the specified video into the general video grading Toning is done in the processing model.
本实施例中的通用视频调色处理模型,可以利用机器学习的方法,将现有的具有一定色彩设计的视频图像作为训练数据,生成相应的通用视频调色处理模型,使用该通用视频调色处理模型对配置文件描述是适用调色处理通用规则的视频进行调色处理。The general video toning processing model in this embodiment can use the method of machine learning to use existing video images with a certain color design as training data to generate a corresponding general video toning processing model, and use the general video toning processing model The processing model grades video for which the general rules for grading processing apply to the profile description.
这里的视频调色处理模型是有服务器下发的在客户端侧的,也可以是在配置文件中,具体是利用机器学习的方法,将现有的具有一定色彩设计的视频图像作为训练数据,生成相应的通用视频调色处理模型,使用该通用视频调色处理模型对适于调色处理通用规则的视频进行调色处理。例如,选择配色符合要求的若干电影,学习其配色方法,生成相应的通用视频调色处理模型,则视频输入该通用视频调色处理模型后,其色调也会呈现出与选取的电影一致的色调。The video grading processing model here is delivered by the server on the client side, or it can be in the configuration file. Specifically, the machine learning method is used to use the existing video images with certain color designs as training data. A corresponding general video toning processing model is generated, and the general video toning processing model is used to perform toning processing on videos that are suitable for the general rules of toning processing. For example, select a number of movies whose color matching meets the requirements, learn their color matching methods, and generate a corresponding general video color correction processing model, then after the video is input into the general video color correction processing model, its color tone will also show the same color tone as the selected film .
上述的根据配置文件对该指定视频进行调色处理的实施例可以相结合实时。也就是说,对指定视频进行处理时,可以根据配置文件对图像内容进行相应的调色处理后,也可以将调色处理后的视频再输入进行通用视频调色处理模型中进行调色处理。The above-mentioned embodiment of color-grading the specified video according to the configuration file may be combined with real-time. That is to say, when processing a specified video, the image content can be color-graded according to the configuration file, or the video after color-grading processing can be input into the general video color-grading processing model for color-grading processing.
在本发明的一个实施例中,当配置文件中描述该指定视频包括景色类的图像内容以及其起止时间时,将该指定视频中的景色类图像内容中的红、绿、蓝三色的饱和度增加预设数值;以及当配置文件描述该指定视频包括含人脸的图像内容以及其起止时间时,对该指定视频中的含人脸的图像内容进行人脸美化处理;然后,再将该指定视频输入到通用视频调色处理模型中进行调色处理。In one embodiment of the present invention, when it is described in the configuration file that the specified video includes scene image content and its start and end time, the saturation of the red, green and blue colors in the scene image content in the specified video increase the preset value; and when the configuration file describes that the specified video includes image content containing a human face and its start and end time, perform face beautification processing on the image content containing a human face in the specified video; then, the The specified video is input to the general video color-grading processing model for color-grading processing.
在本实施例中,配置文件是对整个指定视频的图像内容的描述,在该指定视频中可以包含景色类的图像内容,也可能会包含人脸的图像内容,那么在进行调色时,均需要进行调色处理。In this embodiment, the configuration file is a description of the image content of the entire specified video. The specified video may contain image content of scenery, and may also contain image content of human faces. Color correction is required.
需要说明的是,包含景色类的图像内容以及包含人脸的图像内容在视频中的时间可以是重合的,例如,包含景色类的图像内容的起止时间是第10s-25s,包含人脸的图像内容的起止时间是第0s-20s,也就是说,在指定视频中的第10s-20s的图像内容中既包含有景色类也包含有人脸,那么就会对该时间段内容的图像内容即进行景色类的调色处理也进行人脸美化处理。It should be noted that the time of the image content containing scenery and the image content containing human face can overlap in the video, for example, the start and end time of the image content containing scenery is 10s-25s, The start and end time of the content is 0s-20s, that is to say, if the image content of the 10s-20s in the specified video contains both scenery and human faces, then the image content of the content in this time period will be processed immediately Face beautification is also performed in the toning process of scenery.
在本实施例中,根据配置文件对指定视频的图像内容进行不同类的调色处理后,再将调色处理后的该指定视频输入到通用视频调色处理模型中进行再次调色处理,也就是说,对指定视频进行二次调色处理,可以使得指定视频的展示效果进一步提高。In this embodiment, after different types of toning processing are performed on the image content of the specified video according to the configuration file, the specified video after the toning processing is input into the general video toning processing model for re-grading processing. That is to say, performing secondary grading processing on the specified video can further improve the display effect of the specified video.
在本发明的一个实施例中,图1所示的方法进一步包括:获取被确定为调色处理结果符合预设标准的一定数量的视频;将这些视频作为训练数据输入的调色处理机器学习模型中进行训练学习,得到通用视频调色处理模型。In one embodiment of the present invention, the method shown in FIG. 1 further includes: obtaining a certain number of videos determined to be the result of the toning process meeting the preset standard; and inputting these videos as training data to the machine learning model of the toning process Training and learning are carried out in , and a general video color correction processing model is obtained.
在上述说明中指出,通用视频调色处理模型可以是服务器侧下发的,也可以是在配置文件中的,还可以是客户端色生成的。在本实施例中,是客户端获取通用视频调色处理模型。具体是利用机器学习的方法,将现有的被确定为调色处理结果符合预设标准的一定数量的视频作为训练数据,生成相应的通用视频调色处理模型,使用该通用视频调色处理模型对适于调色处理通用规则的视频进行调色处理。例如,选择被确定为调色处理结果符合预设标准的一定数量的电影,学习其配色方法,生成相应的通用视频调色处理模型,则视频输入该通用视频调色处理模型后,其色调也会呈现出与选取的电影一致的色调。In the above description, it is pointed out that the general video color adjustment processing model can be delivered by the server side, can also be in the configuration file, and can also be generated by the client side. In this embodiment, the client acquires the general video color adjustment processing model. Specifically, using the method of machine learning, a certain number of videos that are determined to be the results of the color adjustment process meeting the preset standards are used as training data to generate a corresponding general video color adjustment processing model, and the general video color adjustment processing model is used Grades video that fits the general rules for grading. For example, select a certain number of movies whose color matching results meet the preset standards, learn their color matching methods, and generate a corresponding general video color color processing model, then after the video is input into the general video color color processing model, its color tone A color tone consistent with the selected movie will be rendered.
在本发明的一个实施例中,在步骤S120中的根据配置文件对该指定视频进行调色处理之前,图1所示的方法进一步包括:检测智能终端的参数信息;根据检测到的智能终端的参数信息,判断是否对该指定视频进行调色处理;如果判断为是,则执行根据配置文件对该指定视频进行调色处理的步骤;如果判断为否,则不对该指定视频进行调色处理。In one embodiment of the present invention, before performing color adjustment processing on the specified video according to the configuration file in step S120, the method shown in FIG. 1 further includes: detecting parameter information of the smart terminal; Parameter information, to judge whether to perform toning processing on the specified video; if it is judged to be yes, then perform the step of performing toning processing on the specified video according to the configuration file; if it is judged to be no, then not to perform toning processing on the specified video.
虽然可以根据配置文件进行指定视频的调色处理,使得指定视频中的配色更加亮丽,以便提高指定视频的展示效果,满足用户的播放需求。但是颜色亮丽的视频并不适合所有的场景播放,或者说有的场景适合调色,有的场景不适合调色。例如,智能终端本身的对比度较高,或者用户当前的状态不适于看颜色饱和度太大的视频,又或者在较昏暗的场景下不适于看对比度大的视频,等,这时如果再对指定视频进行调色处理反而会适得其反,给用户带来一定的困扰,降低用户的使用体验;又如,用户在高速移动时、或者智能终端本身的对比度较小,则需要进行调节。Although the specified video can be color-graded according to the configuration file to make the color of the specified video brighter, so as to improve the display effect of the specified video and meet the playback needs of users. But videos with bright colors are not suitable for all scenes, or some scenes are suitable for color grading, and some scenes are not suitable for grading. For example, the contrast of the smart terminal itself is high, or the user's current status is not suitable for watching videos with too much color saturation, or it is not suitable for watching videos with high contrast in darker scenes, etc. The video color correction process will be counterproductive, which will bring some troubles to the user and reduce the user experience; another example, when the user is moving at high speed or the contrast of the smart terminal itself is small, it needs to be adjusted.
在本实施例中,在对指定视频进行调色处理前,先获取智能终端的参数信息,判断是否适合对指定视频进行调色处理,一方面可以排除不适合调色的情况,也可以获取到适合调色的情况。In this embodiment, before color-grading the specified video, the parameter information of the smart terminal is obtained first, and it is judged whether it is suitable for color-grading the specified video. Suitable for toning situations.
具体地,上述的智能终端的参数信息包括如下中的一种或多种:时间信息;显示模式;姿态信息。Specifically, the above-mentioned parameter information of the smart terminal includes one or more of the following: time information; display mode; gesture information.
在本实施例中,时间信息可以反映当前智能终端所处的时间段,例如,白天或者夜晚,当在白天时,对指定视频记性调色处理可以提高其展示效果,但是如果在晚上进行调色处理,当用户在浏览指定视频时,由于指定视频的饱和度较大,造成用户眼睛的不舒服,降低用户的使用体验。因此,在本实施例中,通过智能终端的时间信息进行判断。例如,获取的智能终端的当前系统时间是9:30,则判断可以对该指定视频进行调色处理,播放调色处理后的视屏;如果获取的智能终端的当前系统时间是22:00,则判断不对该指定视频进行调色处理,播放原始视频。In this embodiment, the time information can reflect the current time period of the smart terminal, for example, during the day or at night. During the day, the memory color adjustment process for the specified video can improve its display effect, but if the color adjustment is performed at night Processing, when the user is viewing the specified video, due to the high saturation of the specified video, the user's eyes are uncomfortable and the user's experience is reduced. Therefore, in this embodiment, the judgment is made based on the time information of the smart terminal. For example, if the current system time of the smart terminal acquired is 9:30, it is judged that the specified video can be color-graded, and the video screen after the color-graded processing is played; if the current system time of the smart terminal acquired is 22:00, then It is judged that the specified video is not to be color-graded, and the original video is played.
在本实施例中,显示模型可以描述智能终端当前的显示效果,如,显示模式中的对比度,如果对比度较大,再对指定视频进行调色处理,会使得指定视频的对比度双倍增大,在强烈对比度的情况下,指定视频的展示效果会失真,反而影响指定视频的效果。因此,在本实施例中,获取智能终端的显示模型进行判断。例如,当获取的智能终端的对比度大于第一预设值时,就判断不对该指定视频进行调色处理;反之,或者当获取的智能终端的对比度小于第二预设值时,判断可以对该指定视频进行调色处理。In this embodiment, the display model can describe the current display effect of the smart terminal, for example, the contrast in the display mode, if the contrast is relatively large, and then the specified video is toned, the contrast of the specified video will be doubled, In the case of strong contrast, the display effect of the specified video will be distorted, which will affect the effect of the specified video. Therefore, in this embodiment, the display model of the smart terminal is acquired for judgment. For example, when the acquired contrast of the smart terminal is greater than the first preset value, it is judged that the specified video should not be color-graded; Specifies the video to be color-graded.
这里的显示模式还可以是亮度、冷光或暖光等模式等。The display mode here may also be modes such as brightness, cold light, or warm light.
在本实施例中,智能终端的姿态信息会直接反映用户所处的姿态,如果用户是处于躺着的姿势,则说明用户可能在休息,这时如果对指定视频进行调色处理,可能会对用户的眼睛造成一定的压力,或者会提高用户的兴奋度,不利于用户当前的休息状态,因此,在本实施例中,通过智能终端的姿态信息判断是否对指定视频进行调色处理。这里的智能终端的姿态信息可以通过智能终端中的姿态传感器获取,例如,陀螺仪、加速度计等。In this embodiment, the posture information of the smart terminal will directly reflect the posture of the user. If the user is in a lying posture, it means that the user may be resting. The user's eyes cause a certain amount of pressure, or increase the user's excitement, which is not conducive to the user's current resting state. Therefore, in this embodiment, it is judged by the posture information of the smart terminal whether to perform color-grading processing on the specified video. The attitude information of the smart terminal here can be acquired through an attitude sensor in the smart terminal, for example, a gyroscope, an accelerometer, and the like.
例如,通过传感器获取到当前用户处于躺着的状态,可以判断不对指定视频进行调色处理,或者,通过传感器获取到当前用户处于高速移动,则说明用户可以在火车或者汽车上,视频容易出现虚化的状态,则此时判断对指定视频进行调色处理。For example, if the sensor obtains that the current user is lying down, it can be judged that the specified video is not to be color-graded. Or, if the sensor obtains that the current user is moving at a high speed, it means that the user may be on a train or a car, and the video is prone to blur. If the state is changed, then it is judged to perform color adjustment processing on the specified video at this time.
图2示出了根据本发明一个实施例的实现视频调色的装置的结构示意图。如图2所示,该视频调色处理装置200包括:Fig. 2 shows a schematic structural diagram of an apparatus for implementing video color adjustment according to an embodiment of the present invention. As shown in Figure 2, the video color adjustment processing device 200 includes:
获取单元210,适于获取待播放的指定视频的配置文件;配置文件中描述了该指定视频的图像内容。The obtaining unit 210 is adapted to obtain the configuration file of the specified video to be played; the configuration file describes the image content of the specified video.
本实施例中,当播放指定视频时会向服务器发送播放指定视频的请求,当获取到指定视频时,为了实现对指定视频的调色处理,需要获取该指定视频的配置文件。这里的配置文件是服务器侧提供的用于描述该指定视频的图像内容,例如,该指定视频的图像内容中的视频图像场景(如含人脸的视频图像场景或风景类视频图像场景),以及该视频图像场景在视频中的起始时间。In this embodiment, when the specified video is played, a request to play the specified video will be sent to the server. When the specified video is obtained, in order to implement the color adjustment process for the specified video, the configuration file of the specified video needs to be obtained. The configuration file here is provided by the server side to describe the image content of the specified video, for example, the video image scene (such as a video image scene containing a human face or a landscape video image scene) in the image content of the specified video, and The start time of this video image scene in the video.
调色处理单元220,适于在播放指定视频时,根据配置文件对该指定视频进行调色处理,从而播放调色处理后的视频。The grading processing unit 220 is adapted to perform grading processing on the specified video according to the configuration file when playing the specified video, so as to play the grading-processed video.
在本实施例中,在播放指定视频时,首先根据配置文件进行调色处理,然后再播放调色处理后的视频,也就是说,用户感知的视频已经是经过调色处理的。在进行调色时,是根据指定视频的配置文件进行调色,例如,基于上述例子中,配置文件中记录中指定视频的图像内容中的人脸视频图像场景以及包含人脸的图像内容的起始时间,则在进行调色时,根据配置文件中的上述描述,则对该指定视频中相应的人脸进行美颜调色处理。In this embodiment, when playing a specified video, the color-grading process is first performed according to the configuration file, and then the color-graded video is played, that is, the video perceived by the user has been color-graded. When performing grading, the grading is performed according to the configuration file of the specified video. For example, based on the above example, the face video image scene in the image content of the specified video recorded in the configuration file and the starting point of the image content containing the human face According to the above description in the configuration file, the face in the specified video will be beautified and toned.
可见,通过本实施例,对视频进行调色处理,相比较未进行调色处理的视频,调色处理后的视频的配色更加鲜明,播放该调色处理后的视频,提高视频的色彩展示效果,可以达到用户满意的效果,更能满足用户的播放需求,增强用户的使用体验。It can be seen that, through this embodiment, the video is toned, compared with the video without toning, the color of the video after toning is more vivid, and the video after toning is played to improve the color display effect of the video , can achieve the effect of user satisfaction, better meet the user's playback needs, and enhance the user experience.
在上述说明中,指定视频中可能会包含有不同的视频图像场景,在进行调色处理时,可以根据预设调色处理规则对包含有不同的视频图像场景的图像内容进行调色。下面通过优选实施例进行说明。In the above description, different video image scenes may be included in the specified video, and the image content including different video image scenes may be toned according to the preset color adjustment processing rules during the toning process. The preferred embodiments are described below.
在本发明的一个实施例中,调色处理单元220,适于当配置文件中描述该指定视频包括景色类的图像内容以及其起止时间时,将该指定视频中的景色类图像内容中的红、绿、蓝三色的饱和度增加预设数值。In one embodiment of the present invention, the grading processing unit 220 is adapted to, when the configuration file describes that the specified video includes scene-type image content and its start and end time, red in the scene-type image content in the specified video , Green, and Blue saturation increases by the preset value.
在本实施例中,是对指定视频中的景色类的图像内容进行调色,具体是在进行景色类图像内容进行调色时,是对图像内容中的红、绿、蓝三色的饱和度进行调整。In this embodiment, the color adjustment is performed on the scene image content in the specified video. Specifically, when performing color adjustment on the scene image content, the saturation of the red, green, and blue colors in the image content is adjusted. Make adjustments.
例如,在指定视频中的景色类的图像内容中包括有鲜花、草地和蓝天,根据配置文件的描述,该景色类的图像内容的起止时间是第10s-25s,则在进行调色时,将视频的第10s-25s的图像内容中的红、绿、蓝三个的饱和度增加20%,则视频中的鲜花、草地和蓝天的颜色会更加亮丽,提高视频的展示效果。For example, the scene image content in the specified video includes flowers, grass, and blue sky. According to the description of the configuration file, the start and end time of the scene image content is 10s-25s. When performing color adjustment, the If the saturation of red, green and blue in the image content of the 10s-25s of the video is increased by 20%, the colors of the flowers, grass and blue sky in the video will be brighter and the display effect of the video will be improved.
在本发明的一个实施例中,调色处理单元220,适于当配置文件描述该指定视频包括含人脸的图像内容以及其起止时间时,对该指定视频中的含人脸的图像内容进行人脸美化处理。In one embodiment of the present invention, the grading processing unit 220 is adapted to, when the configuration file describes that the specified video includes image content containing a human face and its start and end time, process the image content containing a human face in the specified video Facial beautification.
在本实施例中,是对指定视频中的包含人脸的图像内容进行调色。具体是对包含人脸的图像内容中的人脸进行人脸美化处理,如美颜、磨皮、美白等等处理,或者使用预设的一键美颜的处理操作对人脸进行处理。In this embodiment, the color adjustment is performed on the image content including the human face in the specified video. Specifically, face beautification processing is performed on the face in the image content containing the face, such as beautification, skin smoothing, whitening, etc., or the face is processed by using the preset one-key beautification processing operation.
例如,在指定视频中的景色类的图像内容中包括有人脸,根据配置文件的描述,该包含人脸的图像内容的起止时间是第0s-20s,则在进行调色时,将视频的第0s-20s的图像内容中的人脸进行美白处理,使得视频中的人脸的展示效果更好。For example, if the scene image content in the specified video contains a human face, according to the description of the configuration file, the start and end time of the image content containing the human face is 0s-20s, then when performing color correction, the video’s first The face in the image content of 0s-20s is whitened, so that the display effect of the face in the video is better.
上述的实施例中,配置文件中记录有相应类别的图像内容在该指定视频中的起止时间,以便在客户端在根据配置文件进行调色时,获取具体调色的起止时间,防止在没有相应的视频图像场景的图像内容中也进行了对应的调色,反而影响视频的展示效果。In the above-mentioned embodiment, the configuration file records the start and end time of the corresponding type of image content in the specified video, so that when the client performs color adjustment according to the configuration file, it can obtain the specific start and end time of color adjustment, preventing the The image content of the video image scene in the video is also adjusted accordingly, which affects the display effect of the video.
在本发明的一个实施例中,调色处理单元220,适于当配置文件描述该指定视频适用视频处理通用规则时,将该指定视频输入到通用视频调色处理模型中进行调色处理。In one embodiment of the present invention, the grading processing unit 220 is adapted to input the specified video into the general video grading processing model to perform grading processing when the configuration file describes that the specified video is applicable to general video processing rules.
本实施例中的通用视频调色处理模型,可以利用机器学习的方法,将现有的具有一定色彩设计的视频图像作为训练数据,生成相应的通用视频调色处理模型,使用该通用视频调色处理模型对配置文件描述是适用调色处理通用规则的视频进行调色处理。The general video toning processing model in this embodiment can use the method of machine learning to use existing video images with a certain color design as training data to generate a corresponding general video toning processing model, and use the general video toning processing model The processing model grades video for which the general rules for grading processing apply to the profile description.
这里的视频调色处理模型是有服务器下发的在客户端侧的,也可以是在配置文件中,具体是利用机器学习的方法,将现有的具有一定色彩设计的视频图像作为训练数据,生成相应的通用视频调色处理模型,使用该通用视频调色处理模型对适于调色处理通用规则的视频进行调色处理。例如,选择配色符合要求的若干电影,学习其配色方法,生成相应的通用视频调色处理模型,则视频输入该通用视频调色处理模型后,其色调也会呈现出与选取的电影一致的色调。The video grading processing model here is delivered by the server on the client side, or it can be in the configuration file. Specifically, the machine learning method is used to use the existing video images with certain color designs as training data. A corresponding general video toning processing model is generated, and the general video toning processing model is used to perform toning processing on videos that are suitable for the general rules of toning processing. For example, select a number of movies whose color matching meets the requirements, learn their color matching methods, and generate a corresponding general video color correction processing model, then after the video is input into the general video color correction processing model, its color tone will also show the same color tone as the selected film .
上述的根据配置文件对该指定视频进行调色处理的实施例可以相结合实时。也就是说,对指定视频进行处理时,可以根据配置文件对图像内容进行相应的调色处理后,也可以将调色处理后的视频再输入进行通用视频调色处理模型中进行调色处理。The above-mentioned embodiment of color-grading the specified video according to the configuration file may be combined with real-time. That is to say, when processing a specified video, the image content can be color-graded according to the configuration file, or the video after color-grading processing can be input into the general video color-grading processing model for color-grading processing.
在本发明的一个实施例中,调色处理单元220,适于当配置文件中描述该指定视频包括景色类的图像内容以及其起止时间时,将该指定视频中的景色类图像内容中的红、绿、蓝三色的饱和度增加预设数值;以及当配置文件描述该指定视频包括含人脸的图像内容以及其起止时间时,对该指定视频中的含人脸的图像内容进行人脸美化处理;然后,再将该指定视频输入到通用视频调色处理模型中进行调色处理。In one embodiment of the present invention, the grading processing unit 220 is adapted to, when the configuration file describes that the specified video includes scene-type image content and its start and end time, red in the scene-type image content in the specified video , green, and blue color saturation increases by preset values; and when the configuration file describes that the specified video includes image content containing human faces and its start and end time, perform face recognition on the image content containing human faces in the specified video beautification processing; and then, input the designated video into the general video color-grading processing model for color-grading processing.
在本实施例中,配置文件是对整个指定视频的图像内容的描述,在该指定视频中可以包含景色类的图像内容,也可能会包含人脸的图像内容,那么在进行调色时,均需要进行调色处理。In this embodiment, the configuration file is a description of the image content of the entire specified video. The specified video may contain image content of scenery, and may also contain image content of human faces. Color correction is required.
需要说明的是,包含景色类的图像内容以及包含人脸的图像内容在视频中的时间可以是重合的,例如,包含景色类的图像内容的起止时间是第10s-25s,包含人脸的图像内容的起止时间是第0s-20s,也就是说,在指定视频中的第10s-20s的图像内容中既包含有景色类也包含有人脸,那么就会对该时间段内容的图像内容即进行景色类的调色处理也进行人脸美化处理。It should be noted that the time of the image content containing scenery and the image content containing human face can overlap in the video, for example, the start and end time of the image content containing scenery is 10s-25s, The start and end time of the content is 0s-20s, that is to say, if the image content of the 10s-20s in the specified video contains both scenery and human faces, then the image content of the content in this time period will be processed immediately Face beautification is also performed in the toning process of scenery.
在本实施例中,根据配置文件对指定视频的图像内容进行不同类的调色处理后,再将调色处理后的该指定视频输入到通用视频调色处理模型中进行再次调色处理,也就是说,对指定视频进行二次调色处理,可以使得指定视频的展示效果进一步提高。In this embodiment, after different types of toning processing are performed on the image content of the specified video according to the configuration file, the specified video after the toning processing is input into the general video toning processing model for re-grading processing. That is to say, performing secondary grading processing on the specified video can further improve the display effect of the specified video.
在本发明的一个实施例中,图2所示的装置进一步包括:训练学习单元,适于获取被确定为调色处理结果符合预设标准的一定数量的视频;将这些视频作为训练数据输入的调色处理机器学习模型中进行训练学习,得到通用视频调色处理模型。In one embodiment of the present invention, the device shown in FIG. 2 further includes: a training and learning unit adapted to obtain a certain number of videos determined to be the results of the grading process meeting the preset standard; and inputting these videos as training data Toning processing machine learning model is trained and learned to obtain a general video toning processing model.
在上述说明中指出,通用视频调色处理模型可以是服务器侧下发的,也可以是在配置文件中的,还可以是客户端色生成的。在本实施例中,是客户端获取通用视频调色处理模型。具体是利用机器学习的方法,将现有的被确定为调色处理结果符合预设标准的一定数量的视频作为训练数据,生成相应的通用视频调色处理模型,使用该通用视频调色处理模型对适于调色处理通用规则的视频进行调色处理。例如,选择被确定为调色处理结果符合预设标准的一定数量的电影,学习其配色方法,生成相应的通用视频调色处理模型,则视频输入该通用视频调色处理模型后,其色调也会呈现出与选取的电影一致的色调。In the above description, it is pointed out that the general video color adjustment processing model can be delivered by the server side, can also be in the configuration file, and can also be generated by the client side. In this embodiment, the client acquires the general video color adjustment processing model. Specifically, using the method of machine learning, a certain number of videos that are determined to be the results of the color adjustment process meeting the preset standards are used as training data to generate a corresponding general video color adjustment processing model, and the general video color adjustment processing model is used Grades video that fits the general rules for grading. For example, select a certain number of movies whose color matching results meet the preset standards, learn their color matching methods, and generate a corresponding general video color color processing model, then after the video is input into the general video color color processing model, its color tone A color tone consistent with the selected movie will be rendered.
在本发明的一个实施例中,在调色处理单元220根据配置文件对该指定视频进行调色处理之前,图2所示的装置进一步包括:参数检测单元,适于检测智能终端的参数信息;根据检测到的智能终端的参数信息,判断是否对该指定视频进行调色处理;如果判断为是,则执行根据配置文件对该指定视频进行调色处理的步骤;如果判断为否,则不对该指定视频进行调色处理。In an embodiment of the present invention, before the toning processing unit 220 performs toning processing on the specified video according to the configuration file, the device shown in FIG. 2 further includes: a parameter detection unit, adapted to detect parameter information of the smart terminal; According to the detected parameter information of the intelligent terminal, it is judged whether to perform color adjustment processing on the specified video; Specifies the video to be color-graded.
虽然可以根据配置文件进行指定视频的调色处理,使得指定视频中的配色更加亮丽,以便提高指定视频的展示效果,满足用户的播放需求。但是颜色亮丽的视频并不适合所有的场景播放,或者说有的场景适合调色,有的场景不适合调色。例如,智能终端本身的对比度较高,或者用户当前的状态不适于看颜色饱和度太大的视频,又或者在较昏暗的场景下不适于看对比度大的视频,等,这时如果再对指定视频进行调色处理反而会适得其反,给用户带来一定的困扰,降低用户的使用体验;又如,用户在高速移动时、或者智能终端本身的对比度较小,则需要进行调节。Although the specified video can be color-graded according to the configuration file to make the color of the specified video brighter, so as to improve the display effect of the specified video and meet the playback needs of users. But videos with bright colors are not suitable for all scenes, or some scenes are suitable for color grading, and some scenes are not suitable for grading. For example, the contrast of the smart terminal itself is high, or the user's current status is not suitable for watching videos with too much color saturation, or it is not suitable for watching videos with high contrast in darker scenes, etc. The video color correction process will be counterproductive, which will bring some troubles to the user and reduce the user experience; another example, when the user is moving at high speed or the contrast of the smart terminal itself is small, it needs to be adjusted.
在本实施例中,在对指定视频进行调色处理前,先获取智能终端的参数信息,判断是否适合对指定视频进行调色处理,一方面可以排除不适合调色的情况,也可以获取到适合调色的情况。In this embodiment, before color-grading the specified video, the parameter information of the smart terminal is obtained first, and it is judged whether it is suitable for color-grading the specified video. Suitable for toning situations.
具体地,上述的智能终端的参数信息包括如下中的一种或多种:时间信息;显示模式;姿态信息。Specifically, the above-mentioned parameter information of the smart terminal includes one or more of the following: time information; display mode; gesture information.
在本实施例中,时间信息可以反映当前智能终端所处的时间段,例如,白天或者夜晚,当在白天时,对指定视频记性调色处理可以提高其展示效果,但是如果在晚上进行调色处理,当用户在浏览指定视频时,由于指定视频的饱和度较大,造成用户眼睛的不舒服,降低用户的使用体验。因此,在本实施例中,通过智能终端的时间信息进行判断。例如,获取的智能终端的当前系统时间是9:30,则判断可以对该指定视频进行调色处理,播放调色处理后的视屏;如果获取的智能终端的当前系统时间是22:00,则判断不对该指定视频进行调色处理,播放原始视频。In this embodiment, the time information can reflect the current time period of the smart terminal, for example, during the day or at night. During the day, the memory color adjustment process for the specified video can improve its display effect, but if the color adjustment is performed at night Processing, when the user is viewing the specified video, due to the high saturation of the specified video, the user's eyes are uncomfortable and the user's experience is reduced. Therefore, in this embodiment, the judgment is made based on the time information of the smart terminal. For example, if the current system time of the smart terminal acquired is 9:30, it is judged that the specified video can be color-graded, and the video screen after the color-graded processing is played; if the current system time of the smart terminal acquired is 22:00, then It is judged that the specified video is not to be color-graded, and the original video is played.
在本实施例中,显示模型可以描述智能终端当前的显示效果,如,显示模式中的对比度,如果对比度较大,再对指定视频进行调色处理,会使得指定视频的对比度双倍增大,在强烈对比度的情况下,指定视频的展示效果会失真,反而影响指定视频的效果。因此,在本实施例中,获取智能终端的显示模型进行判断。例如,当获取的智能终端的对比度大于第一预设值时,就判断不对该指定视频进行调色处理;反之,或者当获取的智能终端的对比度小于第二预设值时,判断可以对该指定视频进行调色处理。In this embodiment, the display model can describe the current display effect of the smart terminal, for example, the contrast in the display mode, if the contrast is relatively large, and then the specified video is toned, the contrast of the specified video will be doubled, In the case of strong contrast, the display effect of the specified video will be distorted, which will affect the effect of the specified video. Therefore, in this embodiment, the display model of the smart terminal is acquired for judgment. For example, when the acquired contrast of the smart terminal is greater than the first preset value, it is judged that the specified video should not be color-graded; Specifies the video to be color-graded.
这里的显示模式还可以是亮度、冷光或暖光等模式等。The display mode here may also be modes such as brightness, cold light, or warm light.
在本实施例中,智能终端的姿态信息会直接反映用户所处的姿态,如果用户是处于躺着的姿势,则说明用户可能在休息,这时如果对指定视频进行调色处理,可能会对用户的眼睛造成一定的压力,或者会提高用户的兴奋度,不利于用户当前的休息状态,因此,在本实施例中,通过智能终端的姿态信息判断是否对指定视频进行调色处理。这里的智能终端的姿态信息可以通过智能终端中的姿态传感器获取,例如,陀螺仪、加速度计等。In this embodiment, the posture information of the smart terminal will directly reflect the posture of the user. If the user is in a lying posture, it means that the user may be resting. The user's eyes cause a certain amount of pressure, or increase the user's excitement, which is not conducive to the user's current resting state. Therefore, in this embodiment, it is judged by the posture information of the smart terminal whether to perform color-grading processing on the specified video. The attitude information of the smart terminal here can be acquired through an attitude sensor in the smart terminal, for example, a gyroscope, an accelerometer, and the like.
例如,通过传感器获取到当前用户处于躺着的状态,可以判断不对指定视频进行调色处理,或者,通过传感器获取到当前用户处于高速移动,则说明用户可以在火车或者汽车上,视频容易出现虚化的状态,则此时判断对指定视频进行调色处理。For example, if the sensor obtains that the current user is lying down, it can be judged that the specified video is not to be color-graded. Or, if the sensor obtains that the current user is moving at a high speed, it means that the user may be on a train or a car, and the video is prone to blur. If the state is changed, then it is judged to perform color adjustment processing on the specified video at this time.
本发明还提供了一种电子设备,其中,该电子设备包括:The present invention also provides an electronic device, wherein the electronic device includes:
处理器;以及被安排成存储计算机可执行指令的存储器,可执行指令在被执行时使处理器执行根据图1所示的及其各实施例中的实现视频调色的方法A processor; and a memory arranged to store computer-executable instructions, which, when executed, cause the processor to execute the method for realizing video color adjustment according to the method shown in FIG. 1 and its various embodiments
图3示出了根据本发明一个实施例的电子设备的结构示意图。如图3所示,该电子设备300包括:Fig. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in Figure 3, the electronic device 300 includes:
处理器310;以及被安排成存储计算机可执行指令(程序代码)的存储器320,在存储器320中,有存储程序代码的存储空间330,用于执行根据本发明的方法步骤的程序代码330存储在存储空间330中,该程序代码在被执行时使处理器310执行根据图1所示的及其各实施例中的实现视频调色的方法。a processor 310; and a memory 320 arranged to store computer-executable instructions (program code), in the memory 320 there is a memory space 330 for storing a program code, the program code 330 for carrying out the steps of the method according to the invention is stored in In the storage space 330, when the program code is executed, the processor 310 executes the method for realizing video color adjustment according to the method shown in FIG. 1 and its various embodiments.
图4示出了根据本发明一个实施例的计算机可读存储介质的结构示意图。如图4所示,该计算机可读存储介质400,存储一个或多个程序(程序代码)410,一个或多个程序(程序代码)410当被处理器执行时,用于执行根据本发明的方法步骤,即图1所示的以及其各实施例中的实现视频调色的方法。Fig. 4 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention. As shown in Figure 4, the computer-readable storage medium 400 stores one or more programs (program codes) 410, and when the one or more programs (program codes) 410 are executed by the processor, they are used to perform the Method steps, that is, the method for realizing video color adjustment as shown in FIG. 1 and in various embodiments thereof.
需要说明的是,图3所示的电子设备和图4所示的计算机可读存储介质的各实施例与图1所示的方法的各实施例对应相同,上文已有详细说明,在此不再赘述。It should be noted that the embodiments of the electronic device shown in FIG. 3 and the computer-readable storage medium shown in FIG. 4 are the same as the embodiments of the method shown in FIG. 1 , which have been described in detail above, and here No longer.
综上所述,根据本发明的技术方案,获取待播放的指定视频的配置文件;配置文件中描述了该指定视频的图像内容;在播放指定视频时,根据配置文件对该指定视频进行调色处理,从而播放调色处理后的视频。通过本技术方案,对视频进行调色处理,相比较未进行调色处理的视频,调色处理后的视频的配色更加鲜明,播放该调色处理后的视频,提高视频的色彩展示效果,可以达到用户满意的效果,更能满足用户的播放需求,增强用户的使用体验。In summary, according to the technical solution of the present invention, the configuration file of the specified video to be played is obtained; the image content of the specified video is described in the configuration file; when the specified video is played, the specified video is toned according to the configuration file processing to play the color-graded video. Through this technical solution, the video is toned. Compared with the video without toning, the color of the video after toning is more vivid. Playing the video after toning can improve the color display effect of the video. To achieve the effect of user satisfaction, it can better meet the user's playback needs and enhance the user experience.
需要说明的是:It should be noted:
在此提供的算法和显示不与任何特定计算机、虚拟装置或者其它设备固有相关。各种通用装置也可以与基于在此的示教一起使用。根据上面的描述,构造这类装置所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual appliance, or other device. Various general purpose devices can also be used with the teachings based on this. The structure required to construct such an apparatus will be apparent from the foregoing description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的实现视频调色的装置、电子设备和计算机可读存储介质中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some of the devices, electronic devices and computer-readable storage media for video color adjustment according to the embodiments of the present invention. Or some or all of the functions of all components. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
例如,图3示出了根据本发明一个实施例的电子设备的结构示意图。该电子设备300传统上包括处理器310和被安排成存储计算机可执行指令(程序代码)的存储器320。存储器320可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器320具有存储用于执行图1所示的以及各实施例中的任何方法步骤的程序代码340的存储空间330。例如,用于程序代码的存储空间330可以包括分别用于实现上面的方法中的各种步骤的各个程序代码340。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为例如图4所述的计算机可读存储介质400。该计算机可读存储介质400可以具有与图3的电子设备中的存储器320类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元存储有用于执行根据本发明的方法步骤的程序代码410,即可以由诸如310之类的处理器读取的程序代码,当这些程序代码由电子设备运行时,导致该电子设备执行上面所描述的方法中的各个步骤。For example, FIG. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device 300 conventionally comprises a processor 310 and a memory 320 arranged to store computer-executable instructions (program code). Memory 320 may be electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. The memory 320 has a storage space 330 for storing program code 340 for executing any method steps shown in FIG. 1 and in various embodiments. For example, the storage space 330 for program codes may include respective program codes 340 for respectively implementing various steps in the above methods. These program codes can be read from or written into one or more computer program products. These computer program products comprise program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such a computer program product is typically, for example, the computer-readable storage medium 400 as described in FIG. 4 . The computer-readable storage medium 400 may have storage segments, storage spaces, etc. arranged similarly to the memory 320 in the electronic device of FIG. 3 . The program code can eg be compressed in a suitable form. Typically, the memory unit stores program code 410 for performing the steps of the method according to the invention, i.e. program code readable by a processor such as 310, which when executed by the electronic device causes the electronic device to perform steps in the method described above.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
本发明公开了A1、一种实现视频调色的方法,其中,该方法包括:The invention discloses A1, a method for realizing video color adjustment, wherein the method includes:
获取待播放的指定视频的配置文件;所述配置文件中描述了该指定视频的图像内容;Obtain the configuration file of the specified video to be played; the configuration file describes the image content of the specified video;
在播放所述指定视频时,根据所述配置文件对该指定视频进行调色处理,从而播放调色处理后的视频。When the specified video is played, the specified video is toned according to the configuration file, so as to play the video after toning.
A2、如A1所述的方法,其中,根据所述配置文件对该指定视频进行调色处理包括:A2, the method as described in A1, wherein, according to described configuration file, carrying out color adjustment processing to this specified video comprises:
当所述配置文件中描述该指定视频包括景色类的图像内容以及其起止时间时,将该指定视频中的景色类图像内容中的红、绿、蓝三色的饱和度增加预设数值。When it is described in the configuration file that the specified video includes scene image content and its start and end times, the saturation of red, green, and blue colors in the scene image content in the specified video is increased by a preset value.
A3、如A1所述的方法,其中,根据所述配置文件对该指定视频进行调色处理包括:A3, the method as described in A1, wherein, according to described configuration file, carrying out toning processing to this designated video comprises:
当所述配置文件描述该指定视频包括含人脸的图像内容以及其起止时间时,对该指定视频中的含人脸的图像内容进行人脸美化处理。When the configuration file describes that the specified video includes image content containing a human face and its start and end times, perform face beautification processing on the image content containing a human face in the specified video.
A4、如A1所述的方法,其中,根据所述配置文件对该指定视频进行调色处理包括:A4, the method as described in A1, wherein, according to described configuration file, carrying out toning processing to this appointed video comprises:
当所述配置文件描述该指定视频适用视频处理通用规则时,将该指定视频输入到通用视频调色处理模型中进行调色处理。When the configuration file describes that the specified video is applicable to the general rule of video processing, the specified video is input into the general video grading processing model for grading processing.
A5、如A1所述的方法,其中,A5. The method as described in A1, wherein,
当所述配置文件中描述该指定视频包括景色类的图像内容以及其起止时间时,将该指定视频中的景色类图像内容中的红、绿、蓝三色的饱和度增加预设数值;以及当所述配置文件描述该指定视频包括含人脸的图像内容以及其起止时间时,对该指定视频中的含人脸的图像内容进行人脸美化处理;When it is described in the configuration file that the specified video includes scene image content and its start and end time, the saturation of the red, green, and blue colors in the scene image content in the specified video is increased by a preset value; and When the configuration file describes that the specified video includes image content containing a human face and its start and end time, perform face beautification processing on the image content containing a human face in the specified video;
然后,再将该指定视频输入到通用视频调色处理模型中进行调色处理。Then, the specified video is input into the general video color-grading processing model for color-grading processing.
A6、如A4或A5所述的方法,其中,该方法进一步包括:A6. The method as described in A4 or A5, wherein the method further comprises:
获取被确定为调色处理结果符合预设标准的一定数量的视频;Obtaining a certain number of videos that are determined to be color-graded and meet preset criteria;
将这些视频作为训练数据输入的调色处理机器学习模型中进行训练学习,得到所述通用视频调色处理模型。These videos are input as training data into the color-grading processing machine learning model for training and learning to obtain the general-purpose video color-grading processing model.
A7、如A1所述的方法,其中,在根据所述配置文件对该指定视频进行调色处理之前,该方法进一步包括:A7. The method as described in A1, wherein, before the specified video is toned according to the configuration file, the method further includes:
检测智能终端的参数信息;Detect the parameter information of the smart terminal;
根据检测到的智能终端的参数信息,判断是否对该指定视频进行调色处理;According to the detected parameter information of the intelligent terminal, it is judged whether to perform color adjustment processing on the specified video;
如果判断为是,则执行所述根据所述配置文件对该指定视频进行调色处理的步骤;If it is judged to be yes, then perform the step of performing color adjustment processing on the specified video according to the configuration file;
如果判断为否,则不对该指定视频进行调色处理。If the judgment is negative, the specified video will not be color-graded.
A8、如A7所述的方法,其中,所述智能终端的参数信息包括如下中的一种或多种:A8. The method according to A7, wherein the parameter information of the smart terminal includes one or more of the following:
时间信息;time information;
显示模式;display mode;
姿态信息。attitude information.
本发明还公开了B9、一种实现视频调色的装置,其中,该装置包括:The present invention also discloses B9, a device for realizing video color adjustment, wherein the device includes:
获取单元,适于获取待播放的指定视频的配置文件;所述配置文件中描述了该指定视频的图像内容;The obtaining unit is adapted to obtain the configuration file of the specified video to be played; the configuration file describes the image content of the specified video;
调色处理单元,适于在播放所述指定视频时,根据所述配置文件对该指定视频进行调色处理,从而播放调色处理后的视频。The grading processing unit is adapted to perform grading processing on the specified video according to the configuration file when playing the specified video, so as to play the grading-processed video.
B10、如B9所述的装置,其中,B10. The device of B9, wherein,
所述调色处理单元,适于当所述配置文件中描述该指定视频包括景色类的图像内容以及其起止时间时,将该指定视频中的景色类图像内容中的红、绿、蓝三色的饱和度增加预设数值。The toning processing unit is adapted to, when it is described in the configuration file that the specified video includes scene-like image content and its start and end times, red, green, and blue colors in the scene-like image content in the specified video Saturation increases by a preset value.
B11、如B9所述的装置,其中,B11. The device according to B9, wherein,
所述调色处理单元,适于当所述配置文件描述该指定视频包括含人脸的图像内容以及其起止时间时,对该指定视频中的含人脸的图像内容进行人脸美化处理。The toning processing unit is adapted to perform face beautification processing on the image content containing a human face in the specified video when the configuration file describes that the specified video includes image content containing a human face and its start and end time.
B12、如B9所述的装置,其中,B12. The device of B9, wherein,
所述调色处理单元,适于当所述配置文件描述该指定视频适用视频处理通用规则时,将该指定视频输入到通用视频调色处理模型中进行调色处理。The grading processing unit is adapted to input the specified video into a general video grading processing model to perform grading processing when the configuration file describes that the specified video is applicable to general video processing rules.
B13、如B9所述的装置,其中,B13. The device of B9, wherein,
所述调色处理单元,适于当所述配置文件中描述该指定视频包括景色类的图像内容以及其起止时间时,将该指定视频中的景色类图像内容中的红、绿、蓝三色的饱和度增加预设数值;以及当所述配置文件描述该指定视频包括含人脸的图像内容以及其起止时间时,对该指定视频中的含人脸的图像内容进行人脸美化处理;然后,再将该指定视频输入到通用视频调色处理模型中进行调色处理。The toning processing unit is adapted to, when it is described in the configuration file that the specified video includes scene-like image content and its start and end times, red, green, and blue colors in the scene-like image content in the specified video The saturation of the specified video is increased by a preset value; and when the configuration file describes that the specified video includes image content containing a human face and its start and end time, face beautification processing is performed on the image content containing a human face in the specified video; then , and then input the specified video into the general video color-grading processing model for color-grading processing.
B14、如B12或B13所述的装置,其中,该装置进一步包括:B14. The device as described in B12 or B13, wherein the device further comprises:
训练学习单元,适于获取被确定为调色处理结果符合预设标准的一定数量的视频;将这些视频作为训练数据输入的调色处理机器学习模型中进行训练学习,得到所述通用视频调色处理模型。The training and learning unit is adapted to obtain a certain number of videos that are determined to be the results of the color adjustment processing that meet the preset standards; these videos are input as training data into the color adjustment processing machine learning model for training and learning, and the general video color adjustment is obtained. Handle the model.
B15、如B9所述的装置,其中,在所述调色处理单元根据所述配置文件对该指定视频进行调色处理之前,该装置进一步包括:B15. The device as described in B9, wherein, before the toning processing unit performs toning processing on the specified video according to the configuration file, the device further includes:
参数检测单元,适于检测智能终端的参数信息;根据检测到的智能终端的参数信息,判断是否对该指定视频进行调色处理;如果判断为是,则执行所述根据所述配置文件对该指定视频进行调色处理的步骤;如果判断为否,则不对该指定视频进行调色处理。The parameter detection unit is suitable for detecting the parameter information of the intelligent terminal; according to the detected parameter information of the intelligent terminal, it is judged whether to perform color adjustment processing on the specified video; The step of performing color correction processing on the specified video; if the judgment is no, the specified video color processing will not be performed.
B16、如B15所述的装置,其中,所述智能终端的参数信息包括如下中的一种或多种:B16. The device as described in B15, wherein the parameter information of the smart terminal includes one or more of the following:
时间信息;time information;
显示模式;display mode;
姿态信息。attitude information.
本发明还公开了C17、一种电子设备,其中,该电子设备包括:The present invention also discloses C17, an electronic device, wherein the electronic device includes:
处理器;以及,Processor; and,
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行根据A1~A8中任一项所述的方法。A memory arranged to store computer-executable instructions which, when executed, cause the processor to perform the method according to any one of A1 to A8.
本发明还公开了D18、一种计算机可读存储介质,其中,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被处理器执行时,实现A1~A8中任一项所述的方法。The present invention also discloses D18, a computer-readable storage medium, wherein, the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by the processor, the steps in A1-A8 are realized. any one of the methods described.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810084371.0A CN108470362A (en) | 2018-01-29 | 2018-01-29 | A kind of method and apparatus for realizing video toning |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810084371.0A CN108470362A (en) | 2018-01-29 | 2018-01-29 | A kind of method and apparatus for realizing video toning |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108470362A true CN108470362A (en) | 2018-08-31 |
Family
ID=63266179
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810084371.0A Pending CN108470362A (en) | 2018-01-29 | 2018-01-29 | A kind of method and apparatus for realizing video toning |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108470362A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109035180A (en) * | 2018-09-27 | 2018-12-18 | 广州酷狗计算机科技有限公司 | Video broadcasting method, device, equipment and storage medium |
| CN113497954A (en) * | 2020-03-20 | 2021-10-12 | 阿里巴巴集团控股有限公司 | Video toning method, media data processing method, equipment and storage medium |
| CN114549674A (en) * | 2020-11-24 | 2022-05-27 | 阿里巴巴集团控股有限公司 | Method, system, equipment and storage medium for toning image and video |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130155247A1 (en) * | 2011-12-20 | 2013-06-20 | Pelco, Inc. | Method and System for Color Adjustment |
| CN104486558A (en) * | 2014-12-31 | 2015-04-01 | 厦门美图之家科技有限公司 | Video processing method and device for simulating shooting scene |
| CN105430429A (en) * | 2014-09-18 | 2016-03-23 | 青岛海尔电子有限公司 | Method and device for optimizing media data |
| US20160373684A1 (en) * | 2015-06-22 | 2016-12-22 | Gentex Corporation | System and method for processing streamed video images to correct for flicker of amplitude-modulated lights |
| CN106875344A (en) * | 2016-12-21 | 2017-06-20 | 浙江大华技术股份有限公司 | A kind of light filling processing method and processing device of video image |
| US20170223282A1 (en) * | 2013-02-05 | 2017-08-03 | Google Inc. | Noise Models for Image Processing |
| CN107295251A (en) * | 2017-06-09 | 2017-10-24 | 腾讯科技(深圳)有限公司 | Image processing method, device, terminal and storage medium |
| CN107341434A (en) * | 2016-08-19 | 2017-11-10 | 北京市商汤科技开发有限公司 | Processing method, device and the terminal device of video image |
| CN107481211A (en) * | 2017-08-15 | 2017-12-15 | 北京工业大学 | A kind of night traffic based on gradient field fusion monitors Enhancement Method |
| CN107578017A (en) * | 2017-09-08 | 2018-01-12 | 百度在线网络技术(北京)有限公司 | Method and device for generating images |
-
2018
- 2018-01-29 CN CN201810084371.0A patent/CN108470362A/en active Pending
Patent Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130155247A1 (en) * | 2011-12-20 | 2013-06-20 | Pelco, Inc. | Method and System for Color Adjustment |
| CN104145477A (en) * | 2011-12-20 | 2014-11-12 | 派尔高公司 | Method and system for color adjustment |
| US20170223282A1 (en) * | 2013-02-05 | 2017-08-03 | Google Inc. | Noise Models for Image Processing |
| CN105430429A (en) * | 2014-09-18 | 2016-03-23 | 青岛海尔电子有限公司 | Method and device for optimizing media data |
| CN104486558A (en) * | 2014-12-31 | 2015-04-01 | 厦门美图之家科技有限公司 | Video processing method and device for simulating shooting scene |
| US20160373684A1 (en) * | 2015-06-22 | 2016-12-22 | Gentex Corporation | System and method for processing streamed video images to correct for flicker of amplitude-modulated lights |
| CN107341434A (en) * | 2016-08-19 | 2017-11-10 | 北京市商汤科技开发有限公司 | Processing method, device and the terminal device of video image |
| CN106875344A (en) * | 2016-12-21 | 2017-06-20 | 浙江大华技术股份有限公司 | A kind of light filling processing method and processing device of video image |
| CN107295251A (en) * | 2017-06-09 | 2017-10-24 | 腾讯科技(深圳)有限公司 | Image processing method, device, terminal and storage medium |
| CN107481211A (en) * | 2017-08-15 | 2017-12-15 | 北京工业大学 | A kind of night traffic based on gradient field fusion monitors Enhancement Method |
| CN107578017A (en) * | 2017-09-08 | 2018-01-12 | 百度在线网络技术(北京)有限公司 | Method and device for generating images |
Non-Patent Citations (1)
| Title |
|---|
| 那彦 等: "《基于多分辨分析理论的图像融合方法》", 31 May 2007, 西安:西安电子科技大学出版社 * |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109035180A (en) * | 2018-09-27 | 2018-12-18 | 广州酷狗计算机科技有限公司 | Video broadcasting method, device, equipment and storage medium |
| CN113497954A (en) * | 2020-03-20 | 2021-10-12 | 阿里巴巴集团控股有限公司 | Video toning method, media data processing method, equipment and storage medium |
| CN113497954B (en) * | 2020-03-20 | 2023-02-03 | 阿里巴巴集团控股有限公司 | Video toning method, device and storage medium |
| CN114549674A (en) * | 2020-11-24 | 2022-05-27 | 阿里巴巴集团控股有限公司 | Method, system, equipment and storage medium for toning image and video |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10403036B2 (en) | Rendering glasses shadows | |
| CN107111866B (en) | Method and apparatus for generating extrapolated images based on object detection | |
| CN106303354B (en) | A kind of facial special effect recommendation method and electronic device | |
| CN108235117A (en) | A kind of video shading process and device | |
| US20150317510A1 (en) | Rating photos for tasks based on content and adjacent signals | |
| CN107529091A (en) | Video clipping method and device | |
| CN111277910A (en) | Bullet screen display method, device, electronic device and storage medium | |
| CN108040265A (en) | A kind of method and apparatus handled video | |
| CN107730461A (en) | Image processing method, apparatus, device and medium | |
| CN108470362A (en) | A kind of method and apparatus for realizing video toning | |
| WO2017185584A1 (en) | Method and device for playback optimization | |
| JP2017511627A (en) | Raw scene recognition that allows scene-dependent image modification before image recording or display | |
| CN106604057A (en) | Video processing method and apparatus thereof | |
| CN102262521A (en) | Image processing apparatus, method, and storage medium storing a program | |
| CN116013184A (en) | Display screen processing method, device, equipment and medium | |
| CN108810513B (en) | Method and device for displaying picture quality of panoramic video | |
| CN108495107A (en) | A kind of method for processing video frequency and device | |
| CN110035320A (en) | The advertisement load rendering method and device of video | |
| CN108235118A (en) | A kind of video toning treating method and apparatus | |
| CN113408452A (en) | Expression redirection training method and device, electronic equipment and readable storage medium | |
| CN108769825B (en) | Method and device for realizing live broadcast | |
| CN118396857A (en) | Image processing method and electronic equipment | |
| US10114447B2 (en) | Image processing method and apparatus for operating in low-power mode | |
| CN109788311A (en) | Personage's replacement method, electronic equipment and storage medium | |
| Chang et al. | Transfer in photography composition |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180831 |
|
| RJ01 | Rejection of invention patent application after publication |