CN109163888A - Optical centre test method, device and equipment - Google Patents

Optical centre test method, device and equipment Download PDF

Info

Publication number
CN109163888A
CN109163888A CN201810997883.6A CN201810997883A CN109163888A CN 109163888 A CN109163888 A CN 109163888A CN 201810997883 A CN201810997883 A CN 201810997883A CN 109163888 A CN109163888 A CN 109163888A
Authority
CN
China
Prior art keywords
image
pixel value
value
coordinate
presetted pixel
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.)
Pending
Application number
CN201810997883.6A
Other languages
Chinese (zh)
Inventor
宋林东
王倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Optical Technology Co Ltd
Original Assignee
Goertek Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Goertek Inc filed Critical Goertek Inc
Priority to CN201810997883.6A priority Critical patent/CN109163888A/en
Publication of CN109163888A publication Critical patent/CN109163888A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
    • G01M11/02Testing optical properties
    • G01M11/0221Testing optical properties by determining the optical axis or position of lenses

Abstract

The embodiment of the present invention provides a kind of optical centre test method, device and equipment, this method comprises: determining the luminance threshold of the first image obtained by image capture device;Binary conversion treatment is carried out to obtain the second image to the first image based on the luminance threshold;Determine the column coordinate for having the quantity of presetted pixel value most in the multiple row of second image, determine the row coordinate for having the quantity of the presetted pixel value most in the multirow of second image, the presetted pixel value is a kind of pixel value after the binary conversion treatment;The optical centre of described image acquisition equipment is determined based on the column coordinate and the row coordinate.By test equipment to the simple binary conversion treatment of the first image, and the calculating of the quantity of presetted pixel value, so as to fast and accurately determine the coordinate of optical centre, may further quickly judge whether image capture device is qualified, can effectively promote test job efficiency.

Description

