In some embodiments, a method determines a disparity value from a plurality of disparity values in a current frame of a stereoscopic video. The disparity value is based on a difference of a value for a pixel between a first video and a second video of the stereoscopic video. A location is determined in a current frame that include the disparity value. The method analyzes first frames prior to the current frame to adjust disparity values in the first frames to generate one or more adjusted first disparity values. Also, the method analyzes second frames after the current frame to adjust disparity values in the second frames to generate one or more adjusted second disparity values. The one or more adjusted first disparity values and the one or more adjusted second disparity values are output for use in displaying captions in the first video or the second video.
BACKGROUND
Stereoscopic video is a type of media presentation that utilizes a pair of videos to reconstruct the disparity that is the foundation of three dimensional (3D) visual perception of human eyes. Disparity or Z-plane position is defined as the horizontal displacement between a left video and a right video. In a convergent camera setup, a more negative value of disparity for an object implies an object is closer to the viewer. In a parallel camera setup, the disparity value will always be positive, and a larger disparity value in parallel camera setup indicates closer to the viewer.
Captions may be rendered in the stereoscopic video. The placement of captions in the Z-plane may cause problems for a viewer. If the captions are placed too far from the viewer in the Z-plane, the captions may be occluded by objects in front of the captions. Also, if the captions are placed too close to the viewer in the Z-plane, eye fatigue may result where the viewer has to focus on objects that are farther away in the Z-plane and the captions that are too close. Another problem is where the Z-plane position of captions changes drastically over successive frames (e.g., near then far), which causes eye fatigue where the viewer is hunting for the captions in different Z-plane positions.
1. A method comprising: determining a disparity value from a plurality of disparity values in a current frame of a stereoscopic video, wherein the disparity value is based on a difference of a value for a pixel between a first video and a second video of the stereoscopic video; determining a location in a current frame that include the disparity value; analyzing one or more first frames prior to the current frame to adjust disparity values in the one or more first frames to generate one or more adjusted first disparity values; analyzing one or more second frames after the current frame to adjust disparity values in the one or more second frames to generate one or more adjusted second disparity values; and outputting the one or more adjusted first disparity values and the one or more adjusted second disparity values for use in displaying captions in the first video or the second video. ||
19. A non-transitory computer-readable storage medium having stored thereon computer executable instructions, which when executed by a computing device, cause the computing device to be operable for: determining a disparity value from a plurality of disparity values in a current frame of a stereoscopic video, wherein the disparity value is based on a difference of a value for a pixel between a first video and a second video of the stereoscopic video; determining a location in a current frame that include the disparity value; analyzing one or more first frames prior to the current frame to adjust disparity values in the one or more first frames to generate one or more adjusted first disparity values; analyzing one or more second frames after the current frame to adjust disparity values in the one or more second frames to generate one or more adjusted second disparity values; and outputting the one or more adjusted first disparity values and the one or more adjusted second disparity values for use in displaying captions in the first video or the second video. ||
20. An apparatus comprising: one or more computer processors; and a computer-readable storage medium comprising instructions for controlling the one or more computer processors to be operable for: determining a disparity value from a plurality of disparity values in a current frame of a stereoscopic video, wherein the disparity value is based on a difference of a value for a pixel between a first video and a second video of the stereoscopic video; determining a location in a current frame that include the disparity value; analyzing one or more first frames prior to the current frame to adjust disparity values in the one or more first frames to generate one or more adjusted first disparity values; analyzing one or more second frames after the current frame to adjust disparity values in the one or more second frames to generate one or more adjusted second disparity values; and outputting the one or more adjusted first disparity values and the one or more adjusted second disparity values for use in displaying captions in the first video or the second video.