CN109587559A - Method for processing video frequency, device, electronic equipment and storage medium - Google Patents

Method for processing video frequency, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109587559A
CN109587559A CN201811429234.2A CN201811429234A CN109587559A CN 109587559 A CN109587559 A CN 109587559A CN 201811429234 A CN201811429234 A CN 201811429234A CN 109587559 A CN109587559 A CN 109587559A
Authority
CN
China
Prior art keywords
current distance
electronic equipment
video
distance
resource file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811429234.2A
Other languages
Chinese (zh)
Inventor
彭德良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811429234.2A priority Critical patent/CN109587559A/en
Publication of CN109587559A publication Critical patent/CN109587559A/en
Priority to PCT/CN2019/105475 priority patent/WO2020108010A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing 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/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4854End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the present application discloses a kind of method for processing video frequency, device, electronic equipment and storage medium, is related to technical field of electronic equipment.This method is applied to electronic equipment, the described method includes: when electronic equipment plays video resource file, detect the current distance between the display screen and user, based on the current distance, determine objective optimization parameter corresponding with current distance, display enhancing processing is carried out to the video resource file based on the objective optimization parameter, wherein display enhancing processing improves the video image quality of video resource file by the image in the objective optimization parameter processing video resource file.Method for processing video frequency, device, electronic equipment and storage medium provided by the embodiments of the present application determine different Optimal Parameters according to the different distance of display screen and user, to carry out display enhancing processing to video resource file by Optimal Parameters corresponding at a distance from display screen and user, the display effect of video pictures is promoted.

Description

