CONTEXT-AWARE CAPTIONING SYSTEM
Methods for providing a context-aware captioning system are disclosed. An example method includes receiving video data associated with a video, the video data including caption data for displaying a caption when the video is played and receiving gaze data associated with eye movements of a user watching the video. The gaze data and caption data may be encoded, and the encodings may be examined to identify a preferred region of the video for displaying the caption, where the preferred region of the video is identified based on the gaze data. The caption may then be displayed in the preferred region of the video.
Video playback systems often have the capability of adding captions to videos to provide accessibility for hearing impaired individuals or translation to a different language. The video player displays the captions at given timestamps, and switches to the next one at the next timestamp. As a result, the captions are displayed at predefined offsets and often at the bottom of the video.
SUMMARYImplementations relate to a system and method that provides context-aware video captioning and playback. Reading captions while watching a video can interfere with the user's focus and interrupt the user's visual processing of the video content. The disclosed context-aware video playback and captioning system examines a user's gaze, content of the video, and/or identity of the speakers in the video to position the caption optimally within the scene. This may include identifying the portion of the scene the user is focusing on based on the user's gaze and positioning the caption in the identified portion. The system may also group captions based on the identity of speakers and position the captions based on the identified speakers by displaying the captions close to the speaker who speaks a caption segment. Additionally, the system may identify portions of the scene where more action is occurring and place the caption in the area with more activity to enable the user to retain their focus.
The details of one or more implementations are set forth in the accompanying drawings and the description below. Other features will be apparent from the description and drawings, and from the claims.
Video captions are utilized by different users for a variety of reasons. People who are deaf and hard of hearing (DHH) rely heavily on captions to watch and understand videos. Captions are also used by viewers who are watching a video in a foreign language or unfamiliar accent to better understand the spoken words. Captions may also be utilized when a viewer needs to watch a video at a low volume. While captions are helpful to many users, they can take the viewer's attention away from the scene they are watching. Currently, video playback systems display the captions at the bottom of the screen and at a predefined speed. Captions are defined as time markers and offset to be displayed by the video player based on the time markers. The video player displays the captions at given timestamps, and switches to the next caption regardless of what the user is doing. Thus, the captions are placed at predefined static offsets and sizes regardless of the actions of the viewer. However, people have different reading capabilities. A line of text that might take one user a few seconds to read might take much longer for another user, in particular, if the text is displayed at a different location than a region of interest in the scene. As a result, many viewers find it challenging to keep up with the captions and watch the video at the same time.
Moreover, reading captions diverts the viewer's attention away from the scene they are watching. As a result, while the user is focused on reading the captions, there might be important action happening in the scene that they miss. Moreover, current video captioning systems do not distinguish between the individuals that are talking in a scene. Captions for all actions and spoken words are displayed at the same place regardless of who is speaking at that moment. This makes it difficult for some viewers, such as many DHH individuals, to determine who is speaking at given points. Furthermore, when there are overlapping voices in the video, it is hard for the viewer to identify which speaker utters which portions of the captions. As a result, there exists a technical problem of lack of mechanisms for displaying captions in a way that minimizes interference with the video, enables the viewer to understand the scene and displays the captions based on the context and/or needs of a given viewer.
The systems and methods described herein provide technical solutions for a context-aware video captioning system that utilizes user gaze, face detection, machine learning, scene depth and/or language detection to optimize the user's experience when watching a video with captions. A video processing system may analyze the video to identify speakers, determine facial landmarks, recognize facial expressions and/or identify regions of interest in video frames. A gaze identifying system which may include user-facing systems may observe the user's gaze to identify a region of the screen the user is focused on. The information extracted from the video as well as the user gaze information may be used to identify a preferred region of the video for displaying a caption segment. In some examples, the captions are segmented based on speaker identification and displayed in proximity to the speaker who is speaking the words of a caption segment. This provides the technical advantage of enabling a viewer to clearly understand which speaker is speaking the content of a caption segment. In some implementations, the user gaze is used to identify the region of the screen the user is focused on such that captions can be displayed in that region. This provides the technical advantages of not diverting the user's attention from their focus to read the captions, thus optimizing the user's experience. In some examples, information extracted from the video identifies the language(s) spoken during a scene. This enables the solution to convey to the user that some parts of the original dialogue are in a different language, thus optimizing the viewer's understanding of the video.
In some implementations, information extracted from the video enables the system to detect when the original video has captions. This enables the technical solution to avoid showing duplicate captions. In some examples, user gaze is used to identify words or phrases that take longer to read by users. Aggregate information can be used to conclude what words are harder to comprehend or read for most users. This data can be collected and provided as feedback to authors of the video to enable them to optimize their video by, for example, simplifying the dialogue or captions.
In some implementations, the information extracted from the video, the gaze data and/or the caption data are provided as an input to a machine learning model and the machine learning model identifies a preferred region for displaying a caption segment based on the extracted information, gaze data and/or caption data. In some examples, the information extracted from the video such as speaker data, facial data, and caption data, as well as gaze data is encoded by the model and the encodings are used to identify the preferred region for displaying the caption.
Displaying the caption 120 adjacent to the person 102 is achieved by processing the video to identify which person speaks a particular caption segment, identifying the person in the video frame and displaying the caption 120 in the vicinity of the identified person. In an example, the caption includes the name of the person 102 or other identifying information to more clearly differentiate between the person 102 and the person 104 in the captions. This may be made possible by examining data extracted from the video by a video processing system. The extracted data may include identities of the people in the video, which may include identifying information such as names, data related to their appearance and the like. The extracted data may also include facial landmarks that help identify the location of faces in the video frame. This information may be used to determine the location of the speaker's head so that the captions may be displayed in proximity to the speaker's face (e.g., speaker's lips).
The video processing system 204 may receive the video 202, which may include the caption data, and analyze the data via a video processing model 206 to extract a variety of information from the video 202. The video processing model 206 represents one or more machine-learning models or other mechanisms designed to analyze and retrieve information about various aspects of a video file. In an example, the video processing model 206 includes a model configured to provide speaker diarization, a model configured to identify facial landmarks and/or facial expressions, a model configured to detect the language spoken at a given part of the video, a model for generating a depth map for the video 202 and the like.
The video processing system 204 may perform video processing on the video 202 offline. For example, once a video is uploaded to an application such as a video streaming application, the application may transmit the video 202 to the video processing system 204 for processing. As a result, the video processing system 204 may be executed on a remote or cloud-based server. The video processing system 204 may analyze the video 202 offline and provide the video data 218 for storage along with the video 202 in a memory of the context-aware video captioning system (not shown) or in an external memory such as a memory associated with the streaming application. The video data 218 may be provided in a format that is easily accessible and usable by the caption processing unit 210.
In some implementations, the video processing model 206 identifies facial landmarks in a video frame (or image) of the video 202. This may be achieved by first detecting a face in the video frame and then pinpointing specific portions of the face (e.g., landmarks) such as eyes, eyebrows, nose and mouth. This may involve using a machine-learning model such as a deep learning-based model that is trained to learn patterns and relationships between facial landmarks and the overall facial structure.
In some examples, the video processing model 206 also extracts information about facial expressions of the faces in a given video frame. This may involve inferring and/or extracting facial features similar to the facial features used for identify facial landmarks. For example, algorithms may be used to analyze and interpret facial features such as the shape of the mouth, position of eyebrows, and movement of eyes. In an example, identifying facial expressions involves determining facial blendshape weights in three-dimensional (3D) videos. Facial expressions may be used to determine where to place a caption segment, as further discussed below.
In some implementations, the video processing model 206 identifies the speaker(s) in a given video frame. To achieve this, the video processing model 206 may function as a speaker diarization algorithm. Speaker diarization may refer to the process of identifying and segmenting an audio recording into distinct speech segments, where each segment corresponds to a particular speaker. This can help determine which person speaks at which part of the conversation.
Speaker diarization may involve audio segmentation during which the audio portion of the video 202 is divided into smaller segments based on pauses or other acoustic cues and feature extraction which may include analyzing each segment to extract unique acoustic features (e.g., speaker embeddings) that represent the speaker's voice. The extracted features may then be clustered based on similarity with each cluster potentially representing a unique speaker. The segments within each cluster may then be assigned a speaker label or tag to distinguish between different speakers. In this manner, speakers within each video frame are identified for further association with the caption segments.
In some examples, the video processing system 204 also identifies language(s) that are spoken at given timestamps of the video. For example, the audio data may be analyzed and used to generate text based on the speech in the audio data and the generated text may be examined by a model to identify the language of the text. The language information may then be provided for one or more timestamps of the video. This can be used later by the caption processing unit 210 to indicate the original language of the caption.
In some implementations, the video processing system 204 also identifies regions of interest in one or more video frames by identifying sections of the video frame that contain actions of interest. This information can be later used to determine where to position captions.
Accordingly, the video processing system 204 utilizes one or more video processing models 206 to extract various types of data from the video 202. As discussed above, the extracted data may be compiled into one or more files that are then transmitted to the caption processing unit 210 for use. In some implementations, the extracted data is stored in or with the video 202 for future use.
In some implementations, the video processing system 204 also generates a depth map for given video frames when the video 202 is a 3D video. Alternatively, the video 202 itself may include the depth map.
Referring back to
The context-aware video captioning system 200 also includes a sensor 214 which captures data from a viewer of the video 202. The sensor 214 may be a camera (not shown) in a head-wearable device or any other computing device used to play videos. In some examples, the camera(s) are external components that capture images of one or more users' eyes as the user(s) are watching a video. In an example, the cameras are user-facing webcams that capture images of the user's eyes and transmit the images over a network to a device on which the caption processing model is stored. In another example, the camera(s) are included in a mobile phone, tablet or laptop and transmit captured images to the caption processing unit 210 which is stored on the same device or remotely.
In some implementations, at least two user-facing cameras are used to capture images of each eye to identify the direction of the user's gaze. In an example, the sensor 214 includes or makes use of an electromagnetic radiation source to illuminate the eye(s) and a camera to capture reflections from the eye(s) such as from the cornea and/or pupil. The reflections from the cornea and pupil may be used by the gaze identifying unit 208 to determine the direction the eye is pointing to. Data captured by the sensor 214, such as images that captured the reflection of the light from the eye may be provided to the gaze identifying unit 208 for determining the direction of the user's gaze. The gaze identifying unit 208 may retrieve data from the image(s) to determine the position of the pupil relative to the corneal reflection to determine the direction of the gaze.
The determined direction of the gaze may be transmitted to a gaze map generating unit 220 to generate a gaze map 222 for the current video frame. The gaze map generating unit 220 receives the currently played video frame from the video playback system 216 and uses the information about the user's gaze direction to create the gaze map 222 for the user's gaze based on the video frame. In some implementations, in addition to the current video frame, the gaze map generating unit 220 also receives information about the type and/or size of the display device on which the video is being played to enable more precise mapping of the direction of the gaze to the scene displayed by the video frame. To generate the gaze map 222, the gaze map generating unit 220 may utilize a model or other algorithm to compare the direction of the user's gaze with the area of the video frame and identify regions that the user's gaze direction is likely directed to.
Referring back to
The video playback system 216 receives the video 202 which may include the caption data, and information about how a given caption segment should be displayed. The information about how captions should be displayed may include a preferred region of the video for each caption, a speed at which the video and/or the captions should be displayed, and/or formatting data for the caption. The video playback system 216 utilizes the inputs to display the caption segments in accordance with the caption information received (e.g., in the preferred region, with the preferred formatting, etc.). The video playback system 216 may be a video player application on a computing device such as a laptop, mobile phone or head-wearable device. The video playback system 216 may also be a video playback application on a TV or other display device.
Speaker data 402 may include speaker diarization data which identifies speakers in given video frames based on audio parameters of the audio portion of the video file. In an example, the identified speakers are labeled and identified for given timestamps of the video file. In this manner, a labeled speaker is associated with timestamps at which there are spoken words in the video.
Facial data 404 may include facial landmarks and/or facial expressions for one or more faces in a given video frame. Facial landmarks may include facial features such as eyebrows, eyes, lips, nose and the like. Facial landmarks help identify location of faces and facial expressions assist in identifying how and where to display captions in proximity to a face. In some implementations, other information such as depth maps and detected languages may also be provided from the video processing system 204 to the caption processing unit 210.
In addition to speaker data 402 and facial data 404, a gaze map 406 generated by the gaze map generating unit 220 may also be transmitted to the caption processing unit 210. As discussed before, a viewer's gaze direction may be examined and used to generate a gaze map 406 for given video frames at specific timestamps. The gaze map 406 may help identify an area of the screen the viewer is focused on, which in turn can help in selecting a preferred region of the video frame for displaying captions.
The caption processing unit 210 receives the speaker data 402, facial data 404, gaze map 406 and video 202 and processes the received input to generate information that can be used in displaying context-aware captions. The caption processing unit 210 may transmit the received input to the caption processing model 212. The caption processing model 212 may be a machine learning model which is trained for receiving various parameters about given video frames as input, identifying preferred regions and/or formats for captions on the video frames and providing the preferred regions and/or formats as output. In an example, the caption processing model 212 includes an encoder 408 and a decoder 410. The caption processing model 212 may be a multi-modal transformer.
The encoder 408 has been trained to encode the received input into encodings that are later used by the decoder 410 to infer a preferred region, a preferred speed and/or preferred formatting for a caption. In an example, the encoder 408 and decoder 410 are part of a transformer model for inferring information that enables displaying captions in a context-aware manner. The contexts may include speakers in the video, region of interest to the viewer (via user gaze direction), usage history, detected languages, speed of interest (via user gaze direction) and the like. Thus, the caption processing model 212 may encode data such as facial landmarks, facial expressions, user gaze data and speaker diarization data to infer the output. For example, the caption processing model 212 may use the speaker data 402 that identifies the speaker who is speaking a caption segment, utilize facial data 404 to determine the location of the identified speaker's face, utilize facial data 404 to determine the facial expression of the identified speaker and determine based on the facial expression, where on the face the caption should be displayed. In an example, the location of the lips is used to anchor the caption to the lips such that captions are shown adjacent to the speaker's lips. The caption processing model 212 may provide the area below the speaker's lips as a preferred region and provide the pixel data (based on the video 202) for the region of interest as caption output data 412. In another example, based on the caption data, video 202 (e.g., caption or audio data), names of speakers are determined and provided in association with caption segments as part of the caption output data 412 to enable display of the speaker's name in association with a caption segment. Thus, the caption processing model 212 may provide the preferred region (preferred location), preferred playback speed and/or likelihood of inpainting of the captions for 3D videos as output(s).
In some implementations, the caption processing model 212 determines that the detected language of a caption segment is different from the original language of the video and determines based on other parameters such as usage history and/or patterns that the viewer would likely find this information useful. As a result, the caption processing model 212 provides the detected language as part of the caption output data 412 which can then be used by the video playback system 216 to display an indication of the detected language for the caption segment.
In some examples, the caption processing model 212 uses the gaze map 406 to determine that the viewer is focused on particular area of the scene. When that area is different from the area around the speaker's face and/or another preferred region for displaying the caption, the caption processing model 212 may infer that the user would find displaying the caption in the user's area of focus more helpful and as such select a region within the user's area of focus as the preferred region for displaying the caption.
The caption processing model 212 may also determine that video playback speed and/or the speed at which the captions are displayed should be adjusted based on various parameters such as a user's gaze, which may be used to determine the user's reading speed. In some implementations, user preferences are used to determine the video playback speed and/or the preferred region for displaying the caption. For example, the user may be able to provide input via a user interface element or other via voice input that indicates the user prefers slow or fast captions. In another example, the user may be able to provide input with respect to a desired location for the caption. For example, the user may be able to move the captions on the screen (e.g., using a curser or their finger) to a desired location. In another example, the user may be able to provide a preferred language. These inputs may be provided via a setting of the video playback system or in a different manner (e.g., during the playback). In cases where the user provides user preferences, the user preferences may be included as input(s) to the caption processing model 212.
Furthermore, for 3D videos, the caption processing model 212 may determine the likelihood of whether to inpaint the captions. For example, the caption processing model 212 may determine if the inferred likelihood exceeds a predetermined threshold and determine that the caption should be inpainted when the likelihood exceeds the threshold.
In some implementations, the caption output data 412 is transmitted to a post processing system 414 for post processing operations. For example, a filter such as a low-pass filter may be applied to the likelihood of preferred region to smooth the global maxima before coordinates (e.g., x, y and z for 3D videos) for the preferred location are transmitted to the video playback system 216 for processing.
The caption processing model 212 may be trained on labeled publicly available videos and/or movies via a supervised training mechanism. In an example, human labels may be provided for the videos that preferred location for captions, preferred playback speed of the video, and/or the likelihood of whether to inpaint the original embedded captions in the videos. Speaker diarization information, facial landmarks, face blendshape weights and gaze identifying results are also collected from users watching the videos to generate a complete training dataset for the caption processing model 212. The training may be updated once user feedback data is collected to improve the caption processing model 212. In some implementations, the caption processing model 212 is finetuned for a given user based on the user's usage data. For example, if the user chooses to move the caption from a region selected by the caption processing model 212 to a different area of the screen, this information may be collected and used to finetune the caption processing model 212 for future use.
In some implementations, the caption processing unit 210 and/or caption processing model 212 are executed by a processor 420. The processor 420 may be a processor of the device on which the video is being played. The processor may be a central processing unit (CPU) or a neural processing unit (NPU). The processor 420 can be a semiconductor-based processor. The processor 420 may process instructions for execution within the computing device for displaying the video, including instructions stored in the caption processing unit 210 and/or caption processing model 212 to display captions on a video that is played on a graphical user interface of a display device.
The caption processing unit 210, caption processing model 212, speaker data 402, facial data 404, and/or gaze map 406 may be stored on a memory 430 of the computing device. The memory 430 may store information within the computing device playing the video. In one implementation, the memory 430 is a volatile memory unit or units. In another implementation, the memory 430 is a non-volatile memory unit or units. The memory 430 may also be another form of computer-readable medium, such as a magnetic or optical disk. The memory 430 may be a semiconductor-based memory. The processor 420 and memory 430 may be interconnected using various busses and may be mounted on a common motherboard or in other manners as appropriate.
In some implementations, data regarding user gaze and/or reading speed is collected during video playback to generate feedback data. The feedback data may be used by the caption processing unit 210 for finetuning and improving the models in the system. The feedback data may also be transmitted to the video creator (e.g., the person who posted the video) to enable the video creator to make improvements. For example, the feedback may inform the creator of sections of the captions that take longer to read, so that the creator can simplify the dialogue or use more simple words or phrases.
Process 500 begins with receiving video data associated with a video, at step 502. The video data may include caption data for displaying a caption when the video is played. The video data may be received from a video processing system and/or from other sources such as a video streaming application. The caption data may include a plurality of caption segments, where each caption segment is associated with a timestamp and/or video frame of the video. In addition to receiving the video data, process 500 receives gaze data associated with eye movements of a user watching the video, at step 504. Gaze data may be received from a gaze identifying unit that makes use of image(s) captured by a sensor (e.g., camera) to generate the gaze data. In an example, the gaze data includes a gaze map that corresponds with an area of a video frame or video screen the user is focused on.
Once the video data and gaze data are received, process 500 proceeds to encode the gaze data and caption data, at step 506. This may involve the use of a model such as the caption processing model 212. Encoding may involve generating features (e.g., one or more feature vectors) that represent the video data and the gaze data. The model may include an encoder and a decoder that infers context-aware caption parameters based on the encoded data.
Process 500 also includes examining the encodings (encoded gaze data and encoded caption data) to identify a preferred region of the video for displaying the caption, at step 508. The preferred region of the video may be identified based on the gaze data. This may include identify a region of the video the user's attention is focused on. Once the preferred region is identified, process 500 proceeds to cause the caption to be displayed in the preferred region of the video, at step 510.
Process 600 begins with accessing video data associated with a video, at step 602. The video data may include caption data for displaying caption segments when the video is played and the video data may include speaker data for identifying which speaker speaks content of a caption segment. The video data may be received from a video processing system and/or from other sources such as a video streaming application. The caption data may include a plurality of caption segments, where each caption segment is associated with a timestamp and/or video frame of the video. The speaker data may include speaker diarization data and facial data.
Process 600 groups the caption segments based on the speaker data, at step 604. This may involve using the speaker data and/or additional information such as facial data to determine which speaker speaks at certain timestamps of the video, comparing the speaker labels with the caption segments and associating caption segments with the identified speaker for a given timestamp. Speaker data may be received from a video processing system that receives the video data and identifies the speakers in the video based on audio parameters.
Once the speaker data and caption data are received, process 600 proceeds to encode the speaker data and caption data, at step 606. This may involve the use of a model such as the caption processing model 212. Encoding may involve generating features (e.g., one or more feature vectors) that represent the speaker data and the caption data. The model may include an encoder and a decoder that infers context-aware caption parameters based on the encoded data.
Process 600 also includes examining the encodings (encoded speaker data and encoded caption data) to identify a preferred region of the video for displaying the caption, at step 608. The preferred region of the video may be identified based on proximity to the speaker who is speaking the caption segment. Proximity may be determined based on facial features such as facial landmarks and facial expressions. Once the preferred region is identified, process 600 proceeds to cause the caption segment to be displayed in the preferred region of the video, at step 610.
In some examples, the head-wearable device 700 includes a device display 704 that can output visual content, for example, at an output coupler 705, so that the visual content is visible to the user. In the example shown in
In some examples, the head-wearable device 700 includes one or more of an audio output device 706 (such as, for example, one or more speakers), an illumination device 708, a sensing system 711, a control system 712, at least one processor 714, and an outward facing image sensor or camera 716. In some examples, the sensing system 711 may include various sensing devices and the control system 712 may include various control system devices including, for example, at least one processor 714 operably coupled to other components of the control system 712. In some examples, the control system 712 may include a communication module providing for communication and exchange of information between the head-wearable device 700 and external devices.
The sensing system 711 may include one or more capacitive touch sensors. The capacitive touch sensors may be located on one or both of the temple arm portions 730. In some examples, two capacitive touch sensors may be positioned in one of the temple arm portions 730. In some examples, one or more capacitive touch sensors may be located on other portions of the frame 710.
The sensing system 711 also may include a motion sensor, which may be implemented as an accelerometer, a gyroscope, and/or magnetometer, some of which may be combined to form an inertial measurement unit (IMU). In some examples, the motion sensor may be implemented as a three-axis motion sensor such as, for example, a three-axis accelerometer or a three-axis gyroscope, where the motion signals captured by the motion sensor describe three translation movements (i.e., x-direction, y-direction, and z-direction) along axes of a world coordinate system. In some examples, the motion sensor may be implemented as a six-axis motion sensor such as, for example, an IMU that has six (6) degrees of freedom (6-DOF), which can describe three translation movements (i.e., x-direction, y-direction, and z-direction) along axes of a world coordinate system and three rotation movements (i.e., pitch, yaw, roll) about the axes of the world coordinate system.
The sensing system 711 may also include one or more proximity sensors. In some examples, the proximity sensors are optical proximity sensors. The proximity sensors may be located on one or both of the temple arm portions 730. In other examples, the proximity sensors are located on other portions of the frame 710.
In some implementations, the head-wearable device 700 includes a gaze identifying device 715 to detect and identify eye gaze direction and movement. Data captured by the gaze identifying device 715 may be processed to detect and identify gaze direction and movement as a user input. In the example shown in
The control system 712 may include one or more models such as, for example, one or more machine learning models that are executed locally by processor 714.
Further to the descriptions above, a user may be provided with controls allowing the user to make an election as to both if and when systems, programs or features described herein may enable collection of user information (e.g., information about a user's social network, social actions or activities, profession, a user's preferences, or a user's current location), and if the user is sent content or communications from a server. In addition, certain data may be treated in one or more ways before it is stored or used, so that personally identifiable information is removed. For example, a user's identity may be treated so that no personally identifiable information can be determined for the user, or a user's geographic location may be generalized where location information is obtained (such as to a city, ZIP code, or state level), so that a particular location of a user cannot be determined. Thus, the user may have control over what information is collected about the user, how that information is used, and what information is provided to the user.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, specially designed ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software, software applications or code) include machine instructions for a programmable processor, and can be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms “machine-readable medium” “computer-readable medium”, or “non-transitory computer-readable medium” refer to any computer program product, apparatus and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term “machine-readable signal” refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a client computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (“LAN”), a wide area network (“WAN”), and the Internet.
The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
In this specification and the appended claims, the singular forms “a,” “an” and “the” do not exclude the plural reference unless the context clearly dictates otherwise. Further, conjunctions such as “and,” “or,” and “and/or” are inclusive unless the context clearly dictates otherwise. For example, “A and/or B” includes A alone, B alone, and A with B. Further, connecting lines or connectors shown in the various figures presented are intended to represent exemplary functional relationships and/or physical or logical couplings between the various elements. Many alternative or additional functional relationships, physical connections or logical connections may be present in a practical device. Moreover, no item or component is essential to the practice of the implementations disclosed herein unless the element is specifically described as “essential” or “critical”.
Terms such as, but not limited to, approximately, substantially, generally, etc. are used herein to indicate that a precise value or range thereof is not required and need not be specified. As used herein, the terms discussed above will have ready and instant meaning to one of ordinary skill in the art.
Moreover, use of terms such as up, down, top, bottom, side, end, front, back, etc. herein are used with reference to a currently considered or illustrated orientation. If they are considered with respect to another orientation, it should be understood that such terms must be correspondingly modified.
Further, in this specification and the appended claims, the singular forms “a,” “an” and “the” do not exclude the plural reference unless the context clearly dictates otherwise. Moreover, conjunctions such as “and,” “or,” and “and/or” are inclusive unless the context clearly dictates otherwise. For example, “A and/or B” includes A alone, B alone, and A with B.
Although certain example computer-implemented methods, apparatuses and articles of manufacture have been described herein, the scope of coverage of this patent is not limited thereto. It is to be understood that terminology employed herein is for the purpose of describing particular aspects, and is not intended to be limiting. On the contrary, this patent covers all methods, apparatus and articles of manufacture fairly falling within the scope of the claims of this patent.
In one aspect, a non-transitory computer-readable medium stores instructions that, when executed by a processor on a receiving computing device, causes the receiving computing device to perform any of the methods disclosed herein.
In one aspect, a computing device can be configured with at least one processor and memory storing instructions that, when executed by the at least one processor, performs any of the methods disclosed herein.
The following paragraphs provide various examples of the embodiments disclosed herein.
In one aspect, a method may be performed that includes receiving video data associated with a video, the video data including caption data for displaying a caption when the video is played; receiving gaze data associated with eye movements of a user watching the video; encoding the gaze data and the caption data; examining the encodings to identify a preferred region of the video for displaying the caption, the preferred region of the video being identified based on the gaze data; and causing the caption to be displayed in the preferred region of the video.
In one aspect, the gaze data is retrieved from an image captured by a camera.
In another aspect, the gaze data identifies a region of the video the user is focusing on.
In yet another aspect, the video data includes speaker data. The preferred region of the video may be identified based on the gaze data and the speaker data. The captions may be grouped based on the speaker data and the preferred region is identified based on proximity to a speaker who is speaking.
In another aspect, the video data includes data that provides information about a face in the video.
In one aspect, a computing device may be provided that includes at least a processor, and a memory storing instructions that, when executed by the processor, cause the computing device to perform operations including accessing video data associated with a video, the video data including caption data for displaying caption segments when the video is played and the video data including speaker data for identifying which speaker speaks content of a caption segment; grouping the caption segments based on the speaker data; encoding the speaker data and the caption data; examining the encodings to identify a preferred region of the video for displaying the caption segment based on proximity to the speaker who is speaking the caption segment; and causing the caption segment to be displayed in the preferred region of the video.
In another aspect, the speaker data identifies a speaker in a video based on audio parameters of the video.
In some aspects, the video data includes facial data for a speaker in the video.
In another aspect, the facial data includes a facial landmark or a facial expression.
In yet other aspects, the proximity to the speaker is determined based on the facial data.
In some aspects, the video is processed via a video processing system to generate the speaker data.
In one aspect, the preferred region is further determined based on a depth map.
In one aspect, a non-transitory computer-readable medium is provided which stores instructions that, when executed by a processor on a computing device, causes the computing device to perform operations that include receiving video data associated with a video, the video data including caption data for displaying a caption when the video is played; receiving gaze data associated with eye movements of a user watching the video; encoding the gaze data and the caption data; examining the encodings to identify a preferred region of the video for displaying the caption, the preferred region of the video being identified based on the gaze data; and causing the caption to be displayed in the preferred region of the video.
In another aspect, the gaze data includes a gaze map. The gaze map may identify a region of the video the user is focusing on. The gaze map may be generated based on an image captured by a camera of the computing device.
In yet another aspect, encoding the gaze data is done via a model.
In one aspect, a method may be performed that includes receiving video data associated with a video, the video data including caption data for displaying a caption when the video is played; receiving gaze data associated with eye movements of a user watching the video; identifying, based on the gaze data, a preferred region of the video for displaying the caption; and causing the caption to be displayed in the preferred region of the video.
In another aspect, the video data is received from a video processing system, the video processing system receiving the video and generating the video data from the video, the video data identifying a speaker, identifying a facial landmark, identifying a facial expression or identifying a region of interest in the video.
In yet another aspect, the method further includes encoding the gaze data and the video data to generate encoded gaze data and encoded video data and identifying the preferred region of the video based on the encoded gaze data and encoded video data. Encoding the video data may include encoding the speaker, facial landmark, facial expression or region of interest in the video, and identifying the preferred region of the video based on the encoded gaze data and the encoded video data includes decoding the speaker, facial landmark, facial expression or region of interest in the video to generate a likelihood of a region of a video frame being the preferred region of the video.
Claims
1. A method comprising:
- receiving video data associated with a video, the video data including caption data for displaying a caption when the video is played, and the video data identifying a speaker;
- identifying a preferred region of the video for displaying the caption, the preferred region being proximate to a facial landmark of the speaker; and
- causing the caption to be displayed in the preferred region of the video.
2. The method of claim 1, wherein the video data is received from a video processing system, the video processing system receiving the video and generating the video data from the video, the video data identifying the facial landmark, identifying a facial expression or identifying a region of interest in the video.
3. The method of claim 1, wherein the preferred region of the video is identified based on gaze data and the speaker identified in the video data.
4. The method of claim 1, wherein the caption data includes a plurality of caption segments, the plurality of caption segments are grouped based on speakers identified in the video data and the preferred region is identified based on proximity to the speaker.
5. (canceled)
6. The method of claim 2, further comprising encoding the video data to generate encoded video data and identifying the preferred region of the video based on the encoded video data.
7. The method of claim 6, wherein:
- encoding the video data includes encoding the speaker, the facial landmark, the facial expression or the region of interest in the video, and
- identifying the preferred region of the video based on the encoded video data includes decoding the speaker, the facial landmark, the facial expression or the region of interest in the video to generate a likelihood of a region of a video frame being the preferred region of the video.
8. The method of claim 1, wherein the video data identifies the speaker in the video based on audio parameters of the video.
9. A computing device comprising:
- at least a processor; and
- a memory storing instructions that, when executed by the processor, cause the computing device to perform operations including: accessing video data associated with a video, the video data including caption data for displaying caption segments when the video is played and the video data including speaker data for identifying which speaker speaks content of a caption segment; grouping the caption segments based on the speaker data; encoding the speaker data to generate encoded speaker data; examining the encoded speaker data to identify a preferred region of the video for displaying the caption segment based on being proximate to a facial landmark of a speaker who is speaking the caption segment; and causing the caption segment to be displayed in the preferred region of the video.
10. The computing device of claim 9, wherein the speaker data identifies the speaker in the video based on audio parameters of the video.
11. The computing device of claim 9, wherein the video data includes facial data for the speaker in the video.
12. The computing device of claim 11, wherein the facial data includes the facial landmark or a facial expression.
13. The computing device of claim 11, wherein proximity to the facial landmark is determined based on the facial data.
14. The computing device of claim 9, wherein the preferred region is further determined based on a depth map.
15. The computing device of claim 9, wherein the video data includes gaze data.
16. A non-transitory computer-readable medium storing instructions that, when executed by a processor on a computing device, causes the computing device to perform operations comprising:
- receiving video data associated with a video, the video data including caption data for displaying a caption when the video is played, and the video data identifying a speaker;
- identifying a preferred region of the video for displaying the caption, the preferred region being proximate to a facial landmark of the speaker; and
- causing the caption to be displayed in the preferred region of the video.
17. The non-transitory computer-readable medium of claim 16, wherein the video data includes facial data for the speaker in the video.
18. The non-transitory computer-readable medium of claim 17, wherein the video data includes speaker data and the speaker data identifies the speaker in the video based on audio parameters of the video.
19. The non-transitory computer-readable medium of claim 17, wherein the caption data includes a plurality of caption segments, the plurality of caption segments are grouped based on speakers identified in the video data and the preferred region is identified based on proximity to the speaker.
20. The non-transitory computer-readable medium of claim 16, wherein the video data is encoded to generate encoded video data and the preferred region of the video is identified based on the encoded video data.
Type: Application
Filed: May 20, 2025
Publication Date: Nov 26, 2026
Inventors: Mahdi Tayarani Najaran (Oakville), Ruofei Du (San Francisco, CA)
Application Number: 19/213,655