CN113422995A - Video processing method based on AI model and portable electronic device - Google Patents
Video processing method based on AI model and portable electronic device Download PDFInfo
- Publication number
- CN113422995A CN113422995A CN202110818681.2A CN202110818681A CN113422995A CN 113422995 A CN113422995 A CN 113422995A CN 202110818681 A CN202110818681 A CN 202110818681A CN 113422995 A CN113422995 A CN 113422995A
- Authority
- CN
- China
- Prior art keywords
- data
- target video
- processing strategy
- video segment
- environment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 11
- 238000012545 processing Methods 0.000 claims abstract description 253
- 230000007613 environmental effect Effects 0.000 claims abstract description 117
- 238000000034 method Methods 0.000 claims abstract description 76
- 238000012549 training Methods 0.000 claims description 45
- 238000013473 artificial intelligence Methods 0.000 claims description 30
- 238000013528 artificial neural network Methods 0.000 claims description 23
- 238000004422 calculation algorithm Methods 0.000 claims description 23
- 238000009877 rendering Methods 0.000 claims description 18
- 238000005538 encapsulation Methods 0.000 claims description 11
- 238000003707 image sharpening Methods 0.000 claims description 10
- 230000000306 recurrent effect Effects 0.000 claims description 6
- 238000004590 computer program Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 9
- 230000000007 visual effect Effects 0.000 description 9
- 230000008447 perception Effects 0.000 description 6
- 238000013461 design Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000012634 fragment Substances 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000001537 neural effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
Images
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/41—Structure of client; Structure of client peripherals
- H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
- H04N21/42202—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS] environmental sensors, e.g. for detecting temperature, luminosity, pressure, earthquakes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44012—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
-
- 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/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4436—Power management, e.g. shutting down unused components of the receiver
-
- 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/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/466—Learning process for intelligent management, e.g. learning user preferences for recommending movies
- H04N21/4662—Learning process for intelligent management, e.g. learning user preferences for recommending movies characterized by learning algorithms
- H04N21/4666—Learning process for intelligent management, e.g. learning user preferences for recommending movies characterized by learning algorithms using neural networks, e.g. processing the feedback provided by the user
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Remote Sensing (AREA)
- Emergency Management (AREA)
- Environmental & Geological Engineering (AREA)
- Environmental Sciences (AREA)
- Business, Economics & Management (AREA)
- Ecology (AREA)
- Biodiversity & Conservation Biology (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Computation (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
本申请提供一种基于AI模型的视频处理方法、便携式电子装置,方法包括:获取至少一种环境数据;至少一种环境数据包括:光线数据,和/或声音数据,和/或气温数据,和/或气压数据;获取目标视频片段的至少一种数据,目标视频片段的至少一种数据包括:声音数据,和/或图像数据,和/或字幕数据;目标视频片段是电子设备将要播放的视频片段;将至少一种环境数据和目标视频片段的至少一种数据输入第一模型,得到目标视频片段的第一处理策略,第一模型用于分析视频片段的处理策略;按照第一处理策略播放目标视频片段。本申请能够在视频播放过程中自动调整处理策略,减少电子设备播放视频所消耗的电量,达到省电的目的。
The present application provides a video processing method and a portable electronic device based on an AI model. The method includes: acquiring at least one type of environmental data; the at least one type of environmental data includes: light data, and/or sound data, and/or air temperature data, and /or air pressure data; obtain at least one kind of data of the target video clip, at least one kind of data of the target video clip includes: sound data, and/or image data, and/or subtitle data; the target video clip is the video to be played by the electronic device segment; input at least one type of environmental data and at least one type of data of the target video segment into the first model to obtain the first processing strategy of the target video segment, and the first model is used to analyze the processing strategy of the video segment; play according to the first processing strategy target video clip. The present application can automatically adjust the processing strategy during the video playing process, reduce the power consumption of the electronic device to play the video, and achieve the purpose of saving power.
Description
技术领域technical field
本申请涉及智能终端技术领域,特别涉及一种基于AI模型的视频处理方法、便携式电子装置。The present application relates to the technical field of intelligent terminals, and in particular, to an AI model-based video processing method and a portable electronic device.
背景技术Background technique
目前,用户在使用电子设备时如果从室内移动到户外,为了使得用户能够看清楚显示屏上显示的内容,电子设备会提高显示屏的亮度,从而造成电子设备功耗增加。如果电子设备所处环境从室内变为室外时电子设备正在播放视频,电子设备的功耗增加将更为严重,从而造成电子设备的电量消耗过大。At present, if a user moves from indoors to outdoors when using an electronic device, in order to enable the user to clearly see the content displayed on the display screen, the electronic device increases the brightness of the display screen, thereby increasing the power consumption of the electronic device. If the electronic device is playing a video when the environment in which the electronic device is located changes from indoors to outdoors, the power consumption of the electronic device will increase more seriously, resulting in excessive power consumption of the electronic device.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种基于AI模型的视频处理方法、便携式电子装置,能够使得电子设备播放视频所消耗的电量更为合理。The present application provides a video processing method and a portable electronic device based on an AI model, which can make the power consumed by the electronic device to play a video more reasonable.
第一方面,本申请实施例提供一种基于AI模型的视频处理方法,包括:In a first aspect, an embodiment of the present application provides a video processing method based on an AI model, including:
获取至少一种环境数据;所述至少一种环境数据包括:光线数据,和/或声音数据,和/或气温数据,和/或气压数据;Acquiring at least one type of environmental data; the at least one type of environmental data includes: light data, and/or sound data, and/or air temperature data, and/or air pressure data;
获取目标视频片段的至少一种数据,所述目标视频片段的至少一种数据包括:声音数据,和/或图像数据,和/或字幕数据;所述目标视频片段是所述电子设备将要播放的视频片段;Acquire at least one kind of data of the target video clip, where the at least one kind of data of the target video clip includes: sound data, and/or image data, and/or subtitle data; the target video clip is to be played by the electronic device video clips;
将所述至少一种环境数据和所述目标视频片段的至少一种数据输入第一模型,得到所述目标视频片段的第一处理策略,所述第一模型用于分析视频片段的处理策略;Inputting the at least one kind of environmental data and at least one kind of data of the target video clip into a first model to obtain a first processing strategy of the target video clip, and the first model is used to analyze the processing strategy of the video clip;
按照所述第一处理策略播放所述目标视频片段。Play the target video segment according to the first processing strategy.
在一种可能的实现方式中,所述第一处理策略包括:图像处理器针对于所述目标视频片段的处理策略,和/或,数据处理器针对于所述目标视频片段的处理策略,和/或,显示驱动器针对于所述目标视频片段的处理策略。In a possible implementation manner, the first processing strategy includes: a processing strategy of the image processor for the target video clip, and/or a processing strategy of the data processor for the target video clip, and /or, display the processing strategy of the driver for the target video segment.
在一种可能的实现方式中,所述第一处理策略包括:数据处理器针对于所述目标视频片段的处理策略,所述按照所述第一处理策略播放所述目标视频片段,包括:In a possible implementation manner, the first processing strategy includes: a processing strategy of the data processor for the target video clip, and the playing the target video clip according to the first processing strategy includes:
对于所述目标视频片段,按照所述第一处理策略中所述数据处理器针对于所述目标视频片段的处理策略,对所述目标视频片段的码流进行解码处理,得到解码后的数据。For the target video clip, according to the processing strategy of the data processor for the target video clip in the first processing strategy, the code stream of the target video clip is decoded to obtain decoded data.
在一种可能的实现方式中,所述第一处理策略包括:图像处理器针对于所述目标视频片段的处理策略,所述按照所述第一处理策略播放所述目标视频片段,包括:In a possible implementation manner, the first processing strategy includes: a processing strategy of the image processor for the target video clip, and the playing the target video clip according to the first processing strategy includes:
对于所述目标视频片段中的每个视频帧,按照所述第一处理策略中所述图像处理器针对于所述目标视频片段的处理策略,对所述视频帧进行渲染处理。For each video frame in the target video clip, the image processor performs rendering processing on the video frame according to the processing strategy of the image processor for the target video clip in the first processing strategy.
在一种可能的实现方式中,所述第一处理策略包括:显示驱动器针对于所述目标视频片段的处理策略,所述按照所述第一处理策略播放所述目标视频片段,包括:In a possible implementation manner, the first processing strategy includes: a processing strategy of a display driver for the target video clip, and the playing the target video clip according to the first processing strategy includes:
对于所述目标视频片段中的每个视频帧,按照所述第一处理策略中所述显示驱动器针对于所述目标视频片段的处理策略,对所述视频帧进行显示。For each video frame in the target video clip, display the video frame according to the processing strategy of the display driver for the target video clip in the first processing strategy.
在一种可能的实现方式中,所述图像处理器针对于所述目标视频片段的处理策略包括:图像渲染分辨率,和/或,图像锐化算法的开关状态,和/或,增强对比度算法的开关状态;In a possible implementation manner, the processing strategy of the image processor for the target video segment includes: an image rendering resolution, and/or a switch state of an image sharpening algorithm, and/or a contrast enhancement algorithm the switch state;
和/或,and / or,
所述数据处理器针对于所述目标视频片段的处理策略包括:解码精度,和/或,跳帧,和/或,目标视频片段的帧率,和/或,目标视频片段的视频封装格式,和/或,目标视频片段的码率流,和/或,目标视频片段的分辨率;The processing strategy of the data processor for the target video clip includes: decoding accuracy, and/or, frame skipping, and/or, the frame rate of the target video clip, and/or, the video encapsulation format of the target video clip, and/or, the bit rate stream of the target video clip, and/or, the resolution of the target video clip;
和/或,and / or,
所述显示驱动器针对于所述目标视频片段的处理策略包括:屏幕刷新频率,和/或,屏幕分辨率。The processing strategy of the display driver for the target video segment includes: screen refresh rate and/or screen resolution.
在一种可能的实现方式中,所述第一模型预先训练得到,所述训练方法包括:In a possible implementation manner, the first model is obtained by pre-training, and the training method includes:
获取标注有处理策略的训练样本;每个所述训练样本包括:所述至少一种环境数据中各环境数据的样本,所述至少一种数据中每种数据的样本;Acquiring training samples marked with processing strategies; each of the training samples includes: samples of each environmental data in the at least one type of environmental data, and samples of each type of data in the at least one type of data;
将所述训练样本输入预设模型进行训练,得到所述第一模型。The training samples are input into a preset model for training to obtain the first model.
在一种可能的实现方式中,所述第一模型是由AI感知神经网络加速器和循环神经网络构成的AI感知神经网络。In a possible implementation manner, the first model is an AI perception neural network composed of an AI perception neural network accelerator and a recurrent neural network.
第二方面,本申请实施例提供一种视频处理方法,应用于电子设备,包括:In a second aspect, an embodiment of the present application provides a video processing method, which is applied to an electronic device, including:
获取至少一种环境数据;所述至少一种环境数据包括:光线数据,和/或声音数据,和/或气温数据,和/或气压数据;Acquiring at least one type of environmental data; the at least one type of environmental data includes: light data, and/or sound data, and/or air temperature data, and/or air pressure data;
根据所述至少一种环境数据确定第一环境类型;determining a first environment type based on the at least one environment data;
根据所述第一环境类型确定目标视频片段的第一处理策略;所述目标视频片段是所述电子设备将要播放的视频片段;Determine the first processing strategy of the target video clip according to the first environment type; the target video clip is the video clip to be played by the electronic device;
按照所述第一处理策略播放所述目标视频片段。Play the target video segment according to the first processing strategy.
在一种可能的实现方式中,如果获取一种环境数据,所述根据所述至少一种环境数据确定第一环境类型,包括:In a possible implementation manner, if one type of environmental data is acquired, the determining of the first type of environment according to the at least one type of environmental data includes:
对于所述一种环境数据,根据为该种环境数据预设的数据区间与第二环境类型之间的对应关系,确定获取到的该种环境数据对应的第二环境类型,作为所述第一环境类型;For the type of environmental data, according to the corresponding relationship between the data interval preset for the type of environmental data and the second type of environment, determine the second type of environment corresponding to the acquired type of environmental data, as the first type of environment type of environment;
或者,or,
如果获取至少两种环境数据,所述根据所述至少一种环境数据确定第一环境类型,包括:If at least two kinds of environmental data are obtained, the determining of the first environmental type according to the at least one kind of environmental data includes:
对于每一种环境数据,根据为该种环境数据预设的数据区间与第二环境类型之间的对应关系,确定获取到的该种环境数据对应的第二环境类型;For each kind of environmental data, according to the corresponding relationship between the data interval preset for the environmental data and the second environmental type, determine the second environmental type corresponding to the acquired environmental data;
根据获取到的每一种环境数据对应的第二环境类型,确定所述第一环境类型。The first environment type is determined according to the second environment type corresponding to each acquired environment data.
在一种可能的实现方式中,所述根据获取到的每一种环境数据对应的第二环境类型,确定所述第一环境类型,包括:In a possible implementation manner, the determining of the first environment type according to the second environment type corresponding to each acquired environment data includes:
根据获取到的每一种环境数据的预设权重、以及对应第二环境类型对应的数值计算第一数值;Calculate the first numerical value according to the obtained preset weight of each environmental data and the numerical value corresponding to the second environmental type;
根据预设的数值区间与第三环境类型之间的对应关系,确定所述第一数值对应的第三环境类型,得到所述第一环境类型。The third environment type corresponding to the first value is determined according to the correspondence between the preset value interval and the third environment type, and the first environment type is obtained.
在另一种可能的实现方式中,如果获取一种环境数据,所述根据所述至少一种环境数据确定第一环境类型,还可以通过将上述至少一种环境数据输入预先训练的第二模型来确定第一环境类型。此时,包括:In another possible implementation manner, if one type of environmental data is acquired, the determining of the first type of environment according to the at least one type of environmental data may also be performed by inputting the at least one type of environmental data into a pre-trained second model to determine the first environment type. At this point, include:
将上述至少一种环境数据输入预设第二模型,得到第二模型输出的环境类型,得到第一环境类型。Inputting the above at least one kind of environmental data into a preset second model, obtaining the environment type output by the second model, and obtaining the first environment type.
可选地,第二模型可以是由AI感知神经网络加速器、以及循环神经网络(RNN)构成的AI感知神经网络。Optionally, the second model may be an AI-aware neural network composed of an AI-aware neural network accelerator and a recurrent neural network (RNN).
第二模型的具体训练方法可以包括:获取训练样本,每个训练样本包括:至少两种环境数据中各环境数据的样本,以及该训练样本的环境类型;将训练样本输入预设模型进行训练,得到第二模型。The specific training method of the second model may include: acquiring training samples, each training sample including: samples of each environmental data in at least two kinds of environmental data, and the environment type of the training sample; inputting the training samples into a preset model for training, Get the second model.
在一种可能的实现方式中,所述根据所述第一环境类型确定目标视频的第一处理策略,包括:In a possible implementation manner, the determining the first processing strategy of the target video according to the first environment type includes:
根据预设的环境类型与处理策略之间的对应关系,确定所述第一环境类型对应的处理策略,作为所述第一处理策略;所述第一处理策略包括:图像处理器针对于所述目标视频片段的处理策略,和/或,数据处理器针对于所述目标视频片段的处理策略,和/或,显示驱动器针对于所述目标视频片段的处理策略。According to the preset correspondence between the environment type and the processing strategy, the processing strategy corresponding to the first environment type is determined as the first processing strategy; the first processing strategy includes: an image processor for the The processing strategy of the target video clip, and/or the processing strategy of the data processor for the target video clip, and/or the processing strategy of the display driver for the target video clip.
在一种可能的实现方式中,所述第一处理策略包括:数据处理器针对于所述目标视频片段的处理策略,所述按照所述第一处理策略播放所述目标视频片段,包括:In a possible implementation manner, the first processing strategy includes: a processing strategy of the data processor for the target video clip, and the playing the target video clip according to the first processing strategy includes:
对于所述目标视频片段,按照所述第一处理策略中所述数据处理器针对于所述目标视频片段的处理策略,对所述目标视频片段的码流进行解码处理,得到解码后的数据;For the target video clip, according to the processing strategy of the data processor for the target video clip in the first processing strategy, decode the code stream of the target video clip to obtain decoded data;
和/或,and / or,
所述第一处理策略包括:图像处理器针对于所述目标视频片段的处理策略,所述按照所述第一处理策略播放所述目标视频片段,包括:The first processing strategy includes: a processing strategy of the image processor for the target video clip, and the playing the target video clip according to the first processing strategy includes:
对于所述目标视频片段中的每个视频帧,按照所述第一处理策略中所述图像处理器针对于所述目标视频片段的处理策略,对所述视频帧进行渲染处理;For each video frame in the target video clip, perform rendering processing on the video frame according to the processing strategy of the image processor for the target video clip in the first processing strategy;
和/或,and / or,
所述第一处理策略包括:显示驱动器针对于所述目标视频片段的处理策略,所述按照所述第一处理策略播放所述目标视频片段,包括:The first processing strategy includes: a processing strategy of the display driver for the target video clip, and the playing the target video clip according to the first processing strategy includes:
对于所述目标视频片段中的每个视频帧,按照所述第一处理策略中所述显示驱动器针对于所述目标视频片段的处理策略,对所述视频帧进行显示。For each video frame in the target video clip, display the video frame according to the processing strategy of the display driver for the target video clip in the first processing strategy.
在一种可能的实现方式中,所述图像处理器针对于所述目标视频片段的处理策略包括:图像渲染分辨率,和/或,图像锐化算法的开关状态,和/或,增强对比度算法的开关状态;In a possible implementation manner, the processing strategy of the image processor for the target video segment includes: an image rendering resolution, and/or a switch state of an image sharpening algorithm, and/or a contrast enhancement algorithm the switch state;
和/或,and / or,
所述数据处理器针对于所述目标视频片段的处理策略包括:解码精度,和/或,跳帧,和/或,目标视频片段的帧率,和/或,目标视频片段的视频封装格式,和/或,目标视频片段的码率流,和/或,目标视频片段的分辨率;The processing strategy of the data processor for the target video clip includes: decoding accuracy, and/or, frame skipping, and/or, the frame rate of the target video clip, and/or, the video encapsulation format of the target video clip, and/or, the bit rate stream of the target video clip, and/or, the resolution of the target video clip;
和/或,and / or,
所述显示驱动器针对于所述目标视频片段的处理策略包括:屏幕刷新频率,和/或,屏幕分辨率。The processing strategy of the display driver for the target video segment includes: screen refresh rate and/or screen resolution.
第三方面,本申请实施例提供一种便携式电子装置,包括:In a third aspect, an embodiment of the present application provides a portable electronic device, including:
第一获取单元,用于获取至少一种环境数据;所述至少一种环境数据包括:光线数据,和/或声音数据,和/或气温数据,和/或气压数据;a first acquiring unit, configured to acquire at least one type of environmental data; the at least one type of environmental data includes: light data, and/or sound data, and/or air temperature data, and/or air pressure data;
第二获取单元,用于获取目标视频片段的至少一种数据,所述目标视频片段的至少一种数据包括:声音数据,和/或图像数据,和/或字幕数据;所述目标视频片段是所述电子设备将要播放的视频片段;The second obtaining unit is configured to obtain at least one kind of data of the target video clip, where the at least one kind of data of the target video clip includes: sound data, and/or image data, and/or subtitle data; the target video clip is the video clip to be played by the electronic device;
策略决策单元,用于将所述至少一种环境数据和所述目标视频片段的至少一种数据输入第一模型,得到所述目标视频片段的第一处理策略,所述第一模型用于分析视频片段的处理策略;a strategy decision unit, configured to input the at least one kind of environmental data and at least one kind of data of the target video clip into a first model to obtain a first processing strategy of the target video clip, and the first model is used for analysis Video clip processing strategy;
播放单元,用于按照所述第一处理策略播放所述目标视频片段。A playing unit, configured to play the target video segment according to the first processing strategy.
第四方面,本申请实施例提供一种便携式电子装置,包括:In a fourth aspect, an embodiment of the present application provides a portable electronic device, including:
获取单元,用于获取至少一种环境数据;所述至少一种环境数据包括:光线数据,和/或声音数据,和/或气温数据,和/或气压数据;an acquisition unit, configured to acquire at least one type of environmental data; the at least one type of environmental data includes: light data, and/or sound data, and/or air temperature data, and/or air pressure data;
第一确定单元,用于根据所述至少一种环境数据确定第一环境类型;a first determining unit, configured to determine a first environment type according to the at least one type of environment data;
第二确定单元,用于根据所述第一环境类型确定目标视频片段的第一处理策略;所述目标视频片段是所述电子设备将要播放的视频片段;a second determining unit, configured to determine a first processing strategy of a target video clip according to the first environment type; the target video clip is a video clip to be played by the electronic device;
播放单元,用于按照所述第一处理策略播放所述目标视频片段。A playing unit, configured to play the target video segment according to the first processing strategy.
第五方面,本申请实施例提供一种电子设备,包括:In a fifth aspect, an embodiment of the present application provides an electronic device, including:
显示屏;一个或多个处理器;存储器;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述设备执行时,使得所述设备执行第一方面或者第二方面任一项所述的方法。a display screen; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions for When the instruction is executed by the device, the device is caused to execute the method described in any one of the first aspect or the second aspect.
第六方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行第一方面或者第二方面任一项所述的方法。In a sixth aspect, embodiments of the present application provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when it runs on a computer, causes the computer to execute any one of the first aspect or the second aspect method described in item.
第七方面,本申请提供一种计算机程序,当所述计算机程序被计算机执行时,用于执行第一方面所述的方法。In a seventh aspect, the present application provides a computer program for executing the method of the first aspect when the computer program is executed by a computer.
在一种可能的设计中,第七方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。In a possible design, the program in the seventh aspect may be stored in whole or in part on a storage medium packaged with the processor, or may be stored in part or in part in a memory not packaged with the processor.
本申请视频处理方法中,获取至少一种环境数据,所述至少一种环境数据包括:光线数据,和/或声音数据,和/或气温数据,和/或气压数据,获取目标视频片段的至少一种数据,所述目标视频片段的至少一种数据包括:声音数据,和/或图像数据,和/或字幕数据,所述目标视频片段是所述电子设备将要播放的视频片段,将所述至少一种环境数据和所述目标视频片段的至少一种数据输入第一模型,得到所述目标视频片段的第一处理策略,所述第一模型用于分析视频片段的处理策略,按照所述第一处理策略播放所述目标视频片段,从而能够自动根据环境数据和目标视频片段的数据在视频播放过程中自动调整处理策略,使得电子设备播放视频所消耗的电量更为合理,达到省电的目的。In the video processing method of the present application, at least one type of environmental data is acquired, and the at least one type of environmental data includes: light data, and/or sound data, and/or air temperature data, and/or air pressure data, and at least one of the target video clips is acquired. A kind of data, at least one kind of data of the target video clip includes: sound data, and/or image data, and/or subtitle data, the target video clip is a video clip to be played by the electronic device, and the target video clip is to be played by the electronic device. At least one kind of environmental data and at least one kind of data of the target video clip are input into a first model to obtain a first processing strategy of the target video clip, and the first model is used to analyze the processing strategy of the video clip, according to the The first processing strategy plays the target video clip, so that the processing strategy can be automatically adjusted during the video playback process according to the environmental data and the data of the target video clip, so that the power consumed by the electronic device to play the video is more reasonable, and the power saving is achieved. Purpose.
附图说明Description of drawings
图1为本申请电子设备一个实施例的结构示意图;1 is a schematic structural diagram of an embodiment of an electronic device of the present application;
图2为本申请视频播放方法一个实施例的流程图;2 is a flowchart of an embodiment of a video playback method of the present application;
图3为本申请视频播放方法另一个实施例的流程图;3 is a flowchart of another embodiment of the video playback method of the present application;
图4A为本申请视频播放方法又一个实施例的流程图;4A is a flowchart of another embodiment of the video playback method of the present application;
图4B为本申请第一模型的训练方法示意图;4B is a schematic diagram of the training method of the first model of the application;
图5为本申请视频播放方法又一个实施例的流程图;FIG. 5 is a flowchart of another embodiment of the video playback method of the present application;
图6为本申请视频播放装置一个实施例的结构示意图;6 is a schematic structural diagram of an embodiment of a video playback device of the present application;
图7为本申请视频播放装置另一个实施例的结构示意图;7 is a schematic structural diagram of another embodiment of a video playback device of the present application;
图8为现有技术视频播放流程示意图;8 is a schematic diagram of a video playback process in the prior art;
图9为本申请实施例视频播放流程示意图。FIG. 9 is a schematic diagram of a video playback process according to an embodiment of the present application.
具体实施方式Detailed ways
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The terms used in the embodiments of the present application are only used to explain specific embodiments of the present application, and are not intended to limit the present application.
首先对本申请实施例中涉及的名词进行示例性而非限定性的说明:First of all, the nouns involved in the embodiments of the present application are described in an exemplary but not restrictive manner:
人工智能(Artificial Intelligence,AI),是研究、开发用于模拟、延伸和扩展人的智能的理论、方法、技术及应用系统的一门新的技术科学。Artificial intelligence (AI) is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence.
系统级芯片(System on Chip,以下简称“SoC”),也称为片上系统,意指它是一个产品,是一个有专用目标的集成电路,其中包含完整系统并有嵌入软件的全部内容。同时它又是一种技术,用以实现从确定系统功能开始,到软/硬件划分,并完成设计的整个过程。System on Chip (System on Chip, hereinafter referred to as "SoC"), also known as system on chip, means that it is a product, an integrated circuit with a dedicated target, which contains a complete system and has all the contents of embedded software. At the same time, it is a technology used to realize the whole process from determining the system function, to the software/hardware division, and completing the design.
数字信号处理器(Digital Signal Processor,DSP),是一种特别适合于进行数字信号处理运算的微处理器,其主要应用是实时快速地实现各种数字信号处理算法。A digital signal processor (Digital Signal Processor, DSP) is a microprocessor that is particularly suitable for digital signal processing operations, and its main application is to realize various digital signal processing algorithms quickly and in real time.
AI培育:在人工智能领域的AI培育,利用大量加速器如图形处理器(GraphicsProcessing Unit,GPU)或中央处理器(Central Processing Unit,CPU)等能提供算力的装置,找到一个合适的神经网络架构和计算得到神经网络最优结构参数,使得该网络能完成特定的工作。通俗而言,便是给机器“投喂”大量的数据,让它学会识别和区分对象。AI cultivation: AI cultivation in the field of artificial intelligence, using a large number of accelerators such as graphics processing units (Graphics Processing Unit, GPU) or central processing units (Central Processing Unit, CPU) and other devices that can provide computing power, to find a suitable neural network architecture And calculate the optimal structure parameters of the neural network, so that the network can complete specific tasks. In layman's terms, it is to "feed" a large amount of data to the machine and let it learn to recognize and distinguish objects.
本申请实施例的视频播放方法可以适用于电子设备,例如手机、平板电脑(PAD)、个人电脑(PC)等。具体可以作为电子设备中视频播放应用(App)中的一个功能,或者,电子设备的操作系统提供的一种视频播放控制功能。上述功能可以由用户设置其是否开启,在上述功能开启后,可以触发执行本申请实施例视频播放方法,达到在视频播放过程中合理消耗电子设备电量、进而节省电子设备电量的目的。The video playback method of the embodiments of the present application may be applicable to electronic devices, such as a mobile phone, a tablet computer (PAD), a personal computer (PC), and the like. Specifically, it can be used as a function in a video playback application (App) in the electronic device, or a video playback control function provided by the operating system of the electronic device. The above function can be set by the user whether it is enabled or not. After the above function is enabled, the video playback method according to the embodiment of the present application can be triggered to achieve the purpose of reasonably consuming the power of the electronic device during the video playback process, thereby saving the power of the electronic device.
首先对本申请电子设备的可能实现结构进行说明。如图1所示,电子设备100可以包括:处理器110、存储器120、显示屏130。电子设备100还可以包括:光线传感器140、麦克风150、温度传感器160、气压传感器170等。以上结构之间可以通过内部连接通路相互通信,传递控制和或数据信号,该存储器120用于存储计算机程序,该处理器110用于从该存储器120中调用并运行该计算机程序。First, the possible implementation structure of the electronic device of the present application will be described. As shown in FIG. 1 , the
上述处理器110可以和存储器120可以合成一个处理装置,更常见的是彼此独立的部件,处理器110用于执行存储器120中存储的程序代码来实现上述功能。具体实现时,该存储器120也可以集成在处理器110中,或者,独立于处理器110。The above-mentioned
应理解,图1所示的电子设备100中的处理器110可以是片上系统SoC,该处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。It should be understood that the
电子设备100通过GPU,显示屏130,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏130和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。A digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals.
光线传感器140用于感知环境光亮度。The
温度传感器160用于检测环境温度。The
气压传感器170用于测量气压。The
麦克风150用于采集声音信号,将声音信号转换为电信号。The
应理解,图1所示的电子设备100能够实现本申请实施例提供的方法的各个过程。电子设备100中的各个模块的操作和/或功能,分别为了实现上述方法实施例中的相应流程。具体可参见本申请方法实施例中的描述,为避免重复,此处适当省略详细描述。It should be understood that the
以下结合上述电子设备结构对本申请视频播放方法进行详细说明。The video playback method of the present application will be described in detail below with reference to the structure of the electronic device.
以下本申请实施例中所称的视频片段可以是对一个视频文件按照时长进行划分得到的若干个视频片段中的一个视频片段,如果视频文件没有划分视频片段,也可以认为一个视频文件就是一个视频片段。视频片段的长度本申请实施例不作限定。The video clip referred to in the following embodiments of the present application may be a video clip among several video clips obtained by dividing a video file according to the duration. If the video file is not divided into video clips, it can also be considered that a video file is a video Fragment. The length of the video segment is not limited in this embodiment of the present application.
图2为本申请视频播放方法一个实施例的流程图,如图1所示,该方法可以包括:FIG. 2 is a flowchart of an embodiment of a video playback method of the present application. As shown in FIG. 1 , the method may include:
步骤201:电子设备获取至少一种环境数据;至少一种环境数据包括:光线数据,和/或声音数据,和/或气温数据,和/或气压数据。Step 201: The electronic device acquires at least one type of environmental data; the at least one type of environmental data includes: light data, and/or sound data, and/or air temperature data, and/or air pressure data.
光线数据可以由电子设备中的光线传感器检测得到;声音数据可以由电子设备中的麦克风检测得到;气温数据可以由电子设备中的温度传感器检测得到;气压数据可以由电子设备中的气压传感器检测得到。The light data can be detected by the light sensor in the electronic device; the sound data can be detected by the microphone in the electronic device; the air temperature data can be detected by the temperature sensor in the electronic device; the air pressure data can be detected by the air pressure sensor in the electronic device. .
步骤202:电子设备根据至少一种环境数据确定第一环境类型。Step 202: The electronic device determines a first environment type according to at least one kind of environment data.
第一环境类型用于描述电子设备所处环境的类型。The first environment type is used to describe the type of environment in which the electronic device is located.
以下,分为两种可能场景来说明本步骤的实现。Hereinafter, the implementation of this step will be described in two possible scenarios.
场景一:步骤201中获取一种环境数据,相应的,本步骤中根据一种环境数据确定第一环境类型,此时,本步骤可以包括:Scenario 1: In
根据为上述一种环境数据预设的数据区间与环境类型之间的对应关系,确定该种环境数据所处数据区间对应的环境类型,作为第一环境类型。According to the corresponding relationship between the data interval and the environmental type preset for the above-mentioned environmental data, the environmental type corresponding to the data interval in which the environmental data is located is determined as the first environmental type.
环境类型的划分方法本申请实施例不作限定,例如,环境类型可以按照物理空间划分为:室内、室外;或者,环境类型可以按照安静程度划分为:嘈杂环境、安静环境;或者,环境类型可以按照安静程度划分为:嘈杂环境、较安静环境、安静环境;等等。The method for classifying environment types is not limited in the embodiment of the present application. For example, environment types may be divided into: indoor and outdoor according to physical space; or, environment types may be divided into: noisy environment and quiet environment according to the degree of quietness; Quietness is divided into: noisy environment, quiet environment, quiet environment; and so on.
举例来说:for example:
如果环境数据是光线数据,可以预设第一光强区间(0,a]对应的环境类型为室内,第二光强区间(a,+∞)对应的环境类型为室外;光强的单位可以为坎德拉(candela,cd);则,如果电子设备获取到的光强位于第一光强区间,确定第一环境类型为室内,否则,确定第一环境类型为室外。在其他可能的实例中,光线数据也可以是光照强度,例如第一光照强度区间可以是(0,300lx],对应的环境类型为室内,第二光照强度区间可以为(300lx,+∞),对应的环境类型为室外。If the environment data is light data, it can be preset that the environment type corresponding to the first light intensity interval (0, a) is indoor, and the environment type corresponding to the second light intensity interval (a, +∞) is outdoor; the unit of light intensity can be Then, if the light intensity obtained by the electronic device is located in the first light intensity interval, determine that the first environment type is indoor, otherwise, determine that the first environment type is outdoor. In other possible instances, The light data can also be light intensity. For example, the first light intensity interval can be (0, 300lx], the corresponding environment type is indoor, the second light intensity interval can be (300lx, +∞), and the corresponding environment type is outdoor.
如果环境数据是声音数据,可以预设第一音量区间(0,b]对应的环境类型为室内,第二音量区间(b,+∞)对应的环境类型为室外;音量的单位可以为分贝(dB);则,如果电子设备获取到的声音的音量位于第一音量区间,确定第一环境类型为室内,否则,确定第一环境类型为室外。B的取值本申请不作限定,例如可以为50db。If the environmental data is sound data, it can be preset that the environment type corresponding to the first volume interval (0, b) is indoor, and the environment type corresponding to the second volume interval (b, +∞) is outdoor; the unit of volume can be decibel ( dB); then, if the volume of the sound obtained by the electronic device is located in the first volume interval, determine that the first environment type is indoor, otherwise, determine that the first environment type is outdoor. The value of B is not limited in this application, for example, it can be 50db.
如果环境数据是气温数据,可以预设第一温度区间(-∞,c]对应的环境类型为室外,第二温度区间(c,+∞)对应的环境类型为室内;温度的单位可以为摄氏度(℃);则,如果电子设备获取到的温度位于第一温度区间,则确定第一环境类型为室外,否则,确定第一环境类型为室内。If the environmental data is air temperature data, it can be preset that the environment type corresponding to the first temperature interval (-∞, c) is outdoor, and the environment type corresponding to the second temperature interval (c, +∞) is indoor; the unit of temperature can be Celsius (°C); then, if the temperature obtained by the electronic device is in the first temperature range, the first environment type is determined to be outdoor, otherwise, the first environment type is determined to be indoor.
如果环境数据是气压数据,可以预设第一气压区间(-∞,c]对应的环境类型为室外,第二气压区间(c,+∞)对应的环境类型为室内;气压的单位可以为百帕(hPa);则,如果电子设备获取到的气压位于第一气压区间,则确定第一环境类型为室外,否则,确定第一环境类型为室内。If the environmental data is air pressure data, it can be preset that the environment type corresponding to the first air pressure interval (-∞, c) is outdoor, and the environment type corresponding to the second air pressure interval (c, +∞) is indoor; the unit of air pressure can be hundreds Pascal (hPa); then, if the air pressure obtained by the electronic device is in the first air pressure interval, the first environment type is determined to be outdoor, otherwise, the first environment type is determined to be indoor.
场景二:步骤201中获取至少两种环境数据,相应的,本步骤中根据至少两种环境数据确定第一环境类型,此时,本步骤可以包括:Scenario 2: At least two kinds of environmental data are obtained in
对于每一种环境数据,根据为该种环境数据预设的数据区间与第二环境类型之间的对应关系,确定该种环境数据对应的第二环境类型;For each kind of environmental data, according to the corresponding relationship between the data interval preset for this kind of environmental data and the second environmental type, determine the second environmental type corresponding to this kind of environmental data;
根据至少两种环境数据对应的第二环境类型,确定第一环境类型。The first environment type is determined according to the second environment type corresponding to the at least two types of environment data.
该场景下确定每种环境数据对应的第二环境类型可以参考场景一中的对应说明,这里不赘述。每种环境数据对应的第二环境类型的划分方式可以相同或者不同。对划分方式相同举例:假设至少两种环境数据是光线数据和声音数据,光线数据对应的第二环境类型分为室内和室外,声音数据对应的第二环境类型也分为室内和室外。对划分方式不同举例:假设至少两种环境数据是光线数据和声音数据,光线数据对应的第二环境类型分为室内和室外,声音数据对应的第二环境类型为:嘈杂和安静。In this scenario, to determine the second environment type corresponding to each kind of environment data, reference may be made to the corresponding description in scenario 1, which will not be repeated here. The division manner of the second environment type corresponding to each kind of environment data may be the same or different. An example of the same division method: assuming that at least two types of environment data are light data and sound data, the second environment type corresponding to the light data is divided into indoor and outdoor, and the second environment type corresponding to the sound data is also divided into indoor and outdoor. Examples of different division methods: Assuming that at least two types of environment data are light data and sound data, the second environment types corresponding to the light data are divided into indoor and outdoor, and the second environment types corresponding to the sound data are: noisy and quiet.
上述根据至少两种环境数据对应的第二环境类型,确定第一环境类型,可以包括:The above-mentioned determination of the first environment type according to the second environment types corresponding to at least two types of environment data may include:
根据每种环境数据的预设权重、以及环境数据对应的第二环境类型,计算第一数值;Calculate the first value according to the preset weight of each environmental data and the second environmental type corresponding to the environmental data;
根据预设的数值区间与第三环境类型之间的对应关系,确定第一数值对应的第三环境类型,得到第一环境类型。According to the corresponding relationship between the preset value interval and the third environment type, the third environment type corresponding to the first value is determined to obtain the first environment type.
举例来说,可以预先为不同的第二环境类型设置不同的对应数值,为每种环境数据预设权重,则如果步骤201中获取到环境数据1和环境数据2,可以通过以下公式计算第一数值A:A=a1B1+a2B2,a1是环境数据1的权重,B1是环境数据1对应的第二环境类型所对应的数值,a2是环境数据2的权重,B2是环境数据2对应的第二环境类型所对应的数值。每个第二环境类型对应的数值可以相同或者不同,具体数值本申请实施例不作限定。每一种环境类型对应的权重的具体取值本申请实施例不作限定。计算得到第一数值A后,查找预设的数值区间与第三环境类型之间的对应关系,得到第一数值A所在数值区间对应的第三环境类型,将得到的第三环境类型作为第一环境类型。第三环境类型的划分可以与第二环境类型相同或者不同,本申请实施例不作限定。For example, different corresponding values may be set for different second environment types in advance, and weights may be preset for each kind of environment data. If the environment data 1 and environment data 2 are obtained in
在另一种可能的实现方式中,本步骤还可以通过将上述至少一种环境数据输入预先训练的第二模型来确定第一环境类型。此时,本步骤可以包括:In another possible implementation manner, in this step, the first environment type may also be determined by inputting the above-mentioned at least one kind of environment data into a pre-trained second model. At this point, this step can include:
将上述至少一种环境数据输入预设第二模型,得到第二模型输出的环境类型,得到第一环境类型。Inputting the above at least one kind of environmental data into a preset second model, obtaining the environment type output by the second model, and obtaining the first environment type.
第二模型用于分析上述至少两种环境数据对应的环境类型。第二模型可以通过AI培育的方式来进行AI模型培育得到。具体可以通过将大量的训练样本例如超过千条的训练样本“投喂”给AI机器,由AI机器根据训练样本的数据之间的关系特征,计算得到最优的用于计算针对于环境类型的网络架构和神经网络结构参数,得到上述第二模型。The second model is used to analyze the environmental types corresponding to the at least two types of environmental data. The second model can be obtained by AI model cultivation through AI cultivation. Specifically, a large number of training samples, such as more than a thousand training samples, can be "fed" to the AI machine. The network architecture and the neural network structure parameters are used to obtain the above-mentioned second model.
可选地,第二模型可以是由AI感知神经网络加速器、以及循环神经网络(RNN)构成的AI感知神经网络。Optionally, the second model may be an AI-aware neural network composed of an AI-aware neural network accelerator and a recurrent neural network (RNN).
第二模型的具体训练方法可以包括:获取训练样本,每个训练样本包括:至少两种环境数据中各环境数据的样本,以及该训练样本的环境类型;将训练样本输入预设模型进行训练,得到第二模型。The specific training method of the second model may include: acquiring training samples, each training sample including: samples of each environmental data in at least two kinds of environmental data, and the environment type of the training sample; inputting the training samples into a preset model for training, Get the second model.
举例来说,假设电子设备仅获取一种环境数据,且环境数据是声音数据,可以使用以下的AI基础模型作为第一模型的初始模型:P(X|V)=γ1X1,其中,X1为环境中的声音数据,γ1为AI培育过程中待计算的加权参数,P(X|V)为环境类型;其中,如果环境数据是光线数据,则上述初始模型中的X1可以表示环境中的光线数据。同理,还可以将上述初始模型扩展至电子设备获取至少两种环境数据的情况,以电子设备获取两种环境数据,且两种环境数据分别是声音数据和光线数据为例,可以使用以下的AI基础模型作为第一模型的初始模型:P(X|V)=γ1X1+γ2X2,其中,X1为环境中的声音数据,X2为环境中的光线数据,γ1和γ2为AI培育过程中待计算的加权参数,P(X|V)为环境类型。For example, assuming that the electronic device only acquires one type of environmental data, and the environmental data is sound data, the following AI basic model can be used as the initial model of the first model: P(X|V)=γ1X1, where X1 is the environment The sound data in , γ1 is the weighting parameter to be calculated in the AI cultivation process, P(X|V) is the environment type; wherein, if the environment data is light data, X1 in the above initial model can represent the light data in the environment . In the same way, the above initial model can also be extended to the case where the electronic device obtains at least two kinds of environmental data. Taking the electronic device to obtain two kinds of environmental data, and the two kinds of environmental data are sound data and light data, for example, the following can be used: The AI basic model is used as the initial model of the first model: P(X|V)=γ1X1+γ2X2, where X1 is the sound data in the environment, X2 is the light data in the environment, and γ1 and γ2 are to be calculated during the AI cultivation process. The weighting parameter of , P(X|V) is the environment type.
步骤203:电子设备根据第一环境类型确定目标视频片段的第一处理策略;目标视频片段是电子设备将要播放的视频片段。Step 203: The electronic device determines a first processing strategy of the target video clip according to the first environment type; the target video clip is a video clip to be played by the electronic device.
目标视频片段与电子设备当前正在播放的视频片段可以是同一视频文件的视频片段,也可以是不同视频文件的视频片段。举例来说,如果当前正在播放视频文件1,视频文件1包括视频片段11和视频片段12,视频文件1播放完后自动播放下一预设视频文件,例如视频文件2,视频文件2包括视频片段21和视频片段22,则,如果当前正在播放的视频片段是视频片段11,则目标视频片段可以是视频片段12,如果当前正在播放的视频片段是视频片段12,则目标视频片段可以是视频片段21。需要说明的是,以上举例以目标视频片段是当前正在播放的视频片段的下一个视频片段为例,并不用以限制目标视频片段与当前正在播放的视频片段之间的位置关系,例如目标视频片段也可以是当前正在播放的视频片段之后的第二个视频片段等等,本申请并不限制。The target video clip and the video clip currently being played by the electronic device may be video clips of the same video file, or may be video clips of different video files. For example, if video file 1 is currently playing, video file 1 includes video clip 11 and video clip 12, after video file 1 is played, the next preset video file is automatically played, such as video file 2, video file 2 includes video clips 21 and video clip 22, then if the currently playing video clip is video clip 11, the target video clip can be video clip 12, and if the currently playing video clip is video clip 12, the target video clip can be video clip 12 twenty one. It should be noted that the above example takes the target video clip being the next video clip of the currently playing video clip as an example, and does not limit the positional relationship between the target video clip and the currently playing video clip, such as the target video clip. It may also be the second video clip after the currently playing video clip, etc., which is not limited in this application.
其中,可以预设环境类型与处理策略之间的对应关系,则,本步骤中可以根据第一环境类型查找该对应关系,得到第一环境类型对应的处理策略,作为第一处理策略。The corresponding relationship between the environment type and the processing strategy can be preset, and in this step, the corresponding relationship can be searched according to the first environment type to obtain the processing strategy corresponding to the first environment type as the first processing strategy.
在设置环境类型对应的处理策略时,可以基于用户处于不同环境时该环境是否适合观看视频、以及用户对正在播放的视频的关注度进行设置,举例来说,如果环境类型包括室内和室外,用户在室外时因为光线过于强烈,不适合观看视频,用户对电子设备正在播放的视频的关注度一般相对较小,因此,室外对应的处理策略可以更倾向于节省电子设备的电量,用户在室内时因为光线较为柔和,适合观看视频,用户对电子设备正在播放的视频的关注度一般相对较大,室内对应的处理策略可以更倾向于使得播放的视频对于用户而言具有更好的视觉效果。When setting the processing policy corresponding to the environment type, it can be set based on whether the environment is suitable for watching videos when the user is in different environments, and the user's attention to the video being played. For example, if the environment type includes indoor and outdoor, the user When the light is too strong outdoors, it is not suitable for watching videos, and users generally pay less attention to the video being played by the electronic device. Therefore, the corresponding outdoor processing strategy can be more inclined to save the power of the electronic device. When the user is indoors Because the light is relatively soft and suitable for watching videos, users generally pay more attention to the video being played by the electronic device, and the corresponding indoor processing strategy can be more inclined to make the video played have better visual effects for the user.
其中,第一处理策略可以包括:图像处理器针对于目标视频片段的处理策略,和/或,数据处理器针对于目标视频片段的处理策略,和/或,显示驱动器针对于目标视频片段的处理策略。The first processing strategy may include: the processing strategy of the image processor for the target video clip, and/or the processing strategy of the data processor for the target video clip, and/or the processing strategy of the display driver for the target video clip Strategy.
图像处理器的处理策略可以包括但不限于:图像渲染分辨率,和/或,图像锐化算法的开关状态,和/或,增强对比度算法的开关状态;The processing strategy of the image processor may include, but is not limited to: the image rendering resolution, and/or the on/off state of the image sharpening algorithm, and/or the on/off state of the contrast enhancement algorithm;
数据处理器的处理策略可以包括但不限于:解码精度,和/或,跳帧,和/或,目标视频片段的帧率,和/或,目标视频片段的视频封装格式,和/或,目标视频片段的码率流,和/或,目标视频片段的分辨率;The processing strategy of the data processor may include, but is not limited to: decoding accuracy, and/or, frame skipping, and/or, the frame rate of the target video clip, and/or, the video encapsulation format of the target video clip, and/or, the target video clip The bitrate stream of the video clip, and/or the resolution of the target video clip;
显示驱动器的处理策略可以包括但不限于:屏幕刷新频率,和/或,屏幕分辨率。The processing strategy of the display driver may include, but is not limited to, the screen refresh rate, and/or the screen resolution.
其中,上述图像处理器可以是图1中所述的GPU或者加速处理器(AcceleratedProcessing Units,APU);数据处理器可以是图1中所述的DSP。高功耗的APU或GPU绝大多数时候处于深度睡眠状态,同时带有AI处理能力的低功耗SoC则处于监听或监视状态,当SoC上以低功耗运行的AI加速器检测到唤醒要素时,SoC负责唤醒APU,同时APU则执行更复杂的语音识别算法并且完成相应的操作,例如播放音乐,或者语音通话等等。在这样的一个系统中,智能SoC和APU各负其责,由于绝大多数时间APU处于深度睡眠状态,因此整体功耗可以控制到较低的水准。Wherein, the above-mentioned image processor may be the GPU or Accelerated Processing Units (APU) described in FIG. 1 ; the data processor may be the DSP described in FIG. 1 . The high-power APU or GPU is in a deep sleep state most of the time, while the low-power SoC with AI processing capability is in a listening or monitoring state. When the AI accelerator running with low power consumption on the SoC detects a wake-up factor , the SoC is responsible for waking up the APU, while the APU executes more complex speech recognition algorithms and completes corresponding operations, such as playing music, or making voice calls. In such a system, the intelligent SoC and the APU are responsible for their respective responsibilities. Since the APU is in a deep sleep state most of the time, the overall power consumption can be controlled to a low level.
其中,图像渲染分辨率是指:图像处理器输出的视频图像的分辨率。一般而言,图像渲染分辨率越高,电子设备播放目标视频片段所消耗的电量,反之,图像渲染分辨率越低,电子设备播放目标视频片段所消耗的电量。The image rendering resolution refers to the resolution of the video image output by the image processor. Generally speaking, the higher the image rendering resolution is, the more power is consumed by the electronic device to play the target video clip. On the contrary, the lower the image rendering resolution is, the more power is consumed by the electronic device to play the target video clip.
图像锐化算法是图像处理器中用于使得视频图像的边缘更清晰的一种图像处理方法。一般而言,图像锐化算法处于打开状态,电子设备播放目标视频片段所消耗的电量相对越大,图像锐化算法处于关闭状态,电子设备播放目标视频片段所消耗的电量相对越少。The image sharpening algorithm is an image processing method used in the image processor to make the edge of the video image clearer. Generally speaking, when the image sharpening algorithm is on, the electronic device consumes relatively more power to play the target video clip, and when the image sharpening algorithm is off, the electronic device consumes relatively less power to play the target video clip.
增强对比度算法是图像处理器中用于调整视频图像中像素的灰度的一种图像处理方法,可以改善视频图像的视觉效果。一般而言,增强对比度算法处于打开状态,电子设备播放目标视频片段所消耗的电量相对越大,增强对比度算法处于关闭状态,电子设备播放目标视频片段所消耗的电量相对越少。The contrast enhancement algorithm is an image processing method used in image processors to adjust the grayscale of pixels in a video image, which can improve the visual effect of the video image. Generally speaking, when the contrast enhancement algorithm is turned on, the electronic device consumes relatively more power to play the target video clip, and when the contrast enhancement algorithm is turned off, the electronic device consumes relatively less power to play the target video clip.
解码精度可以是数据处理器对目标视频片段进行解码的解码精确度。一般而言,解码精度越高,电子设备播放目标视频片段所消耗的电量相对越大,解码精度越低,电子设备播放目标视频片段所消耗的电量相对越少。The decoding accuracy may be the decoding accuracy with which the data processor decodes the target video segment. Generally speaking, the higher the decoding accuracy is, the more power the electronic device consumes to play the target video clip, and the lower the decoding accuracy is, the less power the electronic device consumes to play the target video clip.
跳帧是降低每秒钟显示的视频帧数的方式,可以通过设置数字来标识每次跳过的帧数,例如跳帧的参数值为1,表示跳过连续1帧图像,跳帧的参数值为2,标识跳过连续2帧图像。跳帧数越大,电子设备播放目标视频片段所消耗的电量相对越大,跳帧数越小,电子设备播放目标视频片段所消耗的电量相对越少。Frame skipping is a way to reduce the number of video frames displayed per second. You can set a number to identify the number of frames skipped each time. For example, the parameter value of frame skipping is 1, which means that one continuous frame of image is skipped, and the parameter of skipping frame A value of 2 indicates that 2 consecutive frames of images are skipped. The larger the number of skipped frames, the relatively greater the power consumed by the electronic device to play the target video clip, and the smaller the number of skipped frames, the less power consumed by the electronic device to play the target video clip.
屏幕刷新频率是指屏幕在单位时间内刷新的次数,单位时间例如可以是1秒。一般而言,屏幕刷新频率越高,电子设备播放目标视频片段所消耗的电量相对越大,屏幕刷新频率越低,电子设备播放目标视频片段所消耗的电量相对越少。The screen refresh rate refers to the number of times the screen is refreshed in a unit time, and the unit time may be, for example, 1 second. Generally speaking, the higher the screen refresh frequency is, the more power the electronic device consumes to play the target video clip, and the lower the screen refresh frequency is, the less power the electronic device consumes to play the target video clip.
屏幕分辨率是指屏幕在纵横向上显示的像素数,单位是px。屏幕分辨率设置的越高,显示的视频图像越清晰,否则,显示的视频图像越模糊。一般而言,屏幕刷新频率越高,电子设备播放目标视频片段所消耗的电量相对越大,屏幕刷新频率越高,电子设备播放目标视频片段所消耗的电量相对越少。Screen resolution refers to the number of pixels displayed on the screen vertically and horizontally, and the unit is px. The higher the screen resolution is set, the clearer the displayed video image, otherwise, the more blurred the displayed video image. Generally speaking, the higher the screen refresh frequency is, the more power the electronic device consumes to play the target video clip, and the higher the screen refresh frequency is, the less power the electronic device consumes to play the target video clip.
视频片段的帧率可以依据解码码率的不同级别而设置不同数值,延续前述举例,可以为“室内”这一环境类型设置相对较高的帧率,对电子设备的电量消耗相对较大,为“室外”这一环境类型设置相对较低的帧率,对电子设备的电量消耗相对较小。The frame rate of the video clip can be set to different values according to the different levels of the decoding bit rate. Continuing the above example, a relatively high frame rate can be set for the "indoor" environment type, which consumes a relatively large amount of power for electronic devices, which is The "outdoor" environment type sets a relatively low frame rate and consumes relatively little power on electronic devices.
与帧率类似的,视频封装格式可以依据解码码率的不同级别而设置不同数值,延续前述举例,可以为“室内”这一环境类型设置视觉效果相对较好的视频封装格式,可以为“室内”这一环境类型设置视觉效果相对较差的视频封装格式,以目前主流的MPEG2,VC-1以及H.264这三种封装格式为例,一般视觉效果排序为H.264>VC-1>MPEG2,则可以为“室内”这一环境类型设置视频封装格式为H.264,对电子设备的电量消耗相对较大,为“室外”这一环境类型设置MPEG2,对电子设备的电量消耗相对较小,。Similar to the frame rate, the video encapsulation format can be set to different values according to the different levels of the decoding bit rate. Continuing the above example, a video encapsulation format with relatively good visual effects can be set for the "indoor" environment type, which can be "indoor". "This environment type sets a video package format with relatively poor visual effects. Taking the current mainstream MPEG2, VC-1 and H.264 package formats as examples, the general visual effect sequence is H.264>VC-1> MPEG2, you can set the video encapsulation format to H.264 for the "indoor" environment type, which consumes a relatively large amount of power for electronic devices. Setting MPEG2 for the "outdoor" environment type has relatively low power consumption for electronic devices. Small,.
与帧率、视频封装格式类似的,码率流可以依据解码码率的不同级别而设置不同数值,码率流越高,对电子设备的电量消耗相对越大,码率流越低,对电子设备的电量消耗相对越小。Similar to the frame rate and video encapsulation format, the bit rate stream can be set to different values according to the different levels of the decoding bit rate. The power consumption of the device is relatively small.
同样的,分辨率可以依据解码码率的不同级别而设置不同数值,解码码率越高,分辨率越高,解码码率越低,分辨率越低。延续前述举例,可以为“室内”这一环境类型设置相对较高的分辨率,例如3840*2048,对电子设备的电量消耗相对较大,为“室外”这一环境类型设置相对较低的分辨率,例如1280*720,对电子设备的电量消耗相对较小。Similarly, the resolution can be set to different values according to different levels of the decoding bit rate. The higher the decoding bit rate is, the higher the resolution is, and the lower the decoding bit rate is, the lower the resolution is. Continuing the previous example, you can set a relatively high resolution for the "indoor" environment type, such as 3840*2048, which consumes a relatively large amount of power for electronic devices, and set a relatively low resolution for the "outdoor" environment type rate, such as 1280*720, the power consumption of electronic equipment is relatively small.
步骤204:按照第一处理策略播放目标视频片段。Step 204: Play the target video segment according to the first processing strategy.
本步骤可以包括:This step can include:
接收到对目标视频片段的播放指令,对目标视频片段的码流进行解码,根据解码后的数据对目标视频片段的每一帧视频帧进行渲染,在屏幕上依次显示目标视频片段的每一帧视频帧。Receive the playback instruction for the target video clip, decode the code stream of the target video clip, render each frame of the target video clip according to the decoded data, and display each frame of the target video clip on the screen in turn video frame.
如果第一处理策略包括:数据处理器针对于目标视频片段的处理策略,则,电子设备可以通过数据处理器按照上述数据处理器针对于目标视频片段的处理策略,对目标视频片段的码流进行解码。If the first processing strategy includes: the processing strategy of the data processor for the target video clip, then the electronic device can use the data processor to process the code stream of the target video clip according to the processing strategy of the data processor for the target video clip. decoding.
如果第一处理策略包括:图像处理器针对于目标视频片段的处理策略,则,电子设备可以通过图像处理器按照上述图像处理器针对于目标视频片段的处理策略,对目标视频片段中的每一帧视频帧进行渲染。If the first processing strategy includes: the processing strategy of the image processor for the target video clip, then the electronic device can use the image processor to perform processing on each of the target video clips according to the above-mentioned processing strategy of the image processor for the target video clip. frame video frames for rendering.
如果第一处理策略包括:显示驱动器针对于目标视频片段的处理策略,则,电子设备可以通过显示驱动器按照上述显示驱动器针对于目标视频片段的处理策略,对目标视频片段中的每一帧视频帧进行显示。If the first processing strategy includes: the processing strategy of the display driver for the target video clip, then the electronic device can use the display driver to process each frame of the video frame in the target video clip according to the above-mentioned processing strategy of the display driver for the target video clip. to display.
图2所示的方法中,根据环境数据调整目标视频片段的处理策略,从而可以在用户对电子设备播放的视频关注度高的环境下提供视觉效果相对更好的处理策略,在用户对电子设备播放的视频关注度低的环境下提供更为节省电子设备电量的处理策略,从而动态调整视频片段的处理策略,使得电子设备在播放视频时能够满足用户的观看需求,且更为合理的使用电子设备的电量,达到省电的目的。In the method shown in FIG. 2, the processing strategy of the target video segment is adjusted according to the environmental data, so that a processing strategy with relatively better visual effect can be provided in an environment where the user pays high attention to the video played by the electronic device. Provide a processing strategy that saves the power of the electronic device in an environment with low attention to the played video, so as to dynamically adjust the processing strategy of the video clip, so that the electronic device can meet the user's viewing needs when playing the video, and use the electronic device more reasonably. The power of the device to achieve the purpose of saving power.
可选地,参见图3,步骤201之前,还可以包括:Optionally, referring to FIG. 3, before
步骤301:电子设备接收到对目标视频文件的播放指令,将目标视频文件划分为视频片段,确定目标视频片段。Step 301: The electronic device receives a playback instruction for the target video file, divides the target video file into video segments, and determines the target video segment.
其中,用户可以通过选择一个视频文件,选择针对于该视频文件的“播放”控件,来指示对视频文件进行播放,相应的,电子设备可以接收到对目标视频文件的播放指令,目标视频文件也即是用户选择的视频文件。Among them, the user can instruct to play the video file by selecting a video file and selecting the "play" control for the video file. Correspondingly, the electronic device can receive the playback instruction for the target video file, and the target video file also That is, the video file selected by the user.
在进行目标视频文件的划分时,划分得到的视频片段的长度可以相同或者不相同,目标视频文件划分视频片段的数量本申请实施例不作限定,可以是任意自然数。需要说明的是,一般目标视频文件中最小的单位可以是视频帧,视频片段最小可以为一个视频帧。When the target video file is divided, the lengths of the divided video segments may be the same or different, and the number of video segments divided by the target video file is not limited in this embodiment of the present application, and may be any natural number. It should be noted that the minimum unit in the general target video file may be a video frame, and the minimum video segment may be a video frame.
其中,步骤201中可以将目标视频文件划分得到的视频片段按照播放顺序依次作为目标视频片段。可选地,为了目标视频文件播放的及时性,可以将目标视频文件中位置靠前的一定数量个视频片段直接按照预设处理策略进行播放,对上述一定数量个视频片段之后的视频片段依次作为目标视频片段。上述一定数量的具体取值本申请实施例不作限定,与视频片段的长度、电子设备的处理速度等相关,可以基于电子设备能够为用户提供流畅的视频播放效果的角度来具体设置;另外,基于省电考虑,上述一定数量个视频片段所使用的上述处理策略可以是使得视频播放的视觉效果相对较差的处理策略,或者,基于用户观看效果角度考虑,上述预设的处理策略可以是使得视频播放的视觉效果相对较好的处理策略,本申请实施例不作限定。Wherein, in
图4A为本申请视频播放方法另一个实施例的流程图,如图4A所示,该方法可以包括:FIG. 4A is a flowchart of another embodiment of the video playback method of the present application. As shown in FIG. 4A , the method may include:
步骤401:电子设备获取至少一种环境数据;至少一种环境数据包括:光线数据,和/或声音数据,和/或气温数据,和/或气压数据。Step 401: The electronic device acquires at least one type of environmental data; the at least one type of environmental data includes: light data, and/or sound data, and/or air temperature data, and/or air pressure data.
本步骤的实现可以参考步骤201中的说明,这里不赘述。For the implementation of this step, reference may be made to the description in
步骤402:电子设备获取目标视频片段的至少一种数据,目标视频片段的至少一种数据包括:声音数据,和/或图像数据,和/或字幕数据;目标视频片段是电子设备将要播放的视频片段。Step 402: The electronic device obtains at least one kind of data of the target video clip, and the at least one kind of data of the target video clip includes: sound data, and/or image data, and/or subtitle data; the target video clip is the video to be played by the electronic device Fragment.
步骤401和步骤402之间的执行顺序不限制。The execution order between
本步骤中目标视频片段的实现可以参考步骤202中的对应说明,这里不赘述。For the realization of the target video segment in this step, reference may be made to the corresponding description in
步骤403:电子设备将至少一种环境数据和目标视频片段的至少一种数据输入第一模型,得到目标视频片段的第一处理策略,第一模型用于输出视频片段的处理策略。Step 403: The electronic device inputs at least one kind of environmental data and at least one kind of data of the target video clip into the first model to obtain a first processing strategy of the target video clip, and the first model is used to output the processing strategy of the video clip.
可选地,第一模型可以通过AI培育的方式来进行AI模型培育得到。具体可以通过将大量的训练样本例如超过千条的训练样本“投喂”给AI机器,由AI机器根据训练样本的数据之间的关系特征,计算得到最优的用于计算针对于目标视频片段的处理策略的网络架构和神经网络结构参数,得到上述第一模型。Optionally, the first model can be obtained by cultivating an AI model by means of AI cultivating. Specifically, a large number of training samples, such as more than 1,000 training samples, can be "fed" to the AI machine. The network architecture and neural network structure parameters of the processing strategy are obtained to obtain the above-mentioned first model.
可选地,第一模型可以是由AI感知神经网络加速器、以及循环神经网络(RNN)构成的AI感知神经网络。Optionally, the first model may be an AI-sensing neural network composed of an AI-sensing neural network accelerator and a recurrent neural network (RNN).
第一模型的具体训练方法可以包括:获取标注有处理策略的训练样本;每个所述训练样本包括:所述至少一种环境数据中各环境数据的样本,所述视频片段的至少一种数据中每种数据的样本;将所述训练样本输入预设模型进行训练,得到所述第一模型。参见图4B所示,以预设模型是AI基础模型为例,示出了第一模型的训练方法示意图。The specific training method of the first model may include: acquiring training samples marked with processing strategies; each of the training samples includes: samples of each environmental data in the at least one type of environmental data, at least one type of data of the video clip Samples of each kind of data in; input the training samples into a preset model for training to obtain the first model. Referring to FIG. 4B , a schematic diagram of a training method of the first model is shown by taking the preset model as an AI basic model as an example.
举例来说,假设电子设备仅获取一种环境数据,且环境数据是声音数据,获取目标视频片段的图像数据和声音数据,可以使用以下的AI基础模型作为第一模型的初始模型:P(X|V)=α1X1+α2Y1+α3Y2=β1Z1+β2Z2,其中,X1为环境中的声音数据,Y1为目标视频片段的声音数据,Y2为目标视频片段的图像数据,Z1表示图像处理器的处理策略,Z2表示显示驱动器的处理策略,α1、α2、α3、β1、β2为AI培育过程中待计算的加权参数,P(X|V)为目标视频片段的第一处理策略;其中,如果环境数据是光线数据,则上述初始模型中的X1可以表示环境中的光线数据。同理,还可以将上述初始模型扩展至若干种环境数据的情况,以及若干种目标视频片段的数据的情况,这里不再一一列举。For example, assuming that the electronic device only obtains one type of environmental data, and the environmental data is sound data, and obtains the image data and sound data of the target video clip, the following AI basic model can be used as the initial model of the first model: P(X |V)=α1X1+α2Y1+α3Y2=β1Z1+β2Z2, where X1 is the sound data in the environment, Y1 is the sound data of the target video clip, Y2 is the image data of the target video clip, and Z1 represents the processing strategy of the image processor , Z2 represents the processing strategy of the display driver, α1, α2, α3, β1, and β2 are the weighting parameters to be calculated during the AI cultivation process, and P(X|V) is the first processing strategy of the target video clip; is light data, then X1 in the above initial model can represent light data in the environment. Similarly, the above-mentioned initial model can also be extended to the situation of several kinds of environmental data and the situation of data of several kinds of target video clips, which will not be listed one by one here.
进一步的,上述初始模型中的声音数据还可以进一步细分为音量、音色、音频、声音的空间分布等数据,此时,可以参照前述举例对细分后的每种声音数据分别设置加权参数,通过训练计算每种声音数据的加权参数,从而使得第一模型对于环境的区分更为准确。同样的,上述初始模型中如果包括光线数据,光线数据也可以细分为光强、光波段、光照度变化等数据,此时,可以参照前述举例对细分后的每种光线数据分别设置加权参数,通过样本训练的方式计算每种光线数据的加权参数,从而使得第一模型对于环境的区分更为准确。Further, the sound data in the above-mentioned initial model can also be further subdivided into data such as volume, timbre, audio frequency, and spatial distribution of sound. The weighting parameters of each kind of sound data are calculated through training, so that the first model can distinguish the environment more accurately. Similarly, if the above initial model includes light data, the light data can also be subdivided into data such as light intensity, light band, and illuminance change. , the weighting parameters of each light data are calculated by means of sample training, so that the first model can distinguish the environment more accurately.
其中,在为训练样本标注处理策略时,可以基于用户处于该训练样本对应的场景下是否适合观看视频、以及用户对正在播放的视频的关注度进行设置。举例来说,如果环境类型包括室内和室外,视频片段的数据是图像数据,则,用户在室外时因为光线过于强烈,不适合观看视频,而且,视频片段播放的图像数据为山水画面,则用户对电子设备正在播放的视频的关注度相对较小,因此,为该训练样本标注的处理策略可以更倾向于节省电子设备的电量,用户在室内时因为光线较为柔和,适合观看视频,而且,视频片段播放的图像数据是人物打斗场面,则用户对电子设备正在播放的视频的关注度相对较大,为该训练样本标注的处理策略可以更倾向于使得播放的视频对于用户而言具有更好的视觉效果。Wherein, when annotating the processing strategy for the training sample, it can be set based on whether the user is suitable for watching the video in the scene corresponding to the training sample, and the user's attention to the video being played. For example, if the environment type includes indoor and outdoor, and the data of the video clip is image data, then the user is not suitable for watching the video because the light is too strong outdoors, and the image data played by the video clip is a landscape picture, then the user The attention to the video being played by the electronic device is relatively small. Therefore, the processing strategy annotated for this training sample can be more inclined to save the power of the electronic device. When the user is indoors, the light is softer and is suitable for watching the video. Moreover, the video The image data played by the clip is a character fighting scene, and the user pays relatively more attention to the video being played by the electronic device. The processing strategy marked for the training sample can be more inclined to make the played video more attractive to the user. Visual effects.
步骤404:电子设备按照第一处理策略播放目标视频片段。Step 404: The electronic device plays the target video clip according to the first processing strategy.
本步骤的实现可以参考步骤201中的说明,这里不赘述。For the implementation of this step, reference may be made to the description in
可选地,参见图5,步骤401之前,还可以包括:Optionally, referring to FIG. 5, before
步骤501:电子设备接收到对目标视频文件的播放指令,将目标视频文件划分为视频片段,确定目标视频片段。Step 501: The electronic device receives a playback instruction for the target video file, divides the target video file into video segments, and determines the target video segment.
本步骤的实现可以参考步骤301中的说明,这里不赘述。For the implementation of this step, reference may be made to the description in
图4A和图5所示的方法,根据环境数据以及目标视频片段包括的数据来动态调整视频的处理策略,从而能够在视频播放过程中自动调整处理策略,使得电子设备播放视频所消耗的电量更为合理,达到省电的目的。In the methods shown in FIGS. 4A and 5 , the processing strategy of the video is dynamically adjusted according to the environmental data and the data included in the target video segment, so that the processing strategy can be automatically adjusted during the video playback process, so that the electronic device consumes more power to play the video. In order to be reasonable and achieve the purpose of saving electricity.
可以理解的是,上述实施例中的部分或全部步骤或操作仅是示例,本申请实施例还可以执行其它操作或者各种操作的变形。此外,各个步骤可以按照上述实施例呈现的不同的顺序来执行,并且有可能并非要执行上述实施例中的全部操作。It can be understood that, some or all of the steps or operations in the foregoing embodiments are only examples, and other operations or variations of various operations may also be performed in the embodiments of the present application. Furthermore, the various steps may be performed in a different order presented in the above-described embodiments, and may not perform all operations in the above-described embodiments.
图6为本申请视频播放装置一个实施例的结构图,如图6所示,该装置600可以包括:FIG. 6 is a structural diagram of an embodiment of a video playback device of the present application. As shown in FIG. 6 , the
第一获取单元610,用于获取至少一种环境数据;所述至少一种环境数据包括:光线数据,和/或声音数据,和/或气温数据,和/或气压数据;The first acquiring
第二获取单元620,用于获取目标视频片段的至少一种数据,所述目标视频片段的至少一种数据包括:声音数据,和/或图像数据,和/或字幕数据;所述目标视频片段是所述电子设备将要播放的视频片段;The second obtaining
策略决策单元630,用于将所述至少一种环境数据和所述目标视频片段的至少一种数据输入第一模型,得到所述目标视频片段的第一处理策略,所述第一模型用于分析视频片段的处理策略;A
播放单元640,用于按照所述第一处理策略播放所述目标视频片段。The
可选地,所述第一处理策略包括:图像处理器针对于所述目标视频片段的处理策略,和/或,数据处理器针对于所述目标视频片段的处理策略,和/或,显示驱动器针对于所述目标视频片段的处理策略。Optionally, the first processing strategy includes: a processing strategy of an image processor for the target video clip, and/or a processing strategy of a data processor for the target video clip, and/or a display driver The processing strategy for the target video segment.
可选地,所述第一处理策略包括:数据处理器针对于所述目标视频片段的处理策略,播放单元640具体可以用于:对于所述目标视频片段,按照所述第一处理策略中所述数据处理器针对于所述目标视频片段的处理策略,对所述目标视频片段的码流进行解码处理,得到解码后的数据。Optionally, the first processing strategy includes: a processing strategy of the data processor for the target video clip, and the
可选地,所述第一处理策略包括:图像处理器针对于所述目标视频片段的处理策略,播放单元640具体可以用于:对于所述目标视频片段中的每个视频帧,按照所述第一处理策略中所述图像处理器针对于所述目标视频片段的处理策略,对所述视频帧进行渲染处理。Optionally, the first processing strategy includes: a processing strategy of the image processor for the target video clip, and the
可选地,所述第一处理策略包括:显示驱动器针对于所述目标视频片段的处理策略,播放单元640具体可以用于:对于所述目标视频片段中的每个视频帧,按照所述第一处理策略中所述显示驱动器针对于所述目标视频片段的处理策略,对所述视频帧进行显示。Optionally, the first processing strategy includes: a processing strategy of the display driver for the target video clip, and the
可选地,所述图像处理器针对于所述目标视频片段的处理策略包括:图像渲染分辨率,和/或,图像锐化算法的开关状态,和/或,增强对比度算法的开关状态;Optionally, the processing strategy of the image processor for the target video segment includes: an image rendering resolution, and/or an on-off state of an image sharpening algorithm, and/or a on-off state of an enhanced contrast algorithm;
和/或,and / or,
所述数据处理器针对于所述目标视频片段的处理策略包括:解码精度,和/或,跳帧,和/或,目标视频片段的帧率,和/或,目标视频片段的视频封装格式,和/或,目标视频片段的码率流,和/或,目标视频片段的分辨率;The processing strategy of the data processor for the target video clip includes: decoding accuracy, and/or, frame skipping, and/or, the frame rate of the target video clip, and/or, the video encapsulation format of the target video clip, and/or, the bit rate stream of the target video clip, and/or, the resolution of the target video clip;
和/或,and / or,
所述显示驱动器针对于所述目标视频片段的处理策略包括:屏幕刷新频率,和/或,屏幕分辨率。The processing strategy of the display driver for the target video segment includes: screen refresh rate and/or screen resolution.
可选地,还包括:模型训练单元,用于获取标注有处理策略的训练样本;每个所述训练样本包括:所述至少一种环境数据中各环境数据的样本,所述至少一种数据中每种数据的样本;将所述训练样本输入预设模型进行训练,得到所述第一模型。Optionally, it also includes: a model training unit, configured to obtain training samples marked with processing strategies; each of the training samples includes: samples of each environmental data in the at least one type of environmental data, the at least one type of data Samples of each kind of data in; input the training samples into a preset model for training to obtain the first model.
可选地,所述第一模型是由AI感知神经网络加速器和循环神经网络构成的AI感知神经网络。Optionally, the first model is an AI perception neural network composed of an AI perception neural network accelerator and a recurrent neural network.
图7为本申请视频播放装置一个实施例的结构图,如图7所示,该装置700可以包括:FIG. 7 is a structural diagram of an embodiment of a video playback apparatus of the present application. As shown in FIG. 7 , the
获取单元710,用于获取至少一种环境数据;所述至少一种环境数据包括:光线数据,和/或声音数据,和/或气温数据,和/或气压数据;an
第一确定单元720,用于根据所述至少一种环境数据确定第一环境类型;a first determining
第二确定单元730,用于根据所述第一环境类型确定目标视频片段的第一处理策略;所述目标视频片段是所述电子设备将要播放的视频片段;a second determining
播放单元740,用于按照所述第一处理策略播放所述目标视频片段。The
可选地,如果获取一种环境数据,第一确定单元720具体可以用于:对于所述一种环境数据,根据为该种环境数据预设的数据区间与第二环境类型之间的对应关系,确定获取到的该种环境数据对应的第二环境类型,作为所述第一环境类型。Optionally, if a type of environmental data is acquired, the first determining
可选地,如果获取至少两种环境数据,第一确定单元720具体可以用于:对于每一种环境数据,根据为该种环境数据预设的数据区间与第二环境类型之间的对应关系,确定获取到的该种环境数据对应的第二环境类型;根据获取到的每一种环境数据对应的第二环境类型,确定所述第一环境类型。Optionally, if at least two types of environmental data are acquired, the first determining
可选地,第一确定单元720具体可以用于:根据获取到的每一种环境数据的预设权重、以及对应第二环境类型对应的数值计算第一数值;根据预设的数值区间与第三环境类型之间的对应关系,确定所述第一数值对应的第三环境类型,得到所述第一环境类型。Optionally, the first determining
可选地,第二确定单元730具体可以用于:根据预设的环境类型与处理策略之间的对应关系,确定所述第一环境类型对应的处理策略,作为所述第一处理策略;所述第一处理策略包括:图像处理器针对于所述目标视频片段的处理策略,和/或,数据处理器针对于所述目标视频片段的处理策略,和/或,显示驱动器针对于所述目标视频片段的处理策略。Optionally, the second determining
可选地,所述第一处理策略包括:数据处理器针对于所述目标视频片段的处理策略,播放单元740具体可以用于:对于所述目标视频片段,按照所述第一处理策略中所述数据处理器针对于所述目标视频片段的处理策略,对所述目标视频片段的码流进行解码处理,得到解码后的数据。Optionally, the first processing strategy includes: a processing strategy of the data processor for the target video clip, and the
可选地,所述第一处理策略包括:图像处理器针对于所述目标视频片段的处理策略,播放单元740具体可以用于:对于所述目标视频片段中的每个视频帧,按照所述第一处理策略中所述图像处理器针对于所述目标视频片段的处理策略,对所述视频帧进行渲染处理。Optionally, the first processing strategy includes: a processing strategy of the image processor for the target video clip, and the
可选地,所述第一处理策略包括:显示驱动器针对于所述目标视频片段的处理策略,播放单元740具体可以用于:对于所述目标视频片段中的每个视频帧,按照所述第一处理策略中所述显示驱动器针对于所述目标视频片段的处理策略,对所述视频帧进行显示。Optionally, the first processing strategy includes: a processing strategy of the display driver for the target video clip, and the
可选地,所述图像处理器针对于所述目标视频片段的处理策略包括:图像渲染分辨率,和/或,图像锐化算法的开关状态,和/或,增强对比度算法的开关状态;Optionally, the processing strategy of the image processor for the target video segment includes: an image rendering resolution, and/or an on-off state of an image sharpening algorithm, and/or a on-off state of an enhanced contrast algorithm;
和/或,and / or,
所述数据处理器针对于所述目标视频片段的处理策略包括:解码精度,和/或,跳帧,和/或,目标视频片段的帧率,和/或,目标视频片段的视频封装格式,和/或,目标视频片段的码率流,和/或,目标视频片段的分辨率;The processing strategy of the data processor for the target video clip includes: decoding accuracy, and/or, frame skipping, and/or, the frame rate of the target video clip, and/or, the video encapsulation format of the target video clip, and/or, the bit rate stream of the target video clip, and/or, the resolution of the target video clip;
和/或,and / or,
所述显示驱动器针对于所述目标视频片段的处理策略包括:屏幕刷新频率,和/或,屏幕分辨率。The processing strategy of the display driver for the target video segment includes: screen refresh rate and/or screen resolution.
图6~图7所示实施例提供的装置可用于执行本申请图2~图5所示方法实施例的技术方案,其实现原理和技术效果可以进一步参考方法实施例中的相关描述。The apparatuses provided by the embodiments shown in FIG. 6 to FIG. 7 can be used to implement the technical solutions of the method embodiments shown in FIG. 2 to FIG. 5 of the present application, and the implementation principles and technical effects may further refer to the relevant descriptions in the method embodiments.
应理解以上图6~图7所示的装置的各个单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些单元可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元以软件通过处理元件调用的形式实现,部分单元通过硬件的形式实现。例如,播放单元可以为单独设立的处理元件,也可以集成在电子设备的某一个芯片中实现。其它单元的实现与之类似。此外这些单元全部或部分可以集成在一起,也可以独立实现。在实现过程中,上述方法的各步骤或以上各个单元可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。It should be understood that the division of each unit of the apparatus shown in FIG. 6 to FIG. 7 is only a division of logical functions, and may be fully or partially integrated into a physical entity in actual implementation, or may be physically separated. And these units can all be implemented in the form of software calling through processing elements; they can also all be implemented in hardware; some units can also be implemented in the form of software calling through processing elements, and some units can be implemented in hardware. For example, the playback unit may be a separately established processing element, or may be integrated in a certain chip of the electronic device. The implementation of other units is similar. In addition, all or part of these units can be integrated together, and can also be implemented independently. In the implementation process, each step of the above-mentioned method or each of the above-mentioned units may be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
例如,以上这些单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit;以下简称:ASIC),或,一个或多个微处理器(Digital Singnal Processor;以下简称:DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array;以下简称:FPGA)等。再如,这些单元可以集成在一起,以片上系统(System-On-a-Chip;以下简称:SOC)的形式实现。For example, the above units may be one or more integrated circuits configured to implement the above method, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter referred to as: ASIC), or one or more microprocessors A digital processor (Digital Singnal Processor; hereinafter referred to as: DSP), or, one or more Field Programmable Gate Arrays (Field Programmable Gate Array; hereinafter referred to as: FPGA), etc. For another example, these units can be integrated together and implemented in the form of a system-on-a-chip (System-On-a-Chip; hereinafter referred to as: SOC).
如图8所示,现有技术中从检测到用户操作到显示视频的流程包括以下几个阶段:As shown in FIG. 8 , the process from detecting a user operation to displaying a video in the prior art includes the following stages:
用户在UI界面中执行针对于视频播放的操作指示,相应的,电子设备检测到用户的操作事件;The user executes an operation instruction for video playback in the UI interface, and accordingly, the electronic device detects the user's operation event;
电子设备的操作系统基于用户的操作事件进行调度和配置;The operating system of the electronic device is scheduled and configured based on the user's operation events;
驱动层进行具象功能转换;The driver layer performs concrete function conversion;
SOC执行对应的汇编指令;The SOC executes the corresponding assembly instructions;
GPU/DSP进行视频数据对应的图形运算;该图形运算包括对视频数据进行解码处理。The GPU/DSP performs graphics operations corresponding to the video data; the graphics operations include decoding the video data.
显示驱动器对图形运算后得到的数据进行数模转换,得到用于显示器显示的模拟信号;The display driver performs digital-to-analog conversion on the data obtained after the graphics operation to obtain an analog signal for display;
显示器基于模拟信号显示视频。The monitor displays video based on an analog signal.
而基于前述的本申请实施例中,在GPU/DSP对视频数据进行图形运算之前,可以基于环境数据和视频数据获得视频片段的处理策略,从而GPU/DSP以及显示驱动器可以基于处理策略进行视频片段的处理。增加本申请实施例的数据处理后,如图9所示,从检测到用户操作到显示视频的流程可以增加以下部分:Based on the foregoing embodiments of the present application, before the GPU/DSP performs graphics operations on the video data, a processing strategy for the video clip can be obtained based on the environment data and the video data, so that the GPU/DSP and the display driver can perform the video clip based on the processing strategy. processing. After adding the data processing of the embodiment of the present application, as shown in FIG. 9 , the following parts can be added to the process from detecting the user operation to displaying the video:
GPU/DSP中增加环境数据的接收接口以及AI感知运算模块,环境数据的接收接口用于接收环境传感器输出的环境数据;AI感知运算模块中可以设置第一模型,从而将至少一种环境数据和目标视频片段的至少一种数据输入第一模型,得到目标视频片段的第一处理策略;A receiving interface for environmental data and an AI perception computing module are added to the GPU/DSP. The receiving interface for environmental data is used to receive environmental data output by environmental sensors; a first model can be set in the AI perception computing module to combine at least one environmental data and At least one kind of data of the target video clip is input into the first model to obtain the first processing strategy of the target video clip;
之后,GPU/DSP可以根据第一处理策略进行后续的图形运算,该图形运算是基于第一处理策略进行优化后的图形运算。After that, the GPU/DSP can perform subsequent graphics operations according to the first processing strategy, and the graphics operations are graphics operations optimized based on the first processing strategy.
本申请还提供一种电子设备,包括:显示屏;一个或多个处理器;存储器;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述设备执行时,使得所述设备执行本申请图2~图5所示实施例提供的方法。The present application also provides an electronic device, comprising: a display screen; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the One or more computer programs include instructions, which, when executed by the device, cause the device to execute the methods provided by the embodiments shown in FIGS. 2 to 5 of the present application.
本申请还提供一种电子设备,所述设备包括存储介质和中央处理器,所述存储介质可以是非易失性存储介质,所述存储介质中存储有计算机可执行程序,所述中央处理器与所述非易失性存储介质连接,并执行所述计算机可执行程序以实现本申请图2~图5所示实施例提供的方法。The present application also provides an electronic device, the device includes a storage medium and a central processing unit, the storage medium may be a non-volatile storage medium, and a computer-executable program is stored in the storage medium, and the central processing unit is connected to the central processing unit. The non-volatile storage medium is connected, and the computer-executable program is executed to implement the method provided by the embodiments shown in FIG. 2 to FIG. 5 of the present application.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请图2~图5所示实施例提供的方法。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when it runs on a computer, the computer causes the computer to execute the programs provided by the embodiments shown in FIGS. 2 to 5 of the present application. method.
本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行本申请图2~图5所示实施例提供的方法。Embodiments of the present application further provide a computer program product, where the computer program product includes a computer program that, when running on a computer, enables the computer to execute the methods provided by the embodiments shown in FIGS. 2 to 5 of the present application.
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" refers to one or more, and "multiple" refers to two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can indicate the existence of A alone, the existence of A and B at the same time, and the existence of B alone. where A and B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, where a, b, c may be single, or Can be multiple.
本领域普通技术人员可以意识到,本文中公开的实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps described in the embodiments disclosed herein can be implemented by a combination of electronic hardware, computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory;以下简称:ROM)、随机存取存储器(Random Access Memory;以下简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。In the several embodiments provided in this application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (Read-Only Memory; hereinafter referred to as: ROM), Random Access Memory (Random Access Memory; hereinafter referred to as: RAM), magnetic disk or optical disk and other various A medium on which program code can be stored.
以上所述,仅为本申请的具体实施方式,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.
Claims (16)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2021101577567 | 2021-02-04 | ||
CN202110157756 | 2021-02-04 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113422995A true CN113422995A (en) | 2021-09-21 |
CN113422995B CN113422995B (en) | 2023-06-23 |
Family
ID=77721531
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110818681.2A Active CN113422995B (en) | 2021-02-04 | 2021-07-20 | AI model-based video processing method, portable electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113422995B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113395551A (en) * | 2021-07-20 | 2021-09-14 | 珠海极海半导体有限公司 | Processor, NPU chip and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105681728A (en) * | 2016-02-19 | 2016-06-15 | 华为技术有限公司 | Video processing method and device |
CN106412716A (en) * | 2016-09-30 | 2017-02-15 | 乐视控股(北京)有限公司 | Method and apparatus for adjusting multimedia playing effect, and electronic device |
CN106941625A (en) * | 2017-03-10 | 2017-07-11 | 广东欧珀移动通信有限公司 | A playback control method and device for a mobile terminal, and a mobile terminal |
CN106941621A (en) * | 2017-03-10 | 2017-07-11 | 广东欧珀移动通信有限公司 | A kind of control method of mobile terminal, device and mobile terminal |
US20170278546A1 (en) * | 2016-03-25 | 2017-09-28 | Samsung Electronics Co., Ltd. | Method and device for processing multimedia information |
US20170302990A1 (en) * | 2015-04-15 | 2017-10-19 | Tencent Technology (Shenzhen) Company Limited | Method, terminal, and system for processing data of video stream |
CN108184169A (en) * | 2017-12-28 | 2018-06-19 | 广东欧珀移动通信有限公司 | Video broadcasting method, device, storage medium and electronic equipment |
CN109413480A (en) * | 2018-09-30 | 2019-03-01 | Oppo广东移动通信有限公司 | Picture processing method, device, terminal and storage medium |
-
2021
- 2021-07-20 CN CN202110818681.2A patent/CN113422995B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170302990A1 (en) * | 2015-04-15 | 2017-10-19 | Tencent Technology (Shenzhen) Company Limited | Method, terminal, and system for processing data of video stream |
CN105681728A (en) * | 2016-02-19 | 2016-06-15 | 华为技术有限公司 | Video processing method and device |
US20170278546A1 (en) * | 2016-03-25 | 2017-09-28 | Samsung Electronics Co., Ltd. | Method and device for processing multimedia information |
CN106412716A (en) * | 2016-09-30 | 2017-02-15 | 乐视控股(北京)有限公司 | Method and apparatus for adjusting multimedia playing effect, and electronic device |
CN106941625A (en) * | 2017-03-10 | 2017-07-11 | 广东欧珀移动通信有限公司 | A playback control method and device for a mobile terminal, and a mobile terminal |
CN106941621A (en) * | 2017-03-10 | 2017-07-11 | 广东欧珀移动通信有限公司 | A kind of control method of mobile terminal, device and mobile terminal |
CN108184169A (en) * | 2017-12-28 | 2018-06-19 | 广东欧珀移动通信有限公司 | Video broadcasting method, device, storage medium and electronic equipment |
CN109413480A (en) * | 2018-09-30 | 2019-03-01 | Oppo广东移动通信有限公司 | Picture processing method, device, terminal and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113395551A (en) * | 2021-07-20 | 2021-09-14 | 珠海极海半导体有限公司 | Processor, NPU chip and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113422995B (en) | 2023-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020048222A1 (en) | Sound effect adjustment method and apparatus, electronic device and storage medium | |
CN113630572B (en) | Frame rate switching method and related device | |
US10783884B2 (en) | Electronic device-awakening method and apparatus, device and computer-readable storage medium | |
JP7209851B2 (en) | Image deformation control method, device and hardware device | |
CN112235635B (en) | Animation display method, animation display device, electronic equipment and storage medium | |
WO2020078206A1 (en) | Task scheduling method and device, terminal, and storage medium | |
CN109271129B (en) | Sound effect adjustment method, device, electronic device and storage medium | |
CN106502606A (en) | A kind of method of showing edge image and electronic equipment | |
US11830129B2 (en) | Object relighting using neural networks | |
CN109544441B (en) | Image processing method and device, and skin color processing method and device in live broadcast | |
CN113422995B (en) | AI model-based video processing method, portable electronic device | |
WO2017166645A1 (en) | Health prompting method and apparatus | |
WO2023077981A1 (en) | Display parameter adjusting method and apparatus, storage medium, and display device | |
CN113395551A (en) | Processor, NPU chip and electronic equipment | |
CN115150998A (en) | Electronic equipment and method for converting audio frequency into light effect | |
US12112731B2 (en) | Method and apparatus for generating music file, and electronic device and storage medium | |
CN111797754A (en) | Image detection method, device, electronic equipment and medium | |
KR20210044375A (en) | Electronic apparatus and controlling method thereof | |
CN117177420A (en) | Light control method, device, terminal equipment and storage medium | |
CN110197659A (en) | Feedback method, apparatus and system based on user's portrait | |
CN112839256B (en) | Video playing method and device and electronic equipment | |
WO2022213030A1 (en) | Neural networks accompaniment extraction from songs | |
WO2024160171A1 (en) | Video processing method and related electronic device | |
CN118101988B (en) | Video processing method, system and electronic equipment | |
CN116320222B (en) | Audio processing method, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |