Method and device for determining position of lens group of periscopic camera module, medium and equipment
By iteratively optimizing the installation position of the periscope camera module lens group, the problem of inaccurate lens group positioning in the existing technology was solved, and the assembly accuracy and imaging quality were improved.
Patent Information
- Application Number
- CN202511053937.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-30
- Publication Date
- 2025-11-18
AI Technical Summary
Existing technology cannot accurately determine the installation position of the periscope camera module lens group relative to the prism, which affects assembly accuracy and imaging quality.
By controlling the first motor to move to the center of the stroke to install the prism, and using a laser rangefinder to determine the reference optical path distance, based on a preset optimization strategy, the actual optical path distance of the second motor is used as a variable to iteratively optimize until the optimization termination condition is met, and the optimal installation position of the lens group is output.
This improves the accuracy of the lens group's position, ensuring the assembly precision and imaging quality of the periscope camera module.
Smart Images

Figure CN120980339A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of camera module assembly, in particular to a method and device for determining the position of a lens group of a periscopic camera module, a medium and equipment. BACKGROUND
[0002] When assembling a camera module, it is necessary to ensure that the centers of the optical components, moving components and imaging components of the camera module are on an optical axis as much as possible.
[0003] In the prior art, the imaging component is used to take a picture of a white light source, and the brightest area is directly determined as the optical center position. Adjusting the optical center position to the center of the imaging component can ensure that the installation position of the lens group is in the centered state. However, for a periscopic camera module, the periscopic camera module includes a prism and more movable components. Therefore, the method for positioning the lens group in the prior art is not applicable to the periscopic camera module. If the method in the prior art is used to position the lens group in the periscopic camera module, it is difficult to accurately determine the position of the lens group relative to the prism to ensure that the lens group is in the centered state, thereby affecting the assembly precision of the periscopic camera module.
[0004] Therefore, there is an urgent need for a method for determining the position of a lens group of a periscopic camera module to solve the above problems in the prior art, improve the positioning accuracy of the lens group of the periscopic camera module, and further improve the assembly precision of the periscopic camera module to ensure the imaging quality of the periscopic camera module. SUMMARY
[0005] To solve or partially solve the technical problem that the prior art cannot accurately determine the installation position of the lens group of the periscopic camera module relative to the prism, affecting the assembly precision of the periscopic camera module and further affecting the imaging quality of the periscopic camera module, the embodiments of the present application provide a method and device for determining the position of a lens group of a periscopic camera module, a medium and equipment.
[0006] In a first aspect, the present application provides a method for determining the position of a lens group of a periscopic camera module, the periscopic camera module comprising a prism and a lens group; the method comprising:
[0007] controlling a first motor to move to the center of the travel of the first motor, mounting the prism on the first motor, and determining the reference optical path distance of the prism;
[0008] based on a preset optimization strategy, taking the reference optical path distance as a reference, taking the actual optical path distance of the prism when the second motor is at the starting position as an input variable, iteratively optimizing the installation position of the lens group until the optimization termination condition is met, and outputting the optimal installation position of the lens group; wherein,
[0009] The lens group is mounted on the second motor, and the second motor is used to drive the lens group to move.
[0010] In the above scheme, based on a preset optimization strategy, taking the reference optical path distance as a reference, and taking the actual optical path distance of the prism when the second motor is at a starting position as an input variable, the installation position of the lens group is iteratively optimized until the optimization termination condition is met, and the optimal installation position of the lens group is output, comprising:
[0011] A first distance difference value between the actual optical path distance of the prism and the reference optical path distance when the second motor is at the starting position of the i-th iteration is obtained.
[0012] It is judged whether the absolute value of the first distance difference value is less than or equal to a preset threshold value, if yes, it is determined that the optimization termination condition is met, and the starting position of the second motor at the i-th iteration is determined as the optimal installation position of the lens group.
[0013] If not, the target positions that the second motor should reach are determined, and second distance difference values between the actual optical path distance of the prism and the reference optical path distance when the second motor is at the target positions are respectively determined.
[0014] The minimum distance difference value is determined from the first distance difference value and each second distance difference value, and the position corresponding to the minimum distance difference value is determined as the starting position of the second motor at the i+1-th iteration.
[0015] Wherein,
[0016] The starting position of the first iteration of the second motor is the stroke center of the second motor.
[0017] In the above scheme, the determination of the target positions that the second motor should reach comprises:
[0018] The divergence distance corresponding to each target position at the i-th iteration is determined.
[0019] The starting position of the second motor at the i-th iteration is taken as the center, and the divergence distance is taken as the radius to diverge the target positions that the second motor should reach around; wherein,
[0020] The target positions corresponding to the first iteration of the second motor are preset initial positions; in the same coordinate system, the angles of the target positions corresponding to the i-th iteration are consistent with the angles of the target positions corresponding to the i-1-th iteration.
[0021] In the above scheme,
[0022] The determining the divergence distance corresponding to each target position in the i-th iteration comprises:
[0023] The i-1-th iteration corresponding to each target position is obtained, a first circle is fitted according to the i-1-th iteration corresponding to each target position, and the radius of the first circle is determined;
[0024] The second circle radius corresponding to the i-th iteration is determined according to the preset reduction ratio coefficient and the radius of the first circle; the reduction ratio coefficient is less than 1;
[0025] The second circle radius corresponding to the i-th iteration is determined as the divergence distance corresponding to each target position in the i-th iteration.
[0026] In the above scheme, the second circle radius corresponding to the i-th iteration is determined according to the preset reduction ratio coefficient and the radius of the first circle, comprising:
[0027] The second circle radius r' is determined according to the formula r'=r*η; wherein,
[0028] The r is the radius of the first circle, and the η is the reduction ratio coefficient.
[0029] In the above scheme, the reference light path distance of the prism is determined, comprising:
[0030] The laser range finder is arranged on one side of the prism, and the laser range finder is used to emit a light beam to the prism;
[0031] The ranging value of the laser range finder is obtained, and the ranging value is the reference light path distance of the prism.
[0032] In a second aspect of the present application, a device for determining the lens group position of a periscope camera module is provided, the periscope camera module comprising a prism and a lens group; the device comprises:
[0033] A determining unit is configured to control a first motor to move to a stroke center of the first motor, mount the prism on the first motor, and determine a reference light path distance of the prism;
[0034] An iterative optimization unit is configured to perform iterative optimization on the installation position of the lens group based on a preset optimization strategy, taking the reference light path distance as a reference and taking the actual light path distance of the prism when a second motor is at a starting position as an input variable, until an optimization termination condition is met, and output an optimal installation position of the lens group; wherein,
[0035] The lens group is mounted on the second motor, and the second motor is configured to drive the lens group to move.
[0036] In the scheme, the iteration optimization unit is specifically configured to:
[0037] acquire a first distance difference value between the actual optical path distance of the prism and the reference optical path distance when the second motor is at the starting position of the i th iteration;
[0038] determine whether the absolute value of the first distance difference value is less than or equal to a preset threshold value, and if yes, determine that the optimization termination condition is met, and determine the starting position of the second motor at the i th iteration as the optimal installation position of the lens group;
[0039] if not, determine the target positions that the second motor should reach, respectively determine second distance difference values between the actual optical path distance of the prism and the reference optical path distance when the second motor is at the target positions, and
[0040] determine a minimum distance difference value from the first distance difference value and each of the second distance difference values, and determine the position corresponding to the minimum distance difference value as the starting position of the second motor at the i+1 th iteration;
[0041] wherein,
[0042] the starting position of the first iteration of the second motor is the stroke center of the second motor.
[0043] In a third aspect of the present application, a computer readable storage medium is provided, which stores a computer program, and the program is executed by a processor to implement the steps of the method in any one of the first aspect.
[0044] In a third aspect of the present application, a computer device is provided, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method in any one of the first aspect when executing the program.
[0045] The present application provides a method, device, medium and equipment for determining the position of a periscope camera module lens group, the first motor is moved to the stroke center of the first motor, the prism is installed on the first motor, and the reference light path distance of the prism is determined; based on a preset optimization strategy, taking the reference light path distance as the reference, and taking the actual light path distance of the prism when the second motor is at the starting position as the input variable, the installation position of the lens group is iteratively optimized until the optimization termination condition is met, and the optimal installation position of the lens group is output; wherein the lens group is installed on the second motor, and the second motor is used to drive the lens group to move; in this way, the reference light path distance is taken as the reference, and the actual light path distance is taken as the variable for iterative adjustment, the installation position is adjusted according to the deviation of the actual light path distance from the reference value in each iteration, and the ideal installation position of the lens group is gradually approached, thereby improving the accuracy of the lens group position, ensuring the assembly accuracy of the periscope camera module, and improving the imaging quality of the periscope camera module. BRIEF DESCRIPTION OF DRAWINGS
[0046] Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The accompanying drawings are included to provide a description of the preferred embodiments and are not intended to limit the scope of the application. Moreover, the same reference numerals are used throughout the same figures. In the drawings:
[0047] Figure 1 A schematic diagram of the relative positions of the components of a periscope camera module according to an embodiment of the present application is shown;
[0048] Figure 2 A schematic diagram of replacing the photosensitive chip in the periscope camera module with a laser range finder according to an embodiment of the present application is shown;
[0049] Figure 3 A flowchart of a method for determining the position of a periscope camera module lens group according to an embodiment of the present application is shown;
[0050] Figure 4 A schematic diagram of the offset between the incident light path and the outgoing light path when the lens group position of a periscope camera module is not suitable according to an embodiment of the present application is shown;
[0051] Figure 5 A schematic diagram of the structure of a device for determining the position of a periscope camera module lens group according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0052] Exemplary embodiments of the present disclosure will be described in greater detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the present disclosure to those skilled in the art.
[0053] The present application provides a method for determining the position of a periscope camera lens group, which includes a prism, a lens group and a photosensitive chip. When assembling the periscope camera module, as shown in the figure, ideally, the centers of the prism 11, the lens group 12 and the photosensitive chip 13 should be on the same optical axis. Since the present application mainly determines the installation position of the lens group 12 relative to the prism 11, as shown in the figure, the position of the photosensitive chip 13 is replaced by a laser range finder 14, and the installation position of the lens group can be determined according to the laser range finder 14. Figure 1 Figure 2
[0054] As shown in the figure, the method mainly includes the following steps: Figure 3
[0055] S310, control the first motor to move to the center of the travel of the first motor, install the prism on the first motor, and determine the reference optical path distance of the prism.
[0056] The first motor is a driving component of the prism for driving the prism to move, and the second motor is a driving component of the lens group for driving the lens group to move. The second motor is located on one side of the first motor.
[0057] The first motor and the second motor can be pre-installed on a mechanical table. When it is necessary to determine the installation position of the lens group relative to the prism, it is necessary to control the first motor to move to the center of the travel of the first motor, and control the second motor to move to the center of the travel of the second motor. The center of the travel can be understood as half of the total travel of the motor; for example, if the total travel of the first motor is 0-2047 code, then the center of the travel of the first motor is 1024 code.
[0058] Then install the prism on the first motor, and determine the reference optical path distance of the prism, including:
[0059] Set the laser range finder on one side of the prism, and use the laser range finder to emit a light beam to the prism;
[0060] Obtain the ranging value of the laser range finder, which is the reference optical path distance of the prism.
[0061] Specifically, when the laser rangefinder emits a beam of light towards the prism, the beam enters the prism and is then reflected back to the laser rangefinder's receiver. At this point, the range measurement value of the laser rangefinder can be obtained. This range measurement value is the reference optical path distance of the prism when the lens group is not installed.
[0062] S311, based on a preset optimization strategy, taking the reference optical path distance as a benchmark and the actual optical path distance of the prism when the second motor is in the starting position as an input variable, iteratively optimizes the installation position of the lens group until the optimization termination condition is met, and outputs the optimal installation position of the lens group.
[0063] The lens assembly is then mounted on the second motor, which drives the lens assembly to move. If the lens assembly's mounting position is unsuitable after mounting, such as... Figure 4 As shown, after the emitted beam of a laser rangefinder is reflected by the prism and lens assembly, there may be a certain offset between the outgoing and incoming light paths. The purpose of this invention is to determine the optimal installation position of the lens module and reduce the offset between the incoming and outgoing light paths.
[0064] In one implementation, based on a preset optimization strategy, using a reference optical path distance as a benchmark and the actual optical path distance of the prism when the second motor is in the initial position as an input variable, the installation position of the lens assembly is iteratively optimized until the optimization termination condition is met, and the optimal installation position of the lens assembly is output, including:
[0065] Obtain the first distance difference between the actual optical path distance of the prism and the reference optical path distance when the second motor is at the starting position of the i-th iteration;
[0066] Determine whether the absolute value of the first distance difference is less than or equal to a preset threshold. If so, determine that the optimization termination condition is met, and determine the starting position of the second motor in the i-th iteration as the optimal installation position of the lens group.
[0067] If not, determine the target positions that the second motor should reach, and determine the second distance difference between the actual optical path distance of the prism and the reference optical path distance when the second motor is at each target position;
[0068] The minimum distance difference is determined from the first distance difference and all the second distance differences, and the position corresponding to the minimum distance difference is determined as the starting position of the second motor in the (i+1)th iteration; where,
[0069] The starting position of the first iteration of the second motor is the stroke center of the second motor.
[0070] In one implementation, determining the target positions that the second motor should reach includes:
[0071] determine a divergence distance corresponding to each target position in the i-th iteration;
[0072] diverge each target position to which the second motor should reach from the starting position of the second motor in the i-th iteration as the center and the divergence distance as the radius; wherein,
[0073] each target position corresponding to the second motor in the first iteration is a preset initial position; in the same coordinate system, the angle of each target position corresponding to the i-th iteration is consistent with the angle of each target position corresponding to the i-1-th iteration.
[0074] In an embodiment, the method for determining the divergence distance corresponding to each target position in the i-th iteration comprises:
[0075] obtaining each target position corresponding to the i-1-th iteration, fitting a first circle according to each target position corresponding to the i-1-th iteration, and determining the radius of the first circle;
[0076] determining the second circle radius corresponding to the i-th iteration according to the preset reduction coefficient and the radius of the first circle; the reduction coefficient is less than 1;
[0077] determining the second circle radius corresponding to the i-th iteration as the divergence distance corresponding to each target position in the i-th iteration.
[0078] In an embodiment, the method for determining the second circle radius corresponding to the i-th iteration according to the preset reduction coefficient and the radius of the first circle comprises:
[0079] determining the second circle radius r' according to the formula r'=r x η; wherein,
[0080] r is the radius of the first circle, and η is the reduction coefficient.
[0081] Specifically, in the first iteration, the starting position of the second motor is generally the default position of the machine, such as A(0, 0). In the first iteration, each target position corresponding to the second motor is a preset initial position. The number of target positions corresponding to each iteration is the same, such as 8. Each target position corresponding to the second motor in the first iteration can be: A1-(L, L), A2-(-L, L), A3-(-L, -L), A4-(L, -L),
[0082] It can be seen that each target position corresponding to the first iteration can form a first circle, and the radius of the first circle is
[0083] In the first iteration, the second motor is located at the starting position of the first iteration, the actual optical path distance of the prism when the second motor is at the starting position (point A) is measured by using the laser range finder, whether the absolute value of the first distance difference between the actual optical path distance and the reference optical path distance is less than or equal to the preset distance threshold value is judged, if yes, it is considered that the starting position of the second motor in the first iteration is the optimal installation position of the lens group, and the iteration is exited.
[0084] If the absolute value of the first distance difference is greater than the distance threshold value, it means that the optimal installation position of the lens group has not been determined, and the second motor needs to be controlled to move from the starting position of the first iteration to each of the target positions A1-A8; the second distance difference between the actual optical path distance of the prism and the reference optical path distance when the second motor is at the target positions A1-A8 is determined respectively.
[0085] The first distance difference and all the second distance differences are sorted in ascending order, and the minimum distance difference is obtained.
[0086] The position corresponding to the minimum distance difference is determined as the starting position of the second motor in the second iteration.
[0087] It should be noted that the minimum distance difference obtained may be the first distance difference or any of the second distance differences. If the minimum distance difference is the first distance difference, the starting positions of the first iteration and the second iteration are the same, but the target positions corresponding to the first iteration and the target positions corresponding to the second iteration are different. The target positions corresponding to the first iteration are greater than the target positions corresponding to the second iteration. That is, the target positions corresponding to the second iteration are obtained by reducing the target positions corresponding to the first iteration by a certain reduction ratio.
[0088] In the second iteration, the first distance difference between the actual optical path distance of the prism and the reference optical path distance when the second motor is at the starting position of the second iteration is continuously obtained.
[0089] It is continuously judged whether the first distance difference is less than or equal to the preset distance threshold value, if yes, the starting position of the second motor in the second iteration is determined as the optimal installation position of the lens group.
[0090] If not, a first circle is obtained by fitting a circle to the positions A1-A8, and the radius of the first circle is determined. The second circle radius corresponding to the second iteration is determined according to the reduction ratio.
[0091] Then, the starting position of the second motor in the second iteration is taken as the center of a circle, a second circular radius is taken as the divergence distance, and the divergence angles of the target positions in the first iteration are taken as the reference to determine the corresponding target positions in the second iteration. The second distance difference between the actual optical path distance of the prism and the reference optical path distance when the second motor is at the corresponding target positions in the second iteration is determined. The minimum distance difference is determined from the first distance difference in the second iteration and the second distance differences, and the position corresponding to the minimum distance difference is determined as the starting position of the second motor in the third iteration. The above actions are repeated until the minimum distance difference less than or equal to the distance threshold is determined, and the iteration is exited.
[0092] For example, it is assumed that the first distance difference between the actual optical path distance of the prism and the reference optical path distance when the second motor is at the A0 position is d0.
[0093] The second distance differences between the actual optical path distance of the prism and the reference optical path distance when the second motor is at the A1-A8 positions are d1-d8 in turn. d0-d8 are sorted in ascending order, and the minimum distance difference d1 is obtained. Then, the target position A1 corresponding to d1 is determined as the starting position of the second motor in the second iteration.
[0094] In order to reduce the search range, the corresponding target positions of the second motor in the second iteration are determined by the 8 target positions A1-A8 in the first iteration.
[0095] Specifically, first, a first circle is fitted according to the 8 target positions in the first iteration. The radius of the first circle is Then, the second circular radius corresponding to the current iteration is determined according to the preset reduction ratio coefficient and the radius of the first circle. It is assumed that the reduction ratio coefficient is 2 / 3, and the radius of the second circle corresponding to the second iteration is
[0096] The target position corresponding to the minimum distance difference d1 is A1, and the 8 target positions in the second iteration are determined according to the divergence angles of the 8 target positions in the first iteration with A1 as the center and as the radius. In this way, the range for searching the optimal installation position is reduced.
[0097] In this way, the actual optical path distance is taken as the variable to iteratively adjust the reference optical path distance. The installation position is adjusted according to the deviation between the actual optical path distance and the reference value in each iteration, and the ideal installation position of the lens group is gradually approached, thereby improving the accuracy of the lens group position and ensuring the assembly accuracy of the periscope camera module and the imaging quality of the periscope camera module.
[0098] Based on the same inventive concept as in the foregoing embodiments, the present embodiment also provides a device for determining a position of a periscope camera module lens group, as shown in Figure 5 The device comprises:
[0099] A determining unit 51 is configured to control the first motor to move to a stroke center of the first motor, install the prism on the first motor, and determine a reference optical path distance of the prism.
[0100] An iterative optimization unit 52 is configured to, based on a preset optimization strategy, take the reference optical path distance as a reference, take an actual optical path distance of the prism when a starting position of the second motor as an input variable, perform iterative optimization on the installation position of the lens group until an optimization termination condition is met, and output an optimal installation position of the lens group; wherein,
[0101] The lens group is installed on the second motor, and the second motor is configured to drive the lens group to move.
[0102] In an embodiment, the iterative optimization unit 52 is specifically configured to:
[0103] Obtain a first distance difference value between the actual optical path distance of the prism and the reference optical path distance when the starting position of the second motor at the i-th iteration;
[0104] Determine whether an absolute value of the first distance difference value is less than or equal to a preset threshold value, and if yes, determine that the optimization termination condition is met, and determine the starting position of the second motor at the i-th iteration as the optimal installation position of the lens group.
[0105] If not, determine the target positions that the second motor should reach, respectively determine second distance difference values between the actual optical path distance of the prism and the reference optical path distance when the second motor is at the target positions, and
[0106] From the first distance difference value and each of the second distance difference values, determine a minimum distance difference value, and determine a position corresponding to the minimum distance difference value as the starting position of the second motor at the i+1-th iteration.
[0107] In an embodiment, the iterative optimization unit 52 is specifically configured to:
[0108] The starting position of the second motor at the first iteration is a stroke center of the second motor.
[0109] In an embodiment, the iterative optimization unit 52 is specifically configured to:
[0110] Determine a divergence distance corresponding to each target position at the i-th iteration.
[0111] the second motor is scattered to each target position to which the second motor should reach, with the starting position of the second motor in the i th iteration as the center and the divergence distance as the radius; wherein,
[0112] the target positions corresponding to the second motor in the first iteration are preset initial positions; in the same coordinate system, the divergence angle of each target position corresponding to the i th iteration is consistent with the divergence angle of each target position corresponding to the i-1 th iteration.
[0113] In an embodiment, the iterative optimization unit 52 is further configured to:
[0114] In a non-first iteration, the target position corresponding to the minimum distance difference in the last iteration is determined as the starting position of the second motor in the current iteration.
[0115] In an embodiment, the iterative optimization unit 52 is specifically configured to:
[0116] obtain each target position corresponding to the i-1 th iteration, fit a first circle according to each target position corresponding to the i-1 th iteration, and determine the radius of the first circle;
[0117] determine the second circle radius corresponding to the i th iteration according to a preset reduction coefficient and the radius of the first circle; the reduction coefficient is less than 1;
[0118] determine the divergence distance corresponding to each target position in the i th iteration as the second circle radius corresponding to the i th iteration.
[0119] In an embodiment, the iterative optimization unit 52 is specifically configured to:
[0120] determine the second circle radius r' according to the formula r'=r x η; wherein,
[0121] r is the radius of the first circle, and η is the reduction coefficient.
[0122] In an embodiment, the determination unit 51 is configured to:
[0123] set a laser range finder on one side of the prism, and emit a light beam to the prism by using the laser range finder;
[0124] obtain a ranging value of the laser range finder, and the ranging value is a reference light path distance of the prism.
[0125] Since the device introduced in the embodiment of the present application is the device used in the method for determining the position of the lens group of the periscope camera module, the specific structure and deformation of the device can be understood by those skilled in the art based on the method introduced in the embodiment of the present application, and thus will not be described here again. Any device used in the method of the embodiment of the present application belongs to the scope of the present application.
[0126] Based on the same inventive concept, the embodiment provides a computer device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements any step of the method described above when executing the computer program.
[0127] Based on the same inventive concept, the embodiment provides a computer readable storage medium, which stores a computer program, wherein the computer program is executed by a processor to implement the steps of any method described above.
[0128] Through one or more embodiments of the present application, the present application has the following beneficial effects or advantages:
[0129] The present application provides a method, device, medium and equipment for determining the position of the lens group of a periscope camera module, a first motor is moved to the center of the stroke of the first motor, the prism is installed on the first motor, and the reference light path distance of the prism is determined; based on a preset optimization strategy, taking the reference light path distance as the reference and the actual light path distance of the prism when the second motor is at the starting position as the input variable, the installation position of the lens group is iteratively optimized until the optimization termination condition is met, and the optimal installation position of the lens group is output; wherein the lens group is installed on the second motor, and the second motor is used to drive the lens group to move; in this way, the actual light path distance is taken as the variable to iteratively adjust the installation position according to the deviation between the actual light path distance and the reference value, and the ideal installation position of the lens group is gradually approached, thereby improving the accuracy of the lens group position and ensuring the assembly accuracy of the periscope camera module and the imaging quality of the periscope camera module.
[0130] The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems can be used with programs in accordance with the teachings herein, or it can prove convenient to construct more specialized apparatus to perform the required method steps. The required structure for a variety of these systems will be apparent from the description above. In addition, the present application is not intended to be limited to any particular programming language. It will be appreciated that there are many programming languages that can be used to implement the teachings herein, and any such languages could be used. The descriptions above are presented by way of example only and should not be taken as limiting.
[0131] In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application can be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been described in detail in order not to obscure the understanding of this description.
[0132] Similarly, it is to be understood that the embodiments of the present application can be used in the exact form disclosed herein, or with minor modifications, and the present application is not limited to the exact form disclosed herein but is only limited by the claims. Similarly, it should be apparent that ones skilled in the art, upon possessing the teachings of the embodiments of the present application as set forth in the description, can affect minor modifications, changes and substitutions of equivalents of the specific details described herein without departing from the spirit of the present application. It is therefore desired to be protected in the broadest scope of the appended claims to cover and include all such modifications, changes and substitutions of equivalents of the specific details disclosed herein.
[0133] Those skilled in the art will appreciate that modules in the apparatuses in the embodiments can be adapted and placed in one or more apparatuses other than the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and further can be divided into more sub-modules or sub-units or sub-components. Any combination of all the features disclosed in the specification (including the accompanying claims, abstract and drawings), and any method or apparatus of any combination of all the features disclosed in the specification (including the accompanying claims, abstract and drawings) can be taken, except that at least some of such features and / or processes or units are mutually exclusive. Unless explicitly stated otherwise, each feature disclosed in the specification (including the accompanying claims, abstract and drawings) can be replaced by an alternative feature providing the same, equivalent or similar functionality.
[0134] Further, those skilled in the art will appreciate that a combination of features of different embodiments means within the scope of the present application and forms a different embodiment. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
[0135] The various component embodiments of the present application can be implemented in hardware, or as software modules running in one or more processors, or in combinations thereof. As will be appreciated by one skilled in the art, a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all of the functionality of some or all of the components in the gateway, proxy server, system according to embodiments of the present application. The present application can also be implemented as a program of instructions for performing part or all of the methods described herein, e.g., a computer program and a computer program product. Such program of the present application can be stored on a computer readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, or provided on a carrier medium, or in any other form.
[0136] It should be noted that the above-mentioned embodiments illustrate rather than limit the application, and that one skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word 'comprising' does not exclude the presence of elements or steps other than those listed in a claim. The word 'a' or 'an' preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the system claims enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the word 'at least' followed by a list of one or more items means that any item in the list can be present or there can be more than one of a certain item. The use of the terms 'first','second' and 'third', etc. does not limit the quantity and / or order of those terms. These terms are used to distinguish between two entities or steps involved with the application.
[0137] Although the preferred embodiments of the application have been described, those skilled in the art will be able to make additional changes and modifications thereto without departing from the scope of the application. Accordingly, the appended claims are intended to cover all such changes and modifications that fall within the scope of the application.
[0138] The above-described embodiments are merely preferred embodiments of the present application, but not to confine the protection scope of the present application. Any modification, equivalent replacement and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for determining the position of a periscope camera module lens assembly, characterized in that, The periscope camera module includes a prism and a lens assembly; the method includes: Control the first motor to move to the center of the first motor's stroke, mount the prism on the first motor, and determine the reference optical path distance of the prism; Based on a preset optimization strategy, using the reference optical path distance as a benchmark and the actual optical path distance of the prism when the second motor is in the initial position as an input variable, the installation position of the lens assembly is iteratively optimized until the optimization termination condition is met, and the optimal installation position of the lens assembly is output; wherein... The lens assembly is mounted on the second motor, which drives the lens assembly to move.
2. The method as described in claim 1, characterized in that, The preset optimization strategy, using the reference optical path distance as a benchmark and the actual optical path distance of the prism when the second motor is in the initial position as an input variable, iteratively optimizes the installation position of the lens assembly until the optimization termination condition is met, and outputs the optimal installation position of the lens assembly, including: Obtain the first distance difference between the actual optical path distance of the prism and the reference optical path distance when the second motor is at the starting position of the i-th iteration; Determine whether the absolute value of the first distance difference is less than or equal to a preset threshold. If so, determine that the optimization termination condition is met, and determine the starting position of the second motor in the i-th iteration as the optimal installation position of the lens group. If not, then determine the target positions that the second motor should reach, and determine the second distance difference between the actual optical path distance of the prism and the reference optical path distance when the second motor is at each target position; The minimum distance difference is determined from the first distance difference and each of the second distance differences, and the position corresponding to the minimum distance difference is determined as the starting position of the second motor in the (i+1)th iteration; wherein, The starting position of the first iteration of the second motor is the stroke center of the second motor.
3. The method as described in claim 2, characterized in that, Determining the target positions that the second motor should reach includes: Determine the divergence distance corresponding to each target position at the i-th iteration; Using the starting position of the second motor in the i-th iteration as the center, and the divergence distance as the radius, the target positions that the second motor should reach are diverged outwards; wherein, The target positions corresponding to the second motor in the first iteration are preset initial positions; in the same coordinate system, the divergence angle of each target position corresponding to the i-th iteration is consistent with the divergence angle of each target position corresponding to the (i-1)-th iteration.
4. The method as described in claim 3, characterized in that, Determining the divergence distance corresponding to each target position at the i-th iteration includes: Obtain the target positions corresponding to the (i-1)th iteration, fit a first circle based on the target positions corresponding to the (i-1)th iteration, and determine the radius of the first circle; The radius of the second circle corresponding to the i-th iteration is determined according to a preset reduction ratio and the radius of the first circle; the reduction ratio is less than 1. The radius of the second circle corresponding to the i-th iteration is determined as the divergence distance corresponding to each target position at the i-th iteration.
5. The method as described in claim 4, characterized in that, The step of determining the radius of the second circle corresponding to the i-th iteration according to a preset reduction ratio and the radius of the first circle includes: The radius r′ of the second circle is determined according to the formula r′=r×η; where... r is the radius of the first circle, and η is the scaling factor.
6. The method as described in claim 1, characterized in that, Determining the reference optical path distance of the prism includes: A laser rangefinder is positioned on one side of the prism, and a laser beam is emitted toward the prism using the laser rangefinder; The ranging value of the laser rangefinder is obtained, and the ranging value is the reference optical path distance of the prism.
7. A device for determining the position of a periscope camera module lens group, characterized in that, The periscope camera module includes a prism and a lens assembly; the device includes: A determining unit is used to control the first motor to move to the stroke center of the first motor, install the prism on the first motor, and determine the reference optical path distance of the prism; An iterative optimization unit is used to iteratively optimize the installation position of the lens assembly based on a preset optimization strategy, using the reference optical path distance as a benchmark and the actual optical path distance of the prism when the second motor is in the initial position as an input variable, until the optimization termination condition is met, and output the optimal installation position of the lens assembly; wherein... The lens assembly is mounted on the second motor, which drives the lens assembly to move.
8. The apparatus as claimed in claim 7, characterized in that, The iterative optimization unit is specifically used for: Obtain the first distance difference between the actual optical path distance of the prism and the reference optical path distance when the second motor is at the starting position of the i-th iteration; Determine whether the absolute value of the first distance difference is less than or equal to a preset threshold. If so, determine that the optimization termination condition is met, and determine the starting position of the second motor in the i-th iteration as the optimal installation position of the lens group. If not, then determine the target positions that the second motor should reach, and determine the second distance difference between the actual optical path distance of the prism and the reference optical path distance when the second motor is at each target position; The minimum distance difference is determined from the first distance difference and each of the second distance differences, and the position corresponding to the minimum distance difference is determined as the starting position of the second motor in the (i+1)th iteration; wherein, The starting position of the first iteration of the second motor is the stroke center of the second motor.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method according to any one of claims 1-7.
10. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the method according to any one of claims 1-7.