CN107147905B - Camera module testing method and device and computer readable storage medium - Google Patents

Camera module testing method and device and computer readable storage medium Download PDF

Info

Publication number
CN107147905B
CN107147905B CN201710428542.2A CN201710428542A CN107147905B CN 107147905 B CN107147905 B CN 107147905B CN 201710428542 A CN201710428542 A CN 201710428542A CN 107147905 B CN107147905 B CN 107147905B
Authority
CN
China
Prior art keywords
preset
lens
depth
lens holder
depth position
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.)
Expired - Fee Related
Application number
CN201710428542.2A
Other languages
Chinese (zh)
Other versions
CN107147905A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710428542.2A priority Critical patent/CN107147905B/en
Publication of CN107147905A publication Critical patent/CN107147905A/en
Application granted granted Critical
Publication of CN107147905B publication Critical patent/CN107147905B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Microscoopes, Condenser (AREA)

Abstract

The invention discloses a method and a device for testing a camera module and a computer readable storage medium, wherein the method for testing the camera module comprises the following steps: respectively carrying out resolution force test on the imaging points at the N preset positions in the current test image; adjusting the position of the lens module in the lens holder, and returning to the step of testing the resolution and the subsequent steps until a first depth position of the lens module in the lens holder is searched, wherein when the lens module is at the first depth position in the lens holder, the resolution test value of an imaging point at a preset position in the N preset positions is the largest; and when the first depth position is searched, determining a second depth position in the lens holder, and fixing the lens module at the second depth position in the lens holder. The technical scheme provided by the invention can effectively reduce the attenuation degree of the resolution power of the camera module after the camera module is assembled to the electronic equipment.

Description