Method for processing video frequency, device, electronic equipment and storage medium
Technical field
This application involves technical field of electronic equipment, set more particularly, to a kind of method for processing video frequency, device, electronics Standby and storage medium.
Background technique
With the development of science and technology, electronic equipment have become in people's daily life most common electronic product it One.Also, user often plays game by electronic equipment, sees video etc., still, place of the electronic equipment to video data at present Reason mode is fixed, and user experience is bad.
Summary of the invention
In view of the above problems, present applicant proposes a kind of method for processing video frequency, device, electronic equipment and storage medium, To solve the above problems.
In a first aspect, the embodiment of the present application provides a kind of method for processing video frequency, it is applied to electronic equipment, the electronics is set Standby includes display screen, which comprises when the electronic equipment plays video resource file, detects the display screen and use Current distance between family;Based on the current distance, objective optimization parameter corresponding with the current distance is determined;Based on institute It states objective optimization parameter and display enhancing processing is carried out to the video resource file, wherein the display enhancing processing passes through institute State the video image quality that the image in video resource file described in objective optimization parameter processing improves the video resource file.
Second aspect, the embodiment of the present application provide a kind of video process apparatus, are applied to electronic equipment, and the electronics is set Standby includes display screen, and described device includes: detection module, for detecting when the electronic equipment plays video resource file Current distance between the display screen and user;Determining module, for being based on the current distance, it is determining with it is described currently away from From corresponding objective optimization parameter;Processing module, for being carried out based on the objective optimization parameter to the video resource file Show enhancing processing, wherein the display enhancing processing passes through in video resource file described in the objective optimization parameter processing Image improve the video image quality of the video resource file.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including memory and processor, the memory It is couple to the processor, the memory store instruction, the processor is held when executed by the processor The row above method.
Fourth aspect, the embodiment of the present application provides a kind of computer-readable storage medium, described computer-readable Program code is stored in storage medium, said program code can be called by processor and execute the above method.
Method for processing video frequency, device, electronic equipment and storage medium provided by the embodiments of the present application, when electronic equipment is broadcast When putting video resource file, detect the current distance between the display screen and user, be based on the current distance, determine with currently away from From corresponding objective optimization parameter, display enhancing processing is carried out to the video resource file based on the objective optimization parameter, wherein Display enhancing processing improves video resource file by the image in the objective optimization parameter processing video resource file Video image quality, to determine different Optimal Parameters according to the different distance of display screen and user, with by with display screen and use The corresponding Optimal Parameters of the distance at family carry out display enhancing processing to video resource file, promote the display effect of video pictures.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 shows the flow diagram of video playing provided by the embodiments of the present application;
Fig. 2 shows the flow diagrams for the method for processing video frequency that the application one embodiment provides;
Fig. 3, which shows the video resource file that electronic equipment provided by the embodiments of the present application plays, not to be enhanced by display The schematic diagram of processing;
Fig. 4 shows the video resource file that electronic equipment provided by the embodiments of the present application plays and handles by display enhancing Schematic diagram;
Fig. 5 shows the flow diagram of the method for processing video frequency of another embodiment of the application offer;
Fig. 6 shows the flow diagram of the step S230 of the method for processing video frequency shown in fig. 5 of the application;
Fig. 7 shows the flow diagram of the method for processing video frequency of the application further embodiment offer;
Fig. 8 shows the flow diagram of the method for processing video frequency of another embodiment of the application offer;
Fig. 9 shows the flow diagram of the step S420 of the method for processing video frequency shown in Fig. 8 of the application;
Figure 10 shows the flow diagram of the application method for processing video frequency that further embodiment provides again;
Figure 11 shows the module frame chart of video process apparatus provided by the embodiments of the present application;
Figure 12 shows the embodiment of the present application and is set for executing according to the electronics of the method for processing video frequency of the embodiment of the present application Standby block diagram;
Figure 13 shows realizing at according to the video of the embodiment of the present application for saving or carrying for the embodiment of the present application The storage unit of the program code of reason method.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described.
Referring to Fig. 1, Fig. 1 shows the process of video playing.Specifically, operating system is getting data to be played When, next work is exactly to parse audio, video data.General video file is all by video flowing and audio stream two parts Composition, the encapsulation format of different video format audio-videos are different.The process of audio stream and video flowing composite document is known as Muxer, on the contrary the process of separating audio stream and video flowing is known as demuxer from media file.Playing video file just needs Audio stream and video flowing are isolated from file stream, it is decoded respectively, and decoded video frame can be rendered directly, sound The buffer area that frequency frame can be sent to audio output apparatus plays out, and certainly, the timestamp of Video Rendering and audio broadcasting needs Control synchronizes.
Specifically, video decoding may include hard decoder and soft decoding, and hardware decoding is that original whole is transferred to centre It manages device (Central Processing Unit, CPU) and transfers to graphics processor come a part of the video data handled (Graphics Processing Unit, GPU) is done, and the concurrent operation ability of GPU will be significantly larger than CPU, in this way can be with It greatly reduces the load to CPU, some other programs can be run simultaneously after the occupancy of CPU is lower, when It so, both can be into for preferable processor, such as any a four core processor of i5 2320 or AMD Row hard decoder can also carry out soft decoding.
Specifically, as shown in Figure 1, multimedia framework (Media Framework) with the api interface of client by obtaining Client video file to be played, and transfer to Video Codec (Video Decode), wherein Media Framework For multimedia framework in android system, MediaPlayer, MediaPlayerService and Stagefrightplayer tri- A part constitutes the multimedia basic framework of Android.Multimedia framework part uses the structure of C/S, MediaPlayer As the end Client of C/S structure, MediaPlayerService and Stagefrightplayer are as C/S structure Server End carries the responsibility for playing multimedia file, and by Stagefrightplayer, asking for the end Client is completed at the end Server It asks and makes a response.Video Decode is a super decoding for being integrated with most common audio and video and decoding with playing Device is used for video data decoding.
Wherein, soft decoding is decoded processing to video by CPU by software.And hard decoder, refer to without the help of CPU, and by dedicated subcard equipment come complete independently video decoding task.
Whether hard decoder or soft decoding can send decoded video data after by video data decoding To figure layer transfer module (SurfaceFlinger), decoded video data is rendered by SurfaceFlinger and synthesizes it Afterwards, it shows on a display screen.Wherein, SurfaceFlinger is an independent Service, it receives all Window's Surface, according to parameters such as ZOrder, transparency, size, positions, calculates each Surface and is finally synthesizing as input Then position in image transfers to HWComposer or OpenGL to generate final display Buffer, be then shown to specific It shows in equipment.
As shown in Figure 1, CPU will give SurfaceFlinger rendering and synthesis in soft decoding after video data decoding, And after hard decoder is decoded by GPU, transfer to SurfaceFlinger to render and synthesize.And SurfaceFlinger can call GPU It realizes the rendering and synthesis of image, and shows on a display screen.
Wherein, electronic equipment fixes the processing mode of video data at present, for example, playing video resource in electronic equipment When file, display enhancing processing is carried out to the video file resource, or without display enhancing processing, also, in electricity When sub- equipment carries out showing that enhancing is handled to video resource file, carry out showing that the mode for enhancing and handling is identical, it will not be for use Different distance between family and electronic equipment chooses the display enhancement method being adapted to therewith, therefore, the effect of display enhancing processing Undesirable, user experience is bad.In view of the above-mentioned problems, inventor has found by long-term research, and propose the application implementation Method for processing video frequency, device, electronic equipment and the storage medium that example provides are determined according to the different distance of display screen and user Different Optimal Parameters, to be shown by Optimal Parameters corresponding at a distance from display screen and user to video resource file Enhancing processing, promotes the display effect of video pictures.Wherein, specific method for processing video frequency carries out in detail in subsequent embodiment Thin explanation.
Embodiment
Referring to Fig. 2, the flow diagram of the method for processing video frequency provided Fig. 2 shows the application one embodiment.Institute Method for processing video frequency is stated for determining different Optimal Parameters according to the different distance of display screen and user, with by with display screen Optimal Parameters corresponding with the distance of user carry out display enhancing processing to video resource file, promote the display effect of video pictures Fruit.In the particular embodiment, the method for processing video frequency is applied to video process apparatus 200 and configuration as shown in figure 11 There is the electronic equipment 100 (Figure 12) of the video process apparatus 200.It will illustrate the present embodiment by taking electronic equipment as an example below Detailed process, wherein the electronic equipment includes display screen, it will of course be understood that, electronic equipment applied by the present embodiment can Think smart phone, tablet computer, wearable electronic equipment, mobile unit, gateway etc., does not do specific restriction herein.Below It will be explained in detail for process shown in Fig. 2, the method for processing video frequency can specifically include following steps:
Step S110: it when the electronic equipment plays video resource file, detects between the display screen and user Current distance.
As a kind of mode, electronic equipment includes display screen, wherein the display screen can display area be displayed for The contents such as text, picture, icon or video, in this present embodiment, the display screen is for showing video resource file.And companion With the development of touch technology, display screen set by more and more electronic equipments may be touch screen, touch in setting In the case where screen, when detect user pull on the touchscreen, the touch control operations such as click, double click, slide when, which sets It is standby the touch control operation of user to be responded.
In the present embodiment, the video resource file that electronic equipment plays may include playing on the foreground of electronic equipment Video resource file, the video resource file in the broadcasting of the backstage of electronic equipment and the foreground in electronic equipment and backstage switch The video resource file of broadcasting, does not do specific restriction herein.Wherein, the video resource file that foreground plays refers to usually can be with It interacts, can will be suspended when it is invisible in the video resource file that foreground is shown with user;The view that backstage plays Frequency resource file refer to user interaction it is very limited, in addition to configuration during, the other times of life cycle are all hiding;? The video resource file that the foreground of electronic equipment and backstage switching play refers to and can arbitrarily switch between foreground and backstage Video resource file.Optionally, in the present embodiment, the video resource file that the electronic equipment plays is in the electronics The video resource file that the foreground of equipment plays.
Wherein, which can be local resource file, or Internet resources file does not limit herein It is fixed.Specifically, if the video resource file is local resource file, then, which can be by electronic equipment It is downloaded and stored at local from server in advance, when playing the video resource file, electronic equipment can be directly from local It reads and plays, for example, can reading directly from the memory of electronic equipment and broadcasting.Alternatively, if the view Frequency resource file is Internet resources file, then, which can be obtained simultaneously by electronic equipment from server online It plays, wherein electronic equipment can obtain video resource file from server by wireless network online, can also pass through data Network obtains video resource file from server online, it is not limited here, wherein data network may include 2G network, 3G Network, 4G network or 5G network.
In addition, electronic equipment can be equipped with video playback class application when video resource file is Internet resources file Program, and show the corresponding application icon of video playback class application program in the desktop of electronic equipment, when detecting use When family is directed to the application program image target touch control operation, electronic equipment can be used as response and run the video playback class application journey Sequence, and video resource file is obtained from server by network and is played;Alternatively, electronic equipment can be equipped with Browser, and video playing interface is entered by the webpage of the browser based on user's operation, and under the video playing interface Video resource file is obtained from server and is played.
It in the present embodiment, can be to display screen and user when determining that the electronic equipment plays video resource file Between current distance detected.Specifically, which can also include range sensor and front camera etc., example It such as, may include infrared sensor, high-definition camera, super clear camera etc., and then can be by range sensor and/or preposition Camera detects the current distance between display screen and user, and details are not described herein.
Step S120: being based on the current distance, determines objective optimization parameter corresponding with the current distance.
In the present embodiment, electronic equipment can store multiple distances and multiple Optimal Parameters, and be stored with multiple Corresponding relationship between distance and multiple Optimal Parameters, wherein the corresponding relationship may include that a distance is one or more corresponding A Optimal Parameters also may include the corresponding one or more distances of an Optimal Parameters, it is not limited here.Wherein, distance and Corresponding relationship between Optimal Parameters be stored in after being preset by user electronic equipment, can by electronic equipment in advance from Storage after dynamic setting is sent to electronic equipment after the completion of can also being preset by server, it is not limited here.Wherein, exist In the present embodiment, each Optimal Parameters in the multiple Optimal Parameters can be different to the effect of optimization of video resource file, That is, being handled by each Optimal Parameters in the multiple Optimal Parameters same video resource file, reached The display reinforcing effect arrived can be different.
Wherein, Optimal Parameters may include that exposure enhances, removes dryness, edge sharpening, contrast increase and saturation degree increases Add, and objective optimization parameter may include that exposure enhances, removes dryness, edge sharpening, contrast increase and saturation degree increases One or more of combination, for example, the objective optimization parameter be exposure enhancing, the objective optimization parameter be remove dryness, should Objective optimization parameter include exposure enhancing and remove dryness, the objective optimization parameter include exposure enhance, remove dryness, edge sharpening, Contrast increases and saturation degree increases etc..
Specifically, the video resource file that electronic equipment is shown is to pass through decoded picture material, due to by decoding Picture material later is that the data of RGBA format need the data by RGBA format to be converted to optimize to picture material HSV format specifically obtains the histogram of picture material, obtains statistics with histogram by the data conversion of RGBA format For the parameter of HSV format, the data of RGBA format are being converted to by HSV format according to the parameter.
Wherein, exposure enhances, and for improving the brightness of image, then can be handed over brightness value by the histogram of image The region at bottom increases brightness value, and alternatively, it is also possible to be to increase brightness of image by Nonlinear Superposition, specifically, I expression will be located The darker image of reason, T indicates that treated brighter image, then the mode of exposure enhancing is T (x)=I (x)+(1-I (x))*I(x).Wherein, T and I is the image of [0,1] value.If good algorithm can be with successive ignition for primary effect.
Wherein, the noise for removing image is denoised to picture material, specifically, image is normal during generation and transmission Chang Yin by various noises interference and influence but image deterioration, this will produce the processing of subsequent image and image vision effect Raw adverse effect.There are many noise type, such as: electrical noise, mechanical noise, interchannel noise and other noises.Therefore, in order to inhibit Noise, improving image quality, convenient for higher level processing, it is necessary to which noise suppression preprocessing is carried out to image.From the probability of noise point From the point of view of cloth situation, Gaussian noise, rayleigh noise, gamma noise, index noise and Uniform noise can be divided into.
It specifically, can be by Gaussian filter to image denoising, wherein Gaussian filter is a kind of linear filter, Noise, smoothed image can effectively be inhibited.Its action principle is similar with mean filter, is all the picture taken in filtering window The mean value of element is as output.The coefficient of its template window and mean filter difference, the coefficients of mean filter are all phases Same is 1;And the coefficients of Gaussian filter, then the coefficient reduction with the increase at distance template center.So Gauss filters Wave device is smaller to image fog-level compared to mean filter.
For example, generating one 5 × 5 gaussian filtering window, it is sampled using the center of template as coordinate origin.It will The coordinate of each position of template brings Gaussian function into, and obtained value is exactly the coefficient of template.Again by the gaussian filtering window and figure As convolution can be to image denoising.
Wherein, edge sharpening is for becoming more fully apparent fuzzy image.Generally there are two types of methods for image sharpening: One is the differential methods, another is high-pass filtering method.
Wherein, contrast increases the image quality for enhancing image, so that the color in image is distincter, it is specifically, right Than a kind of method that degree stretching is image enhancement, greyscale transformation operation is also belonged to.By greyscale transformation, gray value is stretched to whole The section of a 0-255, then what its contrast clearly substantially enhanced.It can be with following formula by the gray scale of some pixel Value is mapped to bigger gray space:
I (x, y)=[(I (x, y)-Imin)/(Imax-Imin)] (MAX-MIN)+MIN;
Wherein Imin, Imax are the minimum gradation value and maximum gradation value of original image, and MIN and MAX will be stretched to The minimum gray value and maximum value of gray space.
Therefore, in the present embodiment, after the current distance of the display screen and user that determine electronic equipment, can based on away from From and the corresponding relationships of Optimal Parameters determine corresponding with current distance Optimal Parameters, and as objective optimization parameter, It should be understood that objective optimization parameter may include an Optimal Parameters, it also may include multiple Optimal Parameters, do not limit herein It is fixed.
Step S130: display enhancing processing is carried out to the video resource file based on the objective optimization parameter, wherein The display enhancing processing improves the video by the image in video resource file described in the objective optimization parameter processing The video image quality of resource file.
Further, after the corresponding objective optimization parameter of current distance for determining electronic equipment and user, it is based on the mesh Mark Optimal Parameters carry out display enhancing processing to video resource file, wherein display enhancing processing is excellent by determining target Change parameter the image in video resource file is handled, improve video resource file video image quality, with by with the electricity The Optimal Parameters of sub- equipment and the current distance of user adaptation carry out display enhancing processing to video resource file, promote user and obtain The visual effect of the video pictures taken, wherein the image quality includes clarity, acutance, lens distortion, color, resolution, colour gamut model It encloses, purity etc., different combinations can have different display reinforcing effects.Wherein, it should be noted that video is provided The display enhancing processing of source file is it is also understood that a series of to be done before formally handle to video resource file Operation, including image enhancement and image restoration etc., image enhancement be by certain means to original image add some information or Data are converted, interested feature in image is selectively protruded or inhibit certain unwanted features in image, make image Match with objective optimization parameter, so as to improve picture quality, reinforces visual effect.
For example, the video resource file described in the electronic equipment normal play, i.e., not to the video resource file into When row display enhancing processing, the display screen of the electronic equipment can show picture as shown in Figure 3, in this case, user P What is obtained is the video resource file not handled by display enhancing, and when the electronic equipment passes through objective optimization parameter pair After video resource file carries out display enhancing processing, the display screen of the electronic equipment can show picture as shown in Figure 4, at this In the case of kind, what user P was obtained is the video resource file by display enhancing processing.In the present embodiment, as shown in Fig. 4 Video resource file be by display enhancing processing, and video resource file shown in Fig. 3 be not by display enhancing Processing, therefore, under the current distance unanimous circumstances between user and the display screen of electronic equipment, at display enhancing More preferably, display effect is more preferable for the picture quality of the video resource file of reason, and more preferably video provides the available display effect of user User experience can be improved in source file.
The method for processing video frequency that the application one embodiment provides, when electronic equipment plays video resource file, detection Current distance between the display screen and user is based on the current distance, determines objective optimization parameter corresponding with current distance, Display enhancing processing is carried out to the video resource file based on the objective optimization parameter, wherein display enhancing processing passes through should Image in the objective optimization parameter processing video resource file improves the video image quality of video resource file, thus according to display The different distance of screen and user determine different Optimal Parameters, to pass through Optimal Parameters corresponding at a distance from display screen and user Display enhancing processing is carried out to video resource file, promotes the display effect of video pictures.
Referring to Fig. 3, Fig. 3 shows the flow diagram of the method for processing video frequency of another embodiment of the application offer. This method is applied to electronic equipment, which includes display screen, will carry out detailed explain for process shown in Fig. 3 below It states, shown method for processing video frequency can specifically include following steps:
Step S210: it when the electronic equipment plays video resource file, detects between the display screen and user Current distance.
Wherein, the specific descriptions of step S210 please refer to step S110, and details are not described herein.
Step S220: judge whether the current distance is less than first distance threshold value.
As a kind of mode, electronic equipment is provided with first distance threshold value, and the first distance threshold value as electronics for setting The judgment basis of the current distance of standby display screen and user.Wherein it is possible to understand, which can be by electronics Equipment is stored in advance in local, can also be configured again when judging, it is not limited here.In addition, the first distance threshold value It can be automatically configured by electronic equipment, electronics can be transmitted to after the completion by user's manual setting or by server configuration Equipment, it is not limited here.In the present embodiment, which may include 1m, 0.8 meter etc., it is not limited here. In the present embodiment, after obtaining the current distance of the electronic equipment and user, by the current distance and first distance threshold value It is compared, to judge whether the current distance is less than first distance threshold value.
Step S230: when the current distance be less than the first distance threshold value when, be based on the current distance, determine with The corresponding objective optimization parameter of the current distance.
As a kind of mode, when determining the current distance not less than first distance threshold value, for example, when it is described currently away from When from being not less than 1m, the current distance for characterizing the electronic equipment and user too far, can forbid the electronic equipment to provide video Source file carries out display enhancing processing, to reduce the power consumption of the electronic equipment.
Alternatively, when determine the current distance be less than first distance threshold value when, for example, when it is described currently away from When from being less than 1m, the current distance for characterizing the display screen and user is closer, can determine that objective optimization is joined based on the current distance Several pairs of video resource files carry out display enhancing processing.In the present embodiment, can be determined from multiple display enhancement methods with The corresponding target of the current distance shows enhancement method, to show that enhancement method shows video resource file by the target Show that enhancing is handled, wherein the targets improvement mode includes at least objective optimization parameter, and each of multiple display enhancement methods The video image quality that display enhancement method obtains video resource file process is different.For example, the target shows that enhancement method includes First object shows enhancement method and the second target shows enhancement method, and first object shows that enhancement method is included at least by exposing Luminosity enhances, removes dryness, edge sharpening, contrast increase and saturation degree increases the objective optimization parameter formed, and the second target is aobvious Showing that enhancement method includes at least is enhanced by exposure and is removed dryness the objective optimization parameter formed, it is possible to understand, by this First object shows that enhancement method is better than increasing by second target display to the video image quality that video resource file process obtains The video image quality that strong mode obtains video resource file process.
Specifically, in the present embodiment, the electronic equipment can store multiple display enhancement methods and multiple distances, And it is stored with the corresponding relationship of the multiple display enhancement method and multiple distances, wherein the corresponding relationship may include one It shows that enhancement method corresponds to one or more distances, also may include the corresponding one or more display enhancement methods of a distance, It is not limited here.Wherein, it shows and is stored in after the corresponding relationship between enhancement method and distance can be preset by user Electronic equipment is stored after being set automatically in advance by electronic equipment or is sent to after the completion of being preset by server Electronic equipment, it is not limited here.
Wherein, in the present embodiment, each display enhancement method in the multiple display enhancement method is to video resource The video image quality that file process obtains is different, that is to say, that is enhanced by each display in the multiple display enhancement method Mode handles same video resource file, and display reinforcing effect achieved is different, for example, being enhanced by each display The difference of Optimal Parameters used by mode, the quantity difference of Optimal Parameters, the optimal way difference of Optimal Parameters etc., can achieve It is different to the effect of optimization of same video resource file.
As a kind of mode, the electronic equipment can create mapping table, may include more in the mapping table The corresponding relationship of a display enhancement method and multiple distances, for example, the mapping table can be as shown in table 1, wherein described Display enhancement method indicates that distance is indicated with B with A, then, by the mapping table, which can correspond to and set It sets the corresponding relationship of display enhancement method and distance and is stored in electronic equipment local.
Table 1
Show enhancement method Distance
A1 B1
A2 B2
A3 B3
A4 B4
It further, in the present embodiment, can be from described after determining the current distance of the electronic equipment and user Corresponding with current distance distance is searched in mapping table, then again based in mapping table display enhancement method with The corresponding relationship of distance can be searched with described apart from corresponding display enhancement method, which is determined as mesh Mark display enhancement method.
Referring to Fig. 4, Fig. 4 shows the process signal of the step S230 of the method for processing video frequency shown in Fig. 3 of the application Figure.It will be explained in detail below for process shown in Fig. 4, the method can specifically include following steps:
Step S231: when the current distance is less than the distance threshold, to the biological attribute data of the user into Row identification obtains recognition result.
As a kind of mode, after determining the current distance of display screen and user of the electronic equipment, it is understood that there may be use Family faces the case where display screen, it is also possible to the case where not facing the display screen there are user, it is possible to understand that, when user face When to the display screen, focusing on the video resource file of electronic equipment broadcasting for the user can be characterized, it is therefore, right The video resource file, which carries out display enhancing processing, can promote user experience, when user does not face display screen, for example, working as When user side is to display screen or back to display screen, the video resource that the attention of the user is not played in electronic equipment can be characterized On file, therefore, carrying out display enhancing processing to video resource file will cause the power consumption of electronic equipment, can forbid to video Resource file carries out display enhancing processing, to reduce the power consumption of electronic equipment.In the present embodiment, in order to improve to video resource File carries out the reasonability of display enhancing processing, can be identified to the biological attribute data of the user to obtain identification knot Fruit, it is possible to understand that, according to the recognition result, it is known that whether the user faces display screen.
Step S232: judge whether the recognition result includes face information or iris information.
Specifically, it can be acquired by image of the front camera to user, and pass through image recognition technology or machine Device learning art identifies the user images of acquisition to obtain recognition result, and judges whether the recognition result includes face letter Breath or iris information, it is possible to understand that, when in the recognition result including at least one of face information and iris information, It is considered that the user can recognize in face of the display screen when the recognition result does not include face information and iris information The display screen is not faced for the user.
Step S233: when the recognition result includes at least one of face information and iris information, based on described Current distance determines objective optimization parameter corresponding with the current distance.
In the present embodiment, however, it is determined that the recognition result includes at least one of face information and iris information, characterization User faces the display screen, therefore, can carry out display enhancing processing, to video resource file to promote user experience.
Step S240: display enhancing processing is carried out to the video resource file based on the objective optimization parameter, wherein The display enhancing processing improves the video by the image in video resource file described in the objective optimization parameter processing The video image quality of resource file.
Wherein, the specific descriptions of step S240 please refer to step S130, and details are not described herein.
The method for processing video frequency that another embodiment of the application provides, when electronic equipment plays video resource file, inspection Survey the current distance between the display screen and user, judge whether the current distance is less than first distance threshold value, when this currently away from When from being less than the first distance threshold value, it being based on the current distance, determining objective optimization parameter corresponding with current distance, being based on should Objective optimization parameter carries out display enhancing processing to the video resource file, wherein display enhancing processing is excellent by the target Change the video image quality that the image in the parameter processing video resource file improves video resource file.Compared to view shown in Fig. 2 Frequency processing method, to video resource text when current distance of the present embodiment between display screen and user is less than first distance threshold value Part carries out display enhancing processing, carries out display enhancing to video resource file to avoid when display screen is excessive at a distance from user Handle and increase the power consumption of electronic equipment.
Referring to Fig. 5, Fig. 5 shows the flow diagram of the method for processing video frequency of the application further embodiment offer. This method is applied to electronic equipment, which includes display screen, will carry out detailed explain for process shown in fig. 5 below It states, the method can specifically include following steps:
Step S310: it when the electronic equipment plays video resource file, detects between the display screen and user Current distance.
Step S320: judge whether the current distance is less than first distance threshold value.
Wherein, the specific descriptions of step S310- step S320 please refer to step S210- step S220, and details are not described herein.
Step S330: when the current distance is less than the first distance threshold value, judge whether the current distance is big In second distance threshold value, wherein the second distance threshold value is less than the first distance threshold value.
As a kind of mode, electronic equipment is additionally provided with second distance threshold value, and the second distance threshold value less than first away from From threshold value, which is used for the judgment basis of the current distance of the display screen and user as electronic equipment.Wherein, It should be understood that the second distance threshold value can be stored in advance in local by electronic equipment, can also be set again when judging It sets, it is not limited here.In addition, the second distance threshold value can be automatically configured by electronic equipment, can by user's manual setting, It is transmitted to electronic equipment after the completion of can also being configured by server, it is not limited here.In the present embodiment, the second distance threshold Value may include 0.3m, 0.4 meter etc., it is not limited here.In the present embodiment, when the display screen and user for determining electronic equipment Current distance be less than first distance threshold value after, which is compared with second distance threshold value, with judge this currently Whether distance meets less than first distance threshold value and is greater than second distance threshold value.
Step S340: when the current distance be greater than the second distance threshold value when, be based on the current distance, determine with The corresponding objective optimization parameter of the current distance.
As a kind of mode, when determining the current distance no more than second distance threshold value, for example, when it is described currently away from When from being not more than 0.3m, the current distance for characterizing the electronic equipment and user is excessively close, and the electronic equipment can be forbidden to video Resource file carries out display enhancing processing, to reduce the power consumption of electronic equipment.
Alternatively, when determine the current distance be less than first distance threshold value and be greater than second distance threshold value When, for example, the current distance for characterizing the display screen and user is moderate when the current distance is 0.6m, it can be based on current Distance determines that objective optimization parameter carries out display enhancing processing to video resource file.In the present embodiment, when the current distance When greater than second distance threshold value and being less than first distance threshold value, current distance is smaller, and characterization of electronic equipment, should closer to display screen The video resource file that user sees is more clear, then the corresponding video image quality of its objective optimization parameter can be lower, to reduce The power consumption of electronic equipment;Current distance is bigger, and characterization of electronic equipment is further away from display screen, video resource file which sees It is fuzzyyer, then the corresponding video image quality of its objective optimization parameter can be higher, to promote the display effect of video resource file, Promote user experience.
Step S350: display enhancing processing is carried out to the video resource file based on the objective optimization parameter, wherein The display enhancing processing improves the video by the image in video resource file described in the objective optimization parameter processing The video image quality of resource file.
Wherein, the specific descriptions of step S350 please refer to step S130, and details are not described herein.
The method for processing video frequency that the application further embodiment provides, when electronic equipment plays video resource file, inspection Survey the current distance between the display screen and user, judge whether the current distance is less than first distance threshold value, when this currently away from When from being less than the first distance threshold value, judge whether the current distance is greater than second distance threshold value, wherein the second distance threshold value It is based on the current distance, determines the current distance when the current distance is greater than second distance threshold value less than first distance threshold value Corresponding objective optimization parameter carries out display enhancing processing to the video resource file based on the objective optimization parameter, wherein should Display enhancing processing improves the video resource file by the image in the objective optimization parameter processing video resource file Video image quality.Compared to method for processing video frequency shown in Fig. 2, current distance of the present embodiment between display screen and user is less than First distance threshold value and be greater than second distance threshold value when to video resource file carry out display enhancing processing, to avoid in display screen With it is excessive at a distance from user or too small when display enhancing processing carried out to video resource file and increase the power consumption of electronic equipment.
Referring to Fig. 6, Fig. 6 shows the flow diagram of the method for processing video frequency of another embodiment of the application offer. This method is applied to electronic equipment, which includes display screen, will carry out detailed explain for process shown in fig. 6 below It states, the method for processing video frequency can specifically include following steps:
Step S410: it when the electronic equipment plays video resource file, detects between the display screen and user Current distance.
Wherein, the specific descriptions of step S410 please refer to step S110, and details are not described herein.
The duration that step S420: detecting the display screen and the user keeps the current distance constant.
In the present embodiment, it after the current distance of the display screen and user that detect electronic equipment, to display screen and is somebody's turn to do The duration that user keeps the current distance constant detects.Specifically, as a kind of mode, can detect display screen and When the current distance of user, start timer and continue to test the display screen and the current distance of user, if detecting described Current distance remains unchanged, then the duration obtained from timer can be considered as the display screen and the current distance of user is kept If constant duration controls the timer reclocking detect that the current distance changes.
Referring to Fig. 7, Fig. 7 shows the process signal of the step S420 of the method for processing video frequency shown in fig. 6 of the application Figure.It will be explained in detail below for process shown in Fig. 7, the method can specifically include following steps:
Step S421: the changing value of the display screen and the current distance of the user is detected.
As a kind of mode, since the current distance between the display screen and the user may change at any time, Current distance i.e. between display screen and user may change relative to last moment, changing value be generated, in the present embodiment In, which can be considered as absolute value.For example, the current distance of the display screen and the user in last moment is 0.6m is 0.5m in the current distance at current time, it is possible to know the display screen and the current distance of the user Changing value is 0.1m;In another example the current distance of the display screen and the user in last moment is 0.6m, at current time Current distance be 0.7m, it is possible to which the changing value for knowing the display screen and the current distance of the user is also 0.1m.
Step S422: judge whether the changing value is less than change threshold.
In the present embodiment, electronic equipment is provided with change threshold, the change threshold be used for as display screen and user it Between current distance changing value judgment basis.Wherein, which can be stored in advance in local by electronic equipment, It can be configured again when judging, it is not limited here.In addition, the change threshold can be automatically configured by electronic equipment, can With by user's manual setting, can also by server configure after the completion of be transmitted to electronic equipment, it is not limited here, wherein should Change threshold may include 0.05m, 0.1m etc..As a kind of mode, obtain between the display screen and user it is current away from From changing value after, which can be compared with change threshold, to judge whether the changing value is less than the variation threshold Value.
Step S423: when the changing value is less than the change threshold, determine that the display screen and the user are kept The current distance is constant.
Wherein, if the changing value is less than change threshold, it is believed that between the display screen and user of the electronic equipment Current distance change in admissible a small range, this variation may be due to environmental factor causes and simultaneously non-user is deliberately Change, hence, it can be determined that the display screen and the user keep the current distance constant.
The duration that step S424: detecting the display screen and the user keeps the current distance constant.
Step S430: judge whether the duration is greater than duration threshold value.
Wherein, electronic equipment is provided with duration threshold value, which is used to keep institute as display screen and the user State the judgment basis of the constant duration of current distance.Wherein, which can be stored in advance in local by electronic equipment, It can be configured again when judging, it is not limited here.In addition, the duration threshold value can be automatically configured by electronic equipment, can With by user's manual setting, can also by server configure after the completion of be transmitted to electronic equipment, it is not limited here, wherein should Duration threshold value may include 10s, 30s etc..As a kind of mode, keep described current in the acquisition display screen and the user After constant duration, which can be compared with duration threshold value, to judge whether the duration is greater than the duration threshold Value.
Step S440: when the duration is greater than the duration threshold value, being based on the current distance, determining and described current Apart from corresponding objective optimization parameter.
Wherein, when determining that the duration is greater than duration threshold value, for example, characterizing the user when the duration is greater than 10s It is expected that watching the video resource file under the distance, therefore, the current distance, determining and current distance pair can be based on The objective optimization parameter answered carries out display enhancing processing to video resource file.
Step S450: display enhancing processing is carried out to the video resource file based on the objective optimization parameter, wherein The display enhancing processing improves the video by the image in video resource file described in the objective optimization parameter processing The video image quality of resource file.
Wherein, the specific descriptions of step S450 please refer to step S130, and details are not described herein.
The method for processing video frequency that another embodiment of the application provides, when electronic equipment plays video resource file, inspection The current distance between the display screen and user is surveyed, the duration that the display screen keeps the current distance constant with user is detected, sentences Whether the duration of breaking is greater than duration threshold value, when the duration is greater than duration threshold value, is based on the current distance, determining and current distance Corresponding objective optimization parameter carries out display enhancing processing to the video resource file based on the objective optimization parameter, wherein should Display enhancing processing improves the video of video resource file by the image in the objective optimization parameter processing video resource file Image quality.Compared to method for processing video frequency shown in Fig. 2, current distance of the present embodiment between display screen and user is remained unchanged Duration when being greater than duration threshold value, display enhancing processing is carried out to video resource file, to avoid frequent change objective optimization ginseng Number, reduces the power consumption of electronic equipment.
Referring to Fig. 8, Fig. 8 shows the process signal of the application method for processing video frequency that further embodiment provides again Figure.This method is applied to electronic equipment, which includes display screen, will carry out below for process shown in Fig. 8 detailed Elaboration, the method for processing video frequency can specifically include following steps:
Step S510: it when the electronic equipment plays video resource file, detects between the display screen and user Current distance.
Wherein, the specific descriptions of step S510 please refer to step S110, and details are not described herein.
Step S520: the remaining capacity of the electronic equipment is detected.
Wherein, the detection method of the remaining capacity may include voltage measurement method, fuel cell modelling method and Coulomb meter etc., tool Body, it, can be by simply monitoring electronic equipment when being detected by remaining capacity of the voltage measurement method to electronic equipment Battery voltage and obtain remaining capacity, although this method is relatively simple, since the electricity and voltage of battery are not lines Sexual intercourse, so lower by the remaining capacity accuracy that voltage measurement method measures;Electronics is set when by fuel cell modelling method When standby remaining capacity is detected, it can be according to the discharge curve of the battery of electronic equipment and establish a tables of data, number According to the charge value that can be indicated in table under different voltages, so as to improve the measurement accuracy of remaining capacity;When passing through Coulomb meter It, can be in one electric current inspection of anode and cathode series connection of the battery of electronic equipment when being detected to the remaining capacity of electronic equipment Measuring resistance will generate Vsense when there is electric current to flow through resistance, flow through battery by detecting Vsense and can calculate Electric current, and then the electric quantity change of battery can be accurately tracked, improve the detection accuracy of remaining capacity.
Further, it by taking android system as an example, can be obtained by using the characteristic of BroadcastReceiver The remaining capacity of the battery of electronic equipment, the IntentFilter that is arranged obtains system when registering BroadcastReceiver Then the Intent.ACTION_BATTERY_CHANGED of sending obtains the remaining capacity of battery with this.
Step S530: the current distance and the remaining capacity, determining and the current distance and the residue are based on The corresponding objective optimization parameter of electricity.
In the present embodiment, electronic equipment can store between current distance, remaining capacity and Optimal Parameters three Corresponding relationship, likewise, the corresponding relationship between current distance, remaining capacity and Optimal Parameters three can be pre- by user It first sets storage after being stored in electronic equipment afterwards, being set automatically in advance by electronic equipment or is set in advance by server It is sent to electronic equipment after the completion of fixed, it is not limited here.It therefore, can be with after obtaining the current distance and remaining capacity It is searched based on the corresponding relationship between current distance, remaining capacity and Optimal Parameters three equal with current distance and remaining capacity Corresponding objective optimization parameter.
It should be understood that the remaining capacity of electronic equipment is higher, the remaining capacity of characterization of electronic equipment supports larger enough Power consumption, then, the corresponding objective optimization parameter of the remaining capacity corresponding picture optimization quality can be higher, electronic equipment Remaining capacity is lower, and the remaining capacity of characterization of electronic equipment does not support biggish power consumption enough, then, the remaining capacity is corresponding The corresponding picture optimization quality of objective optimization parameter can be lower.Therefore, in the present embodiment, based on current distance and residue electricity It is more reasonable to measure determining objective optimization parameter, promotes user experience.
Step S540: display enhancing processing is carried out to the video resource file based on the objective optimization parameter, wherein The display enhancing processing improves the video by the image in video resource file described in the objective optimization parameter processing The video image quality of resource file.
Wherein, the specific descriptions of step S540 please refer to step S130, and details are not described herein.
The application method for processing video frequency that further embodiment provides again, when the electronic equipment plays video resource file When, detect the current distance between the display screen and user, detect the remaining capacity of the electronic equipment, based on the current distance and Remaining capacity determines objective optimization parameter corresponding with current distance and remaining capacity, based on the objective optimization parameter to the view Frequency resource file carries out display enhancing processing, wherein display enhancing processing is provided by the objective optimization parameter processing video Image in source file improves the video image quality of video resource file.Compared to method for processing video frequency shown in Fig. 2, the present embodiment Also the remaining capacity of electronic equipment is detected, and determines objective optimization parameter to video based on current distance and remaining capacity Resource file carries out display enhancing processing, to promote the reasonability for showing enhancing processing.
Referring to Fig. 9, Fig. 9 shows the module frame chart of video process apparatus 200 provided by the embodiments of the present application.The view Frequency processing device 200 is applied to above-mentioned electronic equipment, which includes display screen, will be directed to block diagram shown in Fig. 9 below It is illustrated, the video process apparatus 200 includes: detection module 210, determining module 220 and processing module 230, in which:
Detection module 210, for detecting the display screen and user when the electronic equipment plays video resource file Between current distance.
Determining module 220 determines objective optimization ginseng corresponding with the current distance for being based on the current distance Number.Further, the determining module 220 includes: the first current distance judging submodule, first determines submodule, second works as Front distance judging submodule, second determine submodule, duration detection sub-module, duration judging submodule, third determine submodule, Residual capacity measurement submodule and the 4th determining submodule, in which:
First current distance judging submodule, for judging whether the current distance is less than first distance threshold value.
First determines submodule, described current for being based on when the current distance is less than the first distance threshold value Distance determines objective optimization parameter corresponding with the current distance.Further, described first determine that submodule includes: to know Other result acquiring unit, recognition result judging unit and the first determination unit, in which:
Recognition result acquiring unit, for the life when the current distance is less than the distance threshold, to the user Object characteristic carries out identification and obtains recognition result.
Recognition result judging unit, for judging whether the recognition result includes face information or iris information.
First determination unit, for when the recognition result includes at least one of face information and iris information, Based on the current distance, objective optimization parameter corresponding with the current distance is determined.
Second current distance judging submodule, for judging whether the current distance is greater than second distance threshold value, wherein The second distance threshold value is less than the first distance threshold value.
Second determines submodule, described current for being based on when the current distance is greater than the second distance threshold value Distance determines objective optimization parameter corresponding with the current distance.
Duration detection sub-module, for detect the display screen and the user keep the current distance it is constant when It is long.Further, the duration detection sub-module includes: changing value detection unit, changing value judging unit, current distance determination Unit and duration detection unit, in which:
Changing value detection unit, the changing value of the current distance for detecting the display screen and the user.
Changing value judging unit, for judging whether the changing value is less than change threshold.
Current distance determination unit, for when the changing value be less than the change threshold when, determine the display screen and The user keeps the current distance constant.
Duration detection unit, the duration for detecting the display screen and the user keeps the current distance constant.
Duration judging submodule, for judging whether the duration is greater than duration threshold value.
Third determines submodule, for being based on the current distance when the duration is greater than the duration threshold value, determines Objective optimization parameter corresponding with the current distance.
Residual capacity measurement submodule, for detecting the remaining capacity of the electronic equipment.
4th determines submodule, for being based on the current distance and the remaining capacity, the determining and current distance Objective optimization parameter corresponding with the remaining capacity.
Processing module 230, for being carried out at display enhancing based on the objective optimization parameter to the video resource file Reason, wherein the display enhancing processing is improved by the image in video resource file described in the objective optimization parameter processing The video image quality of the video resource file.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description device and The specific work process of module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, the mutual coupling of module can be electrical property, mechanical or other The coupling of form.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.
Referring to Fig. 10, it illustrates the structural block diagrams of a kind of electronic equipment 100 provided by the embodiments of the present application.The electronics Equipment 100, which can be smart phone, tablet computer, e-book etc., can run the electronic equipment of application program.In the application Electronic equipment 100 may include one or more such as lower component: processor 110, memory 120, display screen 130, codec 140 and one or more application program, wherein one or more application programs can be stored in memory 120 and be matched It is set to and is executed by one or more processors 110, one or more programs are configured to carry out preceding method embodiment such as and are retouched The method stated.
Wherein, processor 110 may include one or more processing core.Processor 110 utilizes various interfaces and route The various pieces in entire electronic equipment 100 are connected, by running or executing the instruction being stored in memory 120, program, generation Code collection or instruction set, and the data being stored in memory 120 are called, execute the various functions and processing of electronic equipment 100 Data.Optionally, processor 110 can be using Digital Signal Processing (Digital Signal Processing, DSP), scene Programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA) at least one of example, in hardware realize.Processor 110 can integrating central processor (Central Processing Unit, CPU), in graphics processor (Graphics Processing Unit, GPU) and modem etc. One or more of combinations.Wherein, the main processing operation system of CPU, user interface and application program etc.;GPU is for being responsible for Show the rendering and drafting of content;Modem is for handling wireless communication.It is understood that above-mentioned modem It can not be integrated into processor 110, be realized separately through one piece of communication chip.
Memory 120 may include random access memory (Random Access Memory, RAM), also may include read-only Memory (Read-Only Memory).Memory 120 can be used for store instruction, program, code, code set or instruction set.It deposits Reservoir 120 may include storing program area and storage data area, wherein the finger that storing program area can store for realizing operating system Enable, for realizing at least one function instruction (such as touch function, sound-playing function, image player function etc.), be used for Realize the instruction etc. of following each embodiments of the method.Storage data area can also store the number that terminal 100 is created in use According to (such as phone directory, audio, video data, chat record data) etc..
The codec 140 can be used for encoding video data or being decoded, then by decoded video counts It is shown according to display screen 130 is transferred to, wherein the codec 140 can be GPU, dedicated DSP, FPGA, ASIG chip Deng.
Figure 11 is please referred to, it illustrates a kind of structural frames of computer readable storage medium provided by the embodiments of the present application Figure.Program code is stored in the computer-readable medium 300, said program code can be called by processor and execute the above method Method described in embodiment.
Computer readable storage medium 300 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory), The electronic memory of EPROM, hard disk or ROM etc.Optionally, computer readable storage medium 300 includes non-volatile meter Calculation machine readable medium (non-transitory computer-readable storage medium).Computer-readable storage Medium 300 has the memory space for the program code 310 for executing any method and step in the above method.These program codes can With from reading or be written in one or more computer program product in this one or more computer program product. Program code 310 can for example be compressed in a suitable form.
In conclusion method for processing video frequency provided by the embodiments of the present application, device, electronic equipment and storage medium, when When electronic equipment plays video resource file, the current distance between the display screen and user is detected, is based on the current distance, really Fixed objective optimization parameter corresponding with current distance, carries out display enhancing to the video resource file based on the objective optimization parameter Processing, wherein display enhancing processing improves video by the image in the objective optimization parameter processing video resource file The video image quality of resource file, to determine different Optimal Parameters according to the different distance of display screen and user, with by with The corresponding Optimal Parameters of the distance of display screen and user carry out display enhancing processing to video resource file, promote video pictures Display effect.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be with It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and Range.