Optical centre test method, device and equipment
Technical field
The present invention relates to field of computer technology more particularly to a kind of optical centre test methods, device and equipment.
Background technique
Image capture device in process of production, needs to carry out every Quality Detection, to ensure to produce the product of shipment For non-defective unit.Wherein, optical centre test is exactly one of them test index.
In the prior art, by taking camera production test technique as an example, when carrying out camera assembling, by jig and Standard operation gimmick carries out assembly working, then tests optical centre.Specific test method has, and is calculated based on images match Method is calculated, and will be matched by camera acquired image with practical original image.This matching algorithm is more complicated, Calculation amount is bigger, causes testing efficiency relatively low.It is tested there are also some test methods by calibration jig, passes through camera shooting Head real-time image acquisition, judges whether the center for obtaining image is overlapped with the center of specified acquisition image;This operation needs people Work participates in, and often testing efficiency is relatively low.
Based on this, a kind of scheme that accurate, the efficient optical centre to image capture device is tested is needed.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of optical centre test method, device and equipment, to improve to figure As the efficiency and accuracy of acquisition equipment optical centre test.
In a first aspect, the embodiment of the present invention provides a kind of optical centre test method, comprising:
Determine the luminance threshold of the first image obtained by image capture device;
Binary conversion treatment is carried out to obtain the second image to the first image based on the luminance threshold;
It determines the column coordinate for having the quantity of presetted pixel value most in the multiple row of second image, determines described second The row coordinate for having the quantity of the presetted pixel value most in the multirow of image, the presetted pixel value are at the binaryzation A kind of pixel value after reason;
The optical centre of described image acquisition equipment is determined based on the column coordinate and the row coordinate.
Second aspect, the embodiment of the present invention provide a kind of optical centre test device, comprising:
Threshold determination module, for determining the luminance threshold of the first image obtained by image capture device;
Processing module, for carrying out binary conversion treatment to the first image based on the luminance threshold to obtain the second figure Picture;
Coordinate determining module, the most column of quantity in the multiple row for determining second image with presetted pixel value Coordinate determines the row coordinate for having the quantity of the presetted pixel value most in the multirow of second image, the default picture Element value is a kind of pixel value after the binary conversion treatment;
Center determining module, for determining the optics of described image acquisition equipment based on the column coordinate and the row coordinate Center.
The third aspect, the embodiment of the present invention provide a kind of optical centre test macro, comprising:
Image capture device, and the uniform visible light tabula rasa in front of described image acquisition equipment is set;Wherein, described The distance between uniform visible light tabula rasa and described image acquisition equipment are less than the focal length of described image acquisition equipment;
Described image acquires equipment, for obtaining the first image based on the uniform visible light tabula rasa;
The uniform visible light tabula rasa provides uniform visible light for acquiring equipment for described image;
Test equipment, for using optical centre test method described in first aspect.
Fourth aspect, the embodiment of the present invention provide a kind of electronic equipment, including processor and memory, and the memory is used In storing one or more computer instruction, wherein real when one or more computer instruction is executed by the processor Optical centre test method in existing above-mentioned first aspect.The electronic equipment can also include communication interface, for setting with other Standby or communication.
The embodiment of the invention provides a kind of computer storage mediums, for storing computer program, the computer journey The optical centre test method in above-mentioned first aspect is realized when sequence executes computer.
Optical centre test method provided in an embodiment of the present invention, image capture device is by cooperating uniform visible light light Plate gets the first image, determines the average brightness of first image as luminance threshold, wherein the central point of image is It is known.Further, binary conversion treatment is carried out to the first image based on luminance threshold, obtains the second image.According to the second figure The quantity of the pixel of presetted pixel value, determines the optical centre of the image capture device as in.By test equipment to image Simple binary conversion treatment and presetted pixel value pixel quantity calculating, so as to fast and accurately determine optics The coordinate at center can effectively promote test job efficiency.
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 this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow chart of optical centre test method provided in an embodiment of the present invention;
Fig. 2 a is the schematic diagram that the first image is presented in image capture device provided in an embodiment of the present invention;
Fig. 2 b is the schematic diagram provided in an embodiment of the present invention based on the second image after the first image procossing;
Fig. 3 is the schematic diagram provided in an embodiment of the present invention for obtaining the first brightness of image average value;
Fig. 4 is the schematic diagram of optical centre test device provided in an embodiment of the present invention;
Fig. 5 is the flow chart of optical centre test macro provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the corresponding electronic equipment of test optics center fixture provided with embodiment illustrated in fig. 4.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodiments The present invention.In the embodiment of the present invention and the "an" of singular used in the attached claims, " described " and "the" It is also intended to including most forms, unless the context clearly indicates other meaning, " a variety of " generally comprise at least two, but not It excludes to include at least one situation.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, indicate There may be three kinds of relationships, for example, A and/or B, can indicate: individualism A, exist simultaneously A and B, individualism B these three Situation.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Depending on context, word as used in this " if ", " if " can be construed to " ... when " or " when ... " or " in response to determination " or " in response to detection ".Similarly, context is depended on, phrase " if it is determined that " or " such as Fruit detection (condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when detection (statement Condition or event) when " or " in response to detection (condition or event of statement) ".
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability Include, so that commodity or system including a series of elements not only include those elements, but also including not clear The other element listed, or further include for this commodity or the intrinsic element of system.In the feelings not limited more Under condition, the element that is limited by sentence "including a ...", it is not excluded that in the commodity or system for including the element also There are other identical elements.
In addition, the step timing in following each method embodiments is only a kind of citing, rather than considered critical.
Before introduce optical centre test method provided in an embodiment of the present invention, first to being related in subsequent embodiment The basic principle that some concepts and coordinate determine is illustrated.
Optical centre test, is in the production technology of image capture device, for the imaging to image capture device It can be carried out test.Image capture device mentioned here can be camera, camera, video recorder, the hand with recording function Machine etc..The optical centre test method, can apply the workshop in image capture devices such as cameras, can also apply In the laboratory for carrying out optical centre test.If applying in workshop, specific test method can be according to product test demand It is adjusted.
Presetted pixel value mentioned here is to be defined according to testing requirement, for example can be the pixel that pixel value is 255 Point;It is of course also possible to which as needed, defining other pixel values is presetted pixel value.
It should be noted that the coordinate can be to be established according to the first image when determining coordinate based on the technical program Coordinate system (for example, plane right-angle coordinate).Here the first image and the second image rectangular coordinate system having the same, two It is completely the same for opening the size of image;Therefore, the picture centre of the first image and the picture centre of the second image are also identical 's.
Fig. 1 is the flow chart of optical centre test method provided in an embodiment of the present invention, the optical centre in the present embodiment Test method can be executed by optical centre test device, the optical centre test device mainly can for camera or Image capture device with camera.As shown in Figure 1, this method comprises the following steps:
Step S102: the luminance threshold of the first image obtained by image capture device is determined.
In practical applications, it if if desired testing the optical centre of present image acquisition equipment, needs to pass through The image capture device obtains the first image.In order to realize accurate test, need to determine the image of the first image first Center, in test, by uniform visible light tabula rasa and image capture device to it, specifically it will be seen that the center of light tabula rasa It is aligned with the center of image capture device camera lens.In order to which more efficient test, light tabula rasa and Image Acquisition can will be seen that Equipment is mounted in dedicated test fixture.
First image mentioned here is that image capture device acquires uniform visible light tabula rasa image generated.It needs Illustrate, the picture centre brightness of first image is greater than the brightness on image periphery.In first image, different brightness institutes are right The actual pixel value for the pixel answered is different.Luminance threshold mentioned here can be understood as handling picture Reference pixel value.
Step S104: binary conversion treatment is carried out to the first image to obtain the second image based on the luminance threshold.
Second image mentioned here is that the first image is obtained by binary conversion treatment, as shown in Figure 2 a and 2 b, but There is no variations for the size and display scale for being image;In other words, the image of the picture centre of the first image and the second image Center is completely the same.
In the second obtained image, ideally, figure composed by the corresponding pixel of presetted pixel value is base Circle is formed by picture centre.Certainly, due to the packaging technology of camera, it will lead to presetted pixel value institute in the second image Deformation occurs for the figure of composition, becomes ellipse or other irregular figures;In general, picture centre is by the irregular component Shape or ellipse are covered.
Presetted pixel value mentioned here be it is artificially defined, to distinguish the different pixels of each pixel in the second image Value.
Step S106: the column coordinate for having the quantity of presetted pixel value most in the multiple row of second image is determined, really The most row coordinate of quantity with the presetted pixel value in the multirow of fixed second image, the presetted pixel value is institute A kind of pixel value after stating binary conversion treatment.
By described previously and Figure of description 2a, 2b, it is known that, the presetted pixel value in the second image is formed by figure Less than the size of the second image, and figure composed by presetted pixel value has obvious boundary line.It needs to illustrate It is, if there are the pixels of non-default pixel value in the figure that presetted pixel value is constituted, and the pixel and default The graph edge boundary line that pixel value is constituted is not connected, then it is default for the pixel of non-default pixel value being defaulted as its pixel value Pixel value can be clicked through when counting the quantity of pixel of presetted pixel value as the pixel for meeting presetted pixel value Row statistics.
According to actual test application it is found that optic center point is closer with picture centre, the assemblability of image capture device It can be better;It therefore, can be by the conduct of the distance between optical centre and picture centre in the production process of image capture device The evaluation criterion of test image acquisition device product quality quality.
In practical applications, there are many kinds of the methods for testing optical centre, for example, can by test optical axis so that it is determined that Optical centre can also determine optical centre by detecting optical axis.But the prior art generally requires to measure optical centre Many equipment, by complicated calculating.Therefore, the application proposes a kind of mode of fairly simple confirmation optical centre position, It is, using the crosspoint of the transverse and longitudinal coordinate of the pixel with most presetted pixel values as optical centre.
It should be noted that abscissa or vertical seat that the quantity of presetted pixel value corresponding pixel points mentioned here is most Mark, it is possible that the abscissa or ordinate of multiple having the same and most presetted pixel value quantity.If there is odd number phase Same abscissa or ordinate then selects one intermediate;If having the identical abscissa of even number or ordinate, from intermediate two Middle selection one.
In one or more embodiment of this specification, the first image that the determination is obtained by image capture device Luminance threshold, can specifically include: determining the average brightness of the first image obtained by image capture device;It will The average brightness is used as handling the luminance threshold.
It should be noted that the luminance threshold obtained here is required for being handled for the later period image.It is different The luminance threshold obtained required for image procossing mode is different, and the mode for obtaining luminance threshold is also different.For example, in the present embodiment The binaryzation that the mode of image procossing is used;It is of course also possible to first carry out gray processing processing, then carry out binaryzation;Alternatively, Gray processing processing is directly carried out in the case where test condition relatively good (after gray processing, target image has clearly boundary line); Wherein, binaryzation determine the mode of luminance threshold again can there are many, can also root for example, can rule of thumb be manually set It is measured according to actually measured display effect.In the embodiment of the present application, using the average brightness of image as luminance threshold and base In secondary carry out image procossing.
In one or more embodiment of this specification, the first image obtained by image capture device is determined Average brightness mode, can specifically include: obtain each side of the first image brightness value YA and the first image The brightness value YB at center;Based on the brightness value YA and the brightness value YB, the average brightness is calculated using following formula: Y=(YB-YA) * C+YA;Wherein, C is adjustment factor, and Y is the average brightness.
As shown in figure 3, in order to obtain the average brightness of the first image formed based on uniform visible light tabula rasa, it can To measure the brightness value of four frames and center of the first image respectively.Specifically, the correspondence position in the first image Setting the size of the center BlockB, four bezel locations BlockA1~A4, Block that take out equal sizes such as can be with Image it is wide high by 1/6, find out the average brightness value (YB) (being averaged after can be repeatedly measurement) of B, can also only take one The brightness value of secondary measurement.Further, average brightness (YA) is calculated according to the average brightness value of four Thursday BlockA. There are many kinds of the methods of averaged YA and YB, and explanation is not just developed in details here.It is passed through finally, being worked according to actual production It tests, the average brightness of practical first image is calculated based on YA and YB, specific formula is as follows:
Y=(YB-YA) * C+YA;Wherein, C is adjustment factor, and Y is average brightness.
The average brightness Y obtained based on above-mentioned formula is greater than YB and is less than YA, can be obvious so as to obtain Distinguish the second image of the first picture centre and periphery luminance difference.Therefore, it is necessary to coefficient C is defined as greater than zero and small In 1 range, for example, coefficient C can be 0.4.
It is readily appreciated that, the pixel value range of pixel is 0~255 in image, in this example, it is assumed that by presetted pixel Value is defined as 255, corresponding, and the pixel value of other pixels is defined as 0.In order to be easy to distinguish the pixel for having presetted pixel value The pixel of point and other pixel values, here by the way of binaryzation, that is, the point that will be greater than luminance threshold is defined as 255, will Pixel less than luminance threshold is defined as 0;So as to which the first image after making binary conversion treatment is (that is, subsequent implementation The second image in example) there can be apparent line of demarcation, to facilitate the position of the determination optical centre of fast accurate.
In one or more embodiment of this specification, there are most institutes in the multirow of determination second image The row coordinate for stating presetted pixel value may include:
For any row in second image, in the presetted pixel value that any row is included, determine Presetted pixel value with maximum abscissa value and minimum abscissa value;
Include in any row described default is determined according to the maximum abscissa value and the minimum abscissa value The quantity of pixel value;
According to the quantity of the corresponding presetted pixel value of the multirow of second image, second image is determined Multirow in there is the row coordinates of most presetted pixel values.
As shown in Figure 2 b, the pixel in the second image with presetted pixel value constitutes intermediate elliptical graphic.In reality In the application of border, coordinate statistics can be carried out line by line, specifically, counts the maximum of presetted pixel value position in each row line by line Abscissa value and minimum abscissa value.It is readily appreciated that, the corresponding one group of transverse and longitudinal coordinate point of each pixel, therefore, maximum abscissa Difference between minimum abscissa is exactly the quantity of the pixel of presetted pixel value in the row.
After getting the quantity of pixel for the presetted pixel value that each row has, the presetted pixel value that has to each row Quantity be compared, to determine the most row coordinate of quantity with presetted pixel value.
In one or more embodiment of this specification, there are most institutes in the multiple row of determination second image The column coordinate for stating presetted pixel value may include:
For the either rank in second image, in the presetted pixel value that the either rank is included, determine Presetted pixel value with maximum abscissa value and minimum abscissa value;
Include in the either rank described default is determined according to the maximum abscissa value and the minimum abscissa value The quantity of pixel value;
According to the quantity of the corresponding presetted pixel value of the multiple row of second image, second image is determined Multiple row in there is the column coordinates of most presetted pixel values.
As shown in Figure 2 b, in practical applications, coordinate statistics can be carried out by column, specifically, counted in each column by column The maximum ordinate value of presetted pixel value position and minimum ordinate value.It is readily appreciated that, corresponding one group of each pixel horizontal Ordinate point, therefore, the difference between maximum ordinate and minimum ordinate are exactly the pixel of presetted pixel value in the row Quantity.
After getting the quantity of pixel of each presetted pixel value for arranging and having, to each presetted pixel value for arranging and having Quantity be compared, to determine the most column coordinate of quantity with presetted pixel value.
The technical solution of above-mentioned acquisition ranks coordinate in order to facilitate understanding, below concrete example explanation, it is assumed that Ya row Corresponding abscissa minimum value is Xa1, and abscissa maximum value is Xa2, and corresponding abscissa difference is δYa=| Xa1-Xa2|;Yb The corresponding abscissa minimum value of row is Xb1, and abscissa maximum value is Xb2, and the difference of corresponding abscissa is δYb=| Xb1-Xb2|; In getting every row after the abscissa difference of the pixel of presetted pixel value, all differences are ranked up, for example, can To use bubble sort method;It may thereby determine that the maximum row of difference and corresponding row coordinate (that is, ordinate) value.Similarly, In order to obtain the maximum column of difference and corresponding column coordinate (that is, abscissa) value.
It should be noted that if certain row or certain column in, if do not contain presetted pixel value pixel, difference It is zero.In order to improve sequence efficiency, the row or column that difference is zero can be not involved in bubble sort.
In practical applications, out by way of the above-mentioned progress presetted pixel value pixel quantity statistics based on coordinate Outside, quantity statistics can also be directly carried out, such as:
In practical applications, as shown in Figure 2 b, when handling the first image binaryzation to obtain the second image, it is known that respectively Capable or each column how many presetted pixel value respectively, can first obtain each row, the presetted pixel value respectively arranged pixel quantity; Further, the statistical magnitude in each row and each column is compared respectively, to filter out quantity maximum value, and determines that its is right Row coordinate Y1, the column coordinate X1 answered.This statistical method is more direct, high-efficient.
In one or more embodiment of this specification, optical centre is determined based on the column coordinate and the row coordinate It later, can also include: to be sat based on the picture centre coordinate (X0, Y0) and optical centre of second image or the first image It marks (X1, Y1), calculates the optical centre at a distance from described image center;According to preset test threshold and the distance, Judge whether described image acquisition equipment is qualified.
As can be seen from the foregoing, the size of the first image and the second image is completely the same, therefore, in the image The heart is also completely the same.When setting test threshold, can according to product export test specification demand or product hierarchy and Setting.
When at a distance from calculating optical center is between picture centre, that is, calculate between (X0, Y0) and (X1, Y1) away from From when, therefore, to assure that the first image and the second image are established in identical coordinate system;In other words, (X0, Y0) with (X1, Y1) belong to the same coordinate system.Specifically, the distance between optical centre and picture centre S=| X0-X1 |/| Y0-Y1 |. In general, when S is less than the test threshold of setting, the product is qualified;If S is greater than the test threshold of setting, which does not conform to Lattice.In practical applications, multiple test thresholds may be set, to carry out the differentiation of credit rating, in other words, product to product The test threshold of the high grade A product of quality requirement is minimum, other are lower than test of the test threshold with respect to grade A product of grade A product Threshold value wants larger.
In one or more embodiment of this specification, by way of the first image that image capture device obtains, Can specifically include: described image acquires equipment and is based on uniform visible light tabula rasa acquisition acquisition the first image;It is described uniform The distance between visible light tabula rasa and described image acquisition equipment are less than the focal length of described image acquisition equipment.
In practical applications, uniform visible light tabula rasa is arranged in the front of cam lens, so as to be camera lens The uniform visible light of name is provided.It should be noted that in order to guarantee that light even into camera, avoids the shadow of light supply apparatus It rings, needs it will be seen that light tabula rasa is arranged at a distance between camera to be tested less than the position of the focal length of camera to be tested Set, the visible light tabula rasa for being can not in camera blur-free imaging.
Based on same thinking, this specification embodiment also provides a kind of optical centre test device, as shown in figure 4, packet It includes:
Threshold determination module 401, for determining the luminance threshold of the first image obtained by image capture device;
Processing module 402, for carrying out binary conversion treatment to the first image based on the luminance threshold to obtain the Two images;
Coordinate determining module 403, the quantity in the multiple row for determining second image with presetted pixel value are most Column coordinate, determine the most row coordinate of quantity in the multirow of second image with the presetted pixel value, it is described pre- If pixel value is a kind of pixel value after the binary conversion treatment;
Center determining module 404, for determining described image acquisition equipment based on the column coordinate and the row coordinate Optical centre.
The threshold determination module 401, for determining the brightness of the first image obtained by image capture device Average value;Using the average brightness as the luminance threshold.
The threshold determination module 401 can be also used for the brightness value YA for obtaining each side of the first image and described the The brightness value YB of one picture centre;
Based on the brightness value YA and the brightness value YB, the average brightness is calculated using following formula:
Y=(YB-YA) * C+YA;Wherein, C is adjustment factor, and Y is the average brightness.
The coordinate determining module 403, for being included in any row for any row in second image The presetted pixel value in, determining has the presetted pixel value of maximum abscissa value and minimum abscissa value;
Include in any row described default is determined according to the maximum abscissa value and the minimum abscissa value The quantity of pixel value;
According to the quantity of the corresponding presetted pixel value of the multirow of second image, second image is determined Multirow in there is the row coordinates of most presetted pixel values.
The coordinate determining module 403 can be also used for for the either rank in second image, in the either rank In the presetted pixel value for being included, determining has the presetted pixel value of maximum ordinate value and minimum ordinate value;
Include in the either rank described default is determined according to the maximum ordinate value and the minimum ordinate value The quantity of pixel value;
According to the quantity of the corresponding presetted pixel value of the multiple row of second image, second image is determined Multiple row in there is the column coordinates of most presetted pixel values.
The center determining module can be also used for after determining optical centre based on second image or first The picture centre coordinate of image and the optical centre coordinate, calculate the optical centre at a distance from described image center;
According to preset distance test threshold value and the distance, judge whether described image acquisition equipment is qualified.
Described image acquires equipment and is based on uniform visible light tabula rasa acquisition acquisition the first image.
Based on same thinking, this specification embodiment also provides a kind of optical centre test macro, as shown in figure 5, tool Body includes:
Image capture device 51, and the uniform visible light tabula rasa 52 in front of described image acquisition equipment is set;Wherein, The distance between the uniform visible light tabula rasa 52 and described image acquisition equipment 51 are less than the coke of described image acquisition equipment 51 Away from;
Described image acquires equipment 51, for obtaining the first image based on the uniform visible light tabula rasa 52;
The uniform visible light tabula rasa 52 provides uniform visible light for acquiring equipment 51 for described image, to generate First image;
Test equipment 53, for executing said one or multiple optical centre test methods as described in the examples.
In practical applications, in general, it when actual needs carries out optic test to camera lens, generally requires by test Device or special fixture etc..Camera to be tested is configured according to specified direction.
Uniform visible light tabula rasa is arranged in the front of cam lens, uniformly may be used so as to provide name for camera lens It is light-exposed.It should be noted that needing to guarantee that light even into camera, avoids the influence of light supply apparatus it will be seen that light Tabula rasa is arranged in less than the position of the focal length of camera to be tested at a distance between camera to be tested, the visible light tabula rasa for being Can not in camera blur-free imaging.
On describe the built-in function and structure of coordinate determining device, in a possible design, coordinate determining device Structure can realize that as an electronic equipment, the electronic equipment is such as intelligent projection device, depth of field mould group etc., as shown in fig. 6, should Electronic equipment may include: processor 61 and memory 62.Wherein, the memory 62 supports electronic equipment to execute for storing The program of the optical centre method provided in above-mentioned Fig. 1-embodiment illustrated in fig. 5, the processor 61 are configurable for executing The program stored in the memory 62.
Described program includes one or more computer instruction, wherein one or more computer instruction is described Processor 61 can be realized following steps when executing:
Determine the luminance threshold of the first image obtained by image capture device;
Binary conversion treatment is carried out to obtain the second image to the first image based on the luminance threshold;
It determines the column coordinate for having the quantity of presetted pixel value most in the multiple row of second image, determines described second The row coordinate for having the quantity of the presetted pixel value most in the multirow of image, the presetted pixel value are at the binaryzation A kind of pixel value after reason;
The optical centre of described image acquisition equipment is determined based on the column coordinate and the row coordinate.
Optionally, the processor 61 is also used to execute all or part of the steps in earlier figures 1- embodiment illustrated in fig. 5.
Wherein, it can also include communication interface 63 in the structure of the electronic equipment, be set for the electronic equipment with other Standby or communication.
In addition, the embodiment of the invention provides a kind of computer storage medium, for calculating used in stored electrons equipment Machine software instruction, it includes for executing in embodiment of the method shown in above-mentioned Fig. 1-Fig. 5 involved in optical centre test method Program.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It is realized by the mode of required general hardware platform is added, naturally it is also possible to which reality is come in conjunction with by way of hardware and software It is existing.Based on this understanding, substantially the part that contributes to existing technology can be to calculate in other words for above-mentioned technical proposal The form of machine product embodies, and it wherein includes the meter of computer usable program code that the present invention, which can be used in one or more, The computer journey implemented in calculation machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of sequence product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs General purpose computer, special purpose computer, Embedded Processor or other programmable coordinates are instructed to determine the processor of equipment to produce A raw machine, so that being generated by the instruction that computer or other programmable coordinates determine that the processor of equipment executes for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable coordinates determine equipment with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions can also be loaded into computer or other programmable coordinates determine in equipment, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of optical centre test method characterized by comprising
Determine the luminance threshold of the first image obtained by image capture device;
Binary conversion treatment is carried out to obtain the second image to the first image based on the luminance threshold;
It determines the column coordinate for having the quantity of presetted pixel value most in the multiple row of second image, determines second image Multirow in the most row coordinate of quantity with the presetted pixel value, after the presetted pixel value is the binary conversion treatment A kind of pixel value;
The optical centre of described image acquisition equipment is determined based on the column coordinate and the row coordinate.
2. the method according to claim 1, wherein the first figure that the determination is obtained by image capture device The luminance threshold of picture, specifically includes:
Determine the average brightness of the first image obtained by image capture device;
Using the average brightness as the luminance threshold.
3. according to the method described in claim 2, it is characterized in that, the determination obtained by image capture device described The average brightness of one image, comprising:
Obtain the brightness value YA on each side of the first image and the brightness value YB at the first image center;
Based on the brightness value YA and the brightness value YB, the average brightness is calculated using following formula:
Y=(YB-YA) * C+YA;Wherein, C is adjustment factor, and Y is the average brightness.
4. the method according to claim 1, wherein having in the multirow of the determination second image most The row coordinate of the presetted pixel value, comprising:
For any row in second image, in the presetted pixel value that any row is included, determination has The presetted pixel value of maximum abscissa value and minimum abscissa value;
The presetted pixel for including in any row is determined according to the maximum abscissa value and the minimum abscissa value The quantity of value;
According to the quantity of the corresponding presetted pixel value of the multirow of second image, the more of second image are determined There is the row coordinate of most presetted pixel values in row.
5. the method according to claim 1, wherein having in the multiple row of the determination second image most The column coordinate of the presetted pixel value, comprising:
For the either rank in second image, in the presetted pixel value that the either rank is included, determination has The presetted pixel value of maximum ordinate value and minimum ordinate value;
The presetted pixel for including in the either rank is determined according to the maximum ordinate value and the minimum ordinate value The quantity of value;
According to the quantity of the corresponding presetted pixel value of the multiple row of second image, the more of second image are determined There is the column coordinate of most presetted pixel values in column.
6. method according to claim 4 or 5, which is characterized in that determine light based on the column coordinate and the row coordinate After center, further includes:
Picture centre coordinate and the optical centre coordinate based on second image or the first image, calculate the optics Center is at a distance from described image center;
According to preset distance test threshold value and the distance, judge whether described image acquisition equipment is qualified.
7. the method according to claim 1, wherein the side of the first image obtained by image capture device Formula, comprising:
Described image acquires equipment and is based on uniform visible light tabula rasa acquisition acquisition the first image.
8. a kind of optical centre test device characterized by comprising
Threshold determination module, for determining the luminance threshold of the first image obtained by image capture device;
Processing module, for carrying out binary conversion treatment to the first image based on the luminance threshold to obtain the second image;
Coordinate determining module, the most column of quantity in the multiple row for determining second image with presetted pixel value are sat Mark determines the row coordinate for having the quantity of the presetted pixel value most in the multirow of second image, the presetted pixel Value is a kind of pixel value after the binary conversion treatment;
Center determining module, for determining that described image acquires in the optics of equipment based on the column coordinate and the row coordinate The heart.
9. a kind of optical centre test macro characterized by comprising
Image capture device, and the uniform visible light tabula rasa in front of described image acquisition equipment is set;Wherein, described uniform The distance between visible light tabula rasa and described image acquisition equipment are less than the focal length of described image acquisition equipment;
Described image acquires equipment, for obtaining the first image based on the uniform visible light tabula rasa;
The uniform visible light tabula rasa provides uniform visible light for acquiring equipment for described image, to generate the first image;
Test equipment, for optical centre test method described in any one of perform claim requirement 1 to 7.
10. a kind of electronic equipment characterized by comprising memory, processor;Wherein,
The memory is for storing one or more computer instruction, wherein one or more computer instruction is by institute State the optical centre test method realized as described in any one of claims 1 to 7 when processor executes.
CN201810997883.6A 2018-08-29 2018-08-29 Optical centre test method, device and equipment Pending CN109163888A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810997883.6A CN109163888A (en) 2018-08-29 2018-08-29 Optical centre test method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810997883.6A CN109163888A (en) 2018-08-29 2018-08-29 Optical centre test method, device and equipment