Camera module testing method and device and computer readable storage medium
Technical Field
The invention relates to the technical field of camera shooting, in particular to a method and a device for testing a camera module and a computer readable storage medium.
Background
With the rapid development of the intelligence of the electronic technology industry, a camera system for acquiring images and video information is becoming a core device widely applied to various electronic devices as a carrier of human visual extension.
At present, more and more electronic devices are being developed toward miniaturization, miniaturization and high imaging quality, and based on this trend, the camera device is also miniaturized into a camera module to be installed in the electronic device.
Generally, a camera module includes a lens module, a lens holder and other components, and when the camera module is assembled on an electronic device, the lens module of the camera module is displaced in the lens holder due to the extrusion of a shell of the electronic device, so that the resolution of the camera module is seriously attenuated.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for testing a camera module, and a computer readable storage medium, which are used to reduce the attenuation of the resolution of the camera module after the camera module is assembled in an electronic device.
A first aspect of the present invention provides a method for testing a camera module, where the camera module includes: the testing method comprises the following steps of:
respectively carrying out resolution test on N imaging points at preset positions in a current test image to obtain resolution test values of the imaging points at the N preset positions, wherein the current test image is formed by a current camera module, and N is greater than or equal to 1;
adjusting the position of the lens module in the lens holder, and returning to execute the step of performing the resolution test and the subsequent steps on the imaging points located in the N preset positions in the current test image respectively until the first depth position of the lens module in the lens holder is searched, wherein when the lens module is located in the first depth position in the lens holder, the resolution test value of the imaging point at one preset position in the N preset positions is the largest;
determining a second depth position in the lens holder when the first depth position is searched, wherein the second depth position is shallower than the first depth position in a depth direction of the lens holder;
and fixing the lens module at a second depth position in the lens base.
In a first possible implementation manner according to the first aspect of the present invention, the determining the second depth position in the lens holder includes: and determining a second depth position in the lens base according to the first depth position and a preset position offset.
In a second possible implementation manner according to the first aspect of the present invention, the determining the second depth position in the lens holder includes:
subtracting a preset difference value of the resolution test values from the maximum resolution test value of the imaging point at the preset position to obtain a target resolution test value of the imaging point at the preset position;
and determining a second depth position in the second lens holder according to the target resolution test value, wherein when the lens module is at the second depth position in the lens holder, the resolution test value of the imaging point at the preset position is the target resolution test value.
Based on the first aspect of the present invention, or the first possible implementation manner of the first aspect of the present invention, or the second possible implementation manner of the first aspect of the present invention, in a third possible implementation manner, where N is 5, the performing the resolving power test on the imaging points located at the N preset positions in the current test image respectively includes:
the method includes performing resolution test on imaging points located at a first preset position, a second preset position, a third preset position, a fourth preset position and a fifth preset position in a current test image respectively, wherein the first preset position is a central point position, the second preset position, the third preset position, the fourth preset position and the fifth preset position are located above the left, above the right, below the left and below the central point position respectively, and distances from the second preset position, the third preset position, the fourth preset position and the fifth preset position to the central point position are equal and are preset distances.
A second aspect of the present invention provides a testing apparatus for a camera module, the camera module including: lens module and be used for settling above-mentioned lens module's microscope base, this testing arrangement includes:
the image resolving power testing unit is used for respectively carrying out image resolving power testing on the imaging points at N preset positions in a current testing image to obtain image resolving power testing values of the imaging points at the N preset positions, wherein the current testing image is formed by a current camera module, and N is greater than or equal to 1;
a searching unit, configured to adjust a position of the lens module in the lens holder and trigger the resolving power testing unit until a first depth position of the lens module in the lens holder is searched, where a resolving power testing value of an imaging point at a preset position of the N preset positions is maximum when the lens module is at the first depth position in the lens holder;
a determination unit configured to determine a second depth position in the mirror base when the first depth position is searched, wherein the second depth position is shallower than the first depth position in a depth direction of the mirror base;
and the fixing unit is used for fixing the lens module at a second depth position in the lens base.
Based on the second aspect of the present invention, in a first possible implementation manner, the determining unit is specifically configured to: and determining a second depth position in the lens base according to the first depth position and a preset position offset.
Based on the second aspect of the present invention, in a second possible implementation manner, the determining unit is specifically configured to: subtracting a preset difference value of the resolution test values from the maximum resolution test value of the imaging point at the preset position to obtain a target resolution test value of the imaging point at the preset position; and determining a second depth position in the second lens holder according to the target resolution test value, wherein when the lens module is at the second depth position in the lens holder, the resolution test value of the imaging point at the preset position is the target resolution test value.
Based on the second aspect of the present invention, or the first possible implementation manner of the second aspect of the present invention, or the second possible implementation manner of the second aspect of the present invention, in a third possible implementation manner, where N is 5, the resolving power testing unit is specifically configured to: the method includes performing resolution test on imaging points located at a first preset position, a second preset position, a third preset position, a fourth preset position and a fifth preset position in a current test image respectively, wherein the first preset position is a central point position, the second preset position, the third preset position, the fourth preset position and the fifth preset position are located above the left, above the right, below the left and below the central point position respectively, and distances from the second preset position, the third preset position, the fourth preset position and the fifth preset position to the central point position are equal and are preset distances.
A third aspect of the present invention provides a testing apparatus for a camera module, the camera module including: the testing device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the testing method mentioned in the first aspect or any one of the possible implementation manners of the first aspect.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the testing method mentioned in the first aspect above or any one of the possible implementations of the first aspect above.
As can be seen from the above, in the present invention, the resolution test is performed on the imaging points located at N preset positions in the current test image, and the position of the lens module in the lens holder is adjusted to search for the first depth position of the lens module in the lens holder, and when the first depth position of the lens module of the camera module in the lens holder is searched, the second depth position in the lens holder is determined, and the lens module is fixed at the second depth position in the lens holder. Because the second depth position is shallower than the first depth position in the depth direction of the lens base, excessive focusing processing on the camera assembly can be realized by fixing the lens module at the second depth position in the lens base, so that the offset of the actual position of the lens module of the camera assembly in the lens base relative to the depth position after the camera module is assembled to the electronic equipment can be reduced, and the attenuation degree of the image resolving power of the camera module after the camera module is assembled to the electronic equipment is further reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1-a is a schematic flow chart of an embodiment of a method for testing a camera module according to the present invention;
fig. 1-b is a schematic structural diagram of one embodiment of a camera module according to the present invention;
FIG. 1-c is a schematic diagram of an embodiment of a preset position provided by the present invention;
FIGS. 1-d are schematic views of another embodiment of the preset positions provided by the present invention;
FIG. 2 is a schematic diagram of an MTF test curve in an application scenario provided by the present invention;
fig. 3 is a schematic structural diagram of an embodiment of a testing apparatus for a camera module according to the present invention;
fig. 4 is a schematic structural diagram of another embodiment of a testing apparatus for a camera module according to the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1-a, a method for testing a camera module according to an embodiment of the present invention is described as follows:
step 101, respectively performing resolution test on N imaging points at preset positions in a current test image to obtain resolution test values of the current imaging points at the N preset positions;
and the current test image is formed by the current camera module, and the N is greater than or equal to 1. In the embodiment of the present invention, as shown in fig. 1-b, the camera module is fixed on the Circuit board 13 (the Circuit board 13 may be a Flexible Printed Circuit (FPC), for example), and the camera module includes: a Lens module (i.e., Lens)11 and a Holder (i.e., Holder)12 for mounting the Lens module. The lens module includes but is not limited to: an entrance aperture, a lens, and a pass-through housing (i.e., barrel). The inside of the lens base includes but is not limited to: the lens module comprises an optical filter, a photosensitive chip, a glass sheet and the like, so that the lens module can form images after being arranged on the lens base. The lens module and the lens holder can be connected through an external thread arranged on the lens module and an internal thread arranged on the lens holder, and specifically, the structure of the camera module in the embodiment of the invention can be realized by referring to the prior art, and details are not repeated here.
In the embodiment of the present invention, the camera module may be integrally fixed in advance (for example, the camera module is integrally fixed by a bracket), and then the test light source is sent to the lens module, so as to form the test image through the camera module. In step 101, the imaging points at the N preset positions in the current test image are respectively tested for resolution, specifically, the imaging points at the N preset positions in the current test image can be tested for resolution by a Modulation Transfer Function (MTF) method. Of course, in step 101, the resolution test may be performed by other resolution test methods, for example, the resolution test may be performed on the imaging points located at the N preset positions in the current test image by a Spatial Frequency Response (SFR) method, which is not limited herein.
In an application scenario, if N may be 1, step 101 may be represented as: and performing resolution test on the imaging point at the preset position in the current test image. Alternatively, as shown in fig. 1-c, the preset position may be a central point position O of a test image formed by the current camera module.
In another application scenario, if N may be 5, step 101 may be represented as: and respectively carrying out resolution force test on imaging points at a first preset position, a second preset position, a third preset position, a fourth preset position and a fifth preset position in the current test image. Optionally, the first preset position may be a center point position, the second preset position, the third preset position, the fourth preset position, and the fifth preset position may be respectively located above left, above right, below left, and below right of the center point position, and distances from the second preset position, the third preset position, the fourth preset position, and the fifth preset position to the center point position are equal and are preset distances. As shown in fig. 1-D, the first preset position may be a center point position O of a test image formed by a current camera module, and the second preset position, the third preset position, the fourth preset position, and the fifth preset position may be a position a, a position D, a position B, and a position C in fig. 1-D, respectively.
Of course, N in the embodiment of the present invention may be any integer greater than or equal to 1, and correspondingly, the N preset positions may also be adjusted according to actual requirements, which is not limited herein.
In an embodiment of the present invention, after obtaining the resolution test values of the imaging points at the current N preset positions, the resolution test values of the imaging points at the current N preset positions may be associated with and recorded in the current position of the lens module in the lens holder, so as to be called later.
Step 102, judging whether a first depth position of the lens module in the lens base is searched;
when the lens module is at the first depth position in the lens holder, a resolution test value of an imaging point at a preset position of the N preset positions is the largest. The first depth position may be understood in embodiments of the present invention as the point at which the resolution of the camera assembly is best (in other embodiments, this point is referred to as the peak point).
In an application scenario, when N is 1, the maximum resolution test value of an imaging point at a preset position of the N preset positions is represented as: and the resolving power test value of the imaging point at the preset position is maximum.
In another application scenario, when N is not less than 1, the maximum test value of the resolution of the imaging point at one of the N preset positions may be represented as: the test value of the resolving power of the imaging point at one preset position in the N preset positions is the largest, and the maximum test values of the resolving power of the imaging points at the preset positions are all larger than the maximum test values of the imaging points at the other N-1 preset positions. Based on FIG. 1-D, the maximum resolving power test values of the A position, the B position, the C position, the D position and the O position are respectively set as MA、MB、MC、MDAnd MOAnd the following relationship exists: mA<MB<MC<MD<MOThen, the first depth position may specifically be: so that the resolving power test value of the imaging point at the O position is the maximum. For another example, when N is not less than 1, the maximum resolving power test value of the image point at one of the N preset positions may be represented as: the test value of the resolution of the imaging point at one of the N preset positions is the largest, and when the test value of the resolution of the imaging point at the preset position is the largest, the average value of the test values of the resolution of the imaging points at the N preset positions is larger than the average value of the test values of the resolution of the imaging points at the other N-1 preset positions when the test value of the resolution is the largest. Based on FIG. 1-D, the maximum resolving power test values of the A position, the B position, the C position, the D position and the O position are respectively set as MA、MB、MC、MDAnd MOAnd the following relationship exists: mA<MB<MC<MD<MOAnd M isAWhen the test value of the resolving power of the A position, the B position, the C position, the D position and the O position appears, the average value is NA,MBWhen the test value of the resolving power of the A position, the B position, the C position, the D position and the O position appears, the average value is NB,MCWhen the test value of the resolving power of the A position, the B position, the C position, the D position and the O position appears, the average value is NC,MDWhen the test value of the resolving power of the A position, the B position, the C position, the D position and the O position appears, the average value is ND,MoWhen the test value of the resolving power of the A position, the B position, the C position, the D position and the O position appears, the average value is NOIf, ifThe following relationships exist: n is a radical ofA<NB<NC<ND<NOThen, at this time, the first depth position may be: the position at which the test value of the resolving power of the imaging point at the O position is maximum is provided that the following relationship exists: n is a radical ofA>NB>NC>ND>NOIn this case, the first depth position may be: and (4) enabling the maximum resolving power test value of the imaging point at the A position, and so on.
In step 102, when it is determined that the first depth position of the lens module in the lens holder is not searched, the process proceeds to step 103, and when it is determined that the first depth position of the lens module in the lens holder is searched, the process proceeds to step 104.
103, adjusting the position of the lens module in the lens holder;
in the embodiment of the present invention, the process of adjusting the position of the lens module in the lens holder is actually a process of adjusting the object distance.
In step 103, the position of the lens module in the lens holder can be adjusted in a stepping manner. For example, if the initial position of the lens module in the lens holder is P0 and the step size is 0.01 mm (i.e., mm), the position of the lens module in the lens holder is adjusted to P0+0.01 when the position of the lens module in the lens holder is adjusted for the first time, and then the process returns to step S101.
It should be noted that, in order to search the first depth position, the position of the lens module in the lens holder may need to be adjusted multiple times.
Step 104, determining a second depth position in the lens holder;
wherein the second depth position is shallower than the first depth position in the depth direction of the lens holder. Taking the structure of the camera module shown in fig. 1-b as an example, assuming that the position of the lens module in the lens holder is the first depth position in fig. 1-b, the second depth position is equal to the first depth position, that is, the lens module needs to be shifted upward by a certain amount to adjust the lens module to the second depth position on the basis of fig. 1-b.
In an application scenario, the determining a second depth position in the lens holder includes: and determining a second depth position in the lens base according to the first depth position and a preset position offset. Wherein the second depth position is the first depth position plus or minus a preset position offset, and the concrete adoption of plus or minus depends on another factor, namely: the determined second depth position needs to be shallower than the first depth position in the depth direction of the lens holder.
In another application scenario, the determining the second depth position in the lens holder includes: subtracting a preset difference value of the resolution test values from the maximum resolution test value of the imaging point at the preset position to obtain a target resolution test value of the imaging point at the preset position; and determining a second depth position in the second lens holder according to the target resolution test value, wherein when the lens module is at the second depth position in the lens holder, the resolution test value of an imaging point at the preset position is the target resolution test value. Since there may be two depth positions such that the resolution test value of the imaging point at the preset position is the target resolution test value, the final determination of which depth position is the second depth position depends on another factor, namely: the determined second depth position needs to be shallower than the first depth position in the depth direction of the lens holder. It should be noted that the preset position is the image position corresponding to the imaging point with the maximum resolving power test value when the lens module is located at the first depth position in the lens base in step 102.
Step 105, fixing the lens module at a second depth position in the lens holder;
specifically, in step 105, the lens module may be fixed at the second depth position in the lens holder by a dispensing method.
Therefore, the focusing test of the camera module can be completed by the test method shown in fig. 1-a.
To facilitate a better understanding of the test method shown in fig. 1-a, the test method shown in fig. 1-a is further described below using the scenario and MTF test shown in fig. 1-c as an example. The MTF test graph of the center point position O of the test image can be referred to fig. 2, in fig. 2, the abscissa represents the out-of-focus position (i.e., the defocus position) of the lens module in the above-mentioned camera assembly in the lens holder, and the ordinate represents the MTF value (i.e., the aforementioned resolving power test value). Since the first depth position that maximizes the test value of the resolving power of the imaging point is searched in the embodiment of the present invention, the ordinate corresponding to the highest point F1 in the curve shown in fig. 2 is the first depth position, and the ordinate corresponding to the point F2 is the second depth position, and it can be seen that the second depth position and the first depth position are offset by a certain distance. In the embodiment of the present invention, after the second depth position is determined, the lens module may be fixed at the second depth position in the lens holder in a dispensing manner.
It should be noted that the test method mentioned in the embodiment of the present invention may be applied to a test apparatus, and the test apparatus may be a stand-alone device or may be integrated in a camera assembly focusing test system, which is not limited herein.
As can be seen from the above, in the present invention, the resolution test is performed on the imaging points located at N preset positions in the current test image, and the position of the lens module in the lens holder is adjusted to search for the first depth position of the lens module in the lens holder, and when the first depth position of the lens module of the camera module in the lens holder is searched, the second depth position in the lens holder is determined, and the lens module is fixed at the second depth position in the lens holder. Because the second depth position is shallower than the first depth position in the depth direction of the lens base, excessive focusing processing on the camera assembly can be realized by fixing the lens module at the second depth position in the lens base, so that the offset of the actual position of the lens module of the camera assembly in the lens base relative to the depth position after the camera module is assembled to the electronic equipment can be reduced, and the attenuation degree of the image resolving power of the camera module after the camera module is assembled to the electronic equipment is further reduced.
Example two
The embodiment of the present invention further provides a testing apparatus for a camera module, where the camera module includes: the structure of the camera module may refer to the description in the embodiment shown in fig. 1-a, and is not described herein again. As shown in fig. 3, the testing apparatus 300 of the camera module in the embodiment of the present invention includes:
a resolving power testing unit 301, configured to perform resolving power testing on imaging points located at N preset positions in a current test image respectively, to obtain resolving power testing values of the imaging points located at the N preset positions, where the current test image is formed by a current camera module, and N is greater than or equal to 1;
a searching unit 302, configured to adjust a position of the lens module in the lens holder and trigger the resolving power testing unit until a first depth position of the lens module in the lens holder is searched, where a resolving power testing value of an imaging point at a preset position of the N preset positions is the largest when the lens module is at the first depth position in the lens holder;
a determining unit 303 configured to determine a second depth position in the mirror base when the first depth position is searched, wherein the second depth position is shallower than the first depth position in a depth direction of the mirror base;
a fixing unit 304 for fixing the lens module at the second depth position in the lens holder.
Optionally, the determining unit 303 is specifically configured to: and determining a second depth position in the lens base according to the first depth position and a preset position offset.
Optionally, the determining unit 303 is specifically configured to: subtracting a preset difference value of the resolution test values from the maximum resolution test value of the imaging point at the preset position to obtain a target resolution test value of the imaging point at the preset position; and determining a second depth position in the second lens holder according to the target resolution test value, wherein when the lens module is at the second depth position in the lens holder, the resolution test value of the imaging point at the preset position is the target resolution test value.
Optionally, N is 5, and the resolving power testing unit 301 is specifically configured to: the method includes performing resolution test on imaging points located at a first preset position, a second preset position, a third preset position, a fourth preset position and a fifth preset position in a current test image respectively, wherein the first preset position is a central point position, the second preset position, the third preset position, the fourth preset position and the fifth preset position are located above the left, above the right, below the left and below the central point position respectively, and distances from the second preset position, the third preset position, the fourth preset position and the fifth preset position to the central point position are equal and are preset distances.
It should be noted that the testing apparatus in the embodiment of the present invention may be a stand-alone device, or may also be integrated into a camera assembly focusing testing system, which is not limited herein.
As can be seen from the above, in the embodiments of the present invention, the resolution test is performed on the imaging points located at N preset positions in the current test image, and the position of the lens module in the lens holder is adjusted to search for the first depth position of the lens module in the lens holder, and when the first depth position of the lens module in the lens holder is searched for, the second depth position in the lens holder is determined, and the lens module is fixed at the second depth position in the lens holder. Because the second depth position is shallower than the first depth position in the depth direction of the lens base, excessive focusing processing on the camera assembly can be realized by fixing the lens module at the second depth position in the lens base, so that the offset of the actual position of the lens module of the camera assembly in the lens base relative to the depth position after the camera module is assembled to the electronic equipment can be reduced, and the attenuation degree of the image resolving power of the camera module after the camera module is assembled to the electronic equipment is further reduced.
EXAMPLE III
The embodiment of the invention provides another testing device for a camera module, which comprises: the structure of the camera module may refer to the description in the embodiment shown in fig. 1-a, and is not described herein again. As shown in fig. 4, the testing apparatus 400 for a camera module according to an embodiment of the present invention includes: a memory 401, one or more processors 402 (only one shown in fig. 4), and computer programs stored on the memory 401 and executable on the processors. Wherein: the memory 401 is used to store software programs and modules, and the processor 402 executes various functional applications and data processing by operating the software programs and units stored in the memory 401. Specifically, the processor 402, by running the above-mentioned computer program stored in the memory 401, implements the steps of:
respectively carrying out resolution test on N imaging points at preset positions in a current test image to obtain resolution test values of the imaging points at the N preset positions, wherein the current test image is formed by a current camera module, and N is greater than or equal to 1;
adjusting the position of the lens module in the lens holder, and returning to execute the step of performing the resolution test and the subsequent steps on the imaging points located in the N preset positions in the current test image respectively until the first depth position of the lens module in the lens holder is searched, wherein when the lens module is located in the first depth position in the lens holder, the resolution test value of the imaging point at one preset position in the N preset positions is the largest;
determining a second depth position in the lens holder when the first depth position is searched, wherein the second depth position is shallower than the first depth position in a depth direction of the lens holder;
and fixing the lens module at a second depth position in the lens base.
Assuming that the above is the first possible embodiment, in a second possible embodiment provided on the basis of the first possible embodiment, the determining the second depth position in the lens holder includes: and determining a second depth position in the lens base according to the first depth position and a preset position offset.
In a third possible embodiment provided on the basis of the first possible embodiment, the determining a second depth position in the lens holder includes:
subtracting a preset difference value of the resolution test values from the maximum resolution test value of the imaging point at the preset position to obtain a target resolution test value of the imaging point at the preset position;
and determining a second depth position in the second lens holder according to the target resolution test value, wherein when the lens module is at the second depth position in the lens holder, the resolution test value of an imaging point at the preset position is the target resolution test value.
In a fourth possible implementation manner provided on the basis of the first possible implementation manner, the second possible implementation manner, or the third possible implementation manner, where N is 5, the performing the resolving power test on the imaging points located at the N preset positions in the current test image respectively includes:
the method includes performing resolution test on imaging points located at a first preset position, a second preset position, a third preset position, a fourth preset position and a fifth preset position in a current test image respectively, wherein the first preset position is a central point position, the second preset position, the third preset position, the fourth preset position and the fifth preset position are located above the left, above the right, below the left and below the central point position respectively, and distances from the second preset position, the third preset position, the fourth preset position and the fifth preset position to the central point position are equal and are preset distances.
Further, as shown in fig. 4, the testing apparatus may further include: one or more input devices 403 (only one shown in fig. 4) and one or more output devices 404 (only one shown in fig. 4). The memory 401, processor 402, input device 403, and output device 404 are connected by a bus 405.
It should be understood that in the present embodiment, the Processor 402 may be a Central Processing Unit (CPU), and the Processor may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 403 may include a keyboard, a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 404 may include a display, a speaker, etc.
Memory 404 may include both read-only memory and random access memory and provides instructions and data to processor 401. Some or all of the memory 404 may also include non-volatile random access memory. For example, the memory 404 may also store device type information.
As can be seen from the above, in the present invention, the resolution test is performed on the imaging points located at N preset positions in the current test image, and the position of the lens module in the lens holder is adjusted to search for the first depth position of the lens module in the lens holder, and when the first depth position of the lens module of the camera module in the lens holder is searched, the second depth position in the lens holder is determined, and the lens module is fixed at the second depth position in the lens holder. Because the second depth position is shallower than the first depth position in the depth direction of the lens base, excessive focusing processing on the camera assembly can be realized by fixing the lens module at the second depth position in the lens base, so that the offset of the actual position of the lens module of the camera assembly in the lens base relative to the depth position after the camera module is assembled to the electronic equipment can be reduced, and the attenuation degree of the image resolving power of the camera module after the camera module is assembled to the electronic equipment is further reduced.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the above-described modules or units is only one logical functional division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium and can implement the steps of the embodiments of the method when the computer program is executed by a processor. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier signal, telecommunication signal, software distribution medium, etc. It should be noted that the computer readable medium described above may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media excludes electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (6)