Claims (11)

1. a kind of method for processing video frequency, which is characterized in that be applied to electronic equipment, the electronic equipment includes display screen, described Method includes:
When the electronic equipment plays video resource file, the current distance between the display screen and user is detected;
Based on the current distance, objective optimization parameter corresponding with the current distance is determined;
Display enhancing processing is carried out to the video resource file based on the objective optimization parameter, wherein the display enhancing Processing improves the view of the video resource file by the image in video resource file described in the objective optimization parameter processing Frequency image quality.
2. being determined and described current the method according to claim 1, wherein described be based on the current distance Apart from corresponding objective optimization parameter, comprising:
Judge whether the current distance is less than first distance threshold value;
When the current distance is less than the first distance threshold value, it is based on the current distance, the determining and current distance Corresponding objective optimization parameter.
3. according to the method described in claim 2, it is characterized in that, described when the current distance is less than the distance threshold When, it is based on the current distance, determines objective optimization parameter corresponding with the current distance, comprising:
When the current distance is less than the distance threshold, the biological attribute data of the user identified As a result;
Judge whether the recognition result includes face information or iris information;
When the recognition result includes at least one of face information and iris information, it is based on the current distance, is determined Objective optimization parameter corresponding with the current distance.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
Judge whether the current distance is greater than second distance threshold value, wherein the second distance threshold value be less than described first away from From threshold value;
When the current distance is greater than the second distance threshold value, it is based on the current distance, the determining and current distance Corresponding objective optimization parameter.
5. according to the method described in claim 4, it is characterized in that, when the current distance is greater than the second distance threshold value When, the current distance is smaller, and the corresponding video image quality of the objective optimization parameter is lower.
6. being determined and described current the method according to claim 1, wherein described be based on the current distance Apart from corresponding objective optimization parameter, comprising:
Detect the display screen and duration that the user keeps the current distance constant;
Judge whether the duration is greater than duration threshold value;
When the duration is greater than the duration threshold value, it is based on the current distance, determines mesh corresponding with the current distance Mark Optimal Parameters.
7. according to the method described in claim 6, it is characterized in that, described in the detection display screen and user holding The constant duration of current distance, comprising:
Detect the changing value of the display screen and the current distance of the user;
Judge whether the changing value is less than change threshold;
When the changing value is less than the change threshold, determine that the display screen and the user keep the current distance not Become;
Detect the display screen and duration that the user keeps the current distance constant.
8. method according to claim 1-7, which is characterized in that the method also includes:
Detect the remaining capacity of the electronic equipment;
Based on the current distance and the remaining capacity, target corresponding with the current distance and the remaining capacity is determined Optimal Parameters.
9. a kind of video process apparatus, which is characterized in that be applied to electronic equipment, the electronic equipment includes display screen, described Device includes:
Detection module, for detecting between the display screen and user when the electronic equipment plays video resource file Current distance;
Determining module determines objective optimization parameter corresponding with the current distance for being based on the current distance;
Processing module, for carrying out display enhancing processing to the video resource file based on the objective optimization parameter, wherein The display enhancing processing improves the video by the image in video resource file described in the objective optimization parameter processing The video image quality of resource file.
10. a kind of electronic equipment, which is characterized in that including memory and processor, the memory is couple to the processor, The memory store instruction, the processor executes claim 1-8 such as and appoints when executed by the processor Method described in one.
11. a kind of computer-readable storage medium, which is characterized in that be stored with journey in the computer-readable storage medium Sequence code, said program code can be called by processor and execute the method according to claim 1.
CN201811429234.2A 2018-11-27 2018-11-27 Method for processing video frequency, device, electronic equipment and storage medium Pending CN109587559A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811429234.2A CN109587559A (en) 2018-11-27 2018-11-27 Method for processing video frequency, device, electronic equipment and storage medium
PCT/CN2019/105475 WO2020108010A1 (en) 2018-11-27 2019-09-11 Video processing method and apparatus, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811429234.2A CN109587559A (en) 2018-11-27 2018-11-27 Method for processing video frequency, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109587559A true CN109587559A (en) 2019-04-05

