WO2019085980A1 - 视频字幕自动调整方法及装置、终端及可读存储介质 - Google Patents

视频字幕自动调整方法及装置、终端及可读存储介质 Download PDF

Info

Publication number
WO2019085980A1
WO2019085980A1 PCT/CN2018/113559 CN2018113559W WO2019085980A1 WO 2019085980 A1 WO2019085980 A1 WO 2019085980A1 CN 2018113559 W CN2018113559 W CN 2018113559W WO 2019085980 A1 WO2019085980 A1 WO 2019085980A1
Authority
WO
WIPO (PCT)
Prior art keywords
brightness
video
subtitle
font
range
Prior art date
Application number
PCT/CN2018/113559
Other languages
English (en)
French (fr)
Inventor
何涛
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2019085980A1 publication Critical patent/WO2019085980A1/zh

Links

Images

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

Definitions

  • the embodiment of the present invention relates to the field of video subtitles, and in particular, to a video caption automatic adjustment method and device, a terminal, and a readable storage medium.
  • subtitles exist as a form that is convenient for users to receive video content information outside of video speech, facilitating users to watch video.
  • static subtitles are displayed below the video screen.
  • the embodiment of the present application provides a method and device for automatically adjusting video subtitles, a terminal, and a readable storage medium, which can automatically adjust the subtitle display to meet the needs of the viewer.
  • an embodiment of the present application provides a method for automatically adjusting a video subtitle, and the method includes:
  • an embodiment of the present application provides a method for automatically adjusting a video subtitle, and the method includes:
  • the brightness data collected by the brightness sensor is used to determine the brightness value of the current environment every preset time interval;
  • an embodiment of the present application provides a video caption automatic adjustment apparatus, including:
  • a determining module configured to determine a target distance between a viewer viewing the video and a terminal playing the video when playing a video
  • a sizing module configured to adjust a font size of the subtitle when the video is played on the terminal according to the target distance.
  • an embodiment of the present application provides a video caption automatic adjustment apparatus, including:
  • a brightness determining module configured to determine a brightness value of the current environment by using brightness data collected by the brightness sensor every preset time period when the video is played;
  • a brightness adjustment module configured to adjust a font brightness of the subtitle when the video is played on the terminal according to the brightness value of the current environment.
  • an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored on the memory and running on the processor, wherein the processor executes the computer In the program, each step in the video caption automatic adjustment method described in the first aspect and/or the second aspect is implemented.
  • an embodiment of the present application provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the video subtitle automatically described in the first aspect and/or the second aspect is implemented. Adjust the steps in the method.
  • the video subtitle automatic adjustment method of the embodiment of the present application can automatically adjust the font size of the subtitle based on the distance between the viewer and the terminal. For example, when the distance is large, the font size of the subtitle is also adjusted correspondingly. The font size is also adjusted accordingly, so that the requirement of the size of the subtitle when the user watches the video can be satisfied under different distances, and the viewing experience of the user is improved.
  • Another video subtitle automatic adjustment method in the embodiment of the present application can automatically adjust the font brightness of the subtitle based on the brightness value of the current environment. For example, when the brightness value of the current environment is large, the font brightness of the subtitle is correspondingly increased, in the current environment. When the brightness value is small, the font brightness of the subtitle is also reduced correspondingly, so that the user's demand for font brightness when watching the video in the case of different ambient brightness can be satisfied, and the user's viewing experience is improved.
  • FIG. 1 is a schematic flowchart of a method for automatically adjusting video subtitles according to an embodiment of the present application
  • FIG. 2 is another schematic flowchart of a method for automatically adjusting video subtitles according to an embodiment of the present application
  • FIG. 3 is another schematic flowchart of a method for automatically adjusting video subtitles according to an embodiment of the present application
  • FIG. 4 is another schematic flowchart of a method for automatically adjusting video subtitles according to an embodiment of the present application
  • FIG. 5 is a schematic structural diagram of a program module of a video caption automatic adjusting apparatus according to an embodiment of the present application
  • FIG. 6 is another schematic structural diagram of a program module of a video caption automatic adjusting apparatus according to an embodiment of the present application.
  • FIG. 7 is another schematic structural diagram of a program module of a video caption automatic adjusting apparatus according to an embodiment of the present application.
  • FIG. 8 is another schematic structural diagram of a program module of a video caption automatic adjusting apparatus according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a terminal in an embodiment of the present application.
  • 10a is a schematic diagram of a scene in which a viewer watches a television according to an embodiment of the present application
  • FIG. 10b and FIG. 10c are schematic diagrams showing a display interface of a television set viewed by a viewer in an embodiment of the present application;
  • FIG. 10 is a schematic diagram of another scene of a viewer watching a television according to an embodiment of the present application.
  • 10e and 10f are schematic diagrams showing a display interface of a television set viewed by a viewer in the embodiment of the present application.
  • the embodiment of the present application proposes a video caption automatic adjustment method, which can adjust the font size of the subtitle based on the distance between the viewer and the terminal by adjusting the font size of the subtitle when the video is played on the terminal according to the target distance between the viewer and the terminal. And/or adjusting the font brightness of the subtitle when the video is played on the terminal by the collected brightness value of the current environment, so that the font brightness of the subtitle can be automatically adjusted based on the brightness value of the current environment.
  • the video caption automatic adjustment method of each embodiment may be implemented by a video caption automatic adjusting device (hereinafter simply referred to as an adjusting device).
  • the adjustment means may be a device (such as a set top box, media box, etc.) connected to a video display device, such as a television or mobile terminal, or implemented by a portion of the video display device.
  • the adjustment means may in particular be a program module stored in a computer readable storage medium of the device and executed by the processor.
  • FIG. 1 is a schematic flowchart of a method for automatically adjusting video subtitles according to an embodiment of the present application.
  • the method can include the following steps.
  • Step 101 When playing a video, determine a target distance between a viewer who views the video and a terminal that plays the video.
  • Step 102 Adjust a font size of the subtitle when the video is played on the terminal according to the target distance.
  • the adjustment device When playing a video, the adjustment device will determine the target distance between the viewer and the terminal playing the video.
  • the adjusting device may determine the target distance once every preset time interval, and the preset time length may be a system default value or a value set by a user.
  • the preset duration may be 5 seconds (hereinafter referred to as 5s), that is, the adjusting device performs the technical solution in the embodiment of the present application every 5s.
  • the viewer refers to a user within the viewing range of the terminal. If the user is within the viewing range of the terminal, the content displayed by the display interface of the terminal can be seen.
  • the terminal is the terminal to which the adjustment device belongs.
  • the font size of the subtitle when the video is played on the terminal is adjusted according to the target distance.
  • subtitle modes of video namely soft subtitle mode, hard subtitle mode and no subtitle mode.
  • the soft caption mode means that the subtitles of the video are independent.
  • the subtitle carriers are commonly used: external subtitle files and subtitle streams in video files.
  • An external subtitle file means that the subtitle is stored in a digitized text file that is independent of the video file.
  • the subtitle stream in the video file is a subtitle organized in the data track with the audio track and the video track.
  • soft caption mode when playing a video, you can directly capture the subtitles of the video and adjust the font size of the subtitles.
  • the hard caption mode means that the subtitles have been superimposed on the corresponding video image frames of the video data at the time of audio production, as part of the video image frames, and compressed, audio and video merged to generate a video file.
  • the hard caption mode if you need to adjust the font size of the subtitles, you need to use the subtitle encoding tool to extract the subtitles, such as Optical Character Recognition (OCR) technology, in order to synchronously display the extracted subtitles, and extract the extracted subtitles. The font size of the subtitles is adjusted.
  • OCR Optical Character Recognition
  • the no-subtitle mode means that there is neither soft subtitle nor hard subtitle.
  • the preset subtitle extraction method may be activated, for example, ASR technology, etc., the subtitle extraction processing is performed on the audio data of the video file, and the subtitles of the video are obtained based on the audio data. And when the video is played, the subtitles are displayed synchronously. This makes it possible to display subtitles for the viewer in the no-subtitle mode. Further, the font size of the subtitles obtained based on the audio data can be adjusted.
  • the font size of the subtitle can be automatically adjusted based on the distance between the viewer and the terminal. For example, when the distance is large, the font size of the subtitle is also adjusted accordingly. When the distance is small, the font size of the subtitle is adjusted accordingly. It can meet the requirement of the size of the subtitle when the user watches the video under different distances, and improve the viewing experience of the user.
  • FIG. 2 is a schematic flowchart of a method for automatically adjusting video subtitles according to an embodiment of the present application.
  • the method can include the following steps.
  • Step 201 When playing a video, check whether there is an obstacle in the viewing range of the terminal every preset time interval.
  • Step 202 If there is an obstacle, detect whether there is a viewer in the obstacle.
  • Step 203 If there is a viewer, determine a target distance between the viewer and the terminal by using an ultrasonic ranging technique.
  • steps 201 to 203 are the refinement steps of step 101 shown in FIG. 1.
  • the adjusting device detects whether there is an obstacle in the viewing range of the terminal every preset time interval.
  • the detection of the obstacle may be a camera that activates the terminal, and an image is captured by the camera, and the adjustment device performs image analysis on the captured image.
  • the image analysis method can be used to determine whether the image contains an obstacle, and in the case of including the obstacle, the position and shape of the obstacle, and the like.
  • the range of images that can be captured by the camera when shooting is consistent with the viewing range of the terminal.
  • the obstacle can be a viewer, a sofa, a vase, and the like.
  • the viewer in the presence of an obstacle, it is further determined whether or not the viewer is included in the obstacle. For example: using iris recognition technology to detect the presence of obstacles containing human eyes in all obstacles. For example, iris recognition may be performed on the regions in which the obstacles are located in order to determine whether or not there are sub-regions conforming to the characteristics of the human eye in the region where the obstacles are located. If the area in which the obstacle is located contains an area conforming to the characteristics of the human eye, it is determined that the obstacle contains the human eye, and the obstacle is further determined to be the viewer.
  • the iris recognition technology there are other techniques that can be used to detect whether an obstacle is a viewer, for example, after obtaining information such as the position and shape of the obstacle. Recognition technology for face recognition, etc. If the obstacle contains a human face, it is determined that the obstacle is a viewer. Alternatively, the shape of the human body in different postures of the human body may be set in advance, and the shape of the obstacle may be matched with the shape of the human body set in advance. Among them, the shape of the obstacle can be enlarged or reduced based on the proportion of the human body.
  • the shape of the obstacle can be enlarged based on the human body ratio. If the shape matching degree with the obstacle is greater than or equal to the preset numerical shape of the human body in the preset human body shape, the obstacle is determined to be the viewer. Therefore, in practical applications, it is possible to select an appropriate method to detect whether an obstacle is a viewer according to a specific situation, which is not limited herein.
  • the adjustment device after detecting the viewer, the adjustment device will determine the target distance between the viewer and the terminal using the ultrasonic ranging technique.
  • an ultrasonic transmitter and an ultrasonic receiver may be disposed on the terminal, and in the case where it is determined that there is a viewer, the adjusting device calls the ultrasonic transmitter to transmit an ultrasonic signal in a direction in which the viewer is located.
  • the ultrasonic receiver receives the ultrasonic signal reflected from the viewer, the adjusting device obtains the time when the ultrasonic generator transmits the signal, and the time when the ultrasonic receiver receives the signal.
  • the transmission duration of the ultrasonic wave can be determined, and the transmission distance of the ultrasonic signal can be calculated using the transmission duration and the transmission speed of the ultrasonic signal.
  • the transmission distance is the target distance between the terminal and the viewer.
  • the distance between the viewer and the terminal can be used as the target distance. If a plurality of viewers are detected, the distance between the plurality of viewers and the terminal can be averaged, and the average value is used as the target distance. Alternatively, in the case where there are a plurality of viewers, the largest distance is determined from the distance between the plurality of viewers and the terminal, and the maximum distance is used as the target distance.
  • Step 204 Search for a plurality of distance ranges set in advance, and determine whether the distance between the last determined viewer and the terminal and the target distance are within the same distance range.
  • Step 205 If it is within the same distance range, the subtitle is displayed according to the last determined font size.
  • Step 206 If not within the same distance range, the font size of the subtitle when the video is played on the terminal is adjusted according to the target distance.
  • a plurality of distance ranges may be set in advance. For example, multiple distance ranges are set at intervals of 0.5 meters.
  • the plurality of distance ranges may be continuous, for example, if it is three distance ranges, respectively, (0, a1), (a1, a2), and (a2, a3).
  • the adjusting device searches for the plurality of preset distance ranges, Determining whether the distance between the last determined viewer and the terminal and the target distance are within the same distance range, wherein the distance between the last determined viewer and the terminal is saved in the memory, and the viewer who viewed last time It can be the same or different from the viewers of this time, and does not affect the adjustment of the font size of the subtitles.
  • the distance between the last determined viewer and the terminal is within the same distance range from the currently obtained target distance, it indicates that the distance does not change much, and the condition for adjusting the font size is not reached. At this time, it will still follow the above.
  • Subtitles are displayed at a certain font size. If it is not within the same distance range, it indicates that the font size of the subtitle when the video is played on the terminal needs to be adjusted according to the target distance.
  • the distance range is A
  • the corresponding font size is a
  • the distance range is B
  • the corresponding font size is b.
  • the correspondence between the above distance range and the font size of the subtitle is searched for, and the distance to which the target distance belongs is determined. range. It is also possible to determine a font size corresponding to the distance range to which the target distance belongs, and after determining the font size, display the subtitle according to the font size.
  • the font size in the display parameter can be modified to the font size determined based on the target distance by modifying the subtitle display parameter, so that the font can be determined according to the currently detected target distance. Size shows subtitles.
  • the maximum distance among the plurality of different distance ranges mentioned above is limited and related to the type of the terminal.
  • the maximum distance is limited to 4 meters, that is, the total length of a plurality of different distance ranges may be 4 meters. If divided into 5 different distance ranges, they will correspond to 5 different font sizes.
  • the five font sizes generally increase as the distance increases, so that the user can still see the displayed subtitles on the television when he is far away from the terminal, such as 3.5 meters.
  • the font size design can be designed based on the size of the display screen of the terminal and the maximum distance limit described above, in order to provide a better viewing experience for the user.
  • the iris is used to detect whether there is an obstacle containing the human eye. If there is an obstacle including the human eye, the obstacle is determined as a viewer, and the target distance between the viewer and the terminal is determined by the ultrasonic ranging technique. Find a preset distance range to determine the distance between the last determined viewer and the terminal and whether the target distance is within the same distance. If it is within the same distance range, the subtitles are displayed according to the previous font size. If it is not within the same distance range, the font size of the subtitle when the video is played on the terminal is adjusted according to the target distance. In the above manner, the font size of the subtitle can be adjusted based on the distance between the viewer and the terminal, so that the subtitle displayed by the terminal is more in line with the viewing requirement of the viewer, and the viewing experience is effectively improved.
  • FIG. 10a is a schematic diagram of a scene in which a viewer watches a television in the embodiment of the present application.
  • viewer A is watching television
  • television set 1001 is provided with detection device 1002, which may be located at the lower right or lower left corner of television 1001 or at any position below the lower edge of the television display interface.
  • the detecting device 1002 is illustrated as being located in the lower right corner of the television 1001.
  • the detection device includes a camera, an ultrasonic transmitter, and an ultrasonic receiver.
  • the camera can determine the distance between the viewer A and the television set 1001 using the ultrasonic transmitter and the ultrasonic receiver after detecting the presence of the viewer A. As shown in FIG. 10a, the dotted line between the television set 1001 and the viewer A is the ultrasonically determined distance C.
  • the television set 1001 will use the above distance C to find a preset plurality of distance ranges to determine whether the distance B and the distance C are within the same distance range. If the distance B is in the first distance range and the distance C is in the second distance range, since the first distance range is greater than the second distance range, it indicates that the distance between the viewer A and the television set 1001 is increased, and the subtitles are adjusted. The condition of the font size. Therefore, the television set 1001 increases the font size of the subtitles it displays to the font size corresponding to the second distance range.
  • FIG. 10b and FIG. 10c are schematic diagrams of a display interface of a television set viewed by a viewer in an embodiment of the present application. In FIG.
  • the font size of the displayed subtitle is the font size corresponding to the first distance range to which the B belongs.
  • the font size of the displayed subtitle is the font size corresponding to the first distance range to which the C belongs.
  • the font size of the subtitle "Would you like to be at home?” in Fig. 10c is larger than the font size of the subtitle "Is there someone at home?” in Fig. 10b.
  • the embodiment described in FIG. 1 and FIG. 2 described above is a method for adjusting the font size of the subtitle based on the distance between the viewer and the terminal, and can adjust the font size of the subtitle according to the distance of the viewer so that the viewer can see the subtitle clearly. .
  • the device may further adjust the font brightness of the subtitle based on the ambient brightness, so that the font brightness of the subtitle may be adjusted according to the ambient brightness.
  • FIG. 3 is a schematic flowchart of a method for automatically adjusting video subtitles according to an embodiment of the present application. The method can include the following steps.
  • Step 301 When playing a video, determine the brightness value of the current environment by using the brightness data collected by the brightness sensor every preset time interval.
  • Step 302 Adjust a font brightness of the subtitle when the video is played on the terminal according to the brightness value of the current environment.
  • the brightness sensor when the terminal plays the video, since the brightness sensor is set on the terminal, the brightness sensor is used to collect the brightness data of the current environment, and the adjusting device acquires the brightness data collected by the brightness sensor without the preset preset time, and uses the brightness data. Luminance data, get the brightness value of the current environment.
  • the preset duration may be a system default value or a value set by the user.
  • the preset duration may be 5 s, that is, the adjustment device acquires luminance data collected by the luminance sensor in the last 5 s every 5 s.
  • the brightness value of the current environment is used to adjust the font brightness of the subtitle when the video is played on the terminal.
  • the brightness data collected by the brightness sensor is used to determine the brightness value of the current environment every preset time interval, and the font brightness of the subtitle when the video is played on the terminal is adjusted according to the brightness value of the current environment. .
  • the font brightness of the subtitle can be automatically adjusted based on the brightness value of the current environment. For example, when the brightness value of the current environment is large, the font brightness of the subtitle is correspondingly increased; when the brightness value of the current environment is small, the font brightness of the subtitle is correspondingly reduced. Thereby, it is possible to satisfy the requirement of font brightness when the user watches the video under different environment brightness, and improve the user's viewing experience.
  • FIG. 4 is another schematic flowchart of a method for automatically adjusting video subtitles according to an embodiment of the present application.
  • the method can include the following steps.
  • Step 401 When playing a video, determine the brightness value of the current environment by using the brightness data collected by the brightness sensor every preset time interval.
  • Step 402 Search for a plurality of preset ambient brightness ranges to determine whether the brightness value of the last determined environment and the brightness value of the current environment are within the same ambient brightness range.
  • Step 403 If it is in the same ambient brightness range, the subtitle is displayed according to the last determined font brightness.
  • Step 404 If not in the same ambient brightness range, search for a correspondence between the preset ambient brightness range and the font brightness of the subtitle, and determine a font brightness corresponding to the ambient brightness range to which the current environment brightness value belongs. .
  • Step 405 Display subtitles according to the corresponding font brightness.
  • a plurality of ambient brightness ranges are preset, and the plurality of ambient brightness ranges are continuous.
  • the adjusting device searches the plurality of ambient brightness ranges to determine whether the brightness value of the last determined environment and the current environment brightness value are within the same ambient brightness range.
  • the brightness value of the last determined environment is stored in the memory.
  • the brightness value of the last determined environment is within the same distance range as the brightness value of the current environment, it indicates that the brightness does not change much, and the condition for adjusting the font brightness is not reached. At this point, the subtitles will still be displayed according to the font brightness determined last time. If it is not within the same distance range, it indicates that it is necessary to adjust the font brightness of the subtitle when the video is played on the terminal according to the current brightness value.
  • the adjusting device searches for the correspondence between the ambient brightness range and the font brightness of the subtitle, and determines the ambient brightness range to which the brightness value of the current environment belongs, and Further determining a font brightness corresponding to the ambient brightness range of the brightness value of the current environment, and after determining the font brightness, displaying the subtitle according to the font brightness.
  • the font brightness in the display parameter can be modified to the font brightness determined based on the brightness value of the current environment, so as to be able to follow the brightness value based on the current environment.
  • the adjustment of the font brightness in the display parameter may specifically be to adjust the brightness of the entire area of the subtitle display area, and the latter may only adjust the brightness of the subtitle itself, and may be set according to specific conditions in actual applications, Make a limit.
  • the division of multiple ambient brightness ranges may be set according to repeated experiments or experiences, and the correspondence between the multiple ambient brightness ranges and the font brightness may also be set according to repeated experiments or experiences to obtain different ambient brightness ranges. Corresponding to the best font brightness, providing users with a better viewing experience.
  • the adjusting device for adjusting the font size of the subtitle according to the distance and the adjusting device for adjusting the font brightness of the subtitle according to the ambient brightness may be the same adjusting device or different adjusting devices.
  • a device may be provided with an adjustment device having the above two functions at the same time, or only an adjustment device having one of the functions may be provided.
  • the brightness data collected by the brightness sensor is used to determine the brightness value of the current environment every preset time interval. Find a plurality of preset ambient brightness ranges to determine whether the brightness value of the last determined environment is within the same ambient brightness range as the brightness value of the current environment. If it is within the same ambient brightness range, the subtitles are displayed according to the font brightness determined last time. If not in the same ambient brightness range, search for a correspondence between the preset ambient brightness range and the font brightness of the subtitle, determine the font brightness corresponding to the ambient brightness range to which the current environment brightness value belongs, and follow The corresponding font brightness displays subtitles. In the above manner, the font brightness of the subtitle can be adjusted based on the brightness value of the current environment, so that the brightness of the subtitle displayed by the terminal is more in line with the viewing requirement of the viewer, and the viewing experience is effectively improved.
  • the adjustment of the font size of the subtitle based on the distance and the adjustment of the font brightness of the subtitle based on the brightness value of the current environment belong to mutually independent technical solutions, and can be performed simultaneously on the same terminal.
  • FIG. 10d is a schematic diagram of a scenario in which a user watches a television in the embodiment of the present application.
  • the viewer A is watching television
  • the television 1001 is provided with a brightness sensor 1003, which may be located at any position of the television 1001.
  • the brightness sensor 1003 is illustrated as being located on the right side of the television set 1001.
  • the television set 1001 acquires the brightness data collected by the brightness sensor every preset time interval, and determines that the brightness value of the current environment is the brightness E.
  • the television set 1001 will use the brightness E to find a preset plurality of ambient brightness ranges to determine whether the brightness E and the brightness F are within the same ambient brightness range. If the brightness E is in the first ambient brightness range and the brightness F is in the second ambient brightness range, since the first ambient brightness range is smaller than the second ambient brightness range, it indicates that the current environment brightness value is darkened, in order to facilitate the user to see the subtitles clearly. At this time, you need to brighten the font brightness of the playback on the display interface. Therefore, the television set 1001 increases the brightness of the subtitle area it displays to the font brightness corresponding to the first ambient brightness range. Please refer to FIG. 10e and FIG.
  • FIG. 10f are schematic diagrams of a display interface of a television set in an embodiment of the present application.
  • the font brightness of the display screen is still displayed according to the second ambient brightness range to which the brightness F belongs, and the display interface viewed by the user.
  • the font brightness of the display screen is adjusted to the font brightness corresponding to the first ambient brightness range to which the brightness E belongs, and the display interface viewed by the user.
  • the font brightness of the subtitle "This is really nice” in Fig. 10e is smaller than the font brightness of the subtitle "This is really nice” in Fig. 10f.
  • FIG. 5 is a schematic structural diagram of a program module of a video caption automatic adjusting apparatus according to an embodiment of the present application.
  • the device can include the following modules.
  • the determining module 501 is configured to determine a target distance between a viewer viewing the video and a terminal playing the video when playing the video.
  • the size adjustment module 502 is configured to adjust a font size of the subtitle when the video is played on the terminal according to the target distance.
  • the font size of the subtitle when playing a video, determining a target distance between a viewer watching the video and a terminal playing the video, and adjusting a font size of the subtitle when the video is played on the terminal according to the target distance.
  • the font size of the subtitle can be automatically adjusted based on the distance between the viewer and the terminal. For example, when the distance is large, the font size of the subtitle is also adjusted accordingly; when the distance is small, the font size of the subtitle is also adjusted accordingly. It can meet the requirement of the size of the subtitle when the user watches the video under different distances, and improve the viewing experience of the user.
  • FIG. 6 is a schematic structural diagram of a program module of a video caption automatic adjusting apparatus according to an embodiment of the present application.
  • the device includes the determining module 501 and the size adjusting module 502 in the embodiment shown in FIG. 5, and is similar to the content described in the embodiment shown in FIG. 5, and details are not described herein.
  • the determining module 501 can include:
  • the detecting module 601 is configured to detect, when the video is played, whether there is an obstacle in the viewing range of the terminal every preset time interval;
  • the human eye detection module 602 is configured to detect whether there is a viewer in the obstacle if there is an obstacle;
  • the distance determining module 603 is configured to determine a target distance between the viewer and the terminal by using an ultrasonic ranging technique if a viewer is present.
  • the apparatus may further include:
  • the distance finding module 604 is configured to: after determining the module 501, search for a plurality of distance ranges set in advance, and determine whether the distance between the last determined viewer and the terminal and the target distance are within the same distance range;
  • the first display module 605 is configured to display the subtitle according to the last determined font size if the same distance range is used;
  • the execution module 606 is configured to execute the size adjustment module if it is not within the same distance range.
  • the size adjustment module 502 can include:
  • the size search module 607 is configured to search for a correspondence between a preset distance range and a font size of the subtitle, and determine a font size corresponding to the distance range to which the target distance belongs;
  • the second display module 608 is configured to display the subtitles according to the corresponding font size.
  • the distance between the viewer and the terminal can be used as the target distance. If a plurality of viewers are detected, the distance between the plurality of viewers and the terminal can be averaged, and the average value is used as the target distance. Alternatively, in the case where there are a plurality of viewers, the largest distance is determined from the distance between the plurality of viewers and the terminal, and the maximum distance is used as the target distance.
  • a plurality of distance ranges are set in advance, for example, a plurality of distance ranges are set at intervals of 0.5 meters. And the plurality of distance ranges are continuous, for example, if they are three distance ranges, they are (0, a1), (a1, a2), and (a2, a3), respectively.
  • the maximum distance among the plurality of different distance ranges mentioned above is limited and related to the type of the terminal.
  • the maximum distance is limited to 4 meters, that is, the total length of a plurality of different distance ranges may be 4 meters, and if divided into 5 different distance ranges, respectively, corresponding to 5 different types respectively.
  • the font size, the five font sizes usually increase with the increase of the distance, so that the user can still see the displayed subtitles on the TV when the distance is far from the terminal, such as 3.5 meters.
  • the font size design can be designed based on the size of the display screen of the terminal and the maximum distance limit described above, in order to provide a better viewing experience for the user.
  • the iris is detected by the technology whether there is an obstacle including the human eye, if If there is an obstacle including a human eye, the obstacle is determined as a viewer, the target distance between the viewer and the terminal is determined by using ultrasonic ranging technology, and a preset distance range is found, and the last determined viewer and terminal are determined. Whether the distance between the distance and the target distance is within the same distance range, if within the same distance range, the subtitles are displayed according to the previous font size. If not within the same distance range, the video is adjusted according to the target distance.
  • the font size of the subtitle when playing on the terminal. In the above manner, the font size of the subtitle can be adjusted based on the distance between the viewer and the terminal, so that the subtitle displayed by the terminal is more in line with the viewing requirement of the viewer, and the viewing experience is effectively improved.
  • FIG. 7 is a schematic structural diagram of a program module of a video caption automatic adjusting apparatus according to an embodiment of the present application.
  • the device can include the following steps.
  • the brightness determining module 701 is configured to determine the brightness value of the current environment by using the brightness data collected by the brightness sensor every preset time period when playing the video;
  • the brightness adjustment module 702 is configured to adjust a font brightness of the subtitle when the video is played on the terminal according to the brightness value of the current environment.
  • the brightness data collected by the brightness sensor is used to determine the brightness value of the current environment every preset time interval, and the font brightness of the subtitle when the video is played on the terminal is adjusted according to the brightness value of the current environment. .
  • the font brightness of the subtitle can be automatically adjusted based on the brightness value of the current environment. For example, when the brightness value of the current environment is large, the font brightness of the subtitle is correspondingly increased; when the brightness value of the current environment is small, the font brightness of the subtitle is correspondingly reduced.
  • the requirement for font brightness when the user watches the video is improved in the case of different ambient brightness, and the viewing experience of the user is improved.
  • FIG. 8 is another schematic structural diagram of a program module of a video caption automatic adjusting apparatus according to an embodiment of the present application.
  • the device may include a brightness determining module 701 and a brightness adjusting module 702 as shown in FIG. 7, and is similar to the content described in the embodiment shown in FIG. 7, and details are not described herein.
  • the brightness adjustment module 702 may include:
  • the brightness finding module 801 is configured to search for a correspondence between a preset brightness range of the environment and a font brightness of the caption, and determine a font brightness corresponding to the ambient brightness range to which the brightness value of the current environment belongs;
  • the display module 802 is configured to display the subtitles according to the corresponding font brightness.
  • the device may further include:
  • the range finding module 803 is configured to search for a plurality of preset ambient brightness ranges, and determine whether the brightness value of the last determined environment and the current environment brightness value are in the same ambient brightness range;
  • the brightness display module 804 is configured to display the subtitle according to the last determined font brightness if it is in the same ambient brightness range;
  • the triggering module 805 is configured to continue to execute the brightness adjustment module 702 if it is not in the same ambient brightness range.
  • the division of multiple ambient brightness ranges may be set according to repeated experiments or experiences, and the correspondence between the multiple ambient brightness ranges and the font brightness may also be set according to repeated experiments or experiences to obtain different ambient brightness ranges. Corresponding to the best font brightness, providing users with a better viewing experience.
  • the brightness data collected by the brightness sensor is used to determine the brightness value of the current environment every preset time interval. Find a plurality of preset ambient brightness ranges to determine whether the brightness value of the last determined environment is within the same ambient brightness range as the brightness value of the current environment. If it is within the same ambient brightness range, the subtitles are displayed according to the font brightness determined last time. If not in the same ambient brightness range, search for a correspondence between the preset ambient brightness range and the font brightness of the subtitle, determine the font brightness corresponding to the ambient brightness range to which the current environment brightness value belongs, and follow The corresponding font brightness displays subtitles. In the above manner, the font brightness of the subtitle can be adjusted based on the brightness value of the current environment, so that the brightness of the subtitle displayed by the terminal is more in line with the viewing requirement of the viewer, and the viewing experience is effectively improved.
  • the embodiment of the present application further provides a terminal, including a memory, a processor, and a computer program stored on the memory and running on the processor.
  • a terminal including a memory, a processor, and a computer program stored on the memory and running on the processor.
  • the processor executes the computer program, the implementation is implemented in any one of the embodiments of FIG. 1 to FIG.
  • the video subtitles are automatically adjusted in various steps.
  • the embodiment of the present application further provides a computer readable storage medium, where a computer program is stored thereon, wherein when the computer program is executed by the processor, the video in any one of the embodiments of FIG. 1 to FIG. 4 is implemented.
  • the various steps of the automatic subtitle adjustment method are described in detail below.
  • FIG. 9 is a schematic structural diagram of the terminal 90 in the embodiment of the present application.
  • the terminal 90 includes a processor 901, a memory 902, and a transceiver 903.
  • the memory 902 can include read only memory and random access memory, and provides operational instructions and data to the processor 901.
  • a portion of the memory 902 may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • memory 902 stores elements such as executable modules or data structures, or a subset thereof, or their extended set.
  • the following process is performed: when playing a video, determining to watch the viewer of the video and playing the video a target distance between the terminals; adjusting a font size of the subtitle when the video is played on the terminal according to the target distance, and/or performing the following process: when playing the video, using the brightness sensor every preset time interval
  • the collected brightness data determines a brightness value of the current environment; and adjusts a font brightness of the subtitle when the video is played on the terminal according to the brightness value of the current environment.
  • the terminal provided by the embodiment of the present application can automatically adjust the font size of the subtitle based on the target distance between the viewer and the terminal, and automatically adjust the font brightness of the subtitle based on the brightness value of the current environment.
  • the font size and font brightness improve the user's viewing experience.
  • the processor 901 controls the operation of the terminal 90, and the processor 901 may also be referred to as a CPU (Central Processing Unit).
  • Memory 902 can include read only memory and random access memory and provides instructions and data to processor 901. A portion of the memory 902 may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • the specific components of the terminal 90 are coupled together by a bus system 904 in a specific application.
  • the bus system 904 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 904 in the figure.
  • the method disclosed in the foregoing embodiment of the present application may be applied to the processor 901 or implemented by the processor 901.
  • the processor 901 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 901 or an instruction in a form of software.
  • the processor 901 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 902, and the processor 901 reads the information in the memory 902 and completes the steps of the above method in combination with its hardware.
  • the above terminal 90 can be understood by referring to the description in the parts of FIG. 1 to FIG. 8 , and no further description is made herein.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules is only a logical function division.
  • there may be another division manner for example, multiple modules or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical, mechanical or otherwise.
  • the modules described as separate components may or may not be physically separated.
  • the components displayed as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium.
  • a computer readable storage medium A number of instructions are included to cause a computer terminal (which may be a personal computer, server, or network terminal, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like.

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

本申请公开了一种视频字幕自动调整方法及装置、终端及可读存储介质。在播放视频时,可以确定观看视频的观看者与播放视频的终端之间的目标距离;根据目标距离调整视频在终端上播放时字幕的字体大小。还可以每间隔预置时长利用亮度传感器采集到的亮度数据确定当前环境的亮度值;根据当前环境的亮度值调整视频在终端上播放时字幕的字体亮度。

Description

视频字幕自动调整方法及装置、终端及可读存储介质
本申请要求于2017年11月3日提交中国专利局、申请号为201711071450.X、申请名称为“视频字幕自动调整方法及装置、终端及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及视频字幕领域,特别涉及一种视频字幕自动调整方法及装置、终端及可读存储介质。
背景
在视频播放过程中,字幕作为一种便于用户在视频语音之外接收视频内容信息的形式存在,方便用户观看视频。在视频播放过程中,会在视频画面的下方显示静态的字幕。
技术内容
本申请实施例提供了一种视频字幕自动调整方法及装置、终端及可读存储介质,可以自动调整字幕显示以适应观看者的需求。
为实现上述目的,本申请实施例提供一种视频字幕自动调整方法,该方法包括:
在播放视频时,确定观看所述视频的观看者与播放所述视频的终端之间的目标距离;
根据所述目标距离调整所述视频在所述终端上播放时字幕的字体大小。
为实现上述目的,本申请实施例提供一种视频字幕自动调整方法,该方法包括:
在播放视频时,每间隔预置时长利用亮度传感器采集到的亮度数据确定当前环境的亮度值;
根据所述当前环境的亮度值调整所述视频在终端上播放时字幕的字体亮度。
为实现上述目的,本申请实施例提供一种视频字幕自动调整装置,包括:
确定模块,用于在播放视频时,确定观看所述视频的观看者与播放所述视频的终端之间的目标距离;
大小调整模块,用于根据所述目标距离调整所述视频在所述终端上播放时字幕的字体大小。
为实现上述目的,本申请实施例提供一种视频字幕自动调整装置,包括:
亮度确定模块,用于在播放视频时,每间隔预置时长利用亮度传感器采集到的亮度数据确定当前环境的亮度值;
亮度调整模块,用于根据所述当前环境的亮度值调整所述视频在终端上播放时字幕的字体亮度。
为实现上述目的,本申请实施例提供一种终端,包括存储器、处理器及存储在所述存储器上且在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时,实现第一方面和/或第二方面所述的视频字幕自动调整方法中的各个步骤。
为实现上述目的,本申请实施例提供一种可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,实现第一方面和/或第二方面所述的视频字幕自动调整方法中的各个步骤。
本申请实施例的一种视频字幕自动调整方法能够基于观看者与终端的距离自动的调整字幕的字体大小,例如,在距离大时,字幕的字体大小也相应调整大,在距离小时,字幕的字体大小也相应调整小,使得能够满足在不同距离的情况下,用户观看视频时对字幕大小的需求,改善用户的观看体验。
本申请实施例的另一种视频字幕自动调整方法能够基于当前环境的亮度值自动调整字幕的字体亮度,例如,在当前环境的亮度值大时,字幕的字体亮度也相应增大,在当前环境的亮度值小时,字幕的字体亮度也相应减小,使得能够满足在不同的环境亮度的情况下,用户观看视频时对字体亮度的需求,改善用户的观看体验。
附图简要说明
下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例中视频字幕自动调整方法的一流程示意图;
图2为本申请实施例中视频字幕自动调整方法的另一流程示意图;
图3为本申请实施例中视频字幕自动调整方法的另一流程示意图;
图4为本申请实施例中视频字幕自动调整方法的另一流程示意图;
图5为本申请实施例中视频字幕自动调整装置的程序模块的一结构示意图;
图6为本申请实施例中视频字幕自动调整装置的程序模块的另一结构示意图;
图7为本申请实施例中视频字幕自动调整装置的程序模块的另一结构示意图;
图8为本申请实施例中视频字幕自动调整装置的程序模块的另一结构示意图;
图9为本申请实施例中终端的结构示意图;
图10a为本申请实施例中观看者观看电视的场景示意图;
图10b及图10c为本申请实施例中观看者观看到的电视机的显示界面的示意图;
图10d为本申请实施例中观看者观看电视的另一场景示意图;
图10e及图10f为本申请实施例中观看者观看到的电视机的显示界面的示意图。
实施方式
为使得本申请的申请目的、特征、优点能够更加的明显和易懂,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而非全部实施例。基于本申请中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例提出视频字幕自动调整方法,通过根据观看者与终端之间的目标距离调整视频在终端上播放时字幕的字体大小,使得能够基于观看者与终端的距离自动调整字幕的字体大小,和/或,通过采集到的当前环境的亮度值调整视频在终端上播放时字幕的字体亮度,使得能够基于当前环境的亮度值自动调整字幕的字体亮度。通过上述方式,使得能够满足在不同距离和/或不同的环境亮度的情况下,用户观看视频时对字体大小和/或字体亮度的需求,改善用户的观看体验。
各实施例的视频字幕自动调整方法可以由视频字幕自动调整装置(以下简称为:调整装置)实现。该调整装置可以是与视频显示设备, 例如电视机或者移动终端,相连的设备(如机顶盒、媒体盒子,等),或者由视频显示设备中的一部分实现。该调整装置具体可以是程序模块,存储在设备的计算机可读存储介质中,并由处理器调用执行。
请参阅图1,为本申请实施例中视频字幕自动调整方法的流程示意图。该方法可以包括以下步骤。
步骤101、在播放视频时,确定观看所述视频的观看者与播放所述视频的终端之间的目标距离。
步骤102、根据所述目标距离调整所述视频在所述终端上播放时字幕的字体大小。
在播放视频时,调整装置将确定观看者与播放视频的终端之间的目标距离。其中,调整装置可以每间隔预置时长确定一次目标距离,该预置时长可以是系统默认值,也可以是用户设置的值。例如,该预置时长可以是5秒(下文表示为5s),即调节装置每间隔5s执行一次本申请实施例中的技术方案。
其中,观看者是指在终端的观看范围内的用户,用户若处于终端的观看范围内,则可以看到终端的的显示界面播放的内容。其中,终端即为调整装置所属的终端。
其中,在得到观看者与终端之间的目标距离之后,将根据该目标距离调整视频在终端上播放时字幕的字体大小。
其中,视频的字幕模式有三种,分别是软字幕模式、硬字幕模式及无字幕模式。
软字幕模式是指视频的字幕是独立存在的。在软字幕模式下,字幕的载体常见的有:外部字幕文件和视频文件内字幕流两种形式。外部字幕文件是指字幕存储在独立于视频文件之外的一种数字化文本文件中,在播放视频时,需要获取到视频的视频文件及外部字幕文件。视频文件内字幕流是字幕以数据轨道的方式与音频轨道、视频轨道一起组织在视频文件内部。在软字幕模式下,在播放视频时,可以直接获取到视频的字幕,并对字幕的字体大小进行调整。
硬字幕模式是指字幕在音频制作时已经被叠加到视频数据相应的视频图像帧上,作为视频图像帧的一部分,且经过压缩、音视频合流后生成视频文件。在硬字幕模式下,若需要调整字幕的字体大小,需要利用字幕编码工具将字幕提取出来,如光学字符识别(Optical Character Recognition,OCR)技术,以便同步显示提取出来的字幕,并对提取出来的字幕的字体大小进行调整。
无字幕模式是指既没有软字幕也没有硬字幕,视频在在正常播放时,显示的图像是没有字幕的。然而,在无字幕模式,若观看者想要观看字幕,则可以启动预置的字幕提取方法,例如,ASR技术等,对视频文件的音频数据进行字幕提取处理,基于音频数据得到视频的字幕,且在视频播放时,同步显示字幕。这样可以使得在无字幕模式下,仍然能够为观看者显示字幕。进一步的,可以对基于音频数据得到的字幕的字体大小进行调整。
在本申请实施例中,在播放视频时,确定观看该视频的观看者与播放该视频的终端之间的目标距离,根据该目标距离调整视频在终端上播放时字幕的字体大小。相对于现有技术,能够基于观看者与终端的距离自动的调整字幕的字体大小,例如,在距离大时,字幕的字体大小也相应调整大,在距离小时,字幕的字体大小也相应调整小,使得能够满足在不同距离的情况下,用户观看视频时对字幕大小的需求,改善用户的观看体验。
请参阅图2,为本申请实施例中视频字幕自动调整方法的流程示意图。该方法可以包括以下步骤。
步骤201、在播放视频时,每间隔预置时长检测所述终端的观看范围内是否存在障碍物。
步骤202、若存在障碍物,则检测所述障碍物中是否存在观看者。
步骤203、若存在观看者,利用超声波测距技术确定所述观看者与所述终端之间的目标距离。
在本申请实施例中,步骤201至步骤203为图1所示步骤101的细化步骤。
其中,在播放视频时,调整装置将每间隔预置时长检测终端的观看范围内是否存在障碍物。该障碍物的检测可以是启动终端的摄像头,通过该摄像头拍摄图像,调整装置将对拍摄到的图像进行图像分析。利用图像分析的方式可以确定该图像中是否包含障碍物,且在包含障碍物的情况下,该各个障碍物所处的位置及形状等等信息。其中,该摄像头进行拍摄时能够拍摄到的图像范围与终端的观看范围是一致的。
其中,障碍物可以是观看者,也可以是沙发、花瓶等等。
其中,在存在障碍物的情况下,将进一步确定障碍物中是否包含观看者。例如:利用虹膜识别技术检测所有障碍物中是否存在包含人眼的障碍物。例如,可以依次对各障碍物所在的区域进行虹膜识别,以确定 各障碍物所在的区域中是否存在符合人眼特征的子区域。若障碍物所在的区域中包含符合人眼特征的区域,则确定该障碍物包含人眼,并进一步的确定该障碍物为观看者。
可以理解的是,在实际应用中,除了虹膜识别技术以外,还有其他的技术可以用于检测障碍物是否为观看者,例如在得到障碍物所处的位置及形状等信息之后,利用人脸识别技术进行人脸识别,等。若障碍物中包含人脸,则确定该障碍物为观看者。或者,还可以预先设置人体不同姿态下的人体形状,并将障碍物的形状与预先设置的人体形状进行匹配。其中,障碍物的形状可以基于人体比例进行放大或缩小。例如,预置的人体形状是基于正常成年人设置时,而障碍物为小孩时,则可以基于人体比例将该障碍物的形状进行放大。若在预置的人体形状中,匹配到与障碍物的形状匹配度大于或等于预先设置的数值人体形状时,则确定该障碍物为观看者。因此,在实际应用中,可以根据具体的情况选择合适的方式检测障碍物是否为观看者,此处不做限定。
在本申请实施例中,在检测到观看者之后,调整装置将利用超声波测距技术确定观看者与终端之间的目标距离。例如,终端上可以设置有超声波发射器及超声波接收器,在确定存在观看者的情况下,调整装置调用该超声波发射器向观看者所在的方向发射超声波信号。其中,超声波接收器接收到从观看者身上反射回来的超声波信号,调整装置得到超声波发生器发射信号的时间,及超声波接收器接收到信号的时间。从而,可以确定超声波的传输时长,并利用该传输时长及超声波信号的传输速度计算超声波信号的传输距离。该传输距离即为终端与观看者之间的目标距离。
可以理解的是,若仅检测到一个观看者,则可以将该观看者与终端之间的距离作为该目标距离。若检测到多个观看者,则可以利用该多个观看者与终端之间的距离求平均值,将该平均值作为目标距离。或者,在有多个观看者的情况下,从该多个观看者与终端的距离中,确定最大的距离,将该最大的距离作为目标距离。
步骤204、查找预先设置的多个距离范围,确定上一次确定的观看者与所述终端之间的距离及所述目标距离是否处于同一个距离范围内。
步骤205、若处于同一个距离范围内,则按照上一次确定的字体大小显示所述字幕。
步骤206、若未处于同一个距离范围内,则所述根据所述目标距离调整所述视频在所述终端上播放时字幕的字体大小。
在本申请实施例中,为了更好的调节字体大小,可以预先设置多个 距离范围。例如,以0.5米为间隔设置多个距离范围。该多个距离范围可以是连续的,例如若是三个距离范围,则分别为(0,a1],(a1,a2]及(a2,a3]。调整装置查找该预先设置的多个距离范围,确定上一次确定的观看者与终端之间的距离及目标距离是否处于同一个距离范围内。其中,上一次确定的观看者与终端之间的距离保存在存储器中,且上一次观看的观看者与本次的观看者可以相同也可以不同,并不会影响到字幕的字体大小的调整。
若上一次确定的观看者与终端之间的距离与当前得到的目标距离处于同一个距离范围内,则表明距离变化不大,且并未达到调整字体大小的条件,此时,将仍然按照上一次确定的字体大小显示字幕。若未处于同一个距离范围内,则表明需要根据目标距离调整视频在终端上播放时字幕的字体大小。
在本申请实施例中,不仅预先设置了上述多个不同的距离范围,还预先设置了该多个不同的距离范围与字幕的字体大小之间的对应关系。例如,距离范围为A是对应的字体大小为a,距离范围为B时对应的字体大小为b。在上一次确定的观看者与终端之间的距离与目标距离不在同一个距离范围内的情况下,将查找上述的距离范围与字幕的字体大小之间的对应关系,确定该目标距离所属的距离范围。还可以确定该目标距离所属的距离范围对应的字体大小,且在确定字体大小之后,按照该字体大小显示字幕。
可以理解的是,在确定字体大小之后,具体可以通过修改字幕显示参数的方式,将显示参数中的字体大小修改为基于目标距离确定的字体大小,以便能够按照基于当前检测到的目标距离确定字体大小显示字幕。
需要说明的是,上述的多个不同的距离范围中最大的距离是有限制的,且与终端的类型有关。例如若终端为电视机,则最大的距离限制在4米,即多个不同的距离范围的总长度可以是4米。若划分为5个不同的距离范围,则将分别对应5种不同的字体大小。该5种字体大小通常情况下是随着距离的增加而增大的,以便用户在与终端距离较远,如3.5米时,仍然能够看清楚电视机上的显示的字幕。其中,字体大小的设计可以基于终端的显示屏幕的大小及上述的最大距离的限制进行设计,以便为用户提供更好的观看体验。
在本申请实施例中,在播放视频时,可以每间隔预置时长检测终端的观看范围内是否存在障碍物。若存在障碍物,则利用虹膜是被技术检测是否存在包含人眼的障碍物。若存在包含人眼的障碍物,则将该障碍 物确定为观看者,利用超声波测距技术确定观看者与终端之间的目标距离。查找预先设置的距离范围,确定上一次确定的观看者与终端之间的距离及该目标距离是否处于同一个距离范围内。若处于同一个距离范围内,则按照上一次的字体大小显示字幕。若未处于同一个距离范围内,则根据目标距离调整视频在终端上播放时字幕的字体大小。通过上述方式,能够基于观看者与终端之间的距离实现对字幕的字体大小的调整,以便终端显示的字幕更符合观看者的观看需求,有效改善观看体验。
为了更好的理解图1及图2所示实施例中的技术方案,下面将介绍上述技术方案的具体应用场景。请参阅图10a,为本申请实施例中,观看者观看电视的场景示意图。其中,观看者A正在观看电视,电视机1001上设置有检测装置1002,该检测装置1002可以位于电视机1001的右下角或者左下角或者电视机显示界面下边缘的任意位置处。图10a中是检测装置1002以位于电视机1001的右下角为例进行说明。该检测装置包括摄像头、超声波发射器及超声波接收器。该摄像头在检测到存在观看者A之后,可以利用超声波发射器及超声波接收器确定观看者A与电视机1001之间的距离。如图10a所示,电视机1001与观看者A之间的虚线即为超声波确定的距离C。
若上一次检测到的距离为距离B,则电视机1001将利用上述距离C查找预置的多个距离范围,确定距离B与距离C是否在同一个距离范围内。若距离B处于第一距离范围,距离C处于第二距离范围,由于第一距离范围大于第二距离范围,则表明观看者A与电视机1001之间的距离增大了,且达到了调整字幕的字体大小的条件。因此,电视机1001将其显示的字幕的字体大小增大至第二距离范围对应的字体大小。请参阅图10b及图10c,为本申请实施例中观看者观看到的电视机的显示界面的示意图。在图10b中,显示的字幕的字体大小为距离B所属的第一距离范围对应的字体大小。图10c中,显示的字幕的字体大小为距离C所属的第一距离范围对应的字体大小。且从图10b及图10c中可以看出,图10c中的字幕“请问有人在家吗?”的字体大小大于图10b中字幕“请问有人在家吗”的字体大小。
上述图1及图2所述的实施例描述的是基于观看者与终端之间的距离调整字幕的字体大小的方式,能够根据观看者的距离调整字幕的字体大小,使得观看者可以看清楚字幕。
在各实施例中,上述装置还可以基于环境亮度调整字幕的字体亮度,从而可以根据环境亮度调整字幕的字体亮度。请参阅图3,为本申请实施例中视频字幕自动调整方法的流程示意图。该方法可以包括以下步骤。
步骤301、在播放视频时,每间隔预置时长利用亮度传感器采集到的亮度数据确定当前环境的亮度值。
步骤302、根据所述当前环境的亮度值调整所述视频在终端上播放时字幕的字体亮度。
其中,终端在播放视频时,由于该终端上已设置亮度传感器,该亮度传感器用于采集当前环境的亮度数据,调整装置将没间隔预置时长获取该亮度传感器采集到的亮度数据,并利用该亮度数据,得到当前环境的亮度值。
其中,该预置时长可以是系统默认值,也可以是用户设置的值,例如,该预置时长可以是5s,即调节装置每间隔5s获取亮度传感器在最近的5s内采集到的亮度数据。
其中,在得到当前环境的亮度值之后,将利用当前环境的亮度值调整视频在终端上播放时字幕的字体亮度。
其中,视频的字幕模式有三种,分别是软字幕模式、硬字幕模式及无字幕模式。其处理与前述方法类似。
在本申请实施例中,在播放视频时,每间隔预置时长利用亮度传感器采集到的亮度数据确定当前环境的亮度值,并根据当前环境的亮度值调整视频在终端上播放时字幕的字体亮度。这样,能够基于当前环境的亮度值自动调整字幕的字体亮度。例如,在当前环境的亮度值大时,字幕的字体亮度也相应增大;在当前环境的亮度值小时,字幕的字体亮度也相应减小。从而使得能够满足在不同的环境亮度的情况下,用户观看视频时对字体亮度的需求,改善用户的观看体验。
请参阅图4,为本申请实施例中视频字幕自动调整方法的另一流程示意图。该方法可以包括以下步骤。
步骤401、在播放视频时,每间隔预置时长利用亮度传感器采集到的亮度数据确定当前环境的亮度值。
步骤402、查找预先设置的多个环境亮度范围,确定上一次确定的环境的亮度值与所述当前环境的亮度值是否处于同一个环境亮度范围内。
步骤403、若处于同一个环境亮度范围内,则按照上一次确定的字体亮度显示所述字幕。
步骤404、若未处于同一个环境亮度范围内,则查找预先设置的环境亮度范围与字幕的字体亮度之间的对应关系,确定与所述当前环境的 亮度值所属的环境亮度范围对应的字体亮度。
步骤405、按照所述对应的字体亮度显示字幕。
在本申请实施例中,为了更好的调节字体亮度,预先设置多个环境亮度范围,且该多个环境亮度范围连续。调整装置查找该多个环境亮度范围,确定上一次确定的环境的亮度值与当前环境的亮度值是否处于同一个环境亮度范围内。其中,上一次确定的环境的亮度值保存在存储器中。
若上一次确定的环境的亮度值与当前环境的亮度值处于同一个距离范围内,则表明亮度变化不大,并未达到调整字体亮度的条件。此时,将仍然按照上一次确定的字体亮度显示字幕。若未处于同一个距离范围内,则表明需要根据当前亮度值调整视频在终端上播放时字幕的字体亮度。
在本申请实施例中,不仅预先设置了上述多个环境亮度范围,还预先设置了该多个不同环境亮度范围与字幕的字体亮度之间的对应关系,在上一次确定的环境的亮度值与当前环境的亮度值不处于同一个环境亮度范围内的情况下,调整装置将查找上述的环境亮度范围与字幕的字体亮度之间的对应关系,确定当前环境的亮度值所属的环境亮度范围,并进一步确定当前环境的亮度值所述的环境亮度范围对应的字体亮度,且在确定字体亮度之后,按照该字体亮度显示字幕。
可以理解的是,在确定字体亮度之后,具体可以通过修改字幕显示参数的方式,将显示参数中的字体亮度修改为基于当前环境的亮度值确定的字体亮度,以便能够按照基于当前环境的亮度值确定的字体亮度显示字幕。可以理解的是,显示参数中的字体亮度的调整具体可以是调整字幕显示区域的整个区域的亮度,后者可以是仅调整字幕本身的亮度,在实际应用中可以根据具体情况设置,此处不做限定。
需要说明的是,多个环境亮度范围的划分可以根据重复的实验或者经验设置,且该多个环境亮度范围与字体亮度的对应关系也可以根据重复的实验或者经验设置,以便得到不同环境亮度范围所对应的效果最好的字体亮度,为用户提供更好的观看体验。
各实施例中,用于根据距离调整字幕的字体大小的调整装置和用于根据环境亮度调整字幕的字体亮度的调整装置可以是同一个调整装置,也可以是不同的调整装置。一个设备可以同时设置有具有上述两种功能的调整装置,也可以仅设置具有其中一种功能的调整装置。
在本申请实施例中,在播放视频时,每间隔预置时长利用亮度传感 器采集到的亮度数据确定当前环境的亮度值。查找预先设置的多个环境亮度范围,确定上一次确定的环境的亮度值与当前环境的亮度值是否处于同一个环境亮度范围内。若处于同一个环境亮度范围内,则按照上一次确定的字体亮度显示字幕。若未处于同一个环境亮度范围内,则查找预先设置的环境亮度范围与字幕的字体亮度之间的对应关系,确定与所述当前环境的亮度值所属的环境亮度范围对应的字体亮度,并按照该对应的字体亮度显示字幕。通过上述方式,能够基于当前环境的亮度值对字幕的字体亮度进行调整,以便终端显示的字幕的亮度更符合观看者的观看需求,有效改善观看体验。
可以理解的是,基于距离的字幕的字体大小的调整与基于当前环境的亮度值的字幕的字体亮度的调整属于互相独立的技术方案,且可以在同一个终端上同时执行。
为了更好的理解图3及图4所示实施例中的技术方案,下面将介绍上述技术方案的具体应用场景。请参阅图10d,为本申请实施例中,用户观看电视的场景示意图。其中,观看者A正在观看电视,电视机1001上设置有亮度传感器1003,该亮度传感器1003可以位于电视机1001任意一个位置。图10d中是亮度传感器1003以位于电视机1001的右侧为例进行说明。电视机1001将每间隔预置时长获取该亮度传感器采集到的亮度数据,并确定当前环境的亮度值为亮度E。
若上一次检测到的亮度为亮度F,则电视机1001将利用上述亮度E查找预置的多个环境亮度范围,确定亮度E与亮度F是否在同一个环境亮度范围内。若亮度E处于第一环境亮度范围内,亮度F处于第二环境亮度范围内,由于第一环境亮度范围小于第二环境亮度范围,表明当前环境的亮度值变暗了,为了便于用户看清楚字幕,此时需要将显示界面上的播放的字体亮度调亮。因此,电视机1001将其显示的字幕区域的亮度增大至第一环境亮度范围对应的字体亮度。请参阅图10e及图10f,为本申请实施例中电视机的显示界面的示意图。在图10e中,为在当前环境的亮度值为亮度E的情况下,显示屏的字体亮度仍然按照亮度F所属的第二环境亮度范围显示时,用户观看到的显示界面。图10f中,为在当前环境的亮度值为亮度E的情况下,将显示屏的字体亮度调整为亮度E所属的第一环境亮度范围对应的字体亮度之后,用户观看到的显示界面。从图10e及图10f中可以看出,图10e中的字幕“这花真好看”的字体亮度小于图10f中字幕“这花真好看”的字体亮度。
请参阅图5,为本申请实施例中视频字幕自动调整装置的程序模块的结构示意图。该装置可以包括以下模块。
确定模块501,用于在播放视频时,确定观看所述视频的观看者与播放所述视频的终端之间的目标距离。
大小调整模块502,用于根据所述目标距离调整所述视频在所述终端上播放时字幕的字体大小。
在本申请实施例中,在播放视频时,确定观看该视频的观看者与播放该视频的终端之间的目标距离,根据该目标距离调整视频在终端上播放时字幕的字体大小。从而能够基于观看者与终端的距离自动的调整字幕的字体大小。例如,在距离大时,字幕的字体大小也相应调整大;在距离小时,字幕的字体大小也相应调整小。使得能够满足在不同距离的情况下,用户观看视频时对字幕大小的需求,改善用户的观看体验。
请参阅图6,为本申请实施例中视频字幕自动调整装置的程序模块的结构示意图。该装置包括:如图5所示实施例中的确定模块501及大小调整模块502,且与图5所示实施例中描述的内容相似,此处不做赘述。
其中,确定模块501可以包括:
检测模块601,用于在播放视频时,每间隔预置时长检测所述终端的观看范围内是否存在障碍物;
人眼检测模块602,用于若存在障碍物,则检测所述障碍物中是否存在观看者;
距离确定模块603,用于若存在观看者,利用超声波测距技术确定所述观看者与所述终端之间的目标距离。
各实施例中,该装置还可以包括:
距离查找模块604,用于在确定模块501之后,查找预先设置的多个距离范围,确定上一次确定的观看者与所述终端之间的距离及所述目标距离是否处于同一个距离范围内;
第一显示模块605,用于若处于同一个距离范围内,则按照上一次确定的字体大小显示所述字幕;
执行模块606,用于若未处于同一个距离范围内,则执行所述大小调整模块。
各实施例中,大小调整模块502可以包括:
大小查找模块607,用于查找预先设置的距离范围与字幕的字体大小之间的对应关系,确定与所述目标距离所属的距离范围对应的字体大小;
第二显示模块608,用于按照所述对应的字体大小显示字幕。
可以理解的是,若仅检测到一个观看者,则可以将该观看者与终端之间的距离作为该目标距离。若检测到多个观看者,则可以利用该多个观看者与终端之间的距离求平均值,将该平均值作为目标距离。或者,在有多个观看者的情况下,从该多个观看者与终端的距离中,确定最大的距离,将该最大的距离作为目标距离。
在本申请实施例中,为了更好的调节字体大小,预先设置多个距离范围,例如,以0.5米为间隔设置多个距离范围。且该多个距离范围连续,例如若是三个距离范围,则分别为(0,a1],(a1,a2]及(a2,a3]。
需要说明的是,上述的多个不同的距离范围中最大的距离是有限制的,且与终端的类型有关。例如,若终端为电视机,则最大的距离限制在4米,即多个不同的距离范围的总长度可以是4米,若划分为5个不同的距离范围,则将分别对应5种不同的字体大小,该5种字体大小通常情况下是随着距离的增加而增大的,以便用户在与终端距离较远,如3.5米时,仍然能够看清楚电视机上的显示的字幕。其中,字体大小的设计可以基于终端的显示屏幕的大小及上述的最大距离的限制进行设计,以便为用户提供更好的观看体验。
在本申请实施例中,在播放视频时,每间隔预置时长检测终端的观看范围内是否存在障碍物,若存在障碍物,则利用虹膜是被技术检测是否存在包含人眼的障碍物,若存在包含人眼的障碍物,则将该障碍物确定为观看者,利用超声波测距技术确定观看者与终端之间的目标距离,查找预先设置的距离范围,确定上一次确定的观看者与终端之间的距离及该目标距离是否处于同一个距离范围内,若处于同一个距离范围内,则按照上一次的字体大小显示字幕,若未处于同一个距离范围内,则根据目标距离调整视频在终端上播放时字幕的字体大小。通过上述方式,能够基于观看者与终端之间的距离实现对字幕的字体大小的调整,以便终端显示的字幕更符合观看者的观看需求,有效改善观看体验。
请参阅图7,为本申请实施例中视频字幕自动调整装置的程序模块的结构示意图。该装置可以包括以下步骤。
亮度确定模块701,用于在播放视频时,每间隔预置时长利用亮度传感器采集到的亮度数据确定当前环境的亮度值;
亮度调整模块702,用于根据所述当前环境的亮度值调整所述视频在终端上播放时字幕的字体亮度。
在本申请实施例中,在播放视频时,每间隔预置时长利用亮度传感 器采集到的亮度数据确定当前环境的亮度值,并根据当前环境的亮度值调整视频在终端上播放时字幕的字体亮度。从而能够基于当前环境的亮度值自动调整字幕的字体亮度。例如,在当前环境的亮度值大时,字幕的字体亮度也相应增大;在当前环境的亮度值小时,字幕的字体亮度也相应减小。使得能够满足在不同的环境亮度的情况下,用户观看视频时对字体亮度的需求,改善用户的观看体验。
请参阅图8,为本申请实施例中视频字幕自动调整装置的程序模块的另一结构示意图。该装置可以包括如图7所示的亮度确定模块701及亮度调整模块702,且与图7所示实施例中描述的内容相似,此处不做赘述。
在本申请实施例中,亮度调整模块702可以包括:
亮度查找模块801,用于查找预先设置的环境亮度范围与字幕的字体亮度之间的对应关系,确定与所述当前环境的亮度值所属的环境亮度范围对应的字体亮度;
显示模块802,用于按照所述对应的字体亮度显示字幕。
在本申请实施例中,装置还可以包括:
范围查找模块803,用于查找预先设置的多个环境亮度范围,确定上一次确定的环境的亮度值与所述当前环境的亮度值是否处于同一个环境亮度范围内;
亮度显示模块804,用于若处于同一个环境亮度范围内,则按照上一次确定的字体亮度显示所述字幕;
触发模块805,用于若未处于同一个环境亮度范围内,则继续执行所述亮度调整模块702。
需要说明的是,多个环境亮度范围的划分可以根据重复的实验或者经验设置,且该多个环境亮度范围与字体亮度的对应关系也可以根据重复的实验或者经验设置,以便得到不同环境亮度范围所对应的效果最好的字体亮度,为用户提供更好的观看体验。
在本申请实施例中,在播放视频时,每间隔预置时长利用亮度传感器采集到的亮度数据确定当前环境的亮度值。查找预先设置的多个环境亮度范围,确定上一次确定的环境的亮度值与当前环境的亮度值是否处于同一个环境亮度范围内。若处于同一个环境亮度范围内,则按照上一次确定的字体亮度显示字幕。若未处于同一个环境亮度范围内,则查找预先设置的环境亮度范围与字幕的字体亮度之间的对应关系,确定与所述当前环境的亮度值所属的环境亮度范围对应的字体亮度,并按照该对 应的字体亮度显示字幕。通过上述方式,能够基于当前环境的亮度值对字幕的字体亮度进行调整,以便终端显示的字幕的亮度更符合观看者的观看需求,有效改善观看体验。
本申请实施例中还提供一种终端,包括存储器、处理器及存储在存储器上且在处理器上运行的计算机程序,处理器执行计算机程序时,实现如图1至图4任意一个实施例中的视频字幕自动调整方法中的各个步骤。
本申请实施例中还提供一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,实现如图1至图4任意一个实施例中的视频字幕自动调整方法的各个步骤。
为了更好的理解本申请实施例中的技术方案,请参阅图9,为本申请实施例中终端90的结构示意图。该终端90包括处理器901、存储器902和收发器903,存储器902可以包括只读存储器和随机存取存储器,并向处理器901提供操作指令和数据。存储器902的一部分还可以包括非易失性随机存取存储器(NVRAM)。
在一些实施方式中,存储器902存储了如下的元素:可执行模块或者数据结构,或者他们的子集,或者他们的扩展集。
在本申请实施例中,通过调用存储器902存储的操作指令(该操作指令可存储在操作系统中),执行以下的过程:在播放视频时,确定观看所述视频的观看者与播放所述视频的终端之间的目标距离;根据所述目标距离调整所述视频在所述终端上播放时字幕的字体大小,和/或,执行以下过程:在播放视频时,每间隔预置时长利用亮度传感器采集到的亮度数据确定当前环境的亮度值;根据所述当前环境的亮度值调整所述视频在终端上播放时字幕的字体亮度。
与现有技术相比,本申请实施例提供的终端,能够基于观看者与终端之间的目标距离实现字幕的字体大小的自动调整及基于当前环境的亮度值实现字幕的字体亮度在的自动调整,满足用户在观看视频时,对字体大小及字体亮度的需求,改善用户的观看体验。
其中,处理器901控制终端90的操作,处理器901还可以称为CPU(Central Processing Unit,中央处理单元)。存储器902可以包括只读存储器和随机存取存储器,并向处理器901提供指令和数据。存储器902的一部分还可以包括非易失性随机存取存储器(NVRAM)。具体的应用中终端90的各个组件通过总线系统904耦合在一起,其中总线系统904除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统904。
上述本申请实施例揭示的方法可以应用于处理器901中,或者由处理器901实现。处理器901可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器901中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器901可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器902,处理器901读取存储器902中的信息,结合其硬件完成上述方法的步骤。
以上的终端90可以参阅图1至图8部分的描述进行理解,本处不做过多赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软 件产品存储在一个存储介质中,包括若干指令用以使得一台计算机终端(可以是个人计算机,服务器,或者网络终端等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。
以上为对本申请所提供的一种视频字幕自动调整方法及装置、终端及可读存储介质的描述,对于本领域的技术人员,依据本申请实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种视频字幕自动调整方法,可以由设备执行,所述方法包括:
    在播放视频时,确定观看所述视频的观看者与播放所述视频的终端之间的目标距离;
    根据所述目标距离调整所述视频在所述终端上播放时字幕的字体大小。
  2. 根据权利要求1所述的方法,其中,所述确定观看所述视频的观看者与播放所述视频的终端之间的距离,包括:
    每间隔预置时长检测所述终端的观看范围内是否存在障碍物;
    若存在障碍物,则检测所述障碍物中是否存在观看者;
    若存在观看者,利用超声波测距技术确定所述观看者与所述终端之间的目标距离。
  3. 根据权利要求2所述的方法,其中,进一步包括:
    查找预先设置的多个距离范围,确定上一次确定的观看者与所述终端之间的距离及所述目标距离是否处于同一个距离范围内;
    若处于同一个距离范围内,则按照上一次确定的字体大小显示所述字幕;
    若未处于同一个距离范围内,则继续执行所述根据所述目标距离调整所述视频在所述终端上播放时字幕的字体大小的步骤。
  4. 根据权利要求1至3任意一项所述的方法,其中,所述根据所述目标距离调整所述视频在所述终端上播放时字幕的字体大小,包括:
    查找预先设置的距离范围与字幕的字体大小之间的对应关系,确定与所述目标距离所属的距离范围对应的字体大小;
    按照所述对应的字体大小显示字幕。
  5. 根据权利要求1至3任意一项所述的方法,进一步包括:
    在播放视频时,每间隔预置时长利用亮度传感器采集到的亮度数据确定当前环境的亮度值;
    根据所述当前环境的亮度值调整所述视频在终端上播放时字幕的字体亮度。
  6. 根据权利要求5所述的方法,其中,所述根据所述当前环境的亮 度值调整所述视频的字幕在终端上播放时字体亮度,包括:
    查找预先设置的环境亮度范围与字幕的字体亮度之间的对应关系,确定与所述当前环境的亮度值所属的环境亮度范围对应的字体亮度;
    按照所述对应的字体亮度显示字幕。
  7. 根据权利要求5所述的方法,进一步包括:
    查找预先设置的多个环境亮度范围,确定上一次确定的环境的亮度值与所述当前环境的亮度值是否处于同一个环境亮度范围内;
    若处于同一个环境亮度范围内,则按照上一次确定的字体亮度显示所述字幕;
    若未处于同一个环境亮度范围内,则继续执行根据所述当前环境的亮度值调整所述视频在终端上播放时字幕的字体亮度的步骤。
  8. 一种视频字幕自动调整方法,可以由设备执行,所述方法包括:
    在播放视频时,每间隔预置时长利用亮度传感器采集到的亮度数据确定当前环境的亮度值;
    根据所述当前环境的亮度值调整所述视频在终端上播放时字幕的字体亮度。
  9. 根据权利要求8所述的方法,其中,所述根据所述当前环境的亮度值调整所述视频的字幕在终端上播放时字体亮度,包括:
    查找预先设置的环境亮度范围与字幕的字体亮度之间的对应关系,确定与所述当前环境的亮度值所属的环境亮度范围对应的字体亮度;
    按照所述对应的字体亮度显示字幕。
  10. 根据权利要求8或9所述的方法,进一步包括:
    查找预先设置的多个环境亮度范围,确定上一次确定的环境的亮度值与所述当前环境的亮度值是否处于同一个环境亮度范围内;
    若处于同一个环境亮度范围内,则按照上一次确定的字体亮度显示所述字幕;
    若未处于同一个环境亮度范围内,则继续执行根据所述当前环境的亮度值调整所述视频在终端上播放时字幕的字体亮度的步骤。
  11. 一种视频字幕自动调整装置,包括:
    确定模块,用于在播放视频时,确定观看所述视频的观看者与播放所述视频的终端之间的目标距离;
    大小调整模块,用于根据所述目标距离调整所述视频在所述终端上播放时字幕的字体大小。
  12. 根据权利要求11所述的装置,其中,所述确定模块包括:
    检测模块,用于在播放视频时,每间隔预置时长检测所述终端的观看范围内是否存在障碍物;
    人眼检测模块,用于若存在障碍物,则检测所述障碍物中是否存在观看者;
    距离确定模块,用于若存在观看者,利用超声波测距技术确定所述观看者与所述终端之间的目标距离。
  13. 根据权利要求12所述的装置,进一步包括:
    距离查找模块,用于在所述大小调整模块之前,查找预先设置的多个距离范围,确定上一次确定的观看者与所述终端之间的距离及所述目标距离是否处于同一个距离范围内;
    第一显示模块,用于若处于同一个距离范围内,则按照上一次确定的字体大小显示所述字幕;
    执行模块,用于若未处于同一个距离范围内,则执行所述大小调整模块;
    其中,所述大小调整模块包括:
    大小查找模块,用于查找预先设置的距离范围与字幕的字体大小之间的对应关系,确定与所述目标距离所属的距离范围对应的字体大小;
    第二显示模块,用于按照所述对应的字体大小显示字幕。
  14. 根据权利要求11至13任意一项所述的装置,进一步包括:
    亮度确定模块,用于在播放视频时,每间隔预置时长利用亮度传感器采集到的亮度数据确定当前环境的亮度值;
    亮度调整模块,用于根据所述当前环境的亮度值调整所述视频在终端上播放时字幕的字体亮度。
  15. 根据权利要求14所述的装置,其中,所述亮度调整模块包括:
    亮度查找模块,用于查找预先设置的环境亮度范围与字幕的字体亮度之间的对应关系,确定与所述当前环境的亮度值所属的环境亮度范围对应的字体亮度;
    显示模块,用于按照所述对应的字体亮度显示字幕。
  16. 一种视频字幕自动调整装置,包括:
    亮度确定模块,用于在播放视频时,每间隔预置时长利用亮度传感器采集到的亮度数据确定当前环境的亮度值;
    亮度调整模块,用于根据所述当前环境的亮度值调整所述视频在终端上播放时字幕的字体亮度。
  17. 根据权利要求16所述的装置,其中,所述亮度调整模块包括:
    亮度查找模块,用于查找预先设置的环境亮度范围与字幕的字体亮度之间的对应关系,确定与所述当前环境的亮度值所属的环境亮度范围对应的字体亮度;
    显示模块,用于按照所述对应的字体亮度显示字幕。
  18. 根据权利要求16或17所述的装置,进一步包括:
    范围查找模块,用于查找预先设置的多个环境亮度范围,确定上一次确定的环境的亮度值与所述当前环境的亮度值是否处于同一个环境亮度范围内;
    亮度显示模块,用于若处于同一个环境亮度范围内,则按照上一次确定的字体亮度显示所述字幕;
    触发模块,用于若未处于同一个环境亮度范围内,则继续执行所述亮度调整模块。
  19. 一种终端,包括存储器、处理器及存储在所述存储器上且在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时,实现如权利要求1至7任意一项所述的视频字幕自动调整方法中的各个步骤,和/或,实现如权利要求8至10任意一项所述的视频字幕自动调整方法中的各个步骤。
  20. 一种可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,实现如权利要求1至7任意一项所述的视频字幕自动调整方法中的各个步骤,和/或,实现如权利要求8至10任意一项所述的视频字幕自动调整方法中的各个步骤。
PCT/CN2018/113559 2017-11-03 2018-11-02 视频字幕自动调整方法及装置、终端及可读存储介质 WO2019085980A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711071450.X 2017-11-03
CN201711071450.XA CN109756788B (zh) 2017-11-03 2017-11-03 视频字幕自动调整方法及装置、终端及可读存储介质

Publications (1)

Publication Number Publication Date
WO2019085980A1 true WO2019085980A1 (zh) 2019-05-09

Family

ID=66332844

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/113559 WO2019085980A1 (zh) 2017-11-03 2018-11-02 视频字幕自动调整方法及装置、终端及可读存储介质

Country Status (2)

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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111709342A (zh) * 2020-06-09 2020-09-25 北京字节跳动网络技术有限公司 字幕分割方法、装置、设备及存储介质
US20210329207A1 (en) * 2018-12-29 2021-10-21 Autel Robotics Co., Ltd. Image displaying method, apparatus and electronic device
CN115002554A (zh) * 2022-05-13 2022-09-02 广州方硅信息技术有限公司 直播画面调整方法、系统、装置及计算机设备
EP4087267A4 (en) * 2019-12-30 2023-12-06 ZTE Corporation SUBTITLE SETTING METHOD AND APPARATUS, TERMINAL AND RECORDING MEDIUM

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235911B (zh) * 2019-06-26 2022-12-09 广东小天才科技有限公司 基于字体大小的光线调整方法及装置、终端设备、介质
CN110891200B (zh) * 2019-11-22 2022-06-17 网易(杭州)网络有限公司 基于弹幕的交互方法、装置、设备及存储介质
CN112995749B (zh) * 2021-02-07 2023-05-26 北京字节跳动网络技术有限公司 视频字幕的处理方法、装置、设备和存储介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587704A (zh) * 2008-05-20 2009-11-25 鸿富锦精密工业(深圳)有限公司 便携式视频装置及其显示字体大小调节方法
CN101951445A (zh) * 2010-10-09 2011-01-19 华为终端有限公司 自适应调节的终端设备和方法
CN102122499A (zh) * 2011-02-23 2011-07-13 西南交通大学 屏显设备光环境自适应调节系统
CN102148020A (zh) * 2010-02-10 2011-08-10 元太科技工业股份有限公司 亮暗转换显示装置、显示器及其亮度调整方法
US20140184638A1 (en) * 2012-12-31 2014-07-03 Sathiyaraj Ramachandran Adaptively scaling a video frame/image element rendered on a data processing device
CN105872845A (zh) * 2016-04-18 2016-08-17 深圳Tcl数字技术有限公司 智能调节字幕大小的方法及电视机
CN106919359A (zh) * 2017-04-18 2017-07-04 苏州科技大学 一种显示屏字体大小自动调整系统
CN107239250A (zh) * 2017-07-01 2017-10-10 珠海格力电器股份有限公司 一种调节屏幕显示方法、装置及其移动终端

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03187687A (ja) * 1989-12-18 1991-08-15 Hitachi Commun Syst Inc 近視防止テレビ装置
KR100939711B1 (ko) * 2002-12-12 2010-02-01 엘지전자 주식회사 텍스트 기반의 서브타이틀 재생장치 및 방법
KR100599118B1 (ko) * 2004-07-20 2006-07-12 삼성전자주식회사 자막신호표시상태를 변경하는 데이터재생장치 및 그 방법
CN101071562A (zh) * 2006-05-12 2007-11-14 上海乐金广电电子有限公司 卡拉ok音频设备的字幕大小调节方法
WO2010109900A1 (ja) * 2009-03-26 2010-09-30 パナソニック株式会社 映像加工装置、映像加工方法、映像加工集積回路、映像再生装置
JP5525201B2 (ja) * 2009-07-28 2014-06-18 パナソニック株式会社 画像合成装置、画像符号化装置、コンピュータプログラム、記録媒体
CN103312863A (zh) * 2012-03-08 2013-09-18 中兴通讯股份有限公司 移动终端视频的呈现方法及装置
US8659703B1 (en) * 2012-10-23 2014-02-25 Sony Corporation Adapting layout and text font size for viewer distance from TV
CN105607733B (zh) * 2015-08-25 2018-12-25 宇龙计算机通信科技(深圳)有限公司 调节方法、调节装置和终端
CN105630447B (zh) * 2015-12-24 2019-04-16 小米科技有限责任公司 调整文字显示的方法及装置
CN105657497B (zh) * 2016-02-01 2019-08-13 华为技术有限公司 一种视频播放方法及设备
CN105681861A (zh) * 2016-03-04 2016-06-15 青岛海信电器股份有限公司 一种终端显示字幕的调节方法和系统
CN105843393A (zh) * 2016-03-30 2016-08-10 苏州合欣美电子科技有限公司 一种自适应字幕调整的影音播放器
CN105975447A (zh) * 2016-04-27 2016-09-28 乐视控股(北京)有限公司 一种字体调整方法及装置
CN105848004A (zh) * 2016-05-16 2016-08-10 乐视控股(北京)有限公司 字幕播放方法、字幕播放装置
CN106231079A (zh) * 2016-07-21 2016-12-14 乐视控股(北京)有限公司 一种视频播放亮度自动调节方法及移动终端
CN106231105A (zh) * 2016-08-04 2016-12-14 成都佳荣科技有限公司 一种智能手机调整投影的方法
CN106658220B (zh) * 2016-11-11 2019-11-19 理光图像技术(上海)有限公司 字幕创建装置、展示模块以及字幕创建展示系统
CN106971685B (zh) * 2017-01-09 2020-12-25 义乌市智享通讯设备有限公司 一种显示控制的方法及系统及终端

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587704A (zh) * 2008-05-20 2009-11-25 鸿富锦精密工业(深圳)有限公司 便携式视频装置及其显示字体大小调节方法
CN102148020A (zh) * 2010-02-10 2011-08-10 元太科技工业股份有限公司 亮暗转换显示装置、显示器及其亮度调整方法
CN101951445A (zh) * 2010-10-09 2011-01-19 华为终端有限公司 自适应调节的终端设备和方法
CN102122499A (zh) * 2011-02-23 2011-07-13 西南交通大学 屏显设备光环境自适应调节系统
US20140184638A1 (en) * 2012-12-31 2014-07-03 Sathiyaraj Ramachandran Adaptively scaling a video frame/image element rendered on a data processing device
CN105872845A (zh) * 2016-04-18 2016-08-17 深圳Tcl数字技术有限公司 智能调节字幕大小的方法及电视机
CN106919359A (zh) * 2017-04-18 2017-07-04 苏州科技大学 一种显示屏字体大小自动调整系统
CN107239250A (zh) * 2017-07-01 2017-10-10 珠海格力电器股份有限公司 一种调节屏幕显示方法、装置及其移动终端

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210329207A1 (en) * 2018-12-29 2021-10-21 Autel Robotics Co., Ltd. Image displaying method, apparatus and electronic device
EP4087267A4 (en) * 2019-12-30 2023-12-06 ZTE Corporation SUBTITLE SETTING METHOD AND APPARATUS, TERMINAL AND RECORDING MEDIUM
CN111709342A (zh) * 2020-06-09 2020-09-25 北京字节跳动网络技术有限公司 字幕分割方法、装置、设备及存储介质
CN111709342B (zh) * 2020-06-09 2023-05-16 北京字节跳动网络技术有限公司 字幕分割方法、装置、设备及存储介质
CN115002554A (zh) * 2022-05-13 2022-09-02 广州方硅信息技术有限公司 直播画面调整方法、系统、装置及计算机设备

Also Published As

Publication number Publication date
CN109756788A (zh) 2019-05-14
CN109756788B (zh) 2022-08-23

Similar Documents

Publication Publication Date Title
WO2019085980A1 (zh) 视频字幕自动调整方法及装置、终端及可读存储介质
JP5976035B2 (ja) 画像表示装置および制御方法
CN109168034B (zh) 商品信息显示方法、装置、电子设备和可读存储介质
CN106576184B (zh) 信息处理装置、显示装置、信息处理方法、程序和信息处理系统
CN104796781B (zh) 视频片段提取方法及装置
EP2840800A1 (en) Content-based audio/video adjustment
WO2015196584A1 (zh) 一种智能录制系统
US20120124525A1 (en) Method for providing display image in multimedia device and thereof
TW202002610A (zh) 字幕顯示方法及裝置
WO2011125905A1 (ja) テレビ受信機の動作モード自動設定装置、動作モード自動設定装置を備えたテレビ受信機、動作モード自動設定方法
US10749923B2 (en) Contextual video content adaptation based on target device
EP2938060A1 (en) Dynamic adjustment device for recording resolution and dynamic adjustment method and terminal
CN111405339B (zh) 一种分屏显示方法、电子设备及存储介质
CN106470313B (zh) 影像产生系统及影像产生方法
US20150271570A1 (en) Audio/video system with interest-based ad selection and methods for use therewith
JP2011239029A (ja) 映像表示装置、省電力制御装置、及び省電力方法
US20190251363A1 (en) Electronic device and method for generating summary image of electronic device
CN113709566A (zh) 多媒体内容的播放方法、装置、设备以及计算机存储介质
US20150271465A1 (en) Audio/video system with user analysis and methods for use therewith
US10798459B2 (en) Audio/video system with social media generation and methods for use therewith
US20150271553A1 (en) Audio/video system with user interest processing and methods for use therewith
WO2018196530A1 (zh) 一种视频信息处理方法及终端、计算机存储介质
US20170324921A1 (en) Method and device for displaying multi-channel video
US20140009588A1 (en) Video display apparatus and video display method
CN110602556A (zh) 播放方法、云端服务器及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18873605

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18873605

Country of ref document: EP

Kind code of ref document: A1