Abstract:
A method and a system for determining parameters of an off-axis virtual camera provided by embodiments of present invention can extract a scene depth map for each video frame from a depth buffer, determine the minimum value of edge depth values of the scene depth map as the closest scene edge depth of each video frame, determine the depth of a first object as the depth of an object of interest of each video frame, use the smaller value between the closest scene edge depth and the depth of an object of interest as the zero-parallax value and obtain a zero-parallax value sequence constituted by the zero-parallax value of each video frame. The present invention realizes automatic determination of the zero parallax of each video frame rather than manual setting thereof, and thus the determination will not be affected by factors such as lack of experience, and the amount of work for an technician is also reduced. Meanwhile, the present invention makes the zero parallax as close as possible to an object of interest without incurring the window occlusion problem, which can improve the stereo perception as much as possible while ensuring the comfortability, and can ensure the using effect of the determined zero parallax.