Family

ID=65925011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811429234.2A Pending CN109587559A (en) 2018-11-27 2018-11-27 Method for processing video frequency, device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN109587559A (en)
WO (1) WO2020108010A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110085191A (en) * 2019-05-15 2019-08-02 京东方科技集团股份有限公司 Display device and processor, processing method, driving method, storage medium and equipment
WO2020108010A1 (en) * 2018-11-27 2020-06-04 Oppo广东移动通信有限公司 Video processing method and apparatus, electronic device and storage medium
CN113835798A (en) * 2020-06-24 2021-12-24 Oppo(重庆)智能科技有限公司 Dial data processing method and device, wearable device and storage medium
CN114845162A (en) * 2021-02-01 2022-08-02 北京字节跳动网络技术有限公司 Video playing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100277575A1 (en) * 2009-04-30 2010-11-04 Tetracam, Inc. Method and apparatus for providing a 3d image via a media device
CN103207664A (en) * 2012-01-16 2013-07-17 联想(北京)有限公司 Image processing method and equipment
CN103903591A (en) * 2012-12-25 2014-07-02 扬智科技股份有限公司 Picture adjustment method, device and display device
CN104796681A (en) * 2015-03-26 2015-07-22 繁昌县江林广告设计制作有限公司 LED (Light Emitting Diode) display screen having chrominance adjusting function
CN104883598A (en) * 2015-06-24 2015-09-02 三星电子(中国)研发中心 Frame display device and display frame adjusting method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587559A (en) * 2018-11-27 2019-04-05 Oppo广东移动通信有限公司 Method for processing video frequency, device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100277575A1 (en) * 2009-04-30 2010-11-04 Tetracam, Inc. Method and apparatus for providing a 3d image via a media device
CN103207664A (en) * 2012-01-16 2013-07-17 联想(北京)有限公司 Image processing method and equipment
CN103903591A (en) * 2012-12-25 2014-07-02 扬智科技股份有限公司 Picture adjustment method, device and display device
CN104796681A (en) * 2015-03-26 2015-07-22 繁昌县江林广告设计制作有限公司 LED (Light Emitting Diode) display screen having chrominance adjusting function
CN104883598A (en) * 2015-06-24 2015-09-02 三星电子(中国)研发中心 Frame display device and display frame adjusting method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020108010A1 (en) * 2018-11-27 2020-06-04 Oppo广东移动通信有限公司 Video processing method and apparatus, electronic device and storage medium
CN110085191A (en) * 2019-05-15 2019-08-02 京东方科技集团股份有限公司 Display device and processor, processing method, driving method, storage medium and equipment
US11646001B2 (en) 2019-05-15 2023-05-09 Boe Technology Group Co., Ltd. Display device, data processor, data processing method, driving method, storage medium, and electronic device
CN113835798A (en) * 2020-06-24 2021-12-24 Oppo(重庆)智能科技有限公司 Dial data processing method and device, wearable device and storage medium
CN113835798B (en) * 2020-06-24 2024-05-14 Oppo(重庆)智能科技有限公司 Processing method and device of dial data, wearable device and storage medium
CN114845162A (en) * 2021-02-01 2022-08-02 北京字节跳动网络技术有限公司 Video playing method and device, electronic equipment and storage medium
CN114845162B (en) * 2021-02-01 2024-04-02 北京字节跳动网络技术有限公司 Video playing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2020108010A1 (en) 2020-06-04