Publications (1)

Publication Number Publication Date
CN109163888A true CN109163888A (en) 2019-01-08

Family

ID=64893263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810997883.6A Pending CN109163888A (en) 2018-08-29 2018-08-29 Optical centre test method, device and equipment

Country Status (1)

Country Link
CN (1) CN109163888A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110068575A (en) * 2019-04-29 2019-07-30 嘉兴学院 Judgment method, judgment means and the terminal of multi-phase mixing uniformity
CN110958447A (en) * 2019-12-12 2020-04-03 中国空气动力研究与发展中心 Camera optical center testing method and device, computer equipment and medium
CN112468801A (en) * 2019-09-06 2021-03-09 余姚舜宇智能光学技术有限公司 Optical center testing method of wide-angle camera module, testing system and testing target board thereof
CN112991202A (en) * 2021-03-01 2021-06-18 歌尔科技有限公司 Calibration method of optical center position, terminal device and computer readable storage medium
CN113489969A (en) * 2021-06-30 2021-10-08 青岛维感科技有限公司 Test method and device of TOF camera, control equipment and test equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6687396B1 (en) * 1998-07-29 2004-02-03 Pentax Corporation Optical member inspection apparatus, image-processing apparatus, image-processing method, and computer readable medium
CN101207833A (en) * 2006-12-19 2008-06-25 Tcl数码科技(深圳)有限责任公司 Method for checking optical centre bias of lens of digital camera
CN103852243A (en) * 2012-12-06 2014-06-11 义晶科技股份有限公司 Method for detecting optical center of wide-angle lens and optical center detecting device
JP2015004600A (en) * 2013-06-21 2015-01-08 株式会社ニコン Eccentricity measurement device, eccentricity measurement method and lens manufacturing method
CN106644410A (en) * 2016-12-21 2017-05-10 信利光电股份有限公司 Camera module optical center position measuring method and system
CN106683135A (en) * 2015-11-09 2017-05-17 宁波舜宇光电信息有限公司 Method for searching optic center of lens
CN106839976A (en) * 2016-12-22 2017-06-13 歌尔科技有限公司 A kind of method and device at detector lens center
WO2017134275A1 (en) * 2016-02-05 2017-08-10 Eidgenossische Technische Hochschule Zurich Methods and systems for determining an optical axis and/or physical properties of a lens and use of the same in virtual imaging and head-mounted displays
CN107278286A (en) * 2017-04-25 2017-10-20 深圳市汇顶科技股份有限公司 Determine the method and apparatus of the position of fingerprint prompting pattern in display screen
CN107505120A (en) * 2017-09-18 2017-12-22 歌尔股份有限公司 Camera module photocentre location measurement method and measurement apparatus
CN107635135A (en) * 2017-09-20 2018-01-26 歌尔股份有限公司 Double method of testings and test system for taking the photograph relative dip angle before module group assembling
CN107702695A (en) * 2017-09-26 2018-02-16 歌尔股份有限公司 Camera module group lens and the method for testing of imaging sensor relative position
CN107888907A (en) * 2017-11-24 2018-04-06 信利光电股份有限公司 One kind determines visual field method, system and a kind of determination visual field equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6687396B1 (en) * 1998-07-29 2004-02-03 Pentax Corporation Optical member inspection apparatus, image-processing apparatus, image-processing method, and computer readable medium
CN101207833A (en) * 2006-12-19 2008-06-25 Tcl数码科技(深圳)有限责任公司 Method for checking optical centre bias of lens of digital camera
CN103852243A (en) * 2012-12-06 2014-06-11 义晶科技股份有限公司 Method for detecting optical center of wide-angle lens and optical center detecting device
JP2015004600A (en) * 2013-06-21 2015-01-08 株式会社ニコン Eccentricity measurement device, eccentricity measurement method and lens manufacturing method
CN106683135A (en) * 2015-11-09 2017-05-17 宁波舜宇光电信息有限公司 Method for searching optic center of lens
WO2017134275A1 (en) * 2016-02-05 2017-08-10 Eidgenossische Technische Hochschule Zurich Methods and systems for determining an optical axis and/or physical properties of a lens and use of the same in virtual imaging and head-mounted displays
CN106644410A (en) * 2016-12-21 2017-05-10 信利光电股份有限公司 Camera module optical center position measuring method and system
CN106839976A (en) * 2016-12-22 2017-06-13 歌尔科技有限公司 A kind of method and device at detector lens center
CN107278286A (en) * 2017-04-25 2017-10-20 深圳市汇顶科技股份有限公司 Determine the method and apparatus of the position of fingerprint prompting pattern in display screen
CN107505120A (en) * 2017-09-18 2017-12-22 歌尔股份有限公司 Camera module photocentre location measurement method and measurement apparatus
CN107635135A (en) * 2017-09-20 2018-01-26 歌尔股份有限公司 Double method of testings and test system for taking the photograph relative dip angle before module group assembling
CN107702695A (en) * 2017-09-26 2018-02-16 歌尔股份有限公司 Camera module group lens and the method for testing of imaging sensor relative position
CN107888907A (en) * 2017-11-24 2018-04-06 信利光电股份有限公司 One kind determines visual field method, system and a kind of determination visual field equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张广生 等: "数码相机定位的优化设计", 《西南民族大学学报·自然科学版》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110068575A (en) * 2019-04-29 2019-07-30 嘉兴学院 Judgment method, judgment means and the terminal of multi-phase mixing uniformity
CN112468801A (en) * 2019-09-06 2021-03-09 余姚舜宇智能光学技术有限公司 Optical center testing method of wide-angle camera module, testing system and testing target board thereof
CN112468801B (en) * 2019-09-06 2022-06-14 余姚舜宇智能光学技术有限公司 Optical center testing method of wide-angle camera module, testing system and testing target thereof
CN110958447A (en) * 2019-12-12 2020-04-03 中国空气动力研究与发展中心 Camera optical center testing method and device, computer equipment and medium
CN110958447B (en) * 2019-12-12 2021-11-16 中国空气动力研究与发展中心 Camera optical center testing method and device, computer equipment and medium
CN112991202A (en) * 2021-03-01 2021-06-18 歌尔科技有限公司 Calibration method of optical center position, terminal device and computer readable storage medium
CN112991202B (en) * 2021-03-01 2023-04-25 歌尔科技有限公司 Optical center position calibration method, terminal device and computer readable storage medium
CN113489969A (en) * 2021-06-30 2021-10-08 青岛维感科技有限公司 Test method and device of TOF camera, control equipment and test equipment

