CN109982073A - The detection method and device of camera module optical axis - Google Patents
The detection method and device of camera module optical axis Download PDFInfo
- Publication number
- CN109982073A CN109982073A CN201910283761.5A CN201910283761A CN109982073A CN 109982073 A CN109982073 A CN 109982073A CN 201910283761 A CN201910283761 A CN 201910283761A CN 109982073 A CN109982073 A CN 109982073A
- Authority
- CN
- China
- Prior art keywords
- optical axis
- interior angle
- camera module
- point
- sub
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000003287 optical effect Effects 0.000 title claims abstract description 90
- 238000001514 detection method Methods 0.000 title claims abstract description 46
- 238000003708 edge detection Methods 0.000 claims abstract description 18
- 230000010339 dilation Effects 0.000 claims description 14
- 230000003628 erosive effect Effects 0.000 claims description 14
- 238000010586 diagram Methods 0.000 description 13
- 238000004364 calculation method Methods 0.000 description 6
- 238000000034 method Methods 0.000 description 6
- 241000949648 Angulus Species 0.000 description 3
- 230000008034 disappearance Effects 0.000 description 3
- 238000007689 inspection Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/20—Image enhancement or restoration using local operators
- G06T5/30—Erosion or dilatation, e.g. thinning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the invention provides the detection method and detection device of a kind of camera module optical axis, the detection method includes: acquisition test image, and the test image is shot to obtain by camera module;Edge detection is carried out to obtain the boundary profile of test image to the test image, the boundary profile includes a plurality of waveform patterns equidistantly laid, and in two adjacent waveform patterns, wherein the wave crest of a waveform patterns intersects with the trough of another waveform patterns;It scans the boundary profile and obtains the location information of multiple interior angle points in peaks and troughs intersection;The optical axis position information of the camera module is obtained according to the location information of multiple interior angle points.The present invention has the advantages that optical axis position acquisition of information is convenient, simple, accurate.
Description
Technical field
The present invention relates to optical technical field, in particular to a kind of detection method and device of camera module optical axis.
Background technique
In the prior art, camera module is installed on electronic product, the relative physical location with periphery electronic component
It is easy to determine, but the optical axis center of camera module is but difficult to measure.
Summary of the invention
The main object of the present invention is to provide a kind of detection method and device of camera module optical axis, it is intended to solve current
The optical axis center of camera module is but difficult to the problem of measuring.
To achieve the above object, the embodiment of the invention provides a kind of detection method of camera module optical axis, the inspections
Survey method includes:
Test image is obtained, the test image is shot to obtain by camera module;
Edge detection is carried out to the test image to obtain the boundary profile of test image, the boundary profile includes etc.
The a plurality of waveform patterns that spacing is laid, and in two adjacent waveform patterns, wherein the wave crest of a waveform patterns and another
The trough of waveform patterns intersects;
It scans the boundary profile and obtains the location information of multiple interior angle points in peaks and troughs intersection;
The optical axis position information of the camera module is obtained according to the location information of multiple interior angle points.
Preferably, described the step of boundary profile of the edge detection to obtain test image is carried out to the test image it
Before, comprising:
Gaussian Blur processing is carried out to the test image.
Preferably, described to scan the boundary profile and believe in the position that peaks and troughs intersection obtains multiple interior angle points
The step of breath includes:
Dilation erosion processing is carried out to the peaks and troughs intersection;
Scanning dilation erosion treated test image is to obtain the location informations of multiple interior angle points.
Preferably, scanning dilation erosion treated the test image is to obtain the location informations of multiple interior angle points
The step of include:
The position of target sub-pix point is obtained according to the position coordinates of multiple sub-pix points of the interior angle point region
Coordinate;
Using the position coordinates of target sub-pix point as the location information of the interior angle point.
Preferably, the position coordinates of multiple sub-pix points according to the interior angle point region obtain target Asia picture
The step of position coordinates of vegetarian refreshments includes:
It is calculated according to the position coordinates of multiple sub-pix points of the interior angle point region and is in the first of center
The position coordinates of sub-pix point;
Target sub-pix point region is marked centered on the first sub-pix point;
Obtain the position coordinates of the second sub-pix point of the center in target sub-pix point region;
Using the position coordinates of the second sub-pix point as the position coordinates of target sub-pix point.
Preferably, described to scan the boundary profile and believe in the position that peaks and troughs intersection obtains multiple interior angle points
After the step of breath, further includes:
Sliding window operation is carried out by basic point of any interior angle point;
Judge whether multiple interior angle points in sliding window region are conllinear;
If so, using conllinear multiple interior angle points as effective interior angle point;
The optical axis position information of the camera module is obtained according to the location information of multiple effectively interior angle points.
Preferably, the location information according to multiple interior angle points obtains the optical axis position letter of the camera module
The step of breath includes:
The optical axis position information is determined according to the coordinate on the first direction of the location information of multiple interior angle points
Coordinate on first direction;
The optical axis position information is determined according to the coordinate in the second direction in the location information of multiple interior angle points
Second direction on coordinate;Wherein, the first direction is vertical with second direction.
Preferably, the optical axis position information that the camera module is obtained according to the location information of multiple interior angle points is stated
The step of after, further includes:
According to the offset between the optical axis position acquisition of information difference camera module of different camera modules.
Preferably, the waveform patterns include at least one of sinusoidal wave, sawtooth wave pattern.
To achieve the above object, the embodiment of the present invention provides a kind of detection device of camera module optical axis, the detection
Device is used to execute the detection method of described in any item camera module optical axises as above.
The detection method and detection device of camera module optical axis of the invention obtain test chart in the camera module
As after, edge detection is carried out to the test image, to obtain the boundary profile of test image, the boundary profile is by equidistant
The a plurality of waveform patterns laid, and in two adjacent waveform patterns, wherein the wave crest of a waveform patterns and another waveform
The trough of pattern intersects, and obtains the location information of multiple interior angle points in the intersection of the peaks and troughs, and according to multiple institutes
The location information for stating interior angle point obtains the optical axis position information of the camera module, so that the acquisition of the optical axis position information
It is more simple, convenient and accurate;And in the pattern being taken clean operation or due to using overlong time etc., so that institute
State the pictorial pattern part wears in pattern perhaps partial disappearance when with any sub- picture that is not being worn wherein or not disappearing
Location information of the position coordinates of vegetarian refreshments as the corresponding interior angle point, does not influence continuing to use for the pattern being taken, from
And the service life for the pattern being taken can be extended, it avoids frequently replacing the pattern being taken, to reduce cost.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
The structure shown according to these attached drawings obtains other attached drawings.
Fig. 1 is the structural schematic diagram of one embodiment of detection method of camera module optical axis of the present invention;
Fig. 2 is the schematic diagram of test pictures of the present invention;
Fig. 3 is the schematic diagram for the test pictures that the present invention carries out after edge detection;
Fig. 4 is the schematic diagram of interior angle point in test pictures of the present invention;
Fig. 5 is the flow diagram of the another embodiment of detection method of camera module optical axis of the present invention;
Fig. 6 is the flow diagram of the another embodiment of detection method of camera module optical axis of the present invention;
Fig. 7 is the schematic diagram of dilation erosion angulus anteromedialis point of the present invention;
Fig. 8 is the schematic diagram of dilation erosion angulus posteriomedialis point of the present invention;;
Fig. 9 is the flow diagram of the another embodiment of detection method of camera module optical axis of the present invention;
Figure 10 is the flow diagram of the another embodiment of detection method of camera module optical axis of the present invention;
Figure 11 is the flow diagram of the another embodiment of detection method of camera module optical axis of the present invention;
Figure 12 is the flow diagram of the another embodiment of detection method of camera module optical axis of the present invention;
Figure 13 is the flow diagram of the another embodiment of detection method of camera module optical axis of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiment is only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
His embodiment, shall fall within the protection scope of the present invention.
It is to be appreciated that the directional instruction (such as up, down, left, right, before and after ...) of institute is only used in the embodiment of the present invention
In explanation in relative positional relationship, the motion conditions etc. under a certain particular pose (as shown in the picture) between each component, if institute
When stating particular pose and changing, then the directionality instruction also correspondingly changes correspondingly.
It in addition, the technical solution between each embodiment can be combined with each other, but must be with ordinary skill
Based on personnel can be realized, this technical side will be understood that when the combination of technical solution appearance is conflicting or cannot achieve
The combination of case is not present, also not the present invention claims protection scope within.
Please with reference to Fig. 1-2, the detection method of the camera module optical axis as the 1st embodiment of the invention, the inspection
Survey method includes:
Step S10, obtains test image, and the test image is shot to obtain by camera module.
In the present embodiment, the pattern that can be repeated shooting is provided, the camera module is by shooting the complete of the pattern
Scape figure obtains test pictures.
As a kind of specific embodiment, as shown in Fig. 2, the test pictures are by multiple strip regions equidistantly arranged
10 combinations are constituted, and in each strip region 10, the strip region 10 is divided into the multiple of homalographic by waveform
First sub-district 11 and multiple second sub-districts 12, there are the greyscale level of larger difference between the first sub-district 11 and the second sub-district 12,
If first sub-district 11 is whole white, the second sub-district 12 is all black.In same strip region 10, first sub-district
11 and second the interval of sub-district 12 be arranged, and in adjacent strip region 10, belong to first son in different strip regions 10
Also interval setting between area 11 and the second sub-district 12, that is, what is connected with the first sub-district 11 is the second sub-district 12 entirely.In the present embodiment
In, the strip region 10 can be horizontally disposed with as shown in Figure 2, can also be vertically arranged, it can also be at any angle tiltedly
To setting.
Step S20 carries out edge detection to the test image to obtain the boundary profile of test image, the boundary wheel
Exterior feature includes a plurality of waveform patterns equidistantly laid, and in two adjacent waveform patterns, wherein the wave crest of a waveform patterns
Intersect with the trough of another waveform patterns.
Please with reference to Fig. 1-3, in the present embodiment, after getting above-mentioned test pattern, to the test image into
Row edge detection is to obtain the boundary profile of test image, and there are many edge detection algorithms, as Sobel edge detection algorithm,
Canny edge detection algorithm etc..It is divided by waveform due to being between first sub-district 11 and the second sub-district 12, and described
There are the greyscale levels of larger difference between first sub-district 11 and the second sub-district 12, therefore, the boundary profile that edge detection obtains
For the waveform patterns (white line part in such as Fig. 3) in strip region 10, and in two adjacent waveform patterns, wherein a wave
90 ° of phase of the advanced another waveform of the phase of shape pattern, in addition, a plurality of waveform patterns spaced set, the spacing are equal to
The amplitude of the waveform patterns, that is, wherein the wave crest of a waveform patterns intersects with the trough of another waveform patterns.It is described
Waveform patterns can be sinusoidal wave or sawtooth wave pattern, preferably sinusoidal wave.
Step S30 scans the boundary profile and obtains the location information of multiple interior angle points in peaks and troughs intersection.
Please with reference to Fig. 1-4, in the present embodiment, due to peaks and troughs intersection (such as Fig. 4 of the waveform patterns
Middle white point part) include sub-pix point it is most, the sub-pix area occupied in entire waveform patterns is maximum, special when scanning
Sign is the most obvious, therefore using the peaks and troughs intersection as interior angle point (white point part in such as Fig. 4) position, so that institute
The sub-pix stated interior angle point to be more readily detectable, and form the interior angle point be it is most, can will form the interior angle point
Location information of the coordinate of any sub-pix point as the interior angle point, that is, can the interior angle point any sub-pix point
Position coordinates as the interior angle point location information solution, the solution of the location information of the interior angle point can have it is multiple so that
The search of the interior angle point is more simply, conveniently, accurately;And due to clean operation or time mistake is used in the pattern being taken
The reasons such as long so that pictorial pattern part wears in pattern perhaps partial disappearance when with not being worn wherein or do not disappear
Solution of the position coordinates of any sub-pix point lost as the location information of the corresponding interior angle point, to not influence to be taken
Pattern continue to use, the service life for the pattern being taken can be extended, avoid frequently replacing the pattern being taken, thus
Reduce cost.
Step S40 obtains the optical axis position information of the camera module according to the location information of multiple interior angle points.
In the present embodiment, after the location information for getting multiple interior angle points, according to multiple interior angle points
Positional information calculation obtains the optical axis position information of the camera module, so that the optical axis position information is more quasi-
Really, subsequent specific calculation method to be described in detail.
In conclusion the detection method of camera module optical axis of the invention, obtains test chart in the camera module
As after, edge detection is carried out to the test image, to obtain the boundary profile of test image, the boundary profile is by equidistant
The a plurality of waveform patterns laid, and in two adjacent waveform patterns, wherein the wave crest of a waveform patterns and another waveform
The trough of pattern intersects, and obtains the location information of multiple interior angle points in the intersection of the peaks and troughs, and according to multiple institutes
The location information for stating interior angle point obtains the optical axis position information of the camera module, so that the acquisition of the optical axis position information
It is more simple, convenient and accurate;And in the pattern being taken clean operation or due to using overlong time etc., so that institute
State the pictorial pattern part wears in pattern perhaps partial disappearance when with any sub- picture that is not being worn wherein or not disappearing
Location information of the position coordinates of vegetarian refreshments as the corresponding interior angle point, does not influence continuing to use for the pattern being taken, from
And the service life for the pattern being taken can be extended, it avoids frequently replacing the pattern being taken, to reduce cost.
Referring to Fig. 5, proposing the 2nd of the detection method of camera module optical axis of the invention based on above-mentioned 1st embodiment
Embodiment, before the step S20, comprising:
Step S50 carries out Gaussian Blur processing to the test image.
In the present embodiment, after getting test image, Gaussian Blur processing first is carried out to the test image, is disappeared
Except the burr on boundary between first sub-district 11 and the second sub-district 12, so that between first sub-district 11 and the second sub-district 12
Smoothly connect, it is more obvious in the position of black and white boundary, the wave obtained after edge detection is carried out to test pictures later
Shape pattern is also more smooth.
Referring to Figure 6 together -8, the detection side of camera module optical axis of the invention is proposed based on above-mentioned 1-2 embodiment
3rd embodiment of method, the step S30 include:
Step S31 carries out dilation erosion processing to the peaks and troughs intersection;
Step S32, scanning dilation erosion treated test image is to obtain the location informations of multiple interior angle points.
As shown in fig. 7, before not carrying out dilation erosion processing to the peaks and troughs intersection, the wave crest and wave
In paddy intersection namely the interior angle point region, some sub-pix points (in Fig. 5 in interior angle point corresponding black sub-pix
Point) position of interior angle point can not be led to as the solution of the location information of the interior angle point due to the error of edge detection algorithm
The solution quantity of information is reduced, and is unfavorable for clicking through the more accurate interior angle of line search searching subsequently through to multiple sub-pixes
The location information of point.
It in the present embodiment, will be described as shown in figure 8, carrying out dilation erosion processing to the peaks and troughs intersection
Sub-pix point in interior angle point region is filled with the sub-pix point of white, the sub- picture of the white in the interior angle point region
Vegetarian refreshments can be used as the solution of the location information of the interior angle point, to increase the number of the solution of the location information of the interior angle point
Amount is also conducive to click through the location information that the more accurate interior angle point is found in line search subsequently through to multiple sub-pixes.
Also referring to Fig. 8-9, the detection method of camera module optical axis of the invention is proposed based on above-mentioned 3rd embodiment
The 4th embodiment, the step S32 includes:
Step S321 obtains target sub-pix according to the position coordinates of multiple sub-pix points of the interior angle point region
The position coordinates of point;
Step S322, using the position coordinates of target sub-pix point as the location information of the interior angle point.
In the present embodiment, each sub-pix point of the interior angle point region (substantially rectangular region in Fig. 8)
(white point in rectangular area) deposits coordinate (such as Y-axis side of coordinate (such as X-direction coordinate) and second direction in a first direction
To coordinate), the first direction is vertical with second direction, by multiple sub-pixes o'clock of the single interior angle point region the
Divided by corresponding sub-pix point quantity after coordinate summation on one direction, target sub-pix point can be obtained in a first direction
Position coordinates, similarly, by multiple sub-pix points of the interior angle point region in a second direction coordinate summation after divided by
Corresponding sub-pix point quantity, can be obtained the position coordinates in a second direction of target sub-pix point, to obtain target
The coordinate of sub-pix point.
It is understood that when the interior angle point region is regular figure such as rectangle or is round, the target
The position coordinates of sub-pix point are the diagonal line intersecting point coordinate or circle of for example described rectangle of center position coordinates of regular figure
The central coordinate of circle of shape;It but is generally not rule schema by the interior angle point region that edge detection, dilation erosion are handled
Shape, at this point, the target sub-pix point calculated by the above method is possible on the center of interior angle point region figure,
It is also possible to deviate the center of interior angle point region figure.
In the present embodiment, the position coordinates of the target sub-pix point are by the multiple of the interior angle point region
What the position coordinates of sub-pix point calculated, using the position coordinates of the target sub-pix point as the position of the interior angle point
Information, so that the location information of the interior angle point is more accurate, but also the optical axis position being calculated according to multiple interior angle points
Information is more accurate.
Referring to Fig. 10, proposing the 5th of the detection method of camera module optical axis of the invention based on above-mentioned 9th embodiment
Embodiment, the step S321 include:
Step S3211 calculates the center of being according to the position coordinates of multiple sub-pix points of the interior angle point region
The position coordinates of first sub-pix point of position;
Step S3212 marks target sub-pix point region centered on the first sub-pix point;
Step S3213 obtains the position coordinates of the second sub-pix point of the center in target sub-pix point region;
Step S3214, using the position coordinates of the second sub-pix point as the position coordinates of target sub-pix point.
It is generally not as described above, rule schema by the interior angle point region that edge detection, dilation erosion are handled
Shape, the target sub-pix point calculated by the above method are possible on the center of interior angle point region figure, also have
The center of angle point region figure, the coordinate position for leading to obtain the target sub-pix point are not accurate enough in may deviateing.
In the present embodiment, it is calculated according to the position coordinates of multiple sub-pix points of the interior angle point region in being in
The position coordinates of first sub-pix point of heart position, then target sub-pix point region is marked centered on the first sub-pix point, it should
Target sub-pix point region is regular figure region, such as marks a piece of rectangular area or circle centered on the first sub-pix point
Region, the regular figure region by be divided into some new sub-pix points (because angulus anteromedialis point region figure be not rule
Figure delimits regular figure region again now, and necessarily some new sub-pix points are divided into regular figure region), at this point,
The sub-pix point in regular figure region is re-started into calculating further according to above-mentioned algorithm, obtains and is in target sub-pix point region
Center the second sub-pix point position coordinates, generally, due to joined new sub-pix point, the second sub-pix point
Generally it is not at the center (that is, the second sub-pix point is not overlapped with the first sub-pix point) in the regular figure region, but by
In joined new sub-pix point as calculation basis, therefore, using the position coordinates of the second sub-pix point as target Asia
The position coordinates of pixel, so that the position coordinates (location information of the interior angle point) of target sub-pix point are more accurate,
So that more accurate according to the optical axis position information that multiple interior angle points are calculated.
It is understood that can continue to delimit regular domain again centered on the second sub-pix point, it is added new
Sub-pix point as calculation basis, that is, the S3212 and step S3213 that can constantly repeat the above steps, by center
Sub-pix point carries out the iteration of unlimited number, and the N sub-pix point that n-th is calculated is as the position of target sub-pix point
Coordinate.
In other embodiments, which can be regular figure region, can also be irregular component
Shape, the new sub-pix point to be added by image interpolation algorithm determination, and the sub-pix point of progress 1 time or more center
Iteration, obtain target sub-pix point position coordinates.
Figure 11 is please referred to, the detection method of camera module optical axis of the invention is proposed based on above-mentioned 1-10 embodiment
6th embodiment, after the step S30, further includes:
Step S60 carries out sliding window operation by basic point of any interior angle point;
Step S70 judges whether multiple interior angle points in sliding window region are conllinear;
Step S80, if so, using conllinear multiple interior angle points as effective interior angle point;
Step S90 obtains the optical axis position of the camera module according to the location information of multiple effectively interior angle points
Information.
In the present embodiment, multiple interior angle points are divided into sliding window region according to accuracy requirement by the sliding window operation,
Such as under conditions of accuracy is high, 1 interior angle points of same a line or same row are divided into sliding window region, and is sentenced
Whether the multiple interior angle points to break in the sliding window region are conllinear, when such as multiple interior angle point same columns, it can be determined that multiple interior angle points the
Whether the coordinate on one direction (X-direction) is identical;When multiple interior angle points are gone together, it can be determined that multiple interior angle point second direction (Y
Axis direction) on coordinate it is whether identical, it is identical then conllinear, using conllinear multiple interior angle points as effective interior angle point, and root
The optical axis position information that the camera module is obtained according to the location information of multiple effectively interior angle points, to further increase
The accuracy of the optical axis position information.
In other embodiments, not conllinear if any interior angle point and angle point in other in sliding window region, then judgement should
The location error of interior angle point whether within a preset range, if so, the interior angle point to be continued to the calculating as optical axis position information
Foundation, if the location error of the interior angle point not within a preset range, is cast out and is not had to, so that it is determined that appropriate number of interior angle point,
The quantity for increasing angle point in effectively, improves the accuracy of the optical axis position information.The preset range is according to a large amount of history
Data are calculated, and interior angle point of the location error in the preset range is conducive to improve the accurate of the optical axis position information
Degree.
Figure 12 is please referred to, the detection method of camera module optical axis of the invention is proposed based on above-mentioned 1-6 embodiment
7th embodiment, the step S40 include:
Step S41 determines the optical axis position according to the coordinate on the first direction of the location information of multiple interior angle points
Coordinate on the first direction of confidence breath;
Step S42 determines the optical axis according to the coordinate in the second direction in the location information of multiple interior angle points
Coordinate in the second direction of location information;Wherein, the first direction is vertical with second direction.
In the present embodiment, roughly the same with the calculation method principle of the target sub-pix point, by all interior angles
The location information of point can be obtained in a first direction after the coordinate summation in (such as X-direction) divided by corresponding interior angle point quantity
Position coordinates in a first direction in optical axis position information, similarly, by the location information of all interior angle points second
On direction (such as Y direction) coordinate summation after divided by corresponding interior angle point quantity, can be obtained in optical axis position information
Position coordinates in second direction, to determine the position of camera module by the position coordinates on first direction and second direction
It sets.It is specific as follows:
X_Center=Sum_X/X_Numbers
Y_Center=Sum_Y/Y_Numbers
Wherein, X_Center indicates that the coordinate of the optical axis position of camera module in a first direction, Sum_X indicate all interior
The sum of coordinate on the first direction of angle point, X_Numbers indicate the interior angle point quantity for participating in calculating, and Y_Center indicates camera shooting
Head mould group optical axis position second direction coordinate, SumY indicate the position coordinates in the second direction of all interior angle points it
The interior angle point quantity for participating in calculating is indicated with, Y_Numbers, and generally, X_Numbers is equal to Y_Numbers.
Referring to Fig. 8, proposing the of the detection method of camera module optical axis of the invention based on above-mentioned 1-7 embodiment
8 embodiments, after the step S40, further includes:
Step S100, according to the offset between the optical axis position acquisition of information difference camera module of different camera modules
Amount.
In the present embodiment, different camera modules such as the first camera module and second camera mould group are being got
After optical axis position information, can accurately it be obtained between different camera modules according to the optical axis position information of different camera modules
Offset, specific calculation are as follows:
Shift_X=Left_X_Center-Right_X_Center;
Shift_Y=Left_Y_Center_Right_Y_Center;
Wherein, Shift_X indicate the first camera module optical axis and second camera mould group optical axis in a first direction
Offset, Left_X_Center indicate the first camera module optical axis be in a first direction position coordinates, Right_
X_Center indicates the position coordinates of the optical axis of second camera mould group in a first direction;Shift_Y indicates the first camera
The offset of the optical axis of mould group and the optical axis of second camera mould group in second direction, the first camera shooting of Left_Y_Center expression
The position coordinates of the optical axis of head mould group in a second direction, _ Right_Y_Center indicate that the optical axis of second camera mould group exists
It is position coordinates in second direction.
To achieve the above object, the embodiment of the present invention provides a kind of detection device of camera module optical axis, the detection
Device is used to execute the detection method such as above-mentioned camera module optical axis.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all at this
Under the design of invention, using equivalent structure transformation made by description of the invention and accompanying drawing content, or directly/it is used in it indirectly
He is included in scope of patent protection of the invention relevant technical field.
Claims (10)
1. a kind of detection method of camera module optical axis, which is characterized in that the detection method includes:
Test image is obtained, the test image is shot to obtain by camera module;
Edge detection is carried out to the test image to obtain the boundary profile of test image, the boundary profile includes equidistant
The a plurality of waveform patterns laid, and in two adjacent waveform patterns, wherein the wave crest of a waveform patterns and another waveform
The trough of pattern intersects;
It scans the boundary profile and obtains the location information of multiple interior angle points in peaks and troughs intersection;
The optical axis position information of the camera module is obtained according to the location information of multiple interior angle points.
2. the detection method of camera module optical axis according to claim 1, which is characterized in that described to the test chart
Before the step of carrying out boundary profile of the edge detection to obtain test image, comprising:
Gaussian Blur processing is carried out to the test image.
3. the detection method of camera module optical axis according to claim 1, which is characterized in that the scanning boundary
Profile simultaneously the step of peaks and troughs intersection obtains the location information of multiple interior angle points includes:
Dilation erosion processing is carried out to the peaks and troughs intersection;
Scanning dilation erosion treated test image is to obtain the location informations of multiple interior angle points.
4. the detection method of camera module optical axis according to claim 3, which is characterized in that the scanning dilation erosion
The step of location information of the test image that treated to obtain multiple interior angle points includes:
The position coordinates of target sub-pix point are obtained according to the position coordinates of multiple sub-pix points of the interior angle point region;
Using the position coordinates of target sub-pix point as the location information of the interior angle point.
5. the detection method of camera module optical axis according to claim 4, which is characterized in that described according to the interior angle
Point region multiple sub-pix points position coordinates obtain target sub-pix point position coordinates the step of include:
The first sub- picture in center is calculated according to the position coordinates of multiple sub-pix points of the interior angle point region
The position coordinates of vegetarian refreshments;
Target sub-pix point region is marked centered on the first sub-pix point;
Obtain the position coordinates of the second sub-pix point of the center in target sub-pix point region;
Using the position coordinates of the second sub-pix point as the position coordinates of target sub-pix point.
6. the detection method of camera module optical axis according to claim 1, which is characterized in that the scanning boundary
Profile and after the step of peaks and troughs intersection obtains the location information of multiple interior angle points, further includes:
Sliding window operation is carried out by basic point of any interior angle point;
Judge whether multiple interior angle points in sliding window region are conllinear;
If so, using conllinear multiple interior angle points as effective interior angle point;
The optical axis position information of the camera module is obtained according to the location information of multiple effectively interior angle points.
7. the detection method of camera module optical axis according to claim 1, which is characterized in that described according to multiple described
The location information of interior angle point obtains the step of optical axis position information of the camera module and includes:
The first of the optical axis position information is determined according to the coordinate on the first direction of the location information of multiple interior angle points
Coordinate on direction;
The of the optical axis position information is determined according to the coordinate in the second direction in the location information of multiple interior angle points
Coordinate on two directions;Wherein, the first direction is vertical with second direction.
8. the detection method of camera module optical axis according to claim 1, which is characterized in that state according to multiple described interior
The location information of angle point obtained after the step of optical axis position information of the camera module, further includes:
According to the offset between the optical axis position acquisition of information difference camera module of different camera modules.
9. the detection method of camera module optical axis according to claim 1-8, which is characterized in that the waveform
Pattern includes at least one of sinusoidal wave, sawtooth wave pattern.
10. a kind of detection device of camera module optical axis, which is characterized in that the detection device is for executing such as claim
The detection method of the described in any item camera module optical axises of 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910283761.5A CN109982073B (en) | 2019-04-09 | 2019-04-09 | Method and device for detecting optical axis of camera module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910283761.5A CN109982073B (en) | 2019-04-09 | 2019-04-09 | Method and device for detecting optical axis of camera module |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109982073A true CN109982073A (en) | 2019-07-05 |
CN109982073B CN109982073B (en) | 2020-11-13 |
Family
ID=67083798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910283761.5A Active CN109982073B (en) | 2019-04-09 | 2019-04-09 | Method and device for detecting optical axis of camera module |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109982073B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113358309A (en) * | 2021-06-03 | 2021-09-07 | 昆山丘钛微电子科技股份有限公司 | Anti-shake test method and device, electronic equipment and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101207833A (en) * | 2006-12-19 | 2008-06-25 | Tcl数码科技(深圳)有限责任公司 | Method for checking optical centre bias of lens of digital camera |
CN102082905A (en) * | 2010-12-31 | 2011-06-01 | 天津市亚安科技电子有限公司 | Method for detecting position of camera optic axis |
CN107492126A (en) * | 2017-08-03 | 2017-12-19 | 厦门云感科技有限公司 | Calibration method, device, system, medium and the equipment of camera central shaft |
CN207730423U (en) * | 2017-11-22 | 2018-08-14 | 信利光电股份有限公司 | It is a kind of to take the photograph module system for testing optical axis with visible light and the double of infrared light |
CN108632604A (en) * | 2018-05-25 | 2018-10-09 | 歌尔科技有限公司 | The detection method and device of camera lens optical center |
CN108833912A (en) * | 2018-08-22 | 2018-11-16 | 高新兴科技集团股份有限公司 | A kind of measurement method and system of video camera machine core optical axis center and field angle |
-
2019
- 2019-04-09 CN CN201910283761.5A patent/CN109982073B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101207833A (en) * | 2006-12-19 | 2008-06-25 | Tcl数码科技(深圳)有限责任公司 | Method for checking optical centre bias of lens of digital camera |
CN102082905A (en) * | 2010-12-31 | 2011-06-01 | 天津市亚安科技电子有限公司 | Method for detecting position of camera optic axis |
CN107492126A (en) * | 2017-08-03 | 2017-12-19 | 厦门云感科技有限公司 | Calibration method, device, system, medium and the equipment of camera central shaft |
CN207730423U (en) * | 2017-11-22 | 2018-08-14 | 信利光电股份有限公司 | It is a kind of to take the photograph module system for testing optical axis with visible light and the double of infrared light |
CN108632604A (en) * | 2018-05-25 | 2018-10-09 | 歌尔科技有限公司 | The detection method and device of camera lens optical center |
CN108833912A (en) * | 2018-08-22 | 2018-11-16 | 高新兴科技集团股份有限公司 | A kind of measurement method and system of video camera machine core optical axis center and field angle |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113358309A (en) * | 2021-06-03 | 2021-09-07 | 昆山丘钛微电子科技股份有限公司 | Anti-shake test method and device, electronic equipment and medium |
CN113358309B (en) * | 2021-06-03 | 2023-10-20 | 昆山丘钛微电子科技股份有限公司 | Anti-shake test method and device, electronic equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN109982073B (en) | 2020-11-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6237326B2 (en) | Posture estimation apparatus, posture estimation method, and computer program for posture estimation | |
US6917702B2 (en) | Calibration of multiple cameras for a turntable-based 3D scanner | |
US20130106833A1 (en) | Method and apparatus for optical tracking of 3d pose using complex markers | |
TWI413937B (en) | Image recognition methods and devices | |
CN108205395A (en) | A kind of calibration point centre coordinate precise positioning method | |
JP5339065B2 (en) | Object tracking device | |
CN103824275B (en) | Saddle dots structure and the system and method for determining its information are searched in the picture | |
TWI628415B (en) | Positioning and measuring system based on image scale | |
JP2013239074A (en) | Information processing device, information processing method, and program | |
JP4048779B2 (en) | Distance image processing device | |
CN108257186A (en) | Method and device for determining calibration image, camera and storage medium | |
CN112071246B (en) | Method and device for positioning sub-pixels of display panel and compensation method of display panel | |
CN109343037A (en) | Optical detector installation error detection device, method and terminal device | |
CN108022265A (en) | Infrared camera pose determines method, equipment and system | |
CN106919883A (en) | A kind of fast reaction QR yards of localization method and device | |
CN112556994A (en) | Optical information detection method, device and equipment | |
CN109982073A (en) | The detection method and device of camera module optical axis | |
CN111179347B (en) | Positioning method, positioning equipment and storage medium based on regional characteristics | |
JP6579727B1 (en) | Moving object detection device, moving object detection method, and moving object detection program | |
CN113538590B (en) | Calibration method and device of zoom camera, terminal equipment and storage medium | |
CN111798511B (en) | Chessboard and chessman positioning method and device | |
JP5339070B2 (en) | Displacement measuring apparatus and measuring method | |
CN103376897A (en) | Method and device for ascertaining a gesture performed in the light cone of a projected image | |
CN108280425A (en) | A kind of quick survey light implementation method based on screen following formula optical fingerprint sensor | |
CN115826766B (en) | Eye movement target acquisition device, method and system based on display simulator |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20201012 Address after: 261031, north of Jade East Street, Dongming Road, Weifang hi tech Zone, Shandong province (GoerTek electronic office building, Room 502) Applicant after: GoerTek Optical Technology Co.,Ltd. Address before: 261031 Dongfang Road, Weifang high tech Industrial Development Zone, Shandong, China, No. 268 Applicant before: GOERTEK Inc. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |