CN109922335A - Camera focusing test method and device based on contrast formula focusing method - Google Patents
Camera focusing test method and device based on contrast formula focusing method Download PDFInfo
- Publication number
- CN109922335A CN109922335A CN201910169269.5A CN201910169269A CN109922335A CN 109922335 A CN109922335 A CN 109922335A CN 201910169269 A CN201910169269 A CN 201910169269A CN 109922335 A CN109922335 A CN 109922335A
- Authority
- CN
- China
- Prior art keywords
- camera
- code value
- focusing
- clearest
- test
- 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
Abstract
The invention discloses camera focusing test methods and device based on contrast formula focusing method.The camera focusing test method includes the following steps: step 1: carrying out focusing test to a upper camera using contrast formula focusing method, obtains the clearest code value of a upper camera;Step 2: according to the clearest code value of a upper camera, calculating the initial code value of next camera;Step 3: according to the initial code value of next camera, focusing test being carried out to next camera using contrast formula focusing method, obtains the clearest code value of next camera.The camera focusing test method can reduce the testing time.
Description
Technical field
The present invention relates to focusing testing field, more particularly to based on contrast formula focusing method camera focusing test method and
Device.
Background technique
When code value refers to camera focusing, CPU inputs to the driving signal of driving IC, for controlling the defeated of driving IC
Size of current out is focused to control focusing motor and camera lens is moved on corresponding position, and a code value corresponds to one
A moving distance.
Camera manufacturer generallys use contrast formula focusing method in the focusing test before dispatching from the factory to camera, it is therefore desirable to
One initial code value of setting is searched by way of increasing code value size step by step then since initial code value
Rope is to the clearest point of image, i.e. focus point.If initially code value is set to too small, the step number of search will increase, and focusing is surveyed
The time of examination is elongated;If initial code value is set to too greatly, be well over clearest code value, lead to not search image
Clearest point.
Summary of the invention
In order to solve above-mentioned the deficiencies in the prior art, the present invention provides the camera focusing test based on contrast formula focusing method
Method and device can reduce the testing time.
The technical problems to be solved by the invention are achieved by the following technical programs:
Based on the camera focusing test method of contrast formula focusing method, include the following steps:
Step 1: focusing test being carried out to a upper camera using contrast formula focusing method, obtains the clearest of a upper camera
Code value;
Step 2: according to the clearest code value of a upper camera, calculating the initial code value of next camera;
Step 3: according to the initial code value of next camera, being focused using contrast formula focusing method to next camera
Test, obtains the clearest code value of next camera.
Further, in step 1, carrying out the step of focusing is tested to first camera includes:
Step 1.1: the arbitrarily initial code value of first camera of setting;
Step 1.2: focusing test being carried out to first camera using contrast formula focusing method, obtains the most clear of first camera
Clear code value.
Further, in step 2, the clearest code of the initial code value of next camera=upper camera
Value-A, A are the difference constant between the clearest code value of each camera.
Further, before focusing test, the normal distribution of clearest code value is obtained according to mass data, is then taken predetermined
The maximum difference between each clearest code value within the scope of variance is as difference constant A.
Based on the camera focusing test method of contrast formula focusing method, include the following steps:
Step 1: the arbitrarily initial code value of first camera of setting;
Step 2: focusing test being carried out to first camera using contrast formula focusing method, obtains the clearest of first camera
Code value;
Step 3: according to the clearest code value of first camera, calculating the initial code value of second camera;
Step 4: according to the initial code value of calculated second camera, using contrast formula focusing method to second camera
Focusing test is carried out, the clearest code value of second camera is obtained.
Further, the initial code value of next camera=upper camera clearest code value-A, A is each
Difference constant between the clearest code value of a camera.
Further, before focusing test, the normal distribution of the clearest code value of camera is obtained according to mass data, so
Take the maximum difference between each clearest code value within the scope of pre-determined variance as difference constant A afterwards.
Camera focusing test device based on contrast formula focusing method, comprising:
Test module of focusing obtains each camera for carrying out focusing test to each camera using contrast formula focusing method
Clearest code value;
Initial code setting module, for setting the initial code value in focusing test for each camera;
Initial code computing module calculates next camera for the clearest code value according to a upper camera
Initial code value.
Further, the initial code setting module arbitrarily sets the initial code value of first camera.
Further, the initial code value of next camera=upper camera clearest code value-A, A is each
Difference constant between the clearest code value of a camera.
The invention has the following beneficial effects: the camera focusing test methods other than first camera, remaining is taken the photograph
As head is when carrying out focusing test using contrast formula focusing method, it is calculated according to the clearest code of a camera thereon
Initial code value, since under identical test environment, the difference between the clearest code value of each camera is little, foundation
The clearest code value of a upper camera calculates the initial code value of next camera, can shorten next camera
The focusing testing time, reduce the integrated testability time.
Detailed description of the invention
Fig. 1 is the step block diagram of camera focusing test method provided by the invention;
Fig. 2 is the step block diagram of another camera focusing test method provided by the invention;
Fig. 3 is the functional block diagram of camera focusing test device provided by the invention.
Specific embodiment
The present invention will be described in detail with reference to the accompanying drawings and examples.
Embodiment one
As shown in Figure 1, the camera focusing test method based on contrast formula focusing method, includes the following steps:
Step 1: focusing test being carried out to a upper camera using contrast formula focusing method, obtains the clearest of a upper camera
Code value;
In the step 1, carrying out the step of focusing is tested to first camera includes:
Step 1.1: the arbitrarily initial code value of first camera of setting;
Step 1.2: focusing test being carried out to first camera using contrast formula focusing method, obtains the most clear of first camera
Clear code value.
Step 2: according to the clearest code value of a upper camera, calculating the initial code value of next camera;
In the step 2, the clearest code value-A of initial code value=upper camera of next camera, wherein A be
Difference constant between the clearest code value of each camera.
Before focusing test, the normal state point of clearest code value is obtained according to mass data (data of previous focusing test)
Cloth takes each clearest code value of the desired value two sides within the scope of pre-determined variance then centered on desired value (average value)
Between maximum difference (difference between clearest code maximum value and clearest code minimum value) be used as difference constant A.
Certainly, difference constant A can also empirically be set by testing staff.
Step 3: according to the initial code value of next camera, next camera being carried out using contrast formula focusing method
Focusing test, obtains the clearest code value of next camera.
The camera focusing test method other than first camera, remaining camera using contrast formula focus method into
When row focusing test, the clearest code according to a camera thereon calculates its initial code value, due to identical
It tests under environment, the difference between the clearest code value of each camera is little, according to the clearest of a upper camera
Code value calculates the initial code value of next camera, can shorten the focusing testing time of next camera, reduces
The integrated testability time.
Embodiment two
As shown in Fig. 2, the camera focusing test method based on contrast formula focusing method, includes the following steps:
Step 1: the arbitrarily initial code value of first camera of setting;
Step 2: focusing test being carried out to first camera using contrast formula focusing method, obtains the clearest of first camera
Code value;
Step 3: according to the clearest code value of first camera, calculating the initial code value of second camera;
In the step 3, the clearest code value-A of initial code value=the first camera of second camera, wherein A be
Difference constant between first camera and the clearest code value of second camera.
Before focusing test, the normal state point of clearest code value is obtained according to mass data (data of previous focusing test)
Cloth takes each clearest code value of the desired value two sides within the scope of pre-determined variance then centered on desired value (average value)
Between maximum difference (difference between clearest code maximum value and clearest code minimum value) be used as difference constant A.
Certainly, difference constant A can also empirically be set by testing staff.
Step 4: according to the initial code value of calculated second camera, second being taken the photograph using contrast formula focusing method
As head carries out focusing test, the clearest code value of second camera is obtained.
Embodiment three
As shown in figure 3, the camera focusing test device based on contrast formula focusing method, comprising:
Test module of focusing obtains each camera for carrying out focusing test to each camera using contrast formula focusing method
Clearest code value;
Initial code setting module, for setting the initial code value in focusing test for each camera;
Initial code computing module calculates next camera for the clearest code value according to a upper camera
Initial code value.
Wherein, when the focusing test module carries out focusing test to first camera using contrast formula focusing method,
The initial code setting module arbitrarily sets the initial code value of first camera.
The initial code computing module is when calculating the initial code value of next camera, at the beginning of next camera
The clearest code value-A of beginning code value=upper camera, wherein A is the difference between the clearest code value of each camera
Numerical constant.
Before focusing test, the normal state point of clearest code value is obtained according to mass data (data of previous focusing test)
Cloth takes each clearest code value of the desired value two sides within the scope of pre-determined variance then centered on desired value (average value)
Between maximum difference (difference between clearest code maximum value and clearest code minimum value) be used as difference constant A.
Embodiments of the present invention above described embodiment only expresses, the description thereof is more specific and detailed, but can not
Therefore limitations on the scope of the patent of the present invention are interpreted as, as long as skill obtained in the form of equivalent substitutions or equivalent transformations
Art scheme should all be fallen within the scope and spirit of the invention.
Claims (10)
1. the camera focusing test method based on contrast formula focusing method, which comprises the steps of:
Step 1: focusing test being carried out to a upper camera using contrast formula focusing method, obtains the clearest of a upper camera
Code value;
Step 2: according to the clearest code value of a upper camera, calculating the initial code value of next camera;
Step 3: according to the initial code value of next camera, being focused using contrast formula focusing method to next camera
Test, obtains the clearest code value of next camera.
2. the camera focusing test method according to claim 1 based on contrast formula focusing method, which is characterized in that in step
In rapid 1, carrying out the step of focusing is tested to first camera includes:
Step 1.1: the arbitrarily initial code value of first camera of setting;
Step 1.2: focusing test being carried out to first camera using contrast formula focusing method, obtains the most clear of first camera
Clear code value.
3. the camera focusing test method according to claim 1 or 2 based on contrast formula focusing method, which is characterized in that
In step 2, the clearest code value-A of the initial code value of next camera=upper camera, A are each camera
Clearest code value between difference constant.
4. the camera focusing test method according to claim 3 based on contrast formula focusing method, which is characterized in that focusing
Before test, the normal distribution of clearest code value is obtained according to mass data, is then taken each most clear within the scope of pre-determined variance
Maximum difference between clear code value is as difference constant A.
5. the camera focusing test method based on contrast formula focusing method, which comprises the steps of:
Step 1: the arbitrarily initial code value of first camera of setting;
Step 2: focusing test being carried out to first camera using contrast formula focusing method, obtains the clearest of first camera
Code value;
Step 3: according to the clearest code value of first camera, calculating the initial code value of second camera;
Step 4: according to the initial code value of calculated second camera, using contrast formula focusing method to second camera
Focusing test is carried out, the clearest code value of second camera is obtained.
6. the camera focusing test method according to claim 5 based on contrast formula focusing method, which is characterized in that next
The initial code value of a camera=upper camera clearest code value-A, A are the clearest code value of each camera
Between difference constant.
7. the camera focusing test method according to claim 6 based on contrast formula focusing method, which is characterized in that focusing
Before test, the normal distribution of the clearest code value of camera is obtained according to mass data, is then taken within the scope of pre-determined variance
Maximum difference between each clearest code value is as difference constant A.
8. the camera focusing test device based on contrast formula focusing method characterized by comprising
Test module of focusing obtains each camera for carrying out focusing test to each camera using contrast formula focusing method
Clearest code value;
Initial code setting module, for setting the initial code value in focusing test for each camera;
Initial code computing module calculates next camera for the clearest code value according to a upper camera
Initial code value.
9. the camera focusing test device according to claim 8 based on contrast formula focusing method, which is characterized in that described
Initial code setting module arbitrarily sets the initial code value of first camera.
10. the camera focusing test device based on contrast formula focusing method according to claim 8 or claim 9, which is characterized in that
The initial code value of next camera=upper camera clearest code value-A, A are the clearest of each camera
Difference constant between code value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910169269.5A CN109922335B (en) | 2019-03-06 | 2019-03-06 | Camera focusing test method and device based on contrast type focusing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910169269.5A CN109922335B (en) | 2019-03-06 | 2019-03-06 | Camera focusing test method and device based on contrast type focusing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109922335A true CN109922335A (en) | 2019-06-21 |
CN109922335B CN109922335B (en) | 2020-08-25 |
Family
ID=66963515
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910169269.5A Active CN109922335B (en) | 2019-03-06 | 2019-03-06 | Camera focusing test method and device based on contrast type focusing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109922335B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114040190A (en) * | 2021-11-01 | 2022-02-11 | 信利光电股份有限公司 | Camera test exposure method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011095263A (en) * | 2009-10-29 | 2011-05-12 | Mitsutoyo Corp | Autofocus video tool for accurate dimensional inspection and method therefor |
CN102186018A (en) * | 2011-04-29 | 2011-09-14 | 信源通科技(深圳)有限公司 | Camera focusing method and device |
CN105763802A (en) * | 2016-02-29 | 2016-07-13 | 广东欧珀移动通信有限公司 | Control method and device and electronic device |
-
2019
- 2019-03-06 CN CN201910169269.5A patent/CN109922335B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011095263A (en) * | 2009-10-29 | 2011-05-12 | Mitsutoyo Corp | Autofocus video tool for accurate dimensional inspection and method therefor |
CN102186018A (en) * | 2011-04-29 | 2011-09-14 | 信源通科技(深圳)有限公司 | Camera focusing method and device |
CN105763802A (en) * | 2016-02-29 | 2016-07-13 | 广东欧珀移动通信有限公司 | Control method and device and electronic device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114040190A (en) * | 2021-11-01 | 2022-02-11 | 信利光电股份有限公司 | Camera test exposure method |
Also Published As
Publication number | Publication date |
---|---|
CN109922335B (en) | 2020-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103123313B (en) | Sclerometer and hardness measuring method | |
US8566735B2 (en) | Hardness tester with a user interface for setting test locations | |
CN102421279B (en) | The shape basis adjusting device of match parameter, method of adjustment and apparatus for mounting component | |
US20190375036A1 (en) | Soldering system, control device, control method, and program | |
CN103900919A (en) | Hardness tester and method for hardness test | |
CN110996002B (en) | Microscope focusing method, device, computer equipment and storage medium | |
CN105405115B (en) | A kind of image mould group is to heart system and method | |
CN103702035A (en) | Camera module fast adjusting method based on FOV (Field Of View) | |
CN106441804A (en) | Resolving power testing method | |
CN110695520B (en) | Vision-based full-automatic galvanometer field calibration system and calibration method thereof | |
CN111386595A (en) | Method for adjusting position of probe tip and inspection device | |
CN110045269A (en) | A kind of apparatus for testing chip and method | |
CN106448559B (en) | A kind of method and device for the value adjusting display gamma register | |
CN108055532A (en) | Automate the method and apparatus of matching test card | |
KR20210047793A (en) | Method of operating a probing apparatus | |
CN103837828A (en) | Travel curve test method and system of camera-shooting mode motor and mobile terminal | |
CN110621150A (en) | Printed circuit board assembling method and related device | |
CN109922335A (en) | Camera focusing test method and device based on contrast formula focusing method | |
US9053904B2 (en) | Image quality adjusting method, non-transitory computer-readable recording medium, and electron microscope | |
CN105783710A (en) | Position calibrating method and position calibrating device | |
EP3531817B1 (en) | Substrate inspection device and substrate inspection method using same | |
KR100944094B1 (en) | Robot and method for quality inspection | |
WO2010032567A1 (en) | Sample measurement device by means of confocal microscope and method therefor | |
US20100244876A1 (en) | Method for setting contact parameter and recording medium having program for setting contact parameter recorded thereon | |
CN106556960B (en) | Defocus conversion coefficient verification method |
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 | ||
CB03 | Change of inventor or designer information | ||
CB03 | Change of inventor or designer information |
Inventor after: Wu Xiongqing Inventor after: Tang Huacheng Inventor after: Zheng Guangbi Inventor after: Zheng Ruijian Inventor before: Wu Xiongqing |
|
GR01 | Patent grant | ||
GR01 | Patent grant |