Similar Documents

Publication Publication Date Title
CN109163888A (en) Optical centre test method, device and equipment
US9392153B2 (en) Plenoptic camera resolution
CN109489620A (en) A kind of monocular vision distance measuring method
CN106033621B (en) A kind of method and device of three-dimensional modeling
US9137526B2 (en) Image enhancement via calibrated lens simulation
CN102682440A (en) Image processing apparatus, image capturing apparatus, and image processing method
WO2023284792A1 (en) Lens calibration method and apparatus for scanning light field imaging system
CN104568963A (en) Online three-dimensional detection device based on RGB structured light
CN201955551U (en) Optical system using double optical path system interactive correction method
US11615548B2 (en) Method and system for distance measurement based on binocular camera, device and computer-readable storage medium
CN109858551A (en) Method, apparatus, equipment and medium based on image recognition detection structure stress
CN108507484B (en) Bundled round steel multi-vision visual identifying system and method for counting
CN105530437A (en) Environment brightness measurement and calculation method and shooting device
CN109859155A (en) Image distortion detection method and system
CN108055532A (en) Automate the method and apparatus of matching test card
CN104867125A (en) Image obtaining method and image obtaining device
CN109903245A (en) The non-uniform correction method of infrared image
US20130002932A1 (en) Image Enhancement Via Lens Simulation
CN107525652A (en) Lens distortion method of testing, apparatus and system
CN109862346A (en) Test method of focusing and equipment
CN110345875A (en) Calibration and distance measuring method, device, electronic equipment and computer readable storage medium
CN102928196A (en) Detection method and device for free-form surface lens
CN102692365A (en) Method and system for measuring out-of-roundness of particles
CN113074634B (en) Rapid phase matching method, storage medium and three-dimensional measurement system
CN105427282A (en) Method and device for testing 3D positioning accuracy

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: 20201028

Address after: 261061 north of Yuqing East Street, east of Dongming Road, Weifang High tech Zone, Weifang City, Shandong Province (Room 502, Geer electronic office building)

Applicant after: GoerTek Optical Technology Co.,Ltd.

Address before: 261031 No. 268 Dongfang Road, Weifang hi tech Industrial Development Zone, Shandong, Weifang

Applicant before: GOERTEK Inc.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190108