1. An assembly method of a camera module, the camera module comprising: a lens module and a lens holder for mounting the lens module, wherein the assembly method comprises:
respectively carrying out resolution test on N imaging points at preset positions in a current test image to obtain resolution test values of the imaging points at the N preset positions, wherein the current test image is formed by a current camera module, and N is greater than or equal to 1;
adjusting the position of the lens module in the lens holder, and returning to execute the step of respectively performing the resolution test on the imaging points located at the N preset positions in the current test image and the subsequent steps until a first depth position of the lens module in the lens holder is searched, wherein when the lens module is located at the first depth position in the lens holder, the resolution test value of the imaging point at one preset position in the N preset positions is the largest; when N is 1, the preset position is only 1 preset position; when N is larger than 1, the maximum image resolving power test value of the imaging point at one preset position is larger than the maximum image resolving power test values of the imaging points at the other N-1 preset positions;
determining a second depth position in the scope mount when the first depth position is searched, wherein the second depth position is shallower than the first depth position in a depth direction of the scope mount, comprising:
subtracting a preset difference value of the resolution test values from the maximum resolution test value of the imaging point at the preset position to obtain a target resolution test value of the imaging point at the preset position;
determining a second depth position in the lens holder according to the target resolution test value, wherein when the lens module is at the second depth position in the lens holder, the resolution test value of an imaging point at the preset position is the target resolution test value;
and fixing the lens module at the second depth position in the lens holder in a dispensing manner, so that when the camera module is assembled to the electronic equipment, the offset of the actual position of the lens module of the camera module in the lens holder, relative to the first depth position, caused by the extrusion of the electronic equipment shell is reduced.
2. The assembling method according to claim 1, wherein N is 5, and the performing the resolution test on the imaging points located at N preset positions in the current test image respectively comprises:
carry out the resolution test to the imaging point that lies in first default position, second default position, third default position, fourth default position and fifth default position in the present test image respectively, wherein, first default position is central point position, the second default position the third default position the fourth default position and the fifth default position is located respectively the upper left side, upper right side, left side below and the right side below of central point position, just the second default position the third default position the fourth default position and the fifth default position arrives the distance of central point position equals and is the default distance.
3. An assembling device of a camera module, the camera module comprising: lens module and be used for settling the microscope base of lens module, its characterized in that, assembly quality includes:
the image resolving power testing unit is used for respectively carrying out image resolving power testing on the imaging points at the N preset positions in the current testing image to obtain the image resolving power testing values of the imaging points at the N preset positions, wherein the current testing image is formed by the current camera module, and N is greater than or equal to 1;
the searching unit is used for adjusting the position of the lens module in the lens holder and triggering the image resolving power testing unit until a first depth position of the lens module in the lens holder is searched, wherein when the lens module is at the first depth position in the lens holder, the image resolving power testing value of an imaging point at a preset position in the N preset positions is the largest; when N is 1, the preset position is only 1 preset position; when N is larger than 1, the maximum image resolving power test value of the imaging point at one preset position is larger than the maximum image resolving power test values of the imaging points at the other N-1 preset positions;
a determination unit for determining a second depth position in the mirror base when the first depth position is searched, wherein the second depth position is shallower than the first depth position in a depth direction of the mirror base, comprising:
subtracting a preset difference value of the resolution test values from the maximum resolution test value of the imaging point at the preset position to obtain a target resolution test value of the imaging point at the preset position;
determining a second depth position in the lens holder according to the target resolution test value, wherein when the lens module is at the second depth position in the lens holder, the resolution test value of an imaging point at the preset position is the target resolution test value;
the fixing unit is used for fixing the lens module at the second depth position in the lens base in a dispensing mode, so that when the camera module is assembled to the electronic equipment, the offset of the actual position of the lens module of the camera module in the lens base, relative to the first depth position, caused by the extrusion of the electronic equipment shell is reduced.
4. The assembly device according to claim 3, wherein N is 5, and the resolution testing unit is specifically configured to: carry out the resolution test to the imaging point that lies in first default position, second default position, third default position, fourth default position and fifth default position in the present test image respectively, wherein, first default position is central point position, the second default position the third default position the fourth default position and the fifth default position is located respectively the upper left side, upper right side, left side below and the right side below of central point position, just the second default position the third default position the fourth default position and the fifth default position arrives the distance of central point position equals and is the default distance.
5. An assembling device of a camera module, the camera module comprising: a lens module and a lens holder for mounting the lens module, the assembly apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
respectively carrying out resolution test on N imaging points at preset positions in a current test image to obtain resolution test values of the imaging points at the N preset positions, wherein the current test image is formed by a current camera module, and N is greater than or equal to 1;
adjusting the position of the lens module in the lens holder, and returning to execute the step of respectively performing the resolution test on the imaging points located at the N preset positions in the current test image and the subsequent steps until a first depth position of the lens module in the lens holder is searched, wherein when the lens module is located at the first depth position in the lens holder, the resolution test value of the imaging point at one preset position in the N preset positions is the largest; when N is 1, the preset position is only 1 preset position; when N is larger than 1, the maximum image resolving power test value of the imaging point at one preset position is larger than the maximum image resolving power test values of the imaging points at the other N-1 preset positions;
determining a second depth position in the scope mount when the first depth position is searched, wherein the second depth position is shallower than the first depth position in a depth direction of the scope mount, comprising:
subtracting a preset difference value of the resolution test values from the maximum resolution test value of the imaging point at the preset position to obtain a target resolution test value of the imaging point at the preset position;
determining a second depth position in the lens holder according to the target resolution test value, wherein when the lens module is at the second depth position in the lens holder, the resolution test value of an imaging point at the preset position is the target resolution test value;
and fixing the lens module at the second depth position in the lens holder in a dispensing manner, so that when the camera module is assembled to the electronic equipment, the offset of the actual position of the lens module of the camera module in the lens holder, relative to the first depth position, caused by the extrusion of the electronic equipment shell is reduced.
6. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the assembly method according to any one of claims 1 to 2.
CN201710428542.2A 2017-06-08 2017-06-08 Camera module testing method and device and computer readable storage medium Expired - Fee Related CN107147905B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710428542.2A CN107147905B (en) 2017-06-08 2017-06-08 Camera module testing method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710428542.2A CN107147905B (en) 2017-06-08 2017-06-08 Camera module testing method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107147905A CN107147905A (en) 2017-09-08
CN107147905B true CN107147905B (en) 2020-06-05