Similar Documents

Publication Publication Date Title
CN109587560A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN109587559A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN109685726B (en) Game scene processing method and device, electronic equipment and storage medium
CN109587558B (en) Video processing method, video processing device, electronic equipment and storage medium
WO2022179335A1 (en) Video processing method and apparatus, electronic device, and storage medium
US20210281718A1 (en) Video Processing Method, Electronic Device and Storage Medium
CN109640151A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN110620924B (en) Method and device for processing coded data, computer equipment and storage medium
WO2020038127A1 (en) Decoding method and apparatus, electronic device, and storage medium
CN112669197A (en) Image processing method, image processing device, mobile terminal and storage medium
CN109640169A (en) Video source modeling control method, device and electronic equipment
CN109618228A (en) Video source modeling control method, device and electronic equipment
CN109361950A (en) Method for processing video frequency, device, electronic equipment and storage medium
Liu et al. Learning noise-decoupled affine models for extreme low-light image enhancement
WO2022111717A1 (en) Image processing method and apparatus, and electronic device
CN107945139B (en) Image processing method, storage medium and intelligent terminal
CN109151574A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN109525888A (en) Image display method, device, electronic equipment and storage medium
CN113610720A (en) Video denoising method and device, computer readable medium and electronic device
CN109587561A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN109167946A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN113034412A (en) Video processing method and device
CN111447360A (en) Application program control method and device, storage medium and electronic equipment
CN114584831B (en) Video optimization processing method, device, equipment and storage medium for improving video definition
CN114387315A (en) Image processing model training method, image processing device, image processing equipment and image processing medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190405

RJ01 Rejection of invention patent application after publication