1. Field of the Invention
The present invention relates to a stereoscopic displaying method, and more particularly, to a detective adjusting apparatus for a stereoscopic image and a related method.
2. Description of the Prior Art
As development of stereoscopic displaying technology, an interaction between the displaying content and a viewer is paid much attention. A conventional method is utilizing a camera to capture an image, finding out a position of the viewer's face by a sample matching method, and calculating a movement of the image according to the face position for switching the image content.
However, the conventional sample matching method has drawbacks of large error, low sensitivity and slow response. The conventional method for adjusting image's position is utilized to a two-viewpoint panel, and is not suitable to present panel technology, which results in an intermittent error when applying to a multi-viewpoint panel.
A stereoscopic displaying method, a tracking stereoscopic display and a method for an image processing device disclosed in CN application No. 201010229920.2 is applied to the two-viewpoint panel, the viewer watches the same image from different view angles.
The present invention provides a detective adjusting apparatus and a related method. The present invention is applied to an optical grating or an auto-stereoscopic screen made by lens having two-viewpoint or multi-viewpoint functions, so as to generate a continuous stereoscopic image.
According to the claimed invention, a detective adjusting apparatus includes an image capturing device, an image processing device, a stereoscopic display and an image analyzing/displaying device. The image capturing device is for capturing an image. The image processing device is for processing the image provided from the image capturing device and for detecting a position of a face on the image according to a face characteristic. The stereoscopic display is for displaying a stereoscopic image. The image analyzing/displaying device is for calculating data of the image according to parameters of an angle of face position, the stereoscopic image and the stereoscopic display, and further for transmitting the data to the stereoscopic display. The image capturing device is electrically connected to the image processing device via a video cable. The image processing device is electrically connected to the image analyzing/displaying device via a datum cable. An input end and an out end of the image analyzing/displaying device are electrically connected to the two-viewpoint stereoscopic image and the stereoscopic display.
According to the claimed invention, the image capturing device is a single-image capturing device or a two-viewpoint image capturing device.
According to the claimed invention, the stereoscopic display includes an optical grating or an auto-stereoscopic screen made by lens.
According to the claimed invention, a method of executing a detective adjusting apparatus is disclosed. The method includes an image processing device analyzing an image provided from an image capturing device to find to a position of eyes according to a face recognition algorithm, the image processing device calculating an angle between positions of the eyes according to the position of the eyes and a central point of a stereoscopic display, an image analyzing/displaying device setting parameters of an stereoscopic image and the stereoscopic display, and the image analyzing/displaying device analyzing the parameters of the angle between the positions of the eyes, the stereoscopic image and the stereoscopic display, so as to adjust content of the image according to a variation of the face's position for outputting the successive stereoscopic image. The stereoscopic image parameter comprises an amount of the image's viewpoint, the stereoscopic display parameter comprises an amount of the stereoscopic display's viewpoint and a pixel mapping table.
According to the claimed invention, the face recognition algorithm comprises an adaboost algorithm, an ANN algorithm and a SVM algorithm.
According to the claimed invention, the pixel mapping table is not modified by the image analyzing/displaying device, the image analyzing/displaying device re-allots pixels to switch the stereoscopic image.
The present invention utilizes the above-mentioned method to calculate an angle between eyes' position and a central position according to the face position, to determine a stereoscopic image by analyzing parameters of the stereoscopic image and the stereoscopic display, and to display the continuous stereoscopic image having at least two viewpoints, so the a viewer can watch the stereoscopic image clearly.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
As shown in
The image capturing device 1 is electrically connected to the image processing device 2 via a video cable. The image processing device 2 is electrically connected to the image analyzing/displaying device 3 via a datum cable. An input end and an out end of the image analyzing/displaying device 3 are electrically connected to the two-viewpoint stereoscopic image(or a two-view image or a two view-angle image) and the stereoscopic display 4.
The image processing device 2 utilizes an adaboost algorithm to find out positions of human eyes by the image provided from the image capturing device 1, and further calculates an angle θ1 between the eye's position and a central position of the stereoscopic display 4.
The image analyzing/displaying device 3 sets two parameters. One is a stereoscopic image parameter P1 the stereoscopic image parameter P1 includes an amount of the image's viewpoint. The other is a stereoscopic display parameter. The stereoscopic display parameter includes basic information of the stereoscopic display 4, such as a viewpoint amount P2 of the stereoscopic display and a pixel mapping P3. The pixel mapping P3 includes data of pixel's view angle.
Calculation of the image analyzing/displaying device 3 by the parameters of the stereoscopic image and the stereoscopic display includes following steps.
Step 1: P1=2, P2=2.
P1=2 indicates that an amount of the image's viewpoint equals two. No matter what position the viewer stands, the viewer can watch the same image. P2=2 indicates that the stereoscopic image is a 2-view image, which includes a left view angle and a right view angle. In the above-mentioned condition, the image analyzing/displaying device 3 can obtain a value A1 by multiplying the angle θ1 by a weight. The angle θ1 is provided from the image processing device 2. As the value A1 is even, the left view angle image of the two-view image can be transmitted to a left view angle image position according to the pixel mapping P3, and the right view angle image of the two-view image can be transmitted to a right view angle image position according to the pixel mapping P3. As the value A1 is odd, the left view angle image of the two-view image can be transmitted to the right view angle image position according to the pixel mapping P3, and the right view angle image of the two-view image can be transmitted to the left view angle image position according to the pixel mapping P3.
Step 2: P1>2, P2=2.
P1>2 indicates that the amount of the image's viewpoint is greater than two. The viewer can watch different images at different positions, and an amount of the image's viewpoint is P1. Each image is Nx, 1≦X≦P1, and X is an integer. P2=2 indicates that the stereoscopic image is the 2-view image, which includes the left view and the right view. In the above-mentioned condition, the image analyzing/displaying device 3 can obtain a value A2 by multiplying the angle θ1 by a weight. The angle θ1 is provided from the image processing device 2. A view angle θ2 of the stereoscopic image divided by (P1−1) equals a value θ3. The value θ3 indicates two continuous images (NX−1, NX), such as (N1, N2), and an interval between the two continuous images is the value θ3. Across the value θ3 to the value θ3+1, the image is switched to next image (NX−1+1, NX+1), such as (N1, N2) between zero and the value θ3. When the view angle equals the angle θ3+1, the image can be switched to (N1+1, N2+1). According to the angle θ3, as the value A2 is even, the left view angle image NX−1 of the two-view image can be transmitted to the left view angle image position according to the pixel mapping P3, and the right view angle image NX of the two-view image can be transmitted to the right view angle image position according to the pixel mapping P3. As the value A2 is odd, the left view angle image NX−1 of the two-view image can be transmitted to the right view angle image position according to the pixel mapping P3, and the right view angle image NX of the two-view image can be transmitted to the left view angle image position according to the pixel mapping P3.
Step 3: P1=2, P2>2.
P1=2 indicates that the amount of image's viewpoint equals two. No matter what position the viewer stands, the viewer can watch the same image. P2>2 indicates that an amount of viewpoint of the stereoscopic image is P2, which is greater than two. All even view angle can be set as the same image, and all odd view angle can be set as the same image. In the above-mentioned condition, the image analyzing/displaying device 3 can obtain a value A3 by multiplying the angle θ1 by a weight. The angle θ1 is provided from the image processing device 2. As the value A3 is even, the left view angle image of the two-view image can be transmitted to an odd view angle image position according to the pixel mapping P3, and the right view angle image of the two-view image can be transmitted to an even view angle image position according to the pixel mapping P3. As the value A3 is odd, the left view angle image of the two-view image can be transmitted to the even view angle image position according to the pixel mapping P3, and the right view angle image of the two-view image can be transmitted to the odd view angle image position according to the pixel mapping P3.
Step 4: P1>2, P2>2.
P1>2 indicates that the amount of image's viewpoint is greater than two. The viewer can watch different images at different positions, and an amount of image's viewpoint is P1. Each image is Nx, 1≦X≦P1, and X is an integer. P2>2 indicates that that an amount of viewpoint of the stereoscopic image is P2, which is greater than two. All even view angle can be set as the same image, and all odd view angle can be set as the same image. In the above-mentioned condition, the image analyzing/displaying device 3 can obtain a value A4 by multiplying the angle θ1 by a weight. The angle θ1 is provided from the image processing device 2. A view angle θ2 of the stereoscopic image divided by (P1−1) equals a value θ3. The value θ3 indicates two continuous images (NX−1, NX), such as (N1, N2), and an interval between the two continuous images is the value θ3. Across the value θ3 to the value θ3+1, the image is switched to next image (NX−1+1, NX+1), such as (N1, N2) between zero and the value θ3. When the viewpoint equals the angle θ3+1, the image can be switched to (N1+1, N2+1). According to the angle θ3, as the value A4 is even, the left view angle image NX−1 of the two-view image can be transmitted to the odd view angle image position according to the pixel mapping P3, and the right view angle image NX of the two-view image can be transmitted to the even view angle image position according to the pixel mapping P3. As the value A4 is odd, the left view angle image NX−1 of the two-view image can be transmitted to the even view angle image position according to the pixel mapping P3, and the right view angle image NX of the two-view image can be transmitted to the odd view angle image position according to the pixel mapping P3.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
201110307290.0 | Oct 2011 | CN | national |