Family

ID=59781037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710428542.2A Expired - Fee Related CN107147905B (en) 2017-06-08 2017-06-08 Camera module testing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107147905B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965865B (en) * 2018-07-12 2020-08-07 信利光电股份有限公司 Active alignment method and device for infrared module

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102636945A (en) * 2012-04-01 2012-08-15 深圳雅图数字视频技术有限公司 Projector and anti-dust device thereof
CN103747185A (en) * 2014-02-08 2014-04-23 深圳市维海软件有限公司 Zooming follow-up realizing method capable of enabling lens to shift with temperatures in auto-adaptive way
CN105208253A (en) * 2015-10-26 2015-12-30 苏州智华汽车电子有限公司 Buckle fixing type camera
CN105319801A (en) * 2014-07-07 2016-02-10 宁波舜宇光电信息有限公司 Auto-focus camera module lens focusing and positioning method
CN205067834U (en) * 2015-08-20 2016-03-02 宁波舜宇光电信息有限公司 A camera lens adsorption jig that is used for initiative of image module to aim at
WO2016087602A1 (en) * 2014-12-04 2016-06-09 Wavelens Autofocus camera and optical device with variable focal length intended to be integrated into such a camera
CN205450410U (en) * 2015-12-30 2016-08-10 瑞声光电科技(常州)有限公司 Camera lens shell and lens drive device
CN106161887A (en) * 2015-04-10 2016-11-23 宁波舜宇光电信息有限公司 A kind of image module adjusting means and antidote thereof
CN206020898U (en) * 2016-09-14 2017-03-15 海信集团有限公司 A kind of camera lens and laser television
CN206039120U (en) * 2016-07-22 2017-03-22 深圳市大疆创新科技有限公司 Camera subassembly and use shooting device and aircraft of this camera subassembly
CN106550175A (en) * 2015-09-16 2017-03-29 华为技术有限公司 A kind of photographic head, the method and device for adjusting photographic head image-capturing resolution

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3893922B2 (en) * 2000-10-18 2007-03-14 セイコーエプソン株式会社 Lens evaluation method and lens evaluation apparatus
JP2008113066A (en) * 2006-10-27 2008-05-15 Sony Corp Imaging device
CN205123858U (en) * 2015-10-26 2016-03-30 苏州智华汽车电子有限公司 Fixed camera of buckle

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102636945A (en) * 2012-04-01 2012-08-15 深圳雅图数字视频技术有限公司 Projector and anti-dust device thereof
CN103747185A (en) * 2014-02-08 2014-04-23 深圳市维海软件有限公司 Zooming follow-up realizing method capable of enabling lens to shift with temperatures in auto-adaptive way
CN105319801A (en) * 2014-07-07 2016-02-10 宁波舜宇光电信息有限公司 Auto-focus camera module lens focusing and positioning method
WO2016087602A1 (en) * 2014-12-04 2016-06-09 Wavelens Autofocus camera and optical device with variable focal length intended to be integrated into such a camera
CN106161887A (en) * 2015-04-10 2016-11-23 宁波舜宇光电信息有限公司 A kind of image module adjusting means and antidote thereof
CN205067834U (en) * 2015-08-20 2016-03-02 宁波舜宇光电信息有限公司 A camera lens adsorption jig that is used for initiative of image module to aim at
CN106550175A (en) * 2015-09-16 2017-03-29 华为技术有限公司 A kind of photographic head, the method and device for adjusting photographic head image-capturing resolution
CN105208253A (en) * 2015-10-26 2015-12-30 苏州智华汽车电子有限公司 Buckle fixing type camera
CN205450410U (en) * 2015-12-30 2016-08-10 瑞声光电科技(常州)有限公司 Camera lens shell and lens drive device
CN206039120U (en) * 2016-07-22 2017-03-22 深圳市大疆创新科技有限公司 Camera subassembly and use shooting device and aircraft of this camera subassembly
CN206020898U (en) * 2016-09-14 2017-03-15 海信集团有限公司 A kind of camera lens and laser television

Also Published As

Publication number Publication date
CN107147905A (en) 2017-09-08

Similar Documents

Publication Publication Date Title
JP7125541B2 (en) Video restoration method and apparatus, electronics, and storage media
JP5446797B2 (en) Imaging device
US9020281B2 (en) Ghost detection device and imaging device using the same, ghost detection method and ghost removal method
US9805452B2 (en) Image processing apparatus, image processing method, program, and recording medium
US20110043666A1 (en) Image processing apparatus, image processing method, and computer program storage medium
US9473700B2 (en) Camera systems and methods for gigapixel computational imaging
CN110855957B (en) Image processing method and device, storage medium and electronic equipment
CN106506973B (en) Focusing control method and device, electronic equipment and terminal equipment
KR20200117562A (en) Electronic device, method, and computer readable medium for providing bokeh effect in video
CN111654637B (en) Focusing method, focusing device and terminal equipment
CN113014790A (en) Defocus conversion coefficient calibration method, PDAF method and camera module
CN107147905B (en) Camera module testing method and device and computer readable storage medium
CN107147904A (en) Method of testing, device and and the computer-readable recording medium of camera module
US10212394B2 (en) Signal processing apparatus for focus detection, signal processing method, and image pickup apparatus
CN113132626B (en) Image processing method and electronic equipment
CN111556311B (en) Quality detection method and device for fixed-focus camera module and computer storage medium
CN112801882B (en) Image processing method and device, storage medium and electronic equipment
CN112419161B (en) Image processing method and device, storage medium and electronic equipment
US10326951B2 (en) Image processing apparatus, image processing method, image capturing apparatus and image processing program
JP2015104113A (en) Image processing device, imaging apparatus and image processing method
CN113141447B (en) Full-field-depth image acquisition method, full-field-depth image synthesis device, full-field-depth image equipment and storage medium
CN112689988A (en) Image processing method, image processing apparatus, removable platform, and storage medium
KR20200036264A (en) Method and electronic device for auto focusing
CN110012195B (en) Method and device for reducing interference on depth camera, terminal equipment and storage medium
CN112435231A (en) Image quality scale generation method, and method and device for evaluating image quality

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200605

CF01 Termination of patent right due to non-payment of annual fee