Summary of the invention
The main purpose of the present invention is to provide a kind of parameter test method of panoramic camera and devices, it is intended to raising pair
The convenience that the parameter of panoramic camera is tested, to guarantee the quality of panoramic camera.
To achieve the above object, the present invention provides a kind of parameter test methods of panoramic camera, comprising:
The preset fish eye lens of panoramic camera is placed horizontally at preset optical imagery center test container, splicing is surveyed
Center at the top of examination container, exposure test container and/or white balance test container above hollow out is shot, to obtain phase
The fish eye images answered;
Joined according to optical imagery Center Parameter, image mosaic of the corresponding fish eye images to the panoramic camera
Number, image exposure parameter and/or image white balance parameter are tested.
Preferably, corresponding fish eye images include that test container corresponding optical imagery center in optical imagery center is surveyed
Attempt picture, carrying out test to the optical imagery Center Parameter according to corresponding fish eye images includes:
The center of optical imagery center test image is obtained, and obtains the fish-eye optical imagery
Center;
Obtain optical imagery center test image center and the fish-eye optical imagery centre bit
The distance between set;
The optical imagery Center Parameter is tested according to the distance;Wherein, if it is described apart from smaller, it is described
Optical imagery Center Parameter is more accurate;If the distance is bigger, the optical imagery Center Parameter is more inaccurate.
Preferably, corresponding fish eye images include the corresponding splicing test image of splicing test container, the panorama
Camera includes multiple fish eye lenses, and the splicing test image includes multiple splicings test of the multiple fish eye lens acquisition
Image;Carrying out test to described image splicing parameter according to corresponding fish eye images includes:
The integration region of contiguous concatenation test image two-by-two is obtained, the contiguous concatenation test image includes that the first splicing is surveyed
Attempt picture and the second splicing test image;
Obtain the corresponding first area of the first splicing test image and second for including in each integration region
Splice the corresponding second area of test image;
For each integration region, side is carried out to the integration region, the first area and the second area respectively
Edge detection, by the edge detection results of the integration region and the first area and the edge detection results of the second area
It is matched, obtains matching evaluation of estimate;
The matching evaluation of estimate of all integration regions is weighted to add up and obtains general comment value, is worth according to the general comment true
Determine the test effect grade of described image splicing parameter.
Preferably, corresponding fish eye images include the corresponding exposure test image of exposure test container, the panorama
Camera includes multiple fish eye lenses, and the exposure test image includes multiple exposures test of the multiple fish eye lens acquisition
Image;Carrying out test to described image exposure parameter according to corresponding fish eye images includes:
The integration region for obtaining adjacent exposure test image two-by-two obtains the of each integration region on splicing seams respectively
One image gradient value;
First image gradient value of all integration regions on splicing seams is weighted to add up and obtains the first total gradient value,
The test effect grade of described image exposure parameter is determined according to the first total gradient value.
Preferably, corresponding fish eye images include the corresponding white balance test image of white balance test container, described
Full-view camera includes multiple fish eye lenses, and the white balance test image includes the multiple white of the multiple fish eye lens acquisition
Balance test image;Carrying out test to described image white balance parameter according to the corresponding fish eye images includes:
The integration region for obtaining adjacent white balance test image two-by-two, obtains each integration region on splicing seams respectively
Second image gradient value;
Second image gradient value of all integration regions on splicing seams is weighted to add up and obtains the second total gradient value,
The test effect grade of described image white balance parameter is determined according to the second total gradient value.
In addition, to achieve the above object, the present invention also provides a kind of parameter test devices of panoramic camera, comprising:
Shooting module is surveyed for the preset fish eye lens of panoramic camera to be placed horizontally at preset optical imagery center
The center above container, splicing test container, exposure test container and/or white balance test container top hollow out is tried to carry out
Shooting, to obtain corresponding fish eye images;
Test module, for being joined according to optical imagery center of the corresponding fish eye images to the panoramic camera
Number, image mosaic parameter, image exposure parameter and/or image white balance parameter are tested.
Preferably, corresponding fish eye images include that test container corresponding optical imagery center in optical imagery center is surveyed
Attempt picture, the test module includes:
Position acquisition unit, for obtaining the center of optical imagery center test image, and described in obtaining
Fish-eye optical imagery center;
Distance acquiring unit, for obtain optical imagery center test image center and the fish eye lens
The distance between optical imagery center;
Test cell, for being tested according to the distance the optical imagery Center Parameter;Wherein, if it is described away from
From smaller, then the optical imagery Center Parameter is more accurate;If the distance is bigger, the optical imagery Center Parameter is more not
Accurately.
Preferably, corresponding fish eye images include the corresponding splicing test image of splicing test container, the panorama
Camera includes multiple fish eye lenses, and the splicing test image includes multiple splicings test of the multiple fish eye lens acquisition
Image;The test module further include:
Integration region acquiring unit, for obtaining the integration region of contiguous concatenation test image two-by-two, the contiguous concatenation
Test image includes the first splicing test image and the second splicing test image;
Area acquisition unit, it is corresponding for obtaining the first splicing test image for including in each integration region
First area and the second corresponding second area of splicing test image;
Matching unit, for being directed to each integration region, respectively to the integration region, the first area and described the
Two regions carry out edge detection, by the edge detection results of the integration region and the first area and the second area
Edge detection results are matched, and matching evaluation of estimate is obtained;
Splice test cell, obtain general comment value for being weighted the matching evaluation of estimate of all integration regions to add up,
The test effect grade for determining described image splicing parameter is worth according to the general comment.
Preferably, corresponding fish eye images include the corresponding exposure test image of exposure test container, the panorama
Camera includes multiple fish eye lenses, and the exposure test image includes multiple exposures test of the multiple fish eye lens acquisition
Image;The test module further include:
First acquisition unit obtains each fusion for obtaining the integration region of adjacent exposure test image two-by-two respectively
First image gradient value of the region on splicing seams;
Test cell is exposed, it is cumulative for first image gradient value of all integration regions on splicing seams to be weighted
The first total gradient value is obtained, the test effect grade of described image exposure parameter is determined according to the first total gradient value.
Preferably, corresponding fish eye images include the corresponding white balance test image of white balance test container, described
Full-view camera includes multiple fish eye lenses, and the white balance test image includes the multiple white of the multiple fish eye lens acquisition
Balance test image;The test module further include:
Second acquisition unit obtains each integration region for obtaining the integration region of adjacent fish eye images two-by-two respectively
The second image gradient value on splicing seams;
White balance test cell, it is tired for second image gradient value of all integration regions on splicing seams to be weighted
Add to obtain the second total gradient value, the test effect grade of described image white balance parameter is determined according to the second total gradient value.
The parameter test method and device of panoramic camera provided in an embodiment of the present invention, by by the fish of panoramic camera
Optical imagery center test container that glasses head is placed horizontally at respectively, splicing test container, exposure test container and/or white flat
Center at the top of weighing apparatus test container above hollow out is shot, to obtain corresponding fish eye images to panoramic camera
Optical imagery Center Parameter, image mosaic parameter, image exposure parameter and/or image white balance parameter are tested.So as to
The parameter of panoramic camera is tested before panoramic camera factory, improves and the parameter of panoramic camera is tested
Convenience, to guarantee the quality of panoramic camera.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, showing a kind of parameter test method first embodiment of panoramic camera of the present invention.The embodiment
The parameter test method of panoramic camera include:
Step S10, the preset fish eye lens of panoramic camera preset optical imagery center test is placed horizontally to hold
It is clapped center at the top of device, splicing test container, exposure test container and/or white balance test container above hollow out
It takes the photograph, to obtain corresponding fish eye images;
In the present embodiment, the parameter test method of panoramic camera can be applied to parameter of the panoramic camera before factory
Test guarantees panoramic camera so that user is corrected accordingly according to acquisition parameters of the test result to panoramic camera
Quality.
The panoramic camera may include fish eye lens, and fish-eye number can be according to being actually configured.To panorama
Before the parameter of video camera is tested, it is necessary first to acquire fish eye images by fish eye lens.The parameter of test includes optics
Imaging center parameter, image mosaic parameter, image exposure parameter and image white balance parameter etc., can select it according to actual needs
In one or more parameters tested.
Specifically, it gets out optical imagery center test container, splicing test container, exposure test container and Bai Ping respectively
Weigh test container, and for fish eye images needed for being respectively aligned to different vessels acquisition to fish eye lens, reduction interference obtains pure
Net image.The type and size of each container can be configured according to the actual situation, it is preferable that the type of each container
It is cylindrical body.
Optical imagery center test container may be configured as the circle that medial surface is provided with the vertical line parallel with fish eye lens optical axis
Cylinder, so as to include the corresponding straight line of vertical line in the fish eye images that fish eye lens is shot.As shown in Fig. 2, in optical imagery
The top hollow out of heart test container, side are provided with the vertical line parallel with fish eye lens optical axis, which, which can be, is drawn on circle
On the inside of column side face straight line, be also possible to be hung on the vertical lines on the inside of cylindrical sides, so that flake mirror
It include the corresponding straight line of the vertical line in the fish eye images that head shooting obtains.
The preset fish eye lens of panoramic camera is placed in the center at the top of cylindrical body above hollow out first, so that
Fish-eye optical imagery center is overlapped with the center of cylindrical body, and cylindrical sides are parallel with fish eye lens optical axis.?
It after placing the position between fish eye lens and cylindrical body, is shot by fish eye lens, to obtain the survey of optical imagery center
Attempt picture.As shown in figure 3, quadrangle is the boundary of optical imagery center test image in figure, the center of the quadrangle is image
Center, great circle is that shooting obtains the circular top of cylindrical body, and roundlet be to shoot to obtain the rounded bottom of cylindrical body, great circle and small
Annular region between circle is the medial surface of cylindrical body that shooting obtains, and is being pre-set at of obtaining of shooting in annular region
The vertical line parallel with fish eye lens optical axis in cylindrical sides.
Splicing test container can be provided with the cylindrical body of equidistant striped for side, so that the fish that fish eye lens is shot
It include the striped in eye image, as shown in Figure 7.The preset fish eye lens of panoramic camera is placed at the top of cylindrical body first and is engraved
The center of empty top, so that fish-eye optical imagery center is overlapped with the center of cylindrical body, and cylindrical sides
It is parallel with fish eye lens optical axis.Then it is shot by fish eye lens, to obtain splicing test image.
Exposure test container can be surrounded with the cylindrical body of the annulus of different tonal gradations for side surrounding, so that fish eye lens
The annulus in obtained fish eye images including different tonal gradations is shot, as shown in Figure 9.First that panoramic camera is preset fish
Glasses head is placed in the center at the top of cylindrical body above hollow out, so that fish-eye optical imagery center and cylindrical body
Center is overlapped, and cylindrical sides are parallel with fish eye lens optical axis.Then it is shot by fish eye lens, to be spliced
Test image.
White balance test container can be surrounded with the cylindrical body of red green, blue circular ring for side surrounding, so that flake mirror
It include redgreenblue annulus in the fish eye images that head shooting obtains.The preset fish eye lens of panoramic camera is placed in first
Center at the top of cylindrical body above hollow out, so that fish-eye optical imagery center is overlapped with the center of cylindrical body, and
And cylindrical sides are parallel with fish eye lens optical axis, then shot by fish eye lens, to obtain white balance test image.
Step S20, according to corresponding fish eye images to the optical imagery Center Parameter of the panoramic camera, image
Splicing parameter, image exposure parameter and/or image white balance parameter are tested.
After above-mentioned shooting obtains corresponding fish eye images, i.e., imaging center test image, splicing test image, exposure are surveyed
Attempt picture i.e. white balance test image, can be tested according to parameter of the corresponding fish eye images to panoramic camera.It needs to survey
The parameter of examination includes optical imagery Center Parameter, image mosaic parameter, image exposure parameter and image white balance parameter etc..It can incite somebody to action
The test result of parameters is shown, user is facilitated to check.The detailed process tested to parameters will be
It is described in detail in following embodiment.
The embodiment of the present invention is surveyed by the optical imagery center for being placed horizontally at the fish eye lens of panoramic camera respectively
The center above container, splicing test container, exposure test container and/or white balance test container top hollow out is tried to carry out
Shooting exposes to obtain corresponding fish eye images to the optical imagery Center Parameter, image mosaic parameter, image of panoramic camera
Optical parameter and/or image white balance parameter are tested.So as in the preceding parameter to panoramic camera of panoramic camera factory
It is tested, improves the convenience tested the parameter of panoramic camera, to guarantee the quality of panoramic camera.
Further, as shown in figure 4, the parameter test method first embodiment based on above-mentioned panoramic camera, proposes
The parameter test method second embodiment of panoramic camera of the present invention, above-mentioned steps S20 includes: in the embodiment
Step S31, the center of optical imagery center test image is obtained, and is obtained described fish-eye
Optical imagery center;
Step S32, obtain optical imagery center test image center and the fish-eye optics at
The distance between inconocenter position;
Step S33, the optical imagery Center Parameter is tested according to the distance;Wherein, if the distance is got over
Small, then the optical imagery Center Parameter is more accurate;If the distance is bigger, the optical imagery Center Parameter is more inaccurate
Really.
In the present embodiment, fish eye lens by optical imagery center test container shot to obtain corresponding optics at
Inconocenter test image obtains the center of optical imagery center test image, due to optical imagery center test chart first
As being rectangle, therefore the diagonal line that inconocenter test image can be studied by detection light is formed by geometric center and is set as optics
The center of imaging center test image.
And obtain fish-eye optical imagery center, it is preferable that obtain the fish-eye optical imagery
The step of center includes: to carry out straight-line detection to the fish eye images, obtain in the fish eye images every two it is non-parallel
The coordinate position of intersection point is formed between straight line;When the coordinate position is multiple, the coordinate position is averaged setting
For the fish-eye optical imagery center.
In the present embodiment, it is illustrated, claps so that automatic Calibration method obtains fish-eye optical imagery center as an example
The optical imagery center test image taken the photograph is as shown in figure 3, carry out straight-line detection, acquisition fish-eye image to the fish eye images first
The coordinate position for forming intersection point between every two non-parallel straight lines as in, that is, solve every two non-parallel straight-line intersections.When only depositing
In an intersection point, fish-eye optical imagery center directly is set by the coordinate position of the intersection point.It is more when existing
A intersection point and when obtaining multiple coordinate positions, multiple coordinate positions are averaged and are set as fish-eye optical imagery center
Position.
When the optical imagery center test image that fish eye lens is shot is a width fault image, present it is round, then this
A circular central is exactly optical imagery center.
It is understood that being needed fish-eye according to every single channel when panoramic camera includes multiple fish eye lenses
Obtained optical imagery center test image is shot, obtains center and the light of each optical imagery center test image respectively
Study inconocenter position.
Then, the center of calculating optical imaging center test image and fish-eye optical imagery center it
Between distance carry out discriminating test as a result, the center and optical imagery center of optical imagery center test image may not
In same point, as shown in figure 5, the distance between center and optical imagery center are closer, illustrate in optical imagery
The rectification effect of the heart is better.The distance obtained is smaller, and optical imagery Center Parameter is more accurate;Obtained distance is bigger, optics
Imaging center parameter is more inaccurate.
In center and fish-eye optical imagery of the present embodiment by obtaining optical imagery center test image
Optical imagery Center Parameter is tested in the distance between heart position, improves and tests optical imagery Center Parameter
Convenience.
Further, as shown in fig. 6, the parameter test method first embodiment based on above-mentioned panoramic camera, proposes
The parameter test method 3rd embodiment of panoramic camera of the present invention, above-mentioned steps S20 in the embodiment further include:
Step S41, the integration region of contiguous concatenation test image two-by-two is obtained, the contiguous concatenation test image includes the
One splicing test image and the second splicing test image;
Step S42, corresponding firstth area of the first splicing test image for including in each integration region is obtained
Domain and the corresponding second area of the second splicing test image;
Step S43, it is directed to each integration region, respectively to the integration region, the first area and secondth area
Domain carries out edge detection, by the edge detection results of the integration region and the first area and the edge of the second area
Testing result is matched, and matching evaluation of estimate is obtained;
Step S44, the matching evaluation of estimate of all integration regions is weighted to add up and obtains general comment value, according to described total
Evaluation of estimate determines the test effect grade of described image splicing parameter.
In the present embodiment, full-view camera may include multiple fish eye lenses, and fish eye lens is carried out by splicing test container
Shooting obtains corresponding splicing test image, which includes multiple splicing test charts of multiple fish eye lens acquisitions
Picture.
After obtaining multiple splicing test images, setting contiguous concatenation test image includes the first splicing test image and the
Two splicing test images, obtain the integration region of contiguous concatenation test image two-by-two, and obtain in each integration region first
The corresponding first area of the first splicing test image for including and the corresponding second area of the second splicing test image.Namely
It says, each splicing test image is divided into the multiple regions such as integration region and isolated area, includes in acquisition integration region
First area and second area, the integration region refer to that the partial image region is existed simultaneously in different fish-eye imaging pictures
In face, isolated area refers to that the partial image region exists only in individual panorama picture of fisheye lens picture.
Then edge detection is carried out to each integration region respectively, to obtain the edge image of integration region.For each
Integration region, it is also necessary to respectively corresponding to the first corresponding first area of splicing test image and the second splicing test image the
Two regions carry out edge detection, to obtain the edge image of first area and second area.Edge inspection can be used in the edge detection
Measuring and calculating son and image pixel value carry out convolution obtain, edge detection operator include Roberts operator, Sobel operator,
Prewitt operator, Laplacian operator and Canny operator etc..
The edge detection results of each integration region are spliced with corresponding first to the first area in test image respectively
Template matching is carried out with the edge detection results of the second area in the second splicing test image.I.e. by the edge graph of integration region
Pixel value as in is compared with corresponding pixel value in the edge image of first area, total picture where statistics same pixel value
The percentage of element value.Matching by the matching value between integration region and first area, between integration region and second area
Value is weighted cumulative, obtains the matching evaluation of estimate of corresponding integration region.
The multiple and different test effect grade of image mosaic parameter can be preset in the present embodiment, for example, test is imitated
Fruit grade is divided into 6 grades, is the superlative degree with the first order, and the corresponding evaluation of estimate of the first order is >=90%, the corresponding evaluation of estimate in the second level
It is 80%~90%, the corresponding evaluation of estimate of the third level is 70%~80%, and the corresponding evaluation of estimate of the fourth stage is 60%~70%, the
The corresponding evaluation of estimate of Pyatyi is 50%~60%, and the 6th grade of corresponding evaluation of estimate is less than 50%.Certainly, test effect grade
It can flexible setting as the case may be.The matching evaluation of estimate of all integration regions is weighted to add up and obtains overall merit
Value can determine the test effect grade of image mosaic parameter according to general comment value.When all splicing test images are spliced
When to image as shown in Figure 7, test effect higher grade, and the striped splicing goodness of fit in image is higher, illustrates panoramic shooting
The splicing parameter of machine is better.
The present embodiment is spelled by include in the integration region of contiguous concatenation test image two-by-two, each integration region first
It connects the corresponding first area of test image and the corresponding second area of the second splicing test image carries out edge detection, edge is examined
It surveys result to be matched to obtain matching evaluation of estimate, and is worth according to the general comment of all integration regions and determines image mosaic parameter
Test effect grade improves the accuracy and reliability tested image mosaic parameter.
Further, as shown in figure 8, the parameter test method first embodiment based on above-mentioned panoramic camera, proposes
The parameter test method fourth embodiment of panoramic camera of the present invention, above-mentioned steps S20 in the embodiment further include:
Step S51, the integration region for obtaining adjacent exposure test image two-by-two, obtains each integration region respectively and is splicing
The first image gradient value sewed on;
Step S52, the first image gradient value by all integration regions on splicing seams, which is weighted to add up, obtains first
Total gradient value determines the test effect grade of described image exposure parameter according to the first total gradient value.
In the present embodiment, full-view camera can expose multiple fish eye lenses, and fish eye lens is carried out by exposure test container
Shooting obtains corresponding including test image, which includes multiple exposure test charts of multiple fish eye lens acquisitions
Picture.
After obtaining multiple exposure test images, the integration region of adjacent exposure test image two-by-two is obtained first, then
First image gradient value of each integration region on splicing seams, the first image gradient value are calculated separately using gradient detective operators
Calculating gradient detective operators can be used and video image convolution obtains, gradient detective operators include Roberts operator,
Prewitt operator and Sobel operator.For example, the gradient difference in the direction Prewitt operator x, y is as follows:
The gradient in the direction x of Prewitt operator:
The gradient in the direction y of Prewitt operator:
The gradient in the direction Sobel operator x, y is respectively as follows:
The gradient in the direction x of Sobel operator:
The gradient in the direction y of Sobel operator:
The multiple and different test effect grade of image exposure parameter, each test effect etc. can be preset in the present embodiment
The corresponding gradient value of grade can flexible setting as the case may be.By first image ladder of all integration regions on splicing seams
Angle value, which is weighted to add up, obtains the first total gradient value, and the test effect etc. of image exposure parameter is determined according to the first total gradient value
Grade.When all exposure test images splice to obtain image as shown in Figure 9, test effect higher grade, different in image
Edge pixel values difference between tonal gradation is more obvious, and illustrates that the exposure parameter of panoramic camera is better.That is Fig. 9 is exposure
Schematic device, that is, the color intensity profile of outside of deivce.When the first total gradient is worth smaller, difference in exposure between fish eye lens
Smaller, the first total gradient value is bigger, and difference in exposure is bigger between fish eye lens.
First image gradient value of the present embodiment by the integration region of adjacent exposure test image two-by-two on splicing seams
It is weighted to add up and obtains the first total gradient value, the test effect grade of image exposure parameter is determined according to the first total gradient value,
Improve the accuracy and convenience tested image exposure parameter.
Further, based on the parameter test method first, second, third or fourth embodiment of above-mentioned panoramic camera,
Propose the 5th embodiment of parameter test method of panoramic camera of the present invention, above-mentioned steps S20 in the embodiment further include:
The integration region for obtaining adjacent white balance test image two-by-two, obtains each integration region on splicing seams respectively
Second image gradient value;
Second image gradient value of all integration regions on splicing seams is weighted to add up and obtains the second total gradient value,
The test effect grade of described image white balance parameter is determined according to the second total gradient value.
In the present embodiment, full-view camera may include multiple fish eye lenses, fish eye lens by white balance test container into
Row shooting obtains corresponding white balance test image, which includes the multiple white flat of multiple fish eye lens acquisitions
Weigh test image.
After obtaining multiple white balance test images, the integration region of adjacent white balance test image two-by-two is obtained first,
Then second image gradient value of each integration region on splicing seams, the second image ladder are calculated separately using gradient detective operators
Gradient detective operators can be used in the calculating of angle value and video image convolution obtains, gradient detective operators include Roberts operator,
Prewitt operator and Sobel operator.
The multiple and different test effect grade of image white balance parameter, each test effect can be preset in the present embodiment
The corresponding gradient value of grade can flexible setting as the case may be.By second image of all integration regions on splicing seams
Gradient value, which is weighted to add up, obtains the second total gradient value, determines that the test of image white balance parameter is imitated according to the second total gradient value
Fruit grade.When the second total gradient value is smaller, white balance difference is smaller between fish eye lens, and the second total gradient value is bigger, fish eye lens
Between white balance difference it is bigger.
Second image gradient of the present embodiment by the integration region of adjacent white balance test image two-by-two on splicing seams
Value, which is weighted to add up, obtains the second total gradient value, and the test effect etc. of image white balance parameter is determined according to the second total gradient value
Grade, improves the accuracy and convenience tested image white balance parameter.
Accordingly, as shown in Figure 10, a kind of parameter test device first embodiment of panoramic camera of the present invention is proposed.It should
The parameter test device of the panoramic camera of embodiment includes:
Shooting module 100, for the preset fish eye lens of panoramic camera to be placed horizontally in preset optical imagery
Center at the top of heart test container, splicing test container, exposure test container and/or white balance test container above hollow out
It is shot, to obtain corresponding fish eye images;
In the present embodiment, the parameter test method of panoramic camera can be applied to parameter of the panoramic camera before factory
Test guarantees panoramic camera so that user is corrected accordingly according to acquisition parameters of the test result to panoramic camera
Quality.
The panoramic camera may include fish eye lens, and fish-eye number can be according to being actually configured.To panorama
Before the parameter of video camera is tested, it is necessary first to acquire fish eye images by fish eye lens.The parameter of test includes optics
Imaging center parameter, image mosaic parameter, image exposure parameter and image white balance parameter etc., can select it according to actual needs
In one or more parameters tested.
Specifically, it gets out optical imagery center test container, splicing test container, exposure test container and Bai Ping respectively
Weigh test container, and for fish eye images needed for being respectively aligned to different vessels acquisition to fish eye lens, reduction interference obtains pure
Net image.The type and size of each container can be configured according to the actual situation, it is preferable that the type of each container
It is cylindrical body.
Optical imagery center test container may be configured as the circle that medial surface is provided with the vertical line parallel with fish eye lens optical axis
Cylinder, so as to include the corresponding straight line of vertical line in the fish eye images that fish eye lens is shot.As shown in Fig. 2, in optical imagery
The top hollow out of heart test container, side are provided with the vertical line parallel with fish eye lens optical axis, which, which can be, is drawn on circle
On the inside of column side face straight line, be also possible to be hung on the vertical lines on the inside of cylindrical sides, so that flake mirror
It include the corresponding straight line of the vertical line in the fish eye images that head shooting obtains.
The preset fish eye lens of panoramic camera is placed in the center at the top of cylindrical body above hollow out first, so that
Fish-eye optical imagery center is overlapped with the center of cylindrical body, and cylindrical sides are parallel with fish eye lens optical axis.?
After placing the position between fish eye lens and cylindrical body, shooting module 100 is shot by fish eye lens, to obtain optics
Imaging center test image.As shown in figure 3, quadrangle is the boundary of optical imagery center test image in figure, the quadrangle
Center is the center of image, and great circle is that shooting obtains the circular top of cylindrical body, and roundlet is that shooting obtains the circular base of cylindrical body
Portion, the annular region between great circle and roundlet are the medial surface for the cylindrical body that shooting obtains, and are that shooting obtains in annular region
Be pre-set at parallel with fish eye lens optical axis vertical line in cylindrical sides.
Splicing test container can be provided with the cylindrical body of equidistant striped for side, so that the fish that fish eye lens is shot
It include the striped in eye image, as shown in Figure 7.The preset fish eye lens of panoramic camera is placed at the top of cylindrical body first and is engraved
The center of empty top, so that fish-eye optical imagery center is overlapped with the center of cylindrical body, and cylindrical sides
It is parallel with fish eye lens optical axis.Then shooting module 100 is shot by fish eye lens, to obtain splicing test image.
Exposure test container can be surrounded with the cylindrical body of the annulus of different tonal gradations for side surrounding, so that fish eye lens
The annulus in obtained fish eye images including different tonal gradations is shot, as shown in Figure 9.First that panoramic camera is preset fish
Glasses head is placed in the center at the top of cylindrical body above hollow out, so that fish-eye optical imagery center and cylindrical body
Center is overlapped, and cylindrical sides are parallel with fish eye lens optical axis.Then shooting module 100 is clapped by fish eye lens
It takes the photograph, to obtain splicing test image.
White balance test container can be surrounded with the cylindrical body of red green, blue circular ring for side surrounding, so that flake mirror
It include redgreenblue annulus in the fish eye images that head shooting obtains.The preset fish eye lens of panoramic camera is placed in first
Center at the top of cylindrical body above hollow out, so that fish-eye optical imagery center is overlapped with the center of cylindrical body, and
And cylindrical sides are parallel with fish eye lens optical axis, then shooting module 100 is shot by fish eye lens, white flat to obtain
Weigh test image.
Test module 200, for the optical imagery center according to corresponding fish eye images to the panoramic camera
Parameter, image mosaic parameter, image exposure parameter and/or image white balance parameter are tested.
After above-mentioned shooting obtains corresponding fish eye images, i.e., imaging center test image, splicing test image, exposure are surveyed
Attempt as i.e. white balance test image, test module 200 can be carried out according to parameter of the corresponding fish eye images to panoramic camera
Test.Needing parameter to be tested includes optical imagery Center Parameter, image mosaic parameter, image exposure parameter and image white balance
Parameter etc..The test result of parameters can be shown, user is facilitated to check.The tool that parameters are tested
Body process will be described in detail in the examples below.
The embodiment of the present invention is surveyed by the optical imagery center for being placed horizontally at the fish eye lens of panoramic camera respectively
The center above container, splicing test container, exposure test container and/or white balance test container top hollow out is tried to carry out
Shooting exposes to obtain corresponding fish eye images to the optical imagery Center Parameter, image mosaic parameter, image of panoramic camera
Optical parameter and/or image white balance parameter are tested.So as in the preceding parameter to panoramic camera of panoramic camera factory
It is tested, improves the convenience tested the parameter of panoramic camera, to guarantee the quality of panoramic camera.
Further, based on the parameter test device first embodiment of above-mentioned panoramic camera, panorama of the present invention is proposed
The parameter test device second embodiment of video camera, above-mentioned test module 200 includes: in the embodiment
Position acquisition unit, for obtaining the center of optical imagery center test image, and described in obtaining
Fish-eye optical imagery center;
Distance acquiring unit, for obtain optical imagery center test image center and the fish eye lens
The distance between optical imagery center;
Test cell, for being tested according to the distance the optical imagery Center Parameter;Wherein, if it is described away from
From smaller, then the optical imagery Center Parameter is more accurate;If the distance is bigger, the optical imagery Center Parameter is more not
Accurately.
In the present embodiment, fish eye lens by optical imagery center test container shot to obtain corresponding optics at
Inconocenter test image is obtained the center of optical imagery center test image, due to optics by position acquisition unit first
Imaging center test image is rectangle, therefore the diagonal line that inconocenter test image can be studied by detection light is formed by geometry
Center is set as the center of optical imagery center test image.
And position acquisition unit obtains fish-eye optical imagery center, it is preferable that obtains the flake mirror
The step of optical imagery center of head includes: to carry out straight-line detection to the fish eye images, is obtained in the fish eye images
The coordinate position of intersection point is formed between every two non-parallel straight lines;When the coordinate position is multiple, by the coordinate position
It is averaged and is set as the fish-eye optical imagery center.
In the present embodiment, it is illustrated, claps so that automatic Calibration method obtains fish-eye optical imagery center as an example
The optical imagery center test image taken the photograph is as shown in figure 3, carry out straight-line detection, acquisition fish-eye image to the fish eye images first
The coordinate position for forming intersection point between every two non-parallel straight lines as in, that is, solve every two non-parallel straight-line intersections.When only depositing
In an intersection point, fish-eye optical imagery center directly is set by the coordinate position of the intersection point.It is more when existing
A intersection point and when obtaining multiple coordinate positions, multiple coordinate positions are averaged and are set as fish-eye optical imagery center
Position.
When the optical imagery center test image that fish eye lens is shot is a width fault image, present it is round, then this
A circular central is exactly optical imagery center.
It is understood that being needed fish-eye according to every single channel when panoramic camera includes multiple fish eye lenses
Obtained optical imagery center test image is shot, obtains center and the light of each optical imagery center test image respectively
Study inconocenter position.
Then, the center of distance acquiring unit calculating optical imaging center test image and fish-eye optics at
The distance between inconocenter position, test cell is according to obtained distance come discriminating test as a result, optical imagery center test chart
The center and optical imagery center of picture may not be in same points, as shown in figure 5, in center and optical imagery
The distance between heart position is closer, illustrates that the rectification effect at optical imagery center is better.The distance obtained is smaller, optical imagery
Center Parameter is more accurate;Obtained distance is bigger, and optical imagery Center Parameter is more inaccurate.
In center and fish-eye optical imagery of the present embodiment by obtaining optical imagery center test image
Optical imagery Center Parameter is tested in the distance between heart position, improves and tests optical imagery Center Parameter
Convenience.
Further, based on the parameter test device first embodiment of above-mentioned panoramic camera, panorama of the present invention is proposed
The parameter test device 3rd embodiment of video camera, above-mentioned test module 200 in the embodiment further include:
Integration region acquiring unit, for obtaining the integration region of contiguous concatenation test image two-by-two, the contiguous concatenation
Test image includes the first splicing test image and the second splicing test image;
Area acquisition unit, it is corresponding for obtaining the first splicing test image for including in each integration region
First area and the second corresponding second area of splicing test image;
Matching unit, for being directed to each integration region, respectively to the integration region, the first area and described the
Two regions carry out edge detection, by the edge detection results of the integration region and the first area and the second area
Edge detection results are matched, and matching evaluation of estimate is obtained;
Splice test cell, obtain general comment value for being weighted the matching evaluation of estimate of all integration regions to add up,
The test effect grade for determining described image splicing parameter is worth according to the general comment.
In the present embodiment, full-view camera may include multiple fish eye lenses, and fish eye lens is carried out by splicing test container
Shooting obtains corresponding splicing test image, which includes multiple splicing test charts of multiple fish eye lens acquisitions
Picture.
After obtaining multiple splicing test images, setting contiguous concatenation test image includes the first splicing test image and the
Two splicing test images, are obtained the integration region of contiguous concatenation test image two-by-two by integration region acquiring unit first, and
The corresponding first area of the first splicing test image and second for including in each integration region is obtained by area acquisition unit to spell
Connect the corresponding second area of test image.That is, each splicing test image is divided into integration region and isolated area
Etc. multiple regions, obtain integration region in include first area and second area, the integration region refer to the parts of images area
Domain exists simultaneously in different fish-eye imaging pictures, and isolated area refers to that the partial image region exists only in individually
In panorama picture of fisheye lens picture.
Then matching unit carries out edge detection to each integration region respectively, to obtain the edge image of integration region.
For each integration region, it is also necessary to respectively to the corresponding first area of the first splicing test image and the second splicing test image
Corresponding second area carries out edge detection, to obtain the edge image of first area and second area.The edge detection can adopt
It carries out convolution with the pixel value of edge detection operator and image to obtain, edge detection operator includes Roberts operator, Sobel calculation
Son, Prewitt operator, Laplacian operator and Canny operator etc..
Matching unit is by the edge detection results of each integration region respectively and in corresponding first splicing test image
The edge detection results of first area and the second area in the second splicing test image carry out template matching.I.e. by integration region
Edge image in pixel value be compared with corresponding pixel value in the edge image of first area, count same pixel value
The percentage of the total pixel value in place.Matching unit is by the matching value between integration region and first area, with integration region and
Matching value between two regions is weighted cumulative, obtains the matching evaluation of estimate of corresponding integration region.
The multiple and different test effect grade of image mosaic parameter can be preset in the present embodiment, for example, test is imitated
Fruit grade is divided into 6 grades, is the superlative degree with the first order, and the corresponding evaluation of estimate of the first order is >=90%, the corresponding evaluation of estimate in the second level
It is 80%~90%, the corresponding evaluation of estimate of the third level is 70%~80%, and the corresponding evaluation of estimate of the fourth stage is 60%~70%, the
The corresponding evaluation of estimate of Pyatyi is 50%~60%, and the 6th grade of corresponding evaluation of estimate is less than 50%.Certainly, test effect grade
It can flexible setting as the case may be.The matching evaluation of estimate of all integration regions is weighted to add up and obtains overall merit
Value can determine the test effect grade of image mosaic parameter according to general comment value.When all splicing test images are spliced
When to image as shown in Figure 7, test effect higher grade, and the striped splicing goodness of fit in image is higher, illustrates panoramic shooting
The splicing parameter of machine is better.
The present embodiment is spelled by include in the integration region of contiguous concatenation test image two-by-two, each integration region first
It connects the corresponding first area of test image and the corresponding second area of the second splicing test image carries out edge detection, edge is examined
It surveys result to be matched to obtain matching evaluation of estimate, and is worth according to the general comment of all integration regions and determines image mosaic parameter
Test effect grade improves the accuracy and reliability tested image mosaic parameter.
Further, based on the parameter test device first embodiment of above-mentioned panoramic camera, panorama of the present invention is proposed
The parameter test device fourth embodiment of video camera, above-mentioned test module 200 in the embodiment further include:
First acquisition unit obtains each fusion for obtaining the integration region of adjacent exposure test image two-by-two respectively
First image gradient value of the region on splicing seams;
Test cell is exposed, it is cumulative for first image gradient value of all integration regions on splicing seams to be weighted
The first total gradient value is obtained, the test effect grade of described image exposure parameter is determined according to the first total gradient value.
In the present embodiment, full-view camera can expose multiple fish eye lenses, and fish eye lens is carried out by exposure test container
Shooting obtains corresponding including test image, which includes multiple exposure test charts of multiple fish eye lens acquisitions
Picture.
After obtain multiple exposure test images, adjacent exposure test image two-by-two is obtained by first acquisition unit first
Then integration region calculates separately first image gradient value of each integration region on splicing seams using gradient detective operators,
Gradient detective operators can be used in the calculating of first image gradient value and video image convolution obtains, and gradient detective operators include
Roberts operator, Prewitt operator and Sobel operator.
The multiple and different test effect grade of image exposure parameter, each test effect etc. can be preset in the present embodiment
The corresponding gradient value of grade can flexible setting as the case may be.Exposure test cell is by all integration regions on splicing seams
The first image gradient value be weighted it is cumulative obtain the first total gradient value, image exposure parameter is determined according to the first total gradient value
Test effect grade.When all exposure test images splice to obtain image as shown in Figure 9, test effect grade is got over
Height, the edge pixel values difference in image between different tonal gradations are more obvious, and illustrate that the exposure parameter of panoramic camera is better.
That is Fig. 9 is the schematic device of exposure, that is, the color intensity profile of outside of deivce.When the first total gradient is worth smaller, flake
Difference in exposure is smaller between camera lens, and the first total gradient value is bigger, and difference in exposure is bigger between fish eye lens.
First image gradient value of the present embodiment by the integration region of adjacent exposure test image two-by-two on splicing seams
It is weighted to add up and obtains the first total gradient value, the test effect grade of image exposure parameter is determined according to the first total gradient value,
Improve the accuracy and convenience tested image exposure parameter.
Further, based on the parameter test device first, second, third or fourth embodiment of above-mentioned panoramic camera,
The 5th embodiment of parameter test device of panoramic camera of the present invention is proposed, above-mentioned test module 200 is also wrapped in the embodiment
It includes:
Second acquisition unit obtains each integration region for obtaining the integration region of adjacent fish eye images two-by-two respectively
The second image gradient value on splicing seams;
White balance test cell, it is tired for second image gradient value of all integration regions on splicing seams to be weighted
Add to obtain the second total gradient value, the test effect grade of described image white balance parameter is determined according to the second total gradient value.
In the present embodiment, full-view camera may include multiple fish eye lenses, fish eye lens by white balance test container into
Row shooting obtains corresponding white balance test image, which includes the multiple white flat of multiple fish eye lens acquisitions
Weigh test image.
After obtaining multiple white balance test images, adjacent white balance test chart two-by-two is obtained by second acquisition unit first
Then the integration region of picture calculates separately second image gradient of each integration region on splicing seams using gradient detective operators
Value, gradient detective operators can be used in the calculating of the second image gradient value and video image convolution obtains, and gradient detective operators include
Roberts operator, Prewitt operator and Sobel operator.
The multiple and different test effect grade of image white balance parameter, each test effect can be preset in the present embodiment
The corresponding gradient value of grade can flexible setting as the case may be.White balance test cell is splicing all integration regions
The second image gradient value sewed on, which is weighted to add up, obtains the second total gradient value, determines that image is white flat according to the second total gradient value
The test effect grade for the parameter that weighs.When the second total gradient value is smaller, white balance difference is smaller between fish eye lens, the second total gradient value
Bigger, white balance difference is bigger between fish eye lens.
Second image gradient of the present embodiment by the integration region of adjacent white balance test image two-by-two on splicing seams
Value, which is weighted to add up, obtains the second total gradient value, and the test effect etc. of image white balance parameter is determined according to the second total gradient value
Grade, improves the accuracy and convenience tested image white balance parameter.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.