The content of the invention
The technical problems to be solved by the invention are to provide the method and 3D of a kind of calibration parameter of determination 3D display devices
Display device, the problems such as with the laminating error and camera rigging error that solve existing 3D products, improves 3D display effects.
In order to solve the above problems, the invention provides a kind of method of the calibration parameter of determination 3D display devices, it should
3D display devices for being placed in darkroom, the 3D display devices include camera, microlens array and display screen, the determination
The method of the calibration parameter of 3D display devices includes:
Default calibration parameter scope is obtained from 3D display devices described in darkroom is placed in, and from the default calibration parameter model
Enclose the first calibration parameter of interior selection;
First calibration parameter generates the first interleave parameter through default interleaving algorithm;
Default characteristic image is obtained, the default characteristic image includes symmetrical two regions or symmetrical above and below two
The first color and the second color are filled in individual region, described two regions respectively, by the default characteristic image according to described first
Interleave parameter generates the first interlaced video after being interleaved treatment, and by the first interlaced video output display to the display
Screen, first interlaced video is projected to the inwall in the darkroom through the backlight of the display screen through the microlens array
Projected with forming first;
The first projected image of first projection is obtained by the camera, first projected image is described the
The stripe pattern that one color and second color are interlocked;
Adjustment calibration parameter, obtains the second projected image, and second projected image is first color and described the
The stripe pattern that second colors interlock;
The striped condensation degree of first projected image and second projected image is analyzed, striped condensation degree is preserved higher
Projected image;
The calibration parameter is adjusted again obtains corresponding projected image and the throwing higher with the striped condensation degree
Shadow image compares, until obtaining striped condensation degree highest projected image;
Obtain calibration parameter corresponding with the striped condensation degree highest projected image and preserve.
As a further improvement on the present invention, in first projection that first projection is obtained by the camera
Image, first projected image be first color and second color interlock stripe pattern the step of before, also
Including:
The camera is opened, and fixes the camera parameter of the camera.
As a further improvement on the present invention, in analysis first projected image and second projected image
Striped condensation degree, the step of preserve striped condensation degree projected image higher, including:
The accumulated value of the valid pixel value in the fringe center region of first projected image is calculated, is added up with obtaining first
Value, calculates the accumulated value of the valid pixel value in the fringe center region of second projected image, to obtain the second accumulated value;
Judge first accumulated value whether more than second accumulated value;
If first accumulated value be more than second accumulated value, by the first projected image save as striped condensation degree compared with
Projected image high;
If first accumulated value be less than second accumulated value, by the second projected image save as striped condensation degree compared with
Projected image high.
As a further improvement on the present invention, obtain corresponding with the striped condensation degree highest projected image described
Calibration parameter and the step of preserve after, also include:
Receive projected image to be shown;
Read the corresponding calibration parameter of the striped condensation degree highest projected image;
The 3D rendering to be shown is carried out according to the corresponding calibration parameter of the striped condensation degree highest projected image
After calibration process again output display to the display screen.
In order to solve the above problems, the present invention also provides a kind of 3D display devices, and it includes:
First acquisition module, for obtaining default calibration parameter scope from being placed in 3D display devices described in darkroom, and from
The first calibration parameter is chosen in the range of the default calibration parameter;
Generation module, the first interleave parameter is generated for first calibration parameter through default interleaving algorithm;
Interleaving block, for obtaining default characteristic image, the default characteristic image includes symmetrical two regions
Or two regions symmetrical above and below, the first color and the second color are filled in described two regions respectively, by the default characteristic pattern
The first interlaced video is generated after treatment as being interleaved according to first interleave parameter, and first interlaced video is exported
To the display screen, first interlaced video is projected to institute through the backlight of the display screen through the microlens array for display
State and projected with forming first on the inwall in darkroom;
Photographing module, the first projected image of first projection, described first are obtained for excessively described camera all
Projected image is the stripe pattern that first color and second color are interlocked;
Second acquisition module, for adjusting calibration parameter, obtains the second projected image, and second projected image is described
The stripe pattern that first color and second color are interlocked;
Analysis module, the striped condensation degree for analyzing first projected image and second projected image is preserved
Striped condensation degree projected image higher;
Adjusting module, obtains corresponding projected image and is coagulated with the striped for adjusting the calibration parameter again
Poly- degree projected image higher compares, until obtaining striped condensation degree highest projected image;
Preserving module, for obtaining calibration parameter corresponding with the striped condensation degree highest projected image and preserving.
As a further improvement on the present invention, the 3D display devices also include:
Stuck-module, for opening the camera, and fixes the camera parameter of the camera.
As a further improvement on the present invention, the analysis module includes:
Computing unit, the accumulated value of the valid pixel value in the fringe center region for calculating first projected image,
To obtain the first accumulated value, the accumulated value of the valid pixel value in the fringe center region of second projected image is calculated, to obtain
Take the second accumulated value;
Judging unit, for judging first accumulated value whether more than second accumulated value;
First processing units, if being more than second accumulated value for first accumulated value, by the first projected image
Save as striped condensation degree projected image higher;
Second processing unit, if being less than second accumulated value for first accumulated value, by the second projected image
Save as striped condensation degree projected image higher.
As a further improvement on the present invention, the 3D display devices also include:
Receiver module, for receiving projected image to be shown;
Read module, for reading the corresponding calibration parameter of the striped condensation degree highest projected image;
Display module, for waiting to show to described according to the corresponding calibration parameter of the striped condensation degree highest projected image
Show that 3D rendering carries out after calibration process again output display to the display screen.
The method of the calibration parameter of the determination 3D display devices that the present invention is provided passes through calibration operation to obtain optimal friendship
Knit parameter so that 3D display devices first can process 3D to be shown when 3D rendering to be shown is exported according to optimal interleave parameter
After image, then output it, 3D display effects more preferably, effectively solve 3D laminating errors and camera rigging error causes
The problem of 3D display effects difference.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used to limit the present invention.
Fig. 1 illustrates a kind of embodiment present invention determine that the method for the calibration parameter of 3D display devices.In the present embodiment
In, the method for the calibration parameter of determination 3D display devices is applied to 3D display devices, and the 3D display devices include camera, micro-
Lens array and display screen, the microlens array are covered on display screen, and at present, 3D shows and can be applied to such as TV, mobile phone, puts down
Plate light fixture has in the terminal of display screen.In the present embodiment, by 3D display mobile phone as a example by illustrate, perform calibration operation it
Before, 3D display mobile phones are placed in darkroom so that calibration operation is carried out in dark conditions, and the 3D shows the aobvious of mobile phone
The light that display screen sends can be projected on the inwall in darkroom through display screen.In the present embodiment, as shown in figure 1, determination 3D is aobvious
The method of the calibration parameter of showing device includes:
Step S10, default calibration parameter scope is obtained from 3D display devices are placed in darkroom, and from default calibration parameter model
Enclose the first calibration parameter of interior selection.
Specifically, calibration parameter refers to the series of parameters for controlling pixel interleaving arrangement regulation in short, and it includes row
Column pitch, rate of change, incline direction and original position, the effect that it can show on 3D produce influence.In the present embodiment, the 3D
Display mobile phone is provided with default calibration parameter scope, and multiple calibration parameters are included in the range of the default calibration parameter.In the present embodiment,
The first calibration parameter is picked out from the default calibration parameter scope, for example:The median for choosing default calibration parameter scope is made
It is first calibration parameter.
Step S11, the first calibration parameter generates the first interleave parameter through default interleaving algorithm.
Specifically, 3D displays mobile phone EMS memory has default interleaving algorithm, after picking out the first calibration parameter, by the first calibration
Parameter generates the first interleave parameter according to default interleaving algorithm, and first interleave parameter is stored in 3D display hands with a matrix type
In machine, its matrix element prime number is equal with Mobile phone screen pixel count, and maps one by one, and its matrix element value is 0 or 1, if matrix element
It is 0 to be worth, then take the correspondence position pixel of left characteristic image, its correspondence left-eye image;If matrix element value is 1, right feature is taken
The correspondence position pixel of image, its correspondence eye image, thus, is combined into interlaced video.
Step S12, obtains default characteristic image, and presetting characteristic image includes symmetrical two regions or symmetrical above and below
Two regions, the first color and the second color are filled in two regions respectively, by default characteristic image according to the first interleave parameter
The first interlaced video is generated after being interleaved treatment, and by the first interlaced video output display to display screen, the first interlaced video
Projected to the inwall in darkroom through microlens array through the backlight of display screen and projected with forming first.
Specifically, a default characteristic image is provided with 3D displays mobile phone, the default characteristic image includes symmetrical
Two regions or two regions symmetrical above and below, different colors are filled in two regions respectively.For example, default characteristic image is right
During the left white right picture black of title, produced projected image is the striped that black and white from left to right is interlocked;Or when default characteristic pattern
As being that, to being much of red lower blue images, produced projected image is red blue striped staggeredly from top to bottom.First interweaves joins
After number generation, the default characteristic image is interleaved treatment according to the first interleave parameter, generates one with default characteristic image
Corresponding first interlaced video, and the first interlaced video output display to 3D is shown on the display screen of mobile phone, and lenticule battle array
Row are covered on display screen, because 3D display mobile phones are placed in darkroom, the back of the body that first interlaced video passes through display screen
Light is projected on the inwall in darkroom through microlens array, is formed first and is projected, and first projection is corresponding with the first interlaced video,
Because first interlaced video is projected after microlens array, so first projection is presented in the form of striped interlocks.
Step S13, by camera obtain first projection the first projected image, the first projected image be the first color and
The stripe pattern that second color is interlocked.
Specifically, 3D displays mobile phone also includes camera, and the camera is used to shoot the throwing being incident upon on the inwall of darkroom
To obtain the first projected image corresponding with the first projection, first projected image is the first color stripe and the first color bar to shadow
The image that line interlocks.
Step S14, adjusts calibration parameter, obtains the second projected image, and the second projected image is the first color and the second face
The stripe pattern that color interlocks.
Specifically, second projected image is corresponding with the calibration parameter after adjustment, and specific acquisition process refer to step
Rapid S11- steps S13.
Step S15, the first projected image of analysis and the striped condensation degree of the second projected image, preserve striped condensation degree higher
Projected image.
Specifically, the striped condensation degree refers to the cohesion degree of each striped, and striped condensation degree is higher, its corresponding bar
Line is brighter, and its marginal portion is more obvious with the boundary of adjacent stripes, then the calibration parameter is more excellent.In the present embodiment, com-parison and analysis
First projected image and the striped condensation degree of the second projected image, preserve striped condensation degree projected image higher.
Step S16, adjusts calibration parameter and obtains corresponding projected image and the throwing higher with striped condensation degree again
Shadow image compares, until obtaining striped condensation degree highest projected image.
Step S17, obtains calibration parameter corresponding with striped condensation degree highest projected image and preserves.
Specifically, the first projected image of analysis and the striped condensation degree of the second projected image, preserve striped condensation degree higher
Projected image, and again adjustment calibration parameter to obtain another projected image, by another projected image with protect before
The striped condensation degree deposited projected image higher is analyzed, and striped condensation degree projected image higher, Zhi Houzai are preserved again
Secondary adjustment calibration parameter, untill when obtaining a striped condensation degree highest projected image, obtains the striped condensation degree most
The corresponding calibration parameter of projected image high, and the calibration parameter is preserved.
In the present embodiment, in the range of default calibration parameter, the first calibration parameter is chosen from the default calibration parameter scope,
First calibration parameter generates the first corresponding interleave parameter through default interleaving algorithm, preset characteristic image by this first
Interleave parameter is interleaved after treatment output display on the display screen of 3D display mobile phones, and is simultaneously projected to through microlens array
Projected with forming first on the inwall in darkroom, then show that the camera of mobile phone obtains first projection corresponding first by the 3D
Projected image, then chooses second calibration parameter from the range of default calibration parameter again, repeats the above steps, and obtains second
Projected image, now, the striped condensation degree of the projected image of com-parison and analysis first and the second projected image, if the first projected image
Striped condensation degree is higher, then preserve the first projected image;If the striped condensation degree of the second projected image is higher, preserves second and throw
Shadow image;Afterwards, the 3rd calibration parameter is chosen from the range of default calibration parameter again, is repeated the above steps, obtained the 3rd and throw
Shadow image, its projected image higher with the striped condensation degree preserved in last round of comparing is compared, and preserves striped and coagulated
The projected image of poly- Du Genggao.Repeat the above steps, until when obtaining striped condensation degree highest projected image, preserving striped and coagulating
Poly- to spend the corresponding calibration parameter of highest projected image, the calibration parameter is optimal calibration parameter.The present embodiment is provided really
The method for determining the calibration parameter of 3D display devices effectively solves the 3D that 3D laminatings error and camera rigging error etc. cause
The problem of display effect difference so that more preferably, Consumer's Experience is more preferably for the 3D display effects of 3D display devices.
In the present embodiment, the calibration parameter of 3D display devices, the implementation method can be also determined by implementation below
Including:Default calibration parameter scope is obtained, multiple calibration parameters are obtained from the range of default calibration parameter, such as in default calibration
It is uniform in parameter area to pick out 10 parameters as calibration parameter, by each calibration parameter through default interleaving algorithm generation one
Individual corresponding interleave parameter, to obtain multiple interleave parameters, obtains default characteristic image, and default characteristic image according to every
One interleave parameter is interleaved after treatment and generates a corresponding interlaced video, and by interlaced video output display to aobvious
Display screen, interlaced video is projected onto on the inwall in darkroom through the backlight of display screen and is projected with forming 3D corresponding with interlaced video,
The 3D is projected and corresponded with interleave parameter, i.e., also corresponded with calibration parameter, and obtaining each 3D by camera projects
Projected image, to obtain multiple projected images, the projected image and 3D are projected and corresponded, and analyze each projected image
Striped condensation degree, to obtain striped condensation degree highest projected image, obtains corresponding with striped condensation degree highest projected image
Calibration parameter and preserve, the calibration parameter is optimal calibration parameter.
The method of the calibration parameter of determination 3D display devices of the invention is used for during the use of 3D display devices, is needed
Determine the camera parameter of 3D display devices.Therefore, on the basis of above-described embodiment, in other embodiment, referring to Fig. 2, step
Before rapid S13, also include:
The camera parameter of step S20, unlatching camera, and fixing camera.
In the present embodiment, normally, existing camera all possesses the functions such as automatic focusing, adjustment exposure, i.e., its
When shooting photo, camera parameter can be as needed adjusted, to ensure that the striped condensation degree of image of shooting is higher, the present embodiment
In in order to prevent camera when projected image is obtained, the parameter of camera changes, so as to making error, institute to final result
To need the camera parameter of fixing camera during calibrating, it is ensured that projected image is obtained under identical conditions.
The method of the calibration parameter of determination 3D display devices of the invention is used for during the use of 3D display devices, is needed
The striped condensation degree of com-parison and analysis projected image is wanted, the projected image higher so as to pick out striped condensation degree.Therefore, above-mentioned reality
Apply on the basis of example, in other embodiment, referring to Fig. 3, step S15 includes following sub-step:
Sub-step S151, calculates the accumulated value of the valid pixel value in the fringe center region of the first projected image, to obtain
First accumulated value, calculates the accumulated value of the valid pixel value in the fringe center region of the second projected image, is added up with obtaining second
Value.
Specifically, the fringe center region refer to 3D display devices obtain projected image gray level image in lime color bright wisp
The core in line region.Pixel is expressed as RGB, wherein, the span of its sub-pixel R, G, B is 0-255, wherein R tables
Show red, G represents green, and B represents blue.In the present embodiment, pixel value is divided into valid pixel value and inactive pixels value, can pass through
Set default strategy to judge whether pixel value is valid pixel value, for example:The value of G of a pixel is set more than threshold X, and
When the value of R and B is respectively less than threshold value Y, the pixel value is valid pixel value, and other situations are inactive pixels value.Or, choose
The G values of green optical losses are standard value in preset range, if the G values of pixel are higher than standard value in green striation in preset range
80%, then judge that the pixel is valid pixel value, be otherwise inactive pixels value.For example, gray-scale map as shown in Figure 4 and Figure 5
As being originally black green stripe pattern staggeredly, Fig. 4 is the gray level image that 3D display devices obtain the first projected image, in wherein Fig. 4
The gray level image that fringe center region A1 and A2, Fig. 5 obtain the second projected image for 3D display devices is denoted, in wherein Fig. 5
Fringe center region B1 and B2 is denoted, first projected image and the second projected image are obtained under identical conditions, and are
Striped interlaced image, because Fig. 4 and Fig. 5 are gray level image, herein, Fig. 4 and Fig. 5 is said with bright dark image staggeredly
Bright, when striped condensation degree is higher, the striped of its corresponding stripe pattern gets over cohesion, i.e. the center of bright fringes as illustrated in the drawing
Region is brighter, it should be appreciated that the stripe pattern can be not only the bright stripe pattern that secretly interlocks, and can also be other two kinds not
The stripe pattern interlocked with color.In the striped condensation degree and the striped condensation degree of the second projected image that judge the first projected image
Height when, it is effective with the fringe center region of Article 2 bright fringes by first bright fringes for calculating projected image respectively
The accumulated value of pixel value, and being compared, the accumulated value of valid pixel value projected image higher, its striped condensation degree is higher,
Bright fringes in its image is brighter, so that it is determined that striped condensation degree projected image high.In the present embodiment, as shown in figure 4, calculating
The accumulated value X of the valid pixel value in the fringe center region of first bright fringes A1 and Article 2 bright fringes A2, as shown in figure 5,
The accumulated value Y of the valid pixel value in the fringe center region of first bright fringes B1 and Article 2 bright fringes B2 is calculated, through comparing,
X is more than Y, so striped more condenses in contrast of fringes Fig. 5 in Fig. 4, its brighter display, the bar of the first projected image shown in Fig. 4
Higher than the striped condensation degree of the second projected image shown in Fig. 5, then the corresponding calibration parameter of the first projected image is excellent for line condensation degree
In the corresponding calibration parameter of the second projected image.
Whether sub-step S152, judge the first accumulated value more than the second accumulated value, if the first accumulated value adds up more than second
Value, then perform sub-step S163, if the first accumulated value is less than the second accumulated value, performs sub-step S164.
Sub-step S153, striped condensation degree projected image higher is saved as by the first projected image.
Sub-step S154, striped condensation degree projected image higher is saved as by the second projected image.
In the present embodiment, after projected image is obtained, by calculate its fringe center region valid pixel value it is cumulative
Value repeats above-mentioned steps until obtaining striped condensation degree highest so that it is determined that go out striped condensation degree projected image higher
Projected image, then determines corresponding calibration parameter, as optimal school according to the striped condensation degree highest projected image
Quasi- parameter, hereafter, when 3D rendering is shown using 3D display devices, shows again after the calibration parameter carries out calibration process,
Reduce 3D display errors, it is ensured that the experience effect of user.
The method of the calibration parameter of determination 3D display devices of the invention is used for during the use of 3D display devices, bar
The corresponding calibration parameter of line condensation degree highest projected image is joined as the optimal calibration of follow-up 3D display devices display 3D rendering
Number, before projected image shows, is both needed to carry out calibration process operation by the calibration parameter.Therefore, the base of above-described embodiment
On plinth, in other embodiment, referring to Fig. 6, after step S17, also include:
Step S30, receives projected image to be shown.
Step S31, the corresponding calibration parameter of reading fringe condensation degree highest projected image.
Step S32, is carried out according to the corresponding calibration parameter of striped condensation degree highest projected image to 3D rendering to be shown
After calibration process again output display to display screen.
In the present embodiment, when the 3D display devices after using calibration export 3D rendering to be shown, first reading fringe cohesion
The corresponding calibration parameter of degree highest projected image, treating display picture further according to the calibration parameter carries out calibration process, and 3D shows
Showing device exports the projected image to be shown again, it is ensured that the 3D display effects of the projected image to be shown of output are good, user's body
Test effect good.
Fig. 7 illustrates a kind of embodiment of 3D display devices of the present invention.In the present embodiment, the 3D display devices include the
One acquisition module 10, generation module 11, interleaving block 12, photographing module 13, the second acquisition module 14, analysis module 15, adjustment
Module 16 and preserving module 17.
Wherein, the first acquisition module 10, for obtaining default calibration parameter scope from being placed in darkroom 3D display devices, and
The first calibration parameter is chosen from the range of default calibration parameter;Generation module 11, for the first calibration parameter through the default calculation that interweaves
Method generates the first interleave parameter;Interleaving block 12, for obtaining default characteristic image, presets characteristic image including symmetrical
Two regions or two regions symmetrical above and below, the first color and the second color are filled in two regions respectively, by default characteristic pattern
The first interlaced video is generated after as being interleaved treatment according to the first interleave parameter, and by the first interlaced video output display to aobvious
Display screen, the first interlaced video is projected to the inwall in darkroom through the backlight of display screen through microlens array to be thrown with forming first
Shadow;Photographing module 13, the first projected image of the first projection is obtained for crossing camera all, and the first projected image is the first face
The stripe pattern that color and the second color are interlocked;Second acquisition module 14, for adjusting calibration parameter, obtains the second projected image,
Second projected image is the stripe pattern that the first color and the second color are interlocked;Analysis module 15, for analyzing the first perspective view
As the striped condensation degree with the second projected image, striped condensation degree projected image higher is preserved;Adjusting module 16, for again
Adjustment calibration parameter obtains corresponding projected image and the projected image higher with striped condensation degree compares, until obtaining bar
Line condensation degree highest projected image;Preserving module 17, for obtaining school corresponding with striped condensation degree highest projected image
Quasi- parameter is simultaneously preserved.
On the basis of above-described embodiment, in other embodiment, referring to Fig. 8, the 3D display devices also include stuck-module 20.
Wherein, stuck-module 20, for opening camera, and fixing camera camera parameter.
On the basis of above-described embodiment, in other embodiment, referring to Fig. 9, analysis module 15 includes computing unit 151, sentences
Disconnected unit 152, first processing units 153 and second processing unit 154.
Wherein, computing unit 151, the valid pixel value in the fringe center region for calculating the first projected image it is cumulative
Value, to obtain the first accumulated value, calculates the accumulated value of the valid pixel value in the fringe center region of the second projected image, to obtain
Second accumulated value;Judging unit 152, for judging the first accumulated value whether more than the second accumulated value;First processing units 153,
If being more than the second accumulated value for the first accumulated value, the first projected image is saved as into striped condensation degree perspective view higher
Picture;Second processing unit 154, if being less than the second accumulated value for the first accumulated value, striped is saved as by the second projected image
Condensation degree projected image higher.
On the basis of above-described embodiment, in other embodiment, referring to Figure 10,3D display devices also include receiver module 30,
Read module 31 and display module 32.
Wherein, receiving module 30, for receiving projected image to be shown;Read module 31, for reading fringe condensation degree
The corresponding interleave parameter of highest projected image;Display module 32, for according to striped condensation degree highest projected image correspondence
Calibration parameter output display to display screen is carried out after calibration process again to 3D rendering to be shown.
On the basis of above-described embodiment, in other embodiment, the default characteristic image includes symmetrical two regions
Or two regions symmetrical above and below, different colors are filled in two regions respectively.
The other details of technical scheme are realized on each module in aforementioned four embodiment 3D display devices, reference can be made to above-mentioned
Description in the method for the calibration parameter of the determination 3D display devices in embodiment, here is omitted.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part ginseng
See the part explanation of embodiment of the method.
The specific embodiment invented has been described in detail above, but it is only used as example, and the present invention is not intended to limit
In specific embodiments described above.For a person skilled in the art, any equivalent modifications carried out to the invention
Or substitute also all among scope of the invention, therefore, the equalization made in the case where the spirit and principles in the present invention scope is not departed from
Conversion and modification, improvement etc., all should be contained within the scope of the invention.