CN109756788A - Video caption automatic adjusting method and device, terminal and readable storage medium storing program for executing - Google Patents

Video caption automatic adjusting method and device, terminal and readable storage medium storing program for executing Download PDF

Info

Publication number
CN109756788A
CN109756788A CN201711071450.XA CN201711071450A CN109756788A CN 109756788 A CN109756788 A CN 109756788A CN 201711071450 A CN201711071450 A CN 201711071450A CN 109756788 A CN109756788 A CN 109756788A
Authority
CN
China
Prior art keywords
brightness
video
subtitle
terminal
font
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
Application number
CN201711071450.XA
Other languages
Chinese (zh)
Other versions
CN109756788B (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201711071450.XA priority Critical patent/CN109756788B/en
Priority to PCT/CN2018/113559 priority patent/WO2019085980A1/en
Publication of CN109756788A publication Critical patent/CN109756788A/en
Application granted granted Critical
Publication of CN109756788B publication Critical patent/CN109756788B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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
    • 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
    • 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/488Data services, e.g. news ticker

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of video caption automatic adjusting method and devices, terminal and readable storage medium storing program for executing, this method comprises: determining the target range between the viewer of viewing video and the terminal of broadcasting video when playing video;The font size of subtitle when video plays at the terminal is adjusted according to target range.And when playing video, the brightness value of current environment is determined using the collected brightness data of luminance sensor at interval of preset time period;The font brightness of subtitle when video plays at the terminal is adjusted according to the brightness value of current environment.Compared with the existing technology, can be realized based on the target range between viewer and terminal the font size of subtitle adjust automatically and brightness value based on current environment realize the font brightness of subtitle adjust automatically, meet user when watching video, demand to font size and font brightness improves the viewing experience of user.

Description

Video caption automatic adjusting method and device, terminal and readable storage medium storing program for executing
Technical field
The present invention relates to video caption field more particularly to a kind of video caption automatic adjusting method and device, terminal and Readable storage medium storing program for executing.
Background technique
In video display process, subtitle receives video content information convenient for user as a kind of except video speech Form exists, and user is facilitated to watch video.
Under normal conditions, in video display process, Subtitle Demonstration is in the lower section of video pictures, and no matter extraneous generation is assorted Variation (distance that such as viewer watches video becomes remote or light is bad), the display of subtitle is all static, subtitle The parameters such as size and subtitle brightness will not all change.
However, due to the display of current subtitle be all it is static, will not adjust automatically adapt to viewer demand (such as Demand for the font size of subtitle or the demand of subtitle brightness etc. for subtitle), the viewing experience of user is bad.
Summary of the invention
The main purpose of the present invention is to provide a kind of video caption automatic adjusting method and devices, terminal and readable storage Medium, it is intended to solve subtitle in the prior art display be all it is static, will not adjust automatically to adapt to the demand of viewer, The bad technical problem of the viewing experience of user.
To achieve the above object, first aspect present invention provides a kind of video caption automatic adjusting method, this method comprises:
When playing video, determine target between the viewer for watching the video and the terminal for playing the video away from From;
The font size of subtitle when the video plays on the terminal is adjusted according to the target range.
To achieve the above object, second aspect of the present invention provides a kind of video caption automatic adjusting method, this method comprises:
When playing video, current environment is determined using the collected brightness data of luminance sensor at interval of preset time period Brightness value;
The font brightness of subtitle when the video plays at the terminal is adjusted according to the brightness value of the current environment.
To achieve the above object, third aspect present invention provides a kind of video caption automatic regulating apparatus, comprising:
Determining module, for when playing video, determining the viewer for watching the video and playing the end of the video Target range between end;
Size adjusts module, for adjusting subtitle when the video plays on the terminal according to the target range Font size.
To achieve the above object, fourth aspect present invention provides a kind of video caption automatic regulating apparatus, comprising:
Brightness determining module, for utilizing luminance sensor collected bright at interval of preset time period when playing video Degree is according to the brightness value for determining current environment;
Brightness adjusting section, for adjusting word when the video plays at the terminal according to the brightness value of the current environment The font brightness of curtain.
To achieve the above object, fifth aspect present invention provides a kind of terminal, including memory, processor and is stored in institute The computer program stated on memory and run on the processor, which is characterized in that the processor executes the calculating When machine program, each step in video caption automatic adjusting method described in first aspect and/or second aspect is realized.
To achieve the above object, sixth aspect present invention provides a kind of readable storage medium storing program for executing, is stored thereon with computer journey Sequence when the computer program is executed by processor, realizes that video caption described in first aspect and/or second aspect is adjusted automatically Each step in adjusting method.
The present invention provides a kind of video caption automatic adjusting method, this method comprises: determining that viewing should when playing video Target range between the viewer of video and the terminal for playing the video adjusts video according to the target range and broadcasts at the terminal The font size of subtitle when putting.Compared with the existing technology, subtitle can be automatically adjusted at a distance from terminal based on viewer Font size, for example, also accordingly adjustment is big for the font size of subtitle, apart from hour, the font size of subtitle when apart from big Also it accordingly adjusts small, makes it possible to meet in the case where different distance, demand to size of caption when user watches video changes The viewing experience of kind user.
In addition, the present invention also provides another video caption automatic adjusting methods, this method comprises: when playing video, Determine the brightness value of current environment using the collected brightness data of brightness sensor at interval of preset time period, and according to working as The font brightness of subtitle when the brightness value adjustment video of preceding environment plays at the terminal.Compared with the existing technology, it can be based on working as The font brightness of the brightness value adjust automatically subtitle of preceding environment, for example, the font of subtitle is bright when the brightness value of current environment is big Degree also increases accordingly, and in the brightness value hour of current environment, the font brightness of subtitle also accordingly reduces, and makes it possible to meet not With ambient brightness in the case where, demand to font brightness when user watches video improves the viewing experience of user.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those skilled in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is a flow diagram of video caption automatic adjusting method in the embodiment of the present invention;
Fig. 2 is another flow diagram of video caption automatic adjusting method in the embodiment of the present invention;
Fig. 3 is another flow diagram of video caption automatic adjusting method in the embodiment of the present invention;
Fig. 4 is another flow diagram of video caption automatic adjusting method in the embodiment of the present invention;
Fig. 5 is a structural schematic diagram of the program module of video caption automatic regulating apparatus in the embodiment of the present invention;
Fig. 6 is another structural schematic diagram of the program module of video caption automatic regulating apparatus in the embodiment of the present invention;
Fig. 7 is another structural schematic diagram of the program module of video caption automatic regulating apparatus in the embodiment of the present invention;
Fig. 8 is another structural schematic diagram of the program module of video caption automatic regulating apparatus in the embodiment of the present invention;
Fig. 9 is the structural schematic diagram of terminal in the embodiment of the present invention;
Figure 10 a is the schematic diagram of a scenario that viewer watches TV in the embodiment of the present invention;
Figure 10 b and Figure 10 c are the schematic diagram of the display interface for the television set that viewer watches in the embodiment of the present invention;
Figure 10 d is another schematic diagram of a scenario that viewer watches TV in the embodiment of the present invention;
Figure 10 e and Figure 10 f are the schematic diagram of the display interface for the television set that viewer watches in the embodiment of the present invention.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality Applying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, those skilled in the art Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Due to the display of subtitle in the prior art be all it is static, will not adjust automatically to adapt to the demand of viewer, deposit In the bad technical problem of the viewing experience of user.
In order to solve the above-mentioned technical problem, the present invention propose video caption automatic adjusting method, by according to viewer with The font size of subtitle, made it possible to based on viewer and end when target range adjustment video between terminal plays at the terminal The font size apart from adjust automatically subtitle at end, and/or, video is adjusted at end by the brightness value of collected current environment The font brightness of subtitle, makes it possible to the font brightness of the brightness value adjust automatically subtitle based on current environment when playing on end. By the above-mentioned means, making it possible to meet in the case where different distance and/or different ambient brightness, when user watches video Demand to font size and/or font brightness improves the viewing experience of user.
Referring to Fig. 1, for the flow diagram of video caption automatic adjusting method in the embodiment of the present invention, this method packet It includes:
Step 101, when playing video, determine between the viewer for watching the video and the terminal for playing the video Target range;
Step 102, the font size that subtitle when the video plays on the terminal is adjusted according to the target range.
In embodiments of the present invention, video caption automatic adjusting method can be (following by video caption automatic regulating apparatus It referred to as are as follows: adjustment device) realizes, which can be television set perhaps mobile terminal or television set or movement A part in terminal, the adjustment device specifically can be program module, be stored in the computer of television set or mobile terminal In readable storage medium storing program for executing, and is called and executed by processor.
When playing video, adjustment device will determine the target range between viewer and the terminal for playing video, wherein Adjustment device can determine a target range at interval of preset time period, which can be system default value, can also be with It is the value of user setting, for example, the preset time period can be 5s, i.e. regulating device executes an embodiment of the present invention at interval of 5s In technical solution.
Wherein, viewer refers to the user within the scope of the viewing of terminal, if user is within the scope of the viewing of terminal, It can be seen that the content that the display interface of terminal plays.Wherein, terminal is to adjust terminal belonging to device.
Wherein, after obtaining the target range between viewer and terminal, video will be adjusted according to the target range and existed The font size of subtitle when being played in terminal.
It wherein, is soft subtitile mode, hard subtitling mode and without subtitling mode respectively there are three types of the subtitling modes of video.
Soft subtitile mode refer to the subtitle of video be it is self-existent, under soft subtitile mode, the carrier of subtitle is common Have: two kinds of forms of caption stream in external subtitle files and video file.External subtitle files refer to that subtitle is stored in independently of view In a kind of digital text file except frequency file, when playing video, need to get video file and the outside of video Subtitle file.Caption stream is that group is woven in subtitle together with audio track, track of video in a manner of data-track in video file Inside video file.Under soft subtitile mode, when playing video, it can be directly obtained the subtitle of video, and to subtitle Font size is adjusted.
Hard subtitling mode refers to that subtitle has been added on the corresponding video image frame of video data in audio production, Video file is generated behind interflow as a part of video image frame, and through overcompression, audio-video.Under hard subtitling mode, if The font size for needing to adjust subtitle needs to come out caption recognition using subtitle coding tool, such as optical character identification (Optical Character Recognition, OCR) technology, so as to the subtitle that simultaneous display extracts, and to extracting The font size of the subtitle come is adjusted.
No subtitling mode refers to both without soft subtitile or without hard subtitle, and video is in normal play, the image of display It is not no subtitle.However, if viewer wants viewing subtitle, can star preset caption recognition in no subtitling mode Method is carried out caption recognition processing to the audio data of video file for example, can use ASR technology, is obtained based on audio data To the subtitle of video, and in video playing, synchronously displaying subtitle, so that still being able under no subtitling mode as viewer Show subtitle.Further, the font size of the subtitle obtained based on audio data can be adjusted.
In embodiments of the present invention, it when playing video, determines the viewer for watching the video and plays the end of the video Target range between end adjusts the font size of subtitle when video plays at the terminal according to the target range.Relative to existing There is technology, can automatically adjust the font size of subtitle at a distance from terminal based on viewer, for example, when apart from big, word Also accordingly adjustment is big for the font size of curtain, and apart from hour, the font size of subtitle also accordingly adjusts small, makes it possible to meet and exists In the case where different distance, demand to size of caption when user watches video improves the viewing experience of user.
Referring to Fig. 2, for the flow diagram of video caption automatic adjusting method in the embodiment of the present invention, this method packet It includes:
Step 201, when playing video, detected at interval of preset time period within the scope of the viewing of the terminal with the presence or absence of barrier Hinder object;
Step 202, if it exists barrier then detect in the barrier with the presence or absence of viewer;
Step 203, if it exists viewer are determined between the viewer and the terminal using ultrasonic measuring distance technology Target range;
In embodiments of the present invention, step 201 to step 203 is the refinement step of step 101 shown in Fig. 1.
Wherein, when playing video, whether adjustment device will be deposited within the scope of the viewing for detecting terminal at interval of preset time period In barrier, the detection of the barrier can be the camera of starting terminal, shoot image by the camera, adjustment device will Image analysis is carried out to the image taken, can determine in the image whether include barrier in the way of image analysis, And comprising barrier, the location of each barrier and shape etc. information.Wherein, which carries out The viewing range of the image range and terminal that can take when shooting is consistent.
Wherein, barrier can be viewer, be also possible to sofa, vase etc..
Wherein, in the presence of obstructions, it will further determine whether comprising viewer in barrier, such as: benefit It is detected in all barriers with iris recognition technology with the presence or absence of the barrier comprising human eye, specifically be can be, successively to each barrier Region where hindering object carries out iris recognition, whether there is the son for meeting human eye feature in the region where each barrier of determination Region, if comprising meeting the region of human eye feature in region where barrier, it is determined that the barrier includes human eye, goes forward side by side one The determination of the step barrier is viewer.
It is understood that in practical applications, other than iris recognition technology, there are also other technologies can be used for It detects whether barrier is viewer, such as after obtaining the information such as the location of barrier and shape, is known using face Other technology carries out recognition of face, if in barrier including face, it is determined that the barrier is viewer, alternatively, can also be in advance The body shape of human body in different positions is set, and the shape of barrier is matched with pre-set body shape, In, the shape of barrier can be zoomed in or out based on human body proportion, for example, preset body shape be based on normally at When year people setting, and when barrier is child, then the shape of the barrier can be amplified based on human body proportion.If pre- In the body shape set, when being matched to the shape matching degree of barrier more than or equal to pre-set numerical value body shape, Then determine that the barrier is viewer.Therefore, in practical applications, suitable mode can be selected to detect according to specific circumstances Whether barrier is viewer, herein without limitation.
In embodiments of the present invention, after detecting viewer, adjustment device will be determined using ultrasonic measuring distance technology Target range between viewer and terminal, it is specific: ultrasonic transmitter and ultrasonic receiver to be provided in terminal, true Surely in the case where there is viewer, adjustment device calls the direction transmitting ultrasonic wave letter where the ultrasonic transmitter to viewer Number, wherein ultrasonic receiver will receive the reflected ultrasonic signal from viewer, and adjustment device will be surpassed The time of sonic generator transmitting signal and ultrasonic receiver receive the time of signal, determine the transmission duration of ultrasonic wave, And the transmission range of ultrasonic signal is calculated using the transmission duration and the transmission speed of ultrasonic signal, which is Target range between terminal and viewer.
It is understood that the distance between the viewer and terminal can be made if only detecting a viewer It can use the distance between multiple viewer and terminal averaging if detecting multiple viewers for the target range Value, using the average value as target range, alternatively, in the case where there is multiple viewers, from multiple viewer and terminal In distance, maximum distance is determined, using the maximum distance as target range.
Step 204 searches pre-set multiple distance ranges, determine the last viewer determined and the terminal it Between distance and the target range whether be in the same distance range;
If step 205 is in the same distance range, the word is shown according to the font size that the last time determines Curtain;
It is described to be existed according to the target range adjustment video if step 206 is not in the same distance range The font size of subtitle when being played in the terminal.
In embodiments of the present invention, in order to preferably adjust font size, multiple distance ranges are preset, for example, with 0.5 meter is arranged multiple distance ranges for interval.And multiple distance range is continuous, if such as three distance ranges, then distinguish For (0, a1], (a1, a2] and (a2, a3], adjustment device searches pre-set multiple distance ranges, determines last determine Viewer and the distance between terminal and target range whether be in the same distance range.Wherein, the last time determines The distance between viewer and terminal save in memory, and the viewer of last viewing and this viewer can phases With can also be different, the adjustment of the font size of subtitle is not interfered with.
If viewer that the last time determines and the distance between terminal and currently available target range in it is same away from From in range, then showing that distance change is little, and and not up to adjust the condition of font size, at this point, will be still according to upper one The font size of secondary determination shows subtitle.If being not in the same distance range, demonstrate the need for being adjusted according to target range The font size of subtitle when video plays at the terminal.
In embodiments of the present invention, above-mentioned multiple and different distance range is not only pre-set, this is also pre-set Corresponding relationship between the font size of multiple and different distance range and subtitle, for example, it is corresponding font that distance range, which is A, Size is a, and corresponding font size is b when distance range is B.At a distance from upper once determining viewer is between terminal with It, will be between the font size that above-mentioned distance range and subtitle be searched in the case that target range is not in the same distance range Corresponding relationship, determine distance range belonging to the target range, and further determine that distance range belonging to the target range Corresponding font size, and after determining font size, subtitle is shown according to the font size.
It is understood that after determining font size, it specifically can be by way of modifying Subtitle Demonstration parameter, it will Font size in display parameters is revised as the font size determined based on target range, so as to according to current detection is based on To target range determine font size show subtitle.
It should be noted that maximum distance is conditional in above-mentioned multiple and different distance ranges, and and terminal Type it is related, if such as terminal is television set, maximum distance is limited in 4 meters, i.e., multiple and different distance ranges it is total Length can be 4 meters, if being divided into 5 different distance ranges, will respectively correspond 5 kinds of different font sizes, 5 kinds of words Body size is the increase with distance under normal conditions and increases, so as to user with terminal distance farther out, at such as 3.5 meters, It still is able to see the subtitle of the display on television set.Wherein, the design of font size can be based on the display screen of terminal Size and the limitation of above-mentioned maximum distance be designed, to provide better viewing experience for user.
In embodiments of the present invention, when playing video, at interval of preset time period detection terminal viewing within the scope of whether There are barriers, and barrier, then be to be detected whether there is the barrier comprising human eye by technology using iris, if it exists if it exists Barrier comprising human eye, then be determined as viewer for the barrier, determines viewer and terminal using ultrasonic measuring distance technology Between target range, search pre-set distance range, determine the distance between the last viewer determined and terminal And whether the target range is in the same distance range, if in the same distance range, according to last word Body size shows subtitle, if being not in the same distance range, when being played at the terminal according to target range adjustment video The font size of subtitle.By the above-mentioned means, can be realized based on the distance between viewer and terminal big to the font of subtitle Small adjustment is effectively improved viewing experience so that the subtitle that terminal is shown more meets the viewing demand of viewer.
In order to better understand the technical solution in Fig. 1 and embodiment illustrated in fig. 2, above-mentioned technical proposal is explained below Concrete application scene please refers to Figure 10 a, is in the embodiment of the present invention, viewer watches the schematic diagram of a scenario of TV, wherein see The person of seeing A is watching TV, and detection device 1002 is provided on television set 1001, which can be located at television set 1001 lower right corner or the lower left corner or any position of television set display interface lower edge are detection devices in Figure 10 a 1002 by be located at television set 1001 the lower right corner for be illustrated, the detection device include camera, ultrasonic transmitter and Ultrasonic receiver, the camera can use ultrasonic transmitter and ultrasonic wave receive after detecting the presence of viewer A Device determines the distance between viewer A and television set 1001, as shown in Figure 10 a, the dotted line between television set 1001 and viewer A The as determining distance C of ultrasonic wave.
If the distance that detects of last time is distance B, television set 1001 will be searched preset multiple using above-mentioned distance C Distance range determines distance B and distance C whether in the same distance range, if distance B is in first distance range, distance C In second distance range, since first distance range is greater than second distance range, then show viewer A and television set 1001 it Between distance increase, and reached adjustment subtitle font size condition, therefore, the subtitle that television set 1001 is shown Font size increase to the corresponding font size of second distance range.Figure 10 b and Figure 10 c is please referred to, is the embodiment of the present invention The schematic diagram of the display interface for the television set that middle viewer watches, in figure 10b, the font size of the subtitle of display are distance The corresponding font size of first distance range belonging to B, in Figure 10 c, the font size of the subtitle of display is the belonging to distance C The corresponding font size of one distance range, and " may I ask someone to exist from can be seen that the subtitle in Figure 10 c in Figure 10 b and Figure 10 c Family? " font size be greater than Figure 10 b in subtitle " may I ask someone to be in " font size.
Above-mentioned Fig. 1 and Fig. 2 the embodiment described describes to adjust subtitle based on the distance between viewer and terminal The mode of font size can be effectively solved in the prior art, viewer no matter apart from terminal how far, the font size of subtitle The problem of all immobilizing, causing viewer that may not see Chu's subtitle.In addition, in the side of another video caption adjust automatically In case, it is also based on the font brightness of ambient brightness adjustment subtitle, this method can be effectively solved in the prior art, environment The problem of brightness is either how many, and the font brightness of subtitle all immobilizes, causes viewer that may not see Chu's subtitle, specifically , referring to Fig. 3, for the flow diagram of video caption automatic adjusting method in the embodiment of the present invention, this method comprises:
Step 301, when playing video, determined at interval of preset time period using the collected brightness data of luminance sensor The brightness value of current environment;
Step 302, the font that subtitle when the video plays at the terminal is adjusted according to the brightness value of the current environment Brightness.
In embodiments of the present invention, video caption automatic adjusting method can be (following by video caption automatic regulating apparatus It referred to as are as follows: adjustment device) realizes, which can be television set perhaps mobile terminal or television set or movement A part in terminal, the adjustment device specifically can be program module, are stored in television set or the readable of mobile terminal is deposited In storage media, and is called and executed by processor.
Wherein, terminal is when playing video, and since luminance sensor has been arranged in the terminal, the luminance sensor is for adopting Collect the brightness data of current environment, adjustment device will not be spaced preset time period and obtain the collected brightness number of the luminance sensor According to, and the brightness data is utilized, obtain the brightness value of current environment.
Wherein, which can be system default value, be also possible to the value of user setting, for example, the preset time period It can be 5s, i.e. regulating device obtains luminance sensor collected brightness data in nearest 5s at interval of 5s.
Wherein, after obtaining the brightness value of current environment, by the brightness value adjustment video using current environment in terminal The font brightness of subtitle when upper broadcasting.
It wherein, is soft subtitile mode, hard subtitling mode and without subtitling mode respectively there are three types of the subtitling modes of video.
Soft subtitile mode refer to the subtitle of video be it is self-existent, under soft subtitile mode, the carrier of subtitle is common Have: two kinds of forms of caption stream in external subtitle files and video file.External subtitle files refer to that subtitle is stored in independently of view In a kind of digital text file except frequency file, when playing video, need to get video file and the outside of video Subtitle file.Caption stream is that group is woven in subtitle together with audio track, track of video in a manner of data-track in video file Inside video file.Under soft subtitile mode, when playing video, it can be directly obtained the subtitle of video, and to subtitle Font brightness is adjusted.
Hard subtitling mode refers to that subtitle has been added on the corresponding video image frame of video data in audio production, Video file is generated behind interflow as a part of video image frame, and through overcompression, audio-video.Under hard subtitling mode, if The font brightness for needing to adjust subtitle needs to come out caption recognition and simultaneous display using subtitle coding tool, so as to mentioning The font brightness of the subtitle taken out is adjusted.
No subtitling mode refers to both without soft subtitile or without hard subtitle, and video is in normal play, the image of display It is not no subtitle.However, if viewer wants viewing subtitle, can star preset caption recognition in no subtitling mode Method is carried out caption recognition processing to the audio data of video file for example, can use ASR technology, is obtained based on audio data To the subtitle of video, and in video playing, synchronously displaying subtitle, so that still being able under no subtitling mode as viewer Show subtitle.Further, can the font brightness to the subtitle obtained based on audio data be adjusted.
In embodiments of the present invention, it when playing video, is collected at interval of preset time period using brightness sensor Brightness data determine the brightness value of current environment, and word when video plays at the terminal is adjusted according to the brightness value of current environment The font brightness of curtain.It compared with the existing technology, can be based on the font brightness of the brightness value adjust automatically subtitle of current environment, example Such as, when the brightness value of current environment is big, the font brightness of subtitle is also increased accordingly, in the brightness value hour of current environment, word Curtain font brightness also accordingly reduce, make it possible to meet in the case where different ambient brightness, user watch video when pair The demand of font brightness improves the viewing experience of user.
Referring to Fig. 4, for another flow diagram of video caption automatic adjusting method in the embodiment of the present invention, comprising:
Step 401, when playing video, determined at interval of preset time period using the collected brightness data of luminance sensor The brightness value of current environment;
Step 402 searches pre-set multiple ambient brightness ranges, determine the brightness value of the last environment determined with Whether the brightness value of the current environment is within the scope of the same ambient brightness;
If step 403, within the scope of the same ambient brightness, show according to the font brightness that the last time determines described in Subtitle;
If step 404 is not within the scope of the same ambient brightness, pre-set ambient brightness range and word are searched Corresponding relationship between the font brightness of curtain, determination are corresponding with ambient brightness range belonging to the brightness value of the current environment Font brightness;
Step 405 shows subtitle according to the corresponding font brightness.
In embodiments of the present invention, in order to preferably adjust font brightness, multiple ambient brightness ranges are preset, and should Multiple ambient brightness ranges are continuous, and adjustment device will search multiple ambient brightness range, determine the last environment determined Whether the brightness value of brightness value and current environment is within the scope of the same ambient brightness, wherein the environment that the last time determines Brightness value saves in memory.
If the brightness value of environment and the brightness value of current environment that the last time determines are in the same distance range, table Brightness variation less, and not up to adjusts the condition of font brightness, at this point, the font brightness that will be determined still according to the last time Show subtitle.If being not in the same distance range, demonstrate the need for being broadcast at the terminal according to present intensity value adjustment video The font brightness of subtitle when putting.
In embodiments of the present invention, above-mentioned multiple ambient brightness ranges are not only pre-set, it is more also to pre-set this Corresponding relationship between a varying environment brightness range and the font brightness of subtitle, upper once determining environment brightness value with In the case that the brightness value of current environment is not within the scope of the same ambient brightness, it is bright that adjustment device will search above-mentioned environment The corresponding relationship between range and the font brightness of subtitle is spent, determines ambient brightness range belonging to the brightness value of current environment, And further determine that the corresponding font brightness of ambient brightness range described in the brightness value of current environment, and determining font brightness Later, subtitle is shown according to the font brightness.
It is understood that after determining font brightness, it specifically can be by way of modifying Subtitle Demonstration parameter, it will Font brightness in display parameters is revised as the font brightness determined based on the brightness value of current environment, so as to according to being based on The font brightness that the brightness value of current environment determines shows subtitle.It is understood that the tune of the font brightness in display parameters The brightness of the whole whole region that specifically can be adjustment caption display area, the latter can be the brightness for only adjusting subtitle itself, It can be arranged as the case may be in practical applications, herein without limitation.
It should be noted that the division of multiple ambient brightness ranges can be arranged according to duplicate experiment or experience, and Multiple ambient brightness range and the corresponding relationship of font brightness can also be arranged according to duplicate experiment or experience, so as to The font brightness best to effect corresponding to varying environment brightness range, provides better viewing experience for user.
In embodiments of the present invention, collected bright using luminance sensor at interval of preset time period when playing video Degree searches pre-set multiple ambient brightness ranges according to the brightness value for determining current environment, determines the last ring determined Whether the brightness value in border and the brightness value of current environment are within the scope of the same ambient brightness, if being in the same ambient brightness In range, then the font brightness determined according to the last time shows that subtitle is searched if being not within the scope of the same ambient brightness Corresponding relationship between pre-set ambient brightness range and the font brightness of subtitle, the determining brightness with the current environment The corresponding font brightness of ambient brightness range belonging to value, and subtitle is shown according to the corresponding font brightness.Pass through above-mentioned side Formula, can the brightness value based on current environment the font brightness of subtitle is adjusted, so as to the brightness for the subtitle that terminal is shown The viewing demand for more meeting viewer, is effectively improved viewing experience.
It is understood that adjustment and the word of the brightness value based on current environment of the font size of the subtitle based on distance The adjustment of the font brightness of curtain belongs to mutual independent technical solution, and can be performed simultaneously in the same terminal.
In order to better understand the technical solution in Fig. 3 and embodiment illustrated in fig. 4, above-mentioned technical proposal is explained below Concrete application scene please refers to Figure 10 d, is in the embodiment of the present invention, user watches the schematic diagram of a scenario of TV, wherein viewing Person A is watching TV, and luminance sensor 1003 is provided on television set 1001, which can be located at TV Any one position of machine 1001 is luminance sensor 1003 in Figure 10 d to be illustrated for being located at the right side of television set 1001, Television set 1001 will obtain the collected brightness data of the luminance sensor at interval of preset time period, and determine the bright of current environment Angle value is brightness E.
If the brightness that detects of last time is brightness F, television set 1001 will be searched preset multiple using above-mentioned brightness E Ambient brightness range determines brightness E and brightness F whether within the scope of the same ambient brightness, if to be in first environment bright by brightness E It spends in range, brightness F is in second environment brightness range, since first environment brightness range is less than second environment brightness model It encloses, shows that the brightness value of current environment is dimmed, see subtitle for the ease of user, needed at this time by broadcasting on display interface The font brightness put lightens, and therefore, the brightness of the caption area for the subtitle that television set 1001 is shown increases to first environment The corresponding font brightness of brightness range.Figure 10 e and Figure 10 f is please referred to, is the display interface of television set in the embodiment of the present invention Schematic diagram, in figure 10e, in the case where the brightness value of current environment is brightness E, the font brightness of display screen still according to When second environment brightness range belonging to brightness F is shown, the display interface that user watches, in Figure 10 f, in current environment It is that first environment brightness range belonging to brightness E is corresponding by the font brightness adjustment of display screen in the case that brightness value is brightness E Font brightness after, display interface that user watches.From subtitle " this that can be seen that in Figure 10 e and Figure 10 f in Figure 10 e Hua Zhen is good-looking " font brightness be less than Figure 10 f in subtitle " this spends very good-looking " font brightness.
Referring to Fig. 5, for the structural schematic diagram of the program module of video caption automatic regulating apparatus in the embodiment of the present invention, The device includes:
Determining module 501, for when playing video, determining the viewer for watching the video and playing the video Target range between terminal;
Size adjusts module 502, for adjusting word when the video plays on the terminal according to the target range The font size of curtain.
It wherein, is soft subtitile mode, hard subtitling mode and without subtitling mode respectively there are three types of the subtitling modes of video.
Soft subtitile mode refer to the subtitle of video be it is self-existent, under soft subtitile mode, the carrier of subtitle is common Have: two kinds of forms of caption stream in external subtitle files and video file.External subtitle files refer to that subtitle is stored in independently of view In a kind of digital text file except frequency file, when playing video, need to get video file and the outside of video Subtitle file.Caption stream is that group is woven in subtitle together with audio track, track of video in a manner of data-track in video file Inside video file.Under soft subtitile mode, when playing video, it can be directly obtained the subtitle of video, and to subtitle Font size is adjusted.
Hard subtitling mode refers to that subtitle has been added on the corresponding video image frame of video data in audio production, Video file is generated behind interflow as a part of video image frame, and through overcompression, audio-video.Under hard subtitling mode, if The font size for needing to adjust subtitle needs to come out caption recognition using subtitle coding tool, so as to the word extracted Curtain font size be adjusted, and with video file simultaneous display.
No subtitling mode refers to both without soft subtitile or without hard subtitle, and video is in normal play, the image of display It is not no subtitle.However, if viewer wants viewing subtitle, can star preset caption recognition in no subtitling mode Method is carried out caption recognition processing to the audio data of video file for example, can use ASR technology, is obtained based on audio data To the subtitle of video, and in video playing, synchronously displaying subtitle, so that still being able under no subtitling mode as viewer Show subtitle.Further, the font size of the subtitle obtained based on audio data can be adjusted.
In embodiments of the present invention, it when playing video, determines the viewer for watching the video and plays the end of the video Target range between end adjusts the font size of subtitle when video plays at the terminal according to the target range.Relative to existing There is technology, can automatically adjust the font size of subtitle at a distance from terminal based on viewer, for example, when apart from big, word Also accordingly adjustment is big for the font size of curtain, and apart from hour, the font size of subtitle also accordingly adjusts small, makes it possible to meet and exists In the case where different distance, demand to size of caption when user watches video improves the viewing experience of user.
Referring to Fig. 6, for the structural schematic diagram of the program module of video caption automatic regulating apparatus in the embodiment of the present invention, The device includes: determining module 501 in embodiment as shown in Figure 5 and size adjustment module 502, and and embodiment illustrated in fig. 5 Described in content it is similar, be not repeated herein.
Wherein it is determined that module 501 includes:
Detection module 601, for when playing video, being detected within the scope of the viewing of the terminal at interval of preset time period to be It is no that there are barriers;
Human eye detection module 602 then detects in the barrier for barrier if it exists with the presence or absence of viewer;
The viewer and institute are determined using ultrasonic measuring distance technology for viewer if it exists apart from determining module 603 State the target range between terminal.
Further, which includes:
It is determined apart from searching module 604 for searching pre-set multiple distance ranges after determining module 501 Whether the distance between last time determining viewer and the terminal and the target range are in the same distance range;
First display module 605, if in the same distance range, according to the font size that the last time is determining Show the subtitle;
Execution module 606, if executing the size adjustment module for being not in the same distance range.
Wherein, size adjustment module 502 includes:
Size searching module 607, it is corresponding between pre-set distance range and the font size of subtitle for searching Relationship determines font size corresponding with distance range belonging to the target range;
Second display module 608, for showing subtitle according to the corresponding font size.
It is understood that the distance between the viewer and terminal can be made if only detecting a viewer It can use the distance between multiple viewer and terminal averaging if detecting multiple viewers for the target range Value, using the average value as target range, alternatively, in the case where there is multiple viewers, from multiple viewer and terminal In distance, maximum distance is determined, using the maximum distance as target range.
In embodiments of the present invention, in order to preferably adjust font size, multiple distance ranges are preset, for example, with 0.5 meter is arranged multiple distance ranges for interval.And multiple distance range is continuous, if such as three distance ranges, then distinguish For (0, a1], (a1, a2] and (a2, a3].
It should be noted that maximum distance is conditional in above-mentioned multiple and different distance ranges, and and terminal Type it is related, if such as terminal is television set, maximum distance is limited in 4 meters, i.e., multiple and different distance ranges it is total Length can be 4 meters, if being divided into 5 different distance ranges, will respectively correspond 5 kinds of different font sizes, 5 kinds of words Body size is the increase with distance under normal conditions and increases, so as to user with terminal distance farther out, at such as 3.5 meters, It still is able to see the subtitle of the display on television set.Wherein, the design of font size can be based on the display screen of terminal Size and the limitation of above-mentioned maximum distance be designed, to provide better viewing experience for user.
In embodiments of the present invention, when playing video, at interval of preset time period detection terminal viewing within the scope of whether There are barriers, and barrier, then be to be detected whether there is the barrier comprising human eye by technology using iris, if it exists if it exists Barrier comprising human eye, then be determined as viewer for the barrier, determines viewer and terminal using ultrasonic measuring distance technology Between target range, search pre-set distance range, determine the distance between the last viewer determined and terminal And whether the target range is in the same distance range, if in the same distance range, according to last word Body size shows subtitle, if being not in the same distance range, when being played at the terminal according to target range adjustment video The font size of subtitle.By the above-mentioned means, can be realized based on the distance between viewer and terminal big to the font of subtitle Small adjustment is effectively improved viewing experience so that the subtitle that terminal is shown more meets the viewing demand of viewer.
Referring to Fig. 7, for the structural schematic diagram of the program module of video caption automatic regulating apparatus in the embodiment of the present invention, The device includes:
Brightness determining module 701, for utilizing luminance sensor collected at interval of preset time period when playing video Brightness data determines the brightness value of current environment;
Brightness adjusting section 702 plays at the terminal for adjusting the video according to the brightness value of the current environment When subtitle font brightness.
It wherein, is soft subtitile mode, hard subtitling mode and without subtitling mode respectively there are three types of the subtitling modes of video.
Soft subtitile mode refer to the subtitle of video be it is self-existent, under soft subtitile mode, the carrier of subtitle is common Have: two kinds of forms of caption stream in external subtitle files and video file.External subtitle files refer to that subtitle is stored in independently of view In a kind of digital text file except frequency file, when playing video, need to get video file and the outside of video Subtitle file.Caption stream is that group is woven in subtitle together with audio track, track of video in a manner of data-track in video file Inside video file.Under soft subtitile mode, when playing video, it can be directly obtained the subtitle of video, and to subtitle Font brightness is adjusted.
Hard subtitling mode refers to that subtitle has been added on the corresponding video image frame of video data in audio production, Video file is generated behind interflow as a part of video image frame, and through overcompression, audio-video.Under hard subtitling mode, if The font brightness for needing to adjust subtitle needs to come out caption recognition using subtitle coding tool, so as to the word extracted Curtain font brightness be adjusted, and with video file simultaneous display.
No subtitling mode refers to both without soft subtitile or without hard subtitle, and video is in normal play, the image of display It is not no subtitle.However, if viewer wants viewing subtitle, can star preset caption recognition in no subtitling mode Method is carried out caption recognition processing to the audio data of video file for example, can use ASR technology, is obtained based on audio data To the subtitle of video, and in video playing, synchronously displaying subtitle, so that still being able under no subtitling mode as viewer Show subtitle.Further, can the font brightness to the subtitle obtained based on audio data be adjusted.
In embodiments of the present invention, it when playing video, is collected at interval of preset time period using brightness sensor Brightness data determine the brightness value of current environment, and word when video plays at the terminal is adjusted according to the brightness value of current environment The font brightness of curtain.It compared with the existing technology, can be based on the font brightness of the brightness value adjust automatically subtitle of current environment, example Such as, when the brightness value of current environment is big, the font brightness of subtitle is also increased accordingly, in the brightness value hour of current environment, word Curtain font brightness also accordingly reduce, make it possible to meet in the case where different ambient brightness, user watch video when pair The demand of font brightness improves the viewing experience of user.
Referring to Fig. 8, another structure for the program module of video caption automatic regulating apparatus in the embodiment of the present invention is shown It is intended to, which includes brightness determining module 701 and brightness adjusting section 702 as shown in Figure 7, and and embodiment illustrated in fig. 7 Described in content it is similar, be not repeated herein.
In embodiments of the present invention, brightness adjusting section 702 includes:
Brightness searching module 801, for searching between pre-set ambient brightness range and the font brightness of subtitle Corresponding relationship determines font brightness corresponding with ambient brightness range belonging to the brightness value of the current environment;
Display module 802, for showing subtitle according to the corresponding font brightness.
In embodiments of the present invention, device further include:
Range-based searching module 803 determines the last ring determined for searching pre-set multiple ambient brightness ranges Whether the brightness value of the brightness value in border and the current environment is within the scope of the same ambient brightness;
Brightness display module 804, if within the scope of the same ambient brightness, according to the font that the last time is determining Brightness shows the subtitle;
Trigger module 805, if continuing to execute the brightness adjustment mould for being not within the scope of the same ambient brightness Block 702.
It should be noted that the division of multiple ambient brightness ranges can be arranged according to duplicate experiment or experience, and Multiple ambient brightness range and the corresponding relationship of font brightness can also be arranged according to duplicate experiment or experience, so as to The font brightness best to effect corresponding to varying environment brightness range, provides better viewing experience for user.
In embodiments of the present invention, collected bright using luminance sensor at interval of preset time period when playing video Degree searches pre-set multiple ambient brightness ranges according to the brightness value for determining current environment, determines the last ring determined Whether the brightness value in border and the brightness value of current environment are within the scope of the same ambient brightness, if being in the same ambient brightness In range, then the font brightness determined according to the last time shows that subtitle is searched if being not within the scope of the same ambient brightness Corresponding relationship between pre-set ambient brightness range and the font brightness of subtitle, the determining brightness with the current environment The corresponding font brightness of ambient brightness range belonging to value, and subtitle is shown according to the corresponding font brightness.Pass through above-mentioned side Formula, can the brightness value based on current environment the font brightness of subtitle is adjusted, so as to the brightness for the subtitle that terminal is shown The viewing demand for more meeting viewer, is effectively improved viewing experience.
Also provide a kind of terminal in the embodiment of the present invention, including memory, processor and storage on a memory and are being located The computer program run on reason device when processor executes computer program, is realized in any one embodiment as shown in Figure 1 to Figure 4 Video caption automatic adjusting method in each step.
A kind of computer readable storage medium is also provided in the embodiment of the present invention, is stored thereon with computer program, it is special Sign is, when the computer program is executed by processor, realizes the video caption in any one embodiment as shown in Figure 1 to Figure 4 Each step of automatic adjusting method.
Technical solution in embodiment in order to better understand the present invention, referring to Fig. 9, for terminal in the embodiment of the present invention 90 structural schematic diagram.The terminal 90 includes processor 901, memory 902 and transceiver 903, and memory 902 may include only Memory and random access memory are read, and provides operational order and data to processor 901.A part of memory 902 is also It may include nonvolatile RAM (NVRAM).
In some embodiments, memory 902 stores following element: executable modules or data structures, or Their subset of person or their superset.
In embodiments of the present invention, by calling the operational order of the storage of memory 902, (operational order is storable in behaviour Make in system), it executes process below: when playing video, determining the viewer for watching the video and play the video Terminal between target range;The font of subtitle when the video plays on the terminal is adjusted according to the target range Size, and/or, it executes following procedure: when playing video, utilizing the collected brightness of luminance sensor at interval of preset time period Data determine the brightness value of current environment;The word when video plays at the terminal is adjusted according to the brightness value of the current environment The font brightness of curtain.
Compared with prior art, terminal provided in an embodiment of the present invention, can be based on the target between viewer and terminal Distance realize the adjust automatically of the font size of subtitle and brightness value based on current environment realize the font brightness of subtitle Adjust automatically, meets user when watching video, and the demand to font size and font brightness improves the viewing experience of user.
Wherein, the operation of 901 controlling terminal 90 of processor, processor 901 can also be known as CPU (Central Processing Unit, central processing unit).Memory 902 may include read-only memory and random access memory, and Instruction and data is provided to processor 901.The a part of of memory 902 can also include nonvolatile RAM (NVRAM).The various components of terminal 90 are coupled by bus system 904 in specific application, wherein bus system 904 It can also include power bus, control bus and status signal bus in addition etc. in addition to including data/address bus.But for clear theory For the sake of bright, various buses are all designated as bus system 904 in figure.
The method that the embodiments of the present invention disclose can be applied in processor 901, or be realized by processor 901. Processor 901 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 901 or the instruction of software form.Above-mentioned processing Device 901 can be general processor, digital signal processor (DSP), specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.May be implemented or Person executes disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be microprocessor or Person's processor is also possible to any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be straight Connect and be presented as that hardware decoding processor executes completion, or in decoding processor hardware and software module combination executed At.Software module can be located at random access memory, and flash memory, read-only memory, programmable read only memory or electrically-erasable can In the storage medium of this fields such as programmable memory, register maturation.The storage medium is located at memory 902, and processor 901 is read Information in access to memory 902, in conjunction with the step of its hardware completion above method.
Above terminal 90 can the description refering to fig. 1 to the part Fig. 8 understood that this place, which is not done, excessively to be repeated.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or module Letter connection can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical module, it can and it is in one place, or may be distributed over multiple On network module.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in a processing module 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.
If the integrated module is realized in the form of software function module and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Terminal (can be personal computer, server or the network terminal etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this hair Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
The above are to a kind of video caption automatic adjusting method provided by the present invention and device, terminal and readable storage medium The description of matter, for those skilled in the art, thought according to an embodiment of the present invention, in specific embodiment and application range Upper there will be changes, and to sum up, the contents of this specification are not to be construed as limiting the invention.

Claims (15)

1. a kind of video caption automatic adjusting method, which is characterized in that the described method includes:
When playing video, the target range between the viewer for watching the video and the terminal for playing the video is determined;
The font size of subtitle when the video plays on the terminal is adjusted according to the target range.
2. the method according to claim 1, wherein the determining viewer for watching the video and broadcasting institute State the distance between the terminal of video, comprising:
Detect within the scope of the viewing of the terminal that whether there are obstacles at interval of preset time period;
Barrier if it exists then detects in the barrier with the presence or absence of viewer;
Viewer if it exists determines the target range between the viewer and the terminal using ultrasonic measuring distance technology.
3. according to the method described in claim 2, it is characterized in that, described adjust the video in institute according to the target range The font size of subtitle when playing in terminal is stated, before further include:
Pre-set multiple distance ranges are searched, determine the distance between the last viewer determined and described terminal and institute State whether target range is in the same distance range;
If showing the subtitle according to the font size that the last time determines in the same distance range;
If being not in the same distance range, continues to execute and described the video is adjusted described according to the target range When being played in terminal the step of the font size of subtitle.
4. according to claim 1 to method described in 3 any one, which is characterized in that described to be adjusted according to the target range The font size of subtitle when the video plays on the terminal, comprising:
Search the corresponding relationship between pre-set distance range and the font size of subtitle, the determining and target range institute The corresponding font size of the distance range of category;
Subtitle is shown according to the corresponding font size.
5. a kind of video caption automatic adjusting method, which is characterized in that the described method includes:
When playing video, the bright of current environment is determined using the collected brightness data of luminance sensor at interval of preset time period Angle value;
The font brightness of subtitle when the video plays at the terminal is adjusted according to the brightness value of the current environment.
6. according to the method described in claim 5, it is characterized in that, described according to the adjustment of the brightness value of the current environment Font brightness when the subtitle of video plays at the terminal, comprising:
The corresponding relationship between pre-set ambient brightness range and the font brightness of subtitle is searched, it is determining to work as front ring with described The corresponding font brightness of ambient brightness range belonging to the brightness value in border;
Subtitle is shown according to the corresponding font brightness.
7. method according to claim 5 or 6, which is characterized in that described to be adjusted according to the brightness value of the current environment The font brightness of subtitle when the video plays at the terminal, before further include:
Pre-set multiple ambient brightness ranges are searched, determine the brightness value and the current environment of the last environment determined Brightness value whether be within the scope of the same ambient brightness;
If showing the subtitle according to the font brightness that the last time determines within the scope of the same ambient brightness;
If being not within the scope of the same ambient brightness, continues to execute and the view is adjusted according to the brightness value of the current environment When frequency plays at the terminal the step of the font brightness of subtitle.
8. a kind of video caption automatic regulating apparatus, which is characterized in that described device includes:
Determining module, for when playing video, determine watch the viewer of the video and the broadcasting video terminal it Between target range;
Size adjusts module, for adjusting the font of subtitle when the video plays on the terminal according to the target range Size.
9. device according to claim 8, which is characterized in that the determining module includes:
Detection module, for when playing video, detecting at interval of preset time period to whether there is within the scope of the viewing of the terminal Barrier;
Human eye detection module then detects in the barrier for barrier if it exists with the presence or absence of viewer;
The viewer and the terminal are determined using ultrasonic measuring distance technology for viewer if it exists apart from determining module Between target range.
10. device according to claim 9, which is characterized in that described device further include:
It apart from searching module, is used for before the size adjusts module, the pre-set multiple distance ranges of lookup, in determination Once whether the distance between determining viewer and the terminal and the target range are in the same distance range;
First display module, if showing institute according to the font size that the last time determines in the same distance range State subtitle;
Execution module, if executing the size adjustment module for being not in the same distance range;
Wherein, the size adjustment module includes:
Size searching module, for searching the corresponding relationship between pre-set distance range and the font size of subtitle, really Fixed font size corresponding with distance range belonging to the target range;
Second display module, for showing subtitle according to the corresponding font size.
11. a kind of video caption automatic regulating apparatus, which is characterized in that described device includes:
Brightness determining module, for utilizing the collected brightness number of luminance sensor at interval of preset time period when playing video According to the brightness value for determining current environment;
Brightness adjusting section, for adjusting subtitle when the video plays at the terminal according to the brightness value of the current environment Font brightness.
12. device according to claim 11, which is characterized in that the brightness adjusting section includes:
Brightness searching module, for searching the corresponding pass between pre-set ambient brightness range and the font brightness of subtitle System determines font brightness corresponding with ambient brightness range belonging to the brightness value of the current environment;
Display module, for showing subtitle according to the corresponding font brightness.
13. device according to claim 11 or 12, which is characterized in that described device further include:
Range-based searching module determines the bright of the last environment determined for searching pre-set multiple ambient brightness ranges Whether the brightness value of angle value and the current environment is within the scope of the same ambient brightness;
Brightness display module, if the font brightness determined according to the last time is aobvious within the scope of the same ambient brightness Show the subtitle;
Trigger module, if continuing to execute the brightness adjusting section for being not within the scope of the same ambient brightness.
14. a kind of terminal, including memory, processor and the meter for being stored on the memory and running on the processor Calculation machine program, which is characterized in that when the processor executes the computer program, realize such as Claims 1-4 any one Each step in the video caption automatic adjusting method, and/or, it realizes as described in claim 5 to 7 any one Each step in video caption automatic adjusting method.
15. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is processed When device executes, each step of the realization in the video caption automatic adjusting method as described in Claims 1-4 any one, and/ Or, realizing each step in the video caption automatic adjusting method as described in claim 5 to 7 any one.
CN201711071450.XA 2017-11-03 2017-11-03 Video subtitle automatic adjustment method and device, terminal and readable storage medium Active CN109756788B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711071450.XA CN109756788B (en) 2017-11-03 2017-11-03 Video subtitle automatic adjustment method and device, terminal and readable storage medium
PCT/CN2018/113559 WO2019085980A1 (en) 2017-11-03 2018-11-02 Method and device for video caption automatic adjustment, terminal, and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711071450.XA CN109756788B (en) 2017-11-03 2017-11-03 Video subtitle automatic adjustment method and device, terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN109756788A true CN109756788A (en) 2019-05-14
CN109756788B CN109756788B (en) 2022-08-23

Family

ID=66332844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711071450.XA Active CN109756788B (en) 2017-11-03 2017-11-03 Video subtitle automatic adjustment method and device, terminal and readable storage medium

Country Status (2)

Country Link
CN (1) CN109756788B (en)
WO (1) WO2019085980A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110891200A (en) * 2019-11-22 2020-03-17 网易(杭州)网络有限公司 Bullet screen based interaction method, device, equipment and storage medium
CN112235911A (en) * 2019-06-26 2021-01-15 广东小天才科技有限公司 Font size-based light ray adjusting method and device, terminal device and medium
CN112995749A (en) * 2021-02-07 2021-06-18 北京字节跳动网络技术有限公司 Method, device and equipment for processing video subtitles and storage medium
WO2021135712A1 (en) * 2019-12-30 2021-07-08 中兴通讯股份有限公司 Caption adjustment method and apparatus, terminal and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109698913B (en) * 2018-12-29 2020-12-04 深圳市道通智能航空技术有限公司 Image display method and device and electronic equipment
CN111709342B (en) * 2020-06-09 2023-05-16 北京字节跳动网络技术有限公司 Subtitle segmentation method, device, equipment and storage medium
CN115002554B (en) * 2022-05-13 2024-07-26 广州方硅信息技术有限公司 Live broadcast picture adjustment method, system, device, computer equipment and medium

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03187687A (en) * 1989-12-18 1991-08-15 Hitachi Commun Syst Inc Near-sightedness prevention television set
US20040168203A1 (en) * 2002-12-12 2004-08-26 Seo Kang Soo Method and apparatus for presenting video data in synchronization with text-based data
CN1735177A (en) * 2004-07-20 2006-02-15 三星电子株式会社 Be used to control the data reproducing equipment and the method thereof of captions signal display state
CN101071562A (en) * 2006-05-12 2007-11-14 上海乐金广电电子有限公司 Caption size regulating method for karaoke audio device
US20110081132A1 (en) * 2009-03-26 2011-04-07 Yoshiaki Iwata Video processor, video processing method, integrated circuit for video processing, video playback device
US20120120312A1 (en) * 2009-07-28 2012-05-17 Panasonic Corporation Image synthesizing device, coding device, program, and recording medium
CN103312863A (en) * 2012-03-08 2013-09-18 中兴通讯股份有限公司 present method and device of mobile terminal video
CN103780945A (en) * 2012-10-23 2014-05-07 索尼公司 Adapting layout and text font size for viewer distance from TV
CN105630447A (en) * 2015-12-24 2016-06-01 小米科技有限责任公司 Method and device for adjusting word display
CN105657497A (en) * 2016-02-01 2016-06-08 华为技术有限公司 Video playing method and equipment
CN105681861A (en) * 2016-03-04 2016-06-15 青岛海信电器股份有限公司 Adjusting method and system for display subtitle of terminal
CN105843393A (en) * 2016-03-30 2016-08-10 苏州合欣美电子科技有限公司 Video player for self-adaptively adjusting subtitles
CN105848004A (en) * 2016-05-16 2016-08-10 乐视控股(北京)有限公司 Caption playing method and caption playing device
CN105975447A (en) * 2016-04-27 2016-09-28 乐视控股(北京)有限公司 Font adjustment method and apparatus
CN106231079A (en) * 2016-07-21 2016-12-14 乐视控股(北京)有限公司 A kind of video playback automatic brightness adjustment method and mobile terminal
CN106231105A (en) * 2016-08-04 2016-12-14 成都佳荣科技有限公司 A kind of smart mobile phone adjusts the method for projection
WO2017032035A1 (en) * 2015-08-25 2017-03-02 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting, and terminal
CN106658220A (en) * 2016-11-11 2017-05-10 理光图像技术(上海)有限公司 Subtitle creating device, demonstration module and subtitle creating demonstration system
CN106919359A (en) * 2017-04-18 2017-07-04 苏州科技大学 A kind of display screen font size automatic adjustment system
CN106971685A (en) * 2017-01-09 2017-07-21 上海斐讯数据通信技术有限公司 The method and system and terminal of a kind of display control

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587704A (en) * 2008-05-20 2009-11-25 鸿富锦精密工业(深圳)有限公司 Portable video unit and method for adjusting display font size thereof
CN102148020B (en) * 2010-02-10 2013-11-06 元太科技工业股份有限公司 Light-to-dark transition display device, display and brightness adjusting method
CN101951445B (en) * 2010-10-09 2013-01-23 华为终端有限公司 Adaptive adjusting terminal equipment and method
CN102122499A (en) * 2011-02-23 2011-07-13 西南交通大学 Light environment adaptive regulating system for screen display equipment
US20140184638A1 (en) * 2012-12-31 2014-07-03 Sathiyaraj Ramachandran Adaptively scaling a video frame/image element rendered on a data processing device
CN105872845A (en) * 2016-04-18 2016-08-17 深圳Tcl数字技术有限公司 Method for intelligently regulating size of subtitles and television
CN107239250A (en) * 2017-07-01 2017-10-10 珠海格力电器股份有限公司 Screen display adjusting method and device and mobile terminal thereof

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03187687A (en) * 1989-12-18 1991-08-15 Hitachi Commun Syst Inc Near-sightedness prevention television set
US20040168203A1 (en) * 2002-12-12 2004-08-26 Seo Kang Soo Method and apparatus for presenting video data in synchronization with text-based data
CN1735177A (en) * 2004-07-20 2006-02-15 三星电子株式会社 Be used to control the data reproducing equipment and the method thereof of captions signal display state
CN101071562A (en) * 2006-05-12 2007-11-14 上海乐金广电电子有限公司 Caption size regulating method for karaoke audio device
US20110081132A1 (en) * 2009-03-26 2011-04-07 Yoshiaki Iwata Video processor, video processing method, integrated circuit for video processing, video playback device
US20120120312A1 (en) * 2009-07-28 2012-05-17 Panasonic Corporation Image synthesizing device, coding device, program, and recording medium
CN103312863A (en) * 2012-03-08 2013-09-18 中兴通讯股份有限公司 present method and device of mobile terminal video
CN103780945A (en) * 2012-10-23 2014-05-07 索尼公司 Adapting layout and text font size for viewer distance from TV
WO2017032035A1 (en) * 2015-08-25 2017-03-02 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting, and terminal
CN105630447A (en) * 2015-12-24 2016-06-01 小米科技有限责任公司 Method and device for adjusting word display
CN105657497A (en) * 2016-02-01 2016-06-08 华为技术有限公司 Video playing method and equipment
CN105681861A (en) * 2016-03-04 2016-06-15 青岛海信电器股份有限公司 Adjusting method and system for display subtitle of terminal
CN105843393A (en) * 2016-03-30 2016-08-10 苏州合欣美电子科技有限公司 Video player for self-adaptively adjusting subtitles
CN105975447A (en) * 2016-04-27 2016-09-28 乐视控股(北京)有限公司 Font adjustment method and apparatus
CN105848004A (en) * 2016-05-16 2016-08-10 乐视控股(北京)有限公司 Caption playing method and caption playing device
CN106231079A (en) * 2016-07-21 2016-12-14 乐视控股(北京)有限公司 A kind of video playback automatic brightness adjustment method and mobile terminal
CN106231105A (en) * 2016-08-04 2016-12-14 成都佳荣科技有限公司 A kind of smart mobile phone adjusts the method for projection
CN106658220A (en) * 2016-11-11 2017-05-10 理光图像技术(上海)有限公司 Subtitle creating device, demonstration module and subtitle creating demonstration system
CN106971685A (en) * 2017-01-09 2017-07-21 上海斐讯数据通信技术有限公司 The method and system and terminal of a kind of display control
CN106919359A (en) * 2017-04-18 2017-07-04 苏州科技大学 A kind of display screen font size automatic adjustment system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张?等: "DVB数字广播台标/字幕插入机", 《计算机与数字工程》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235911A (en) * 2019-06-26 2021-01-15 广东小天才科技有限公司 Font size-based light ray adjusting method and device, terminal device and medium
CN110891200A (en) * 2019-11-22 2020-03-17 网易(杭州)网络有限公司 Bullet screen based interaction method, device, equipment and storage medium
CN110891200B (en) * 2019-11-22 2022-06-17 网易(杭州)网络有限公司 Bullet screen based interaction method, device, equipment and storage medium
WO2021135712A1 (en) * 2019-12-30 2021-07-08 中兴通讯股份有限公司 Caption adjustment method and apparatus, terminal and storage medium
CN113132791A (en) * 2019-12-30 2021-07-16 中兴通讯股份有限公司 Subtitle adjusting method, device, terminal and storage medium
CN112995749A (en) * 2021-02-07 2021-06-18 北京字节跳动网络技术有限公司 Method, device and equipment for processing video subtitles and storage medium

Also Published As

Publication number Publication date
WO2019085980A1 (en) 2019-05-09
CN109756788B (en) 2022-08-23

Similar Documents

Publication Publication Date Title
CN109756788A (en) Video caption automatic adjusting method and device, terminal and readable storage medium storing program for executing
CN108322788B (en) Advertisement display method and device in live video
US8990842B2 (en) Presenting content and augmenting a broadcast
CN102119530B (en) Image display device and control method
CN104066003B (en) Method and device for playing advertisement in video
JP5869558B2 (en) Display control apparatus, integrated circuit, display control method, and program
EP3171602A1 (en) Information processing device, display device, information processing method, program, and information processing system
WO2015056742A1 (en) Device for measuring visual efficacy
CN106658199A (en) Video content display method and apparatus
CN106658032B (en) Multi-camera live broadcasting method and system
CN104661104A (en) Self-adaptive interface customization device and method based on multiple perception sources
CN106507005A (en) The control method and device of backlight illumination
WO2018148076A1 (en) System and method for automated positioning of augmented reality content
CN109089087A (en) The audio-visual linkage of multichannel
KR20180025754A (en) Display apparatus and control method thereof
CN111757138A (en) Close-up display method and device based on single-shot live video
CN115668913A (en) Stereoscopic display method, device, medium and system for field performance
US20130308829A1 (en) Still image extraction apparatus
CN113709566B (en) Method, device, equipment and computer storage medium for playing multimedia content
CN109089058B (en) Video picture processing method, electronic terminal and device
CN103200441A (en) Obtaining method, conforming method and device of television channel information
JP5941760B2 (en) Display control device, display control method, display system, program, and recording medium
CN111147935A (en) Control method of television, intelligent household control equipment and storage medium
CN103562986A (en) Information distribution device, information reception device, system, program, and method
CN105338386B (en) Video equipment control device and method based on image procossing and speech processes

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