Method and apparatus for identifying a lens and a camera pair
By using markers and camera images to determine alignment during the lens alignment process, the problem of frequent lens alignment adjustments was solved, achieving efficient and accurate lens and camera alignment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2023-07-28
- Publication Date
- 2026-06-05
Smart Images

Figure CN119439421B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of lens alignment, and more particularly to a marker, a method and apparatus for adjusting the alignment of a lens with a camera. Background Technology
[0002] In some manufacturing fields where lenses are designed, lens centering is required. For example, in the manufacturing of electronic devices, when testing cameras, the equipment used for testing electronic devices needs to use repeaters to simulate increasing the shooting distance between the electronic device and the test image. Using a repeater requires that the center of the repeater and the corresponding camera on the electronic device be aligned vertically. Within the same electronic device project, different test items correspond to different cameras, requiring adjustments to the repeater's position. In different electronic device projects, because the camera positions change, the positions of the repeater and the corresponding camera need to be readjusted. Furthermore, routine inspections often require readjustment if the repeater's position is misaligned, making repeater positioning a frequent task. Summary of the Invention
[0003] To overcome the problems existing in the related technologies, this disclosure provides a method and apparatus for aligning an identification element, an adjusting lens, and a camera.
[0004] According to a first aspect of the present disclosure, an identifier is provided for centering adjustment of a lens, comprising: a body, the body being a rotating body centered on the optical axis of the lens; and an identifier portion located at the center of the body, the identifier portion allowing light to pass through.
[0005] In some embodiments, the marking portion is provided with scale.
[0006] In some embodiments, the body is a low-transmittance part, and the marking part is a cutout.
[0007] In some embodiments, the marking portion is one of a hole-shaped, linearly distributed, or surface-shaped distribution.
[0008] In some embodiments, the body includes a light-shielding portion, the light transmittance of which is less than the light transmittance of the marking portion.
[0009] In some embodiments, the light-shielding portion includes a black coating or a black dye.
[0010] In some embodiments, the body has a shape adapted to the light-incident surface of the lens; and / or the body has a shape adapted to the light-outceasing surface of the lens.
[0011] In some embodiments, the marker includes a first body and a second body disposed opposite to each other in the direction in which light passes, wherein a first marking portion is disposed at the center of the first body and a second marking portion is disposed at the center of the second body.
[0012] According to a second aspect of the present disclosure, a method for adjusting the alignment of a lens and a camera is provided. The method includes: acquiring a photograph of the lens through the camera, wherein the lens and the marker are arranged along the optical axis of the camera; determining whether the center of the lens and the center of the camera coincide along the optical axis by comparing a first center of the photograph with a second center of the marker, wherein the marker is located at the center of the body of the marker; and adjusting the lens and / or adjusting the camera until the center of the lens and the center of the camera coincide along the optical axis if the center of the lens and the center of the camera do not coincide.
[0013] In some embodiments, determining whether the center of the lens and the center of the camera coincide along the optical axis by comparing the first center of the photograph with the second center of the marker in the photograph includes: obtaining the first center of the photograph, wherein the first center is the intersection of the two diagonals of the photograph, and obtaining the geometric center of the marker as the second center; determining whether the center of the lens and the center of the camera coincide along the optical axis based on whether the first center and the second center coincide along the optical axis.
[0014] In some embodiments, adjusting the lens movement and / or adjusting the camera movement until the center of the lens and the center of the camera coincide along the optical axis, based on the fact that the center of the lens and the center of the camera do not coincide along the optical axis, includes: obtaining a first relative offset between the first center and the second center when the center of the lens and the center of the camera do not coincide along the optical axis; and adjusting the lens movement and / or adjusting the camera movement according to the first relative offset until the center of the lens and the center of the camera coincide along the optical axis.
[0015] In some embodiments, acquiring a photo through the lens via the camera includes: controlling the camera to focus on the center and taking a picture; and acquiring the photo taken by the camera.
[0016] In some embodiments, the method further includes: determining whether the optical axis of the lens is parallel to the direction from the first mark to the second mark by comparing whether the center of the first mark in the photograph coincides with the center of the second mark; and adjusting the lens to rotate until it is parallel based on the fact that the optical axis of the lens is not parallel to the direction from the first mark to the second mark.
[0017] In some embodiments, adjusting the lens rotation until it is parallel to the direction from the first marking portion to the second marking portion, based on the fact that the optical axis of the lens is not parallel to the direction from the first marking portion to the second marking portion, includes: obtaining a second relative offset between the center of the first marking portion and the center of the second marking portion; and adjusting the lens movement according to the second relative offset until the optical axis of the lens is parallel to the direction from the first marking portion to the second marking portion.
[0018] In some embodiments, the method further includes: obtaining a first coordinate of the lens and a second coordinate of the camera based on the fact that the center of the lens coincides with the center of the camera along the optical axis.
[0019] According to a third aspect of the present disclosure, an adjustment lens and camera alignment device is provided, comprising: an acquisition unit for acquiring a photograph of the lens through the camera, wherein the lens and the marker are arranged along the optical axis of the camera; and a judgment unit for determining whether the center of the lens and the center of the camera coincide along the optical axis by comparing a first center of the photograph with a second center of the marker, wherein the marker is located at the center of the body of the marker.
[0020] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: In this disclosure, for the marking member used for lens alignment (i.e., along the optical axis, the center of the lens coincides with the center of the camera), a marking portion is provided on the marking member. The marking portion is located at the center of the body and is configured to allow light to pass through. With this configuration, the lens can be aligned in the lens alignment process by utilizing the distance difference between the light passing through the marking portion and the center of the lens.
[0021] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0022] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0023] Figure 1 This is a schematic diagram of the structure of an identification element according to an exemplary embodiment.
[0024] Figure 2 This is a plan view of an identification element according to an exemplary embodiment.
[0025] Figure 3 This is a schematic diagram of a lens pair according to an exemplary embodiment.
[0026] Figure 4 This is a plan view of an identification element according to an exemplary embodiment.
[0027] Figure 5 This is a plan view of an identification element according to an exemplary embodiment.
[0028] Figure 6 This is a schematic diagram of a lens pair according to an exemplary embodiment.
[0029] Figure 7 This is a schematic diagram of a lens pair according to an exemplary embodiment.
[0030] Figure 8 This is a schematic diagram of a lens pair according to an exemplary embodiment.
[0031] Figure 9 This is a flowchart illustrating a method for aligning a lens with a camera according to an exemplary embodiment.
[0032] Figure 10 This is a flowchart illustrating a method for aligning a lens with a camera according to an exemplary embodiment.
[0033] Figure 11 This is a flowchart illustrating a method for aligning a lens with a camera according to an exemplary embodiment.
[0034] Figure 12 This is a flowchart illustrating a method for aligning a lens with a camera according to an exemplary embodiment.
[0035] Figure 13 This is a flowchart illustrating a method for aligning a lens with a camera according to an exemplary embodiment.
[0036] Figure 14 This is a block diagram illustrating an apparatus for adjusting the alignment of a lens with a camera according to an exemplary embodiment.
[0037] Figure 15 This is a flowchart illustrating a method for aligning a lens with a camera according to an exemplary embodiment.
[0038] Figure 16 This is a block diagram illustrating an apparatus according to an exemplary embodiment. Detailed Implementation
[0039] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0040] In some manufacturing fields where lenses are designed, lens centering is required. For example, in the manufacturing of electronic devices, when testing cameras, the equipment used for testing electronic devices needs to use repeaters to simulate increasing the shooting distance between the electronic device and the test image. Using a repeater requires that the center of the repeater and the corresponding camera on the electronic device be aligned vertically. Within the same electronic device project, different test items correspond to different cameras, requiring adjustments to the repeater's position. Furthermore, in different electronic device projects, because the camera positions change, the positions of the repeater and the corresponding camera need to be readjusted. In addition, routine inspections may reveal discrepancies in the repeater's position, necessitating further readjustment. Therefore, adjusting the repeater's position is a frequent task.
[0041] To overcome the problems existing in the related technologies, this disclosure provides a method and apparatus for aligning an identification element, an adjusting lens, and a camera.
[0042] The marking element provided in this disclosure, used for centering adjustment of a lens, includes: a body, which is a rotating body centered on the optical axis of the lens; and a marking part, which is located at the center of the body and allows light to pass through.
[0043] In this disclosure, a marking element for adjusting a lens for alignment (i.e., aligning the center of the lens with the center of the camera along the optical axis) is provided with a marking portion located at the center of the body and configured to allow light to pass through. This configuration allows the lens to be aligned during the lens alignment process by utilizing the distance difference between the light passing through the marking portion and the center of the lens.
[0044] Figure 1 This is a schematic diagram of the structure of an identification element according to an exemplary embodiment. Figure 2 This is a plan view of an identification element according to an exemplary embodiment.
[0045] like Figure 1 and Figure 2As shown in this disclosure, the identifier 10 may include a body 200 and an identifier portion 100, with the identifier portion 100 located at the center of the body 200. For example, when the identifier 10 is circular, the identifier portion 100 may be located at the center of the circle. When the identifier 10 is rectangular, the identifier portion 100 may be located at the geometric center of the identifier 10. However, this disclosure is not limited to these embodiments. In some embodiments, the identifier 10 may be any regular or irregular shape, and the identifier portion 100 may be located at the geometric center of the identifier 10.
[0046] like Figure 1 and Figure 2 As shown, in this disclosure, the marking portion 100 allows light to pass through, meaning the marking portion 100 can be light-transmitting. For example, the marking portion 100 can be made of a light-transmitting material, such as glass, a lens, or transparent resin. Alternatively, the marking portion 100 can also be perforated, meaning the marking portion 100 penetrates the body 200 of the marking member 10. That is, there is a through hole at the center of the body 200, through which light can pass.
[0047] In some embodiments, the body 200 of the marker 10 (other parts besides the marker portion 100) can be a low-transmittance portion, and the marker portion 100 can be hollowed out. Alternatively, the marker portion 100 can be a high-transmittance portion, and the body 200 can be a low-transmittance portion. This disclosure does not make specific limitations, as long as the body and the marker portion 100 can be distinguished in the final image.
[0048] For example, such as Figure 1 As shown, in some embodiments, the body 200 may include a light-shielding portion, the light transmittance of which may be less than the light transmittance of the marking portion 100. The light-shielding portion may be disposed around the marking portion 100.
[0049] For example, the light-blocking portion may include black paint or black dye. In this case, the light-blocking portion can be considered opaque.
[0050] Figure 3 This is a schematic diagram illustrating a lens pair according to an exemplary embodiment. Figure 3 As shown, during the lens alignment process, the marker 10 can be placed in the optical path from the light 40 to the lens 20. For example, the light 40 can pass through the marker 10 and then illuminate the lens 20.
[0051] In such an embodiment, the marker 10 is located on one side of the lens 20, and the camera 300 is located on the other side of the lens 20. The light 40 passes through the marker portion 100 of the marker 10 and through the lens 20 to enter the camera 300. Along the illumination direction of the light 40, the marker portion 100 of the marker 10 coincides with the center of the lens 20.
[0052] In this scenario, camera 300 images, forming photograph 50, which shows the image of marker 100. The alignment of lens 20 with camera 300 is determined by comparing the image 100-a of marker 100 with the center A of photograph 50. For example, if the distance difference between the image of marker 100 and the center A of photograph 50 is 0, lens 20 can be considered aligned with camera 300. If they are not aligned, the position of lens 20 or camera 300 can be adjusted based on the distance difference between the image 100-a of marker 100 and the center A of photograph 50 until they are aligned.
[0053] The center A of photo 50 can be the intersection of the two diagonals L1 and L2.
[0054] Figure 4 This is a plan view of an identification element according to an exemplary embodiment. For example... Figure 4 As shown, in some embodiments, the marking section 100 may be provided with scale. With such a setting, the image of the marking section 100 in the photo can also display the scale. Then, based on these customers, the distance difference between the image of the marking section 100 and the center of the photo can be easily determined, and the position of the lens 20 or the camera 300 can be adjusted until the two are aligned.
[0055] like Figure 4 As shown, the scale of the marking portion 100 may be distributed in a cross shape, but this disclosure is not limited to this. In other possible embodiments, the scale of the marking portion 100 may also be distributed in any shape such as a straight line or a circle.
[0056] In some embodiments, the marking portion 100 may be one of a perforated shape, a linearly distributed shape, or a surface-distributed shape. For example, Figure 5 This is a plan view of an identification element according to an exemplary embodiment. For example... Figure 5 As shown, the marking part 100 can be cross-shaped, such as... Figure 1 As shown, the marking portion 100 may be perforated. However, this disclosure is not limited to these embodiments, and the marking portion may also be other shapes.
[0057] In the foregoing embodiments, this disclosure describes an embodiment in which the identifier 10 can be disposed on the path of the light ray 40, but this disclosure is not limited thereto. Figure 6 This is a schematic diagram of a lens pair according to an exemplary embodiment, such as... Figure 6 As shown, in some embodiments, during the alignment process of the lens 20, the marker 10 may be disposed on the lens 20. Along the direction in which the light ray 40 extends, the marking portion 100 of the marker 10 may coincide with the center of the lens 20.
[0058] Figure 7This is a schematic diagram illustrating a lens pair according to an exemplary embodiment. Figure 7 As shown, the body 200 of the marker 10 can have a shape adapted to the lens 20. For example, the body 200 of the marker 10 can have a shape adapted to the light-incident surface of the lens 20. The light-incident surface can be the side through which the light ray 40 passes and enters the lens 20.
[0059] For example, if the light-incident surface of the lens 20 is curved, then the body 200 of the marker 10 is also curved, and the curvature of the body 200 can be adapted to the curvature of the light-incident surface.
[0060] During the alignment process of lens 20, the marker 10 can be disposed on lens 20, for example, the marker 10 can be attached to lens 20. Along the direction in which the light ray 40 extends, the marking portion 100 of the marker 10 can coincide with the center of the light-incident surface of lens 20.
[0061] The foregoing embodiments state that light 40 passes through marker 10 and then reaches lens 20, but the disclosure is not limited thereto. In some embodiments, light 40 may also be configured to pass through lens 20 and marker 10 in sequence and then enter camera 300, as long as the image 100-a of marker 100 can be seen in the final image 50.
[0062] In such an embodiment, the marker 10 can be disposed on the other side of the lens 20, for example, between the lens 20 and the camera 300, along the extension direction of the light ray 40. In such an embodiment, the marker 10 can be opposite to the light-emitting surface of the lens 20. The light-emitting surface of the lens 20 can be the side through which the light ray 40 exits the lens 20.
[0063] In some embodiments, the identifier 10 may be disposed on the lens 20, for example, the identifier 10 may be attached to the lens 20. The body 200 of the identifier 10 may have a shape adapted to the lens 20. For example, the body 200 of the identifier 10 may have a shape adapted to the light-emitting surface of the lens 20. Along the direction in which the light ray 40 extends, the identifier portion 100 of the identifier 10 may coincide with the center of the light-emitting surface of the lens 20.
[0064] In some embodiments, the body 200 of the marker 10 may be in contact with both the light-emitting surface and the light-receiving surface of the lens 20, and along the direction in which the light ray 40 extends, the marking portion 100 of the marker 10 may coincide with the center of both the light-emitting surface and the light-receiving surface of the lens 20.
[0065] like Figure 7 As shown, in some embodiments, the identifier 10 may include a first body 201 and a second body 202. The first body 201 and the second body 202 are disposed opposite each other along the direction in which the light 40 extends (in the direction through which the light passes).
[0066] like Figure 7 As shown, in some embodiments, a first marking portion 101 is provided at the center of the first body 201, and a second marking portion (not shown) is provided at the center of the second body 202. In the direction through which the light 40 passes, the center of the first body 201 may coincide with the center of the light-incident surface of the lens 20, and the center of the second body 202 may coincide with the center of the light-exit surface of the lens 20.
[0067] like Figure 7 As shown, the marker 10 can cover (or adhere to) the lens 20. The marker 10 may also include a connecting portion 203, through which the first body 201 and the second body 202 are connected to each other.
[0068] In this disclosure, lens 20 may be a relay lens, and the marking element may be a centering mold for the relay lens.
[0069] The identification component 10 can be a circular black cover with a small hole in the center of the top, allowing light to pass through, and its diameter is just enough to completely cover the repeater mirror.
[0070] The material of the marker 10 is not required, as long as it is opaque. The environmental requirement for the alignment process of the adjusting lens and the camera in this disclosure is a dark room environment with uniform light source.
[0071] Specifically, the center hole of the mold is aligned with the center of the relay lens. When there is a light source, the picture taken by the mobile phone through the relay lens will have a bright spot. The algorithm analyzes and calculates whether the bright spot is in the exact center of the picture to determine whether the mobile phone camera is aligned with the relay lens.
[0072] The algorithm for adjusting the alignment between the lens and the camera can be as follows: the intersection of the two diagonals of the image taken by the mobile phone is the center of the image. Using the principle of pinhole imaging, the offset between the image center and the bright spot is calculated.
[0073] Figure 8 This is a schematic diagram illustrating a process in a lens pair according to an exemplary embodiment. Figure 7 and Figure 8 As shown, after the camera 300 of the electronic device 30 takes a photo 50, it transmits the photo to the computer 1 to form an information chart 60. The computer 1 can obtain information from the photo 50 by analyzing the chart 60.
[0074] Based on the same concept, this disclosure also provides a method for adjusting the alignment of a lens and a camera. The method for adjusting the alignment of a lens and a camera provided in this disclosure adopts the identifier 10 in the foregoing embodiments.
[0075] Figure 9This is a flowchart illustrating a method for aligning a lens with a camera according to an exemplary embodiment. Figure 9 As shown in this disclosure, the method for aligning the lens with the camera may include the following steps:
[0076] S11: Acquire a photo through the lens using a camera;
[0077] In step S11, the lens and marker are arranged along the optical axis of the camera. For example, as... Figure 3 As shown, along the optical axis of the camera (i.e., the direction parallel to the light 40), the marker 10 can be placed in the optical path from the light 40 to the lens 20. For example, the light 40 can pass through the marker 10 and then illuminate the lens 20.
[0078] like Figure 6 As shown, in some embodiments, the marker 10 may be disposed on the lens 20. However, the disclosure is not limited to this. In some embodiments, the light 40 may be configured to pass through the lens 20 and the marker 10 in sequence before entering the camera 300, as long as the image 100-a of the marker 100 can be seen in the final image 50.
[0079] In such an embodiment, the marker 10 can be disposed on the other side of the lens 20, for example, between the lens 20 and the camera 300, along the extension direction of the light ray 40. In such an embodiment, the marker 10 can be opposite to the light-emitting surface of the lens 20. The light-emitting surface of the lens 20 can be the side through which the light ray 40 exits the lens 20.
[0080] S12: By comparing the first center of the photo with the second center of the marker in the photo, it is determined whether the center of the lens and the center of the camera coincide along the optical axis.
[0081] In step S12, as shown in the previous embodiment, the marking part 100 may be located at the center of the body of the marking member 10; details will not be repeated here.
[0082] S13: If the center of the lens along the optical axis does not coincide with the center of the camera, adjust the lens movement and / or adjust the camera movement until the center of the lens along the optical axis coincides with the center of the camera.
[0083] In this disclosure, the alignment of the camera and lens specifically refers to the coincidence of the center of the lens and the center of the camera along the optical axis. If they coincide, it means that the camera and lens are aligned; if they do not coincide, the camera and lens are not aligned. It should be noted that in the embodiments, the coincidence and alignment can be considered the same event. In some embodiments, the coincidence and alignment can also be considered different events. In this case, an additional step can be added: determining that the camera and lens are aligned based on the coincidence of the center of the lens and the center of the camera along the optical axis. Referring to the description in the foregoing embodiments, the first center of the photograph 50 can be the center A of the photograph 50, and the second center of the photograph 50 can be the geometric center of the imaging 100-a of the marker 100. In some cases, the imaging 100-a of the marker 100 itself can also serve as the second center of the photograph 50.
[0084] If the first center coincides with the second center, then the lens 20 and the marker 10 can be considered to be aligned. If the first center does not coincide with the second center, then the lens 20 and the marker 10 are not aligned, and then the adjustment continues.
[0085] Figure 10 This is a flowchart illustrating a method for adjusting the alignment of a lens and a camera according to an exemplary embodiment, such as... Figure 10 As shown, for example, in other embodiments of this disclosure, the method for aligning the lens with the camera may include the following steps:
[0086] S21: Acquire a photo through the lens using a camera;
[0087] S22: Obtain the first center of the photo, and obtain the geometric center of the marker as the second center;
[0088] S23: Determine whether the center of the lens and the center of the camera coincide along the optical axis by whether the first center and the second center coincide along the optical axis.
[0089] In this disclosure, the center A of photograph 50 can be the intersection of the two diagonals L1+L2 of photograph 50.
[0090] During the adjustment process, the marker 10 and lens 20 can be moved a certain distance in a certain direction, or the camera 300 can be moved a certain distance in a certain direction. Alternatively, the marker 10 and lens 20 can be moved a certain distance in a certain direction, while the camera 300 is also moved a certain distance in a certain direction.
[0091] Figure 11 This is a flowchart illustrating a method for adjusting the alignment of a lens and a camera according to an exemplary embodiment, such as... Figure 11As shown, for example, in other embodiments of this disclosure, the method for aligning the lens with the camera may include the following steps:
[0092] S31: Acquire a photo through the lens using a camera;
[0093] S32: Obtain the first center of the photo, and obtain the geometric center of the marker as the second center;
[0094] S33: Determine whether the center of the lens and the center of the camera coincide along the optical axis based on whether the first center and the second center coincide;
[0095] S34: Based on the fact that the center of the lens along the optical axis coincides with the center of the camera, obtain the first relative offset between the first center and the second center;
[0096] S35: Based on the first relative offset, adjust the lens movement and / or adjust the camera movement until the center of the lens coincides with the center of the camera along the optical axis.
[0097] In this disclosure, the offset between the first center and the second center can be obtained using the scale set at the marking section 100, or it can be determined through the size of the photograph 50, the imaging principle (e.g., the pinhole imaging principle), etc. It can be obtained by the user observing with the naked eye during operation, or through algorithmic analysis (centering algorithm).
[0098] In this disclosure, the first relative offset between the first center and the second center can include different relative offsets in different directions, such as offsets on the x-axis, offsets on the y-axis, etc. Based on the offsets in different directions, the lens and / or camera are controlled to move in the corresponding direction until centering is achieved.
[0099] In some embodiments, photos can be acquired by controlling an electronic device, such as a mobile phone, to take pictures using the camera on the electronic device. The method for acquiring photos may include:
[0100] S111: Controls the camera to focus and take a picture;
[0101] S112: Acquire photos taken by the camera.
[0102] In the instructions of the electronic device 30 to control the camera 300 to take pictures, a focus instruction can be added. In this case, the obtained picture is clearer, and the offset between the first center and the second center can be judged more accurately, so as to more accurately control the lens and / or camera to move in the corresponding direction until centering.
[0103] As in the aforementioned embodiments, the identifier 10 may include a first body 201 and a second body 202. The first body 201 and the second body 202 are disposed opposite each other along the direction in which the light 40 extends (in the direction through which the light passes).
[0104] like Figure 7 As shown, in some embodiments, a first marking portion 101 is provided at the center of the first body 201, and a second marking portion (not shown) is provided at the center of the second body 202. In the direction through which the light 40 passes, the center of the first body 201 may coincide with the center of the light-incident surface of the lens 20, and the center of the second body 202 may coincide with the center of the light-exit surface of the lens 20.
[0105] During the centering process, if the first marking part 101 and the second marking part coincide along the direction of the light ray 40, it can be indicated that both the first marking part 101 and the second marking part are on the optical axis of the camera.
[0106] Figure 12 This is a flowchart illustrating a method for adjusting the alignment of a lens and a camera according to an exemplary embodiment, such as... Figure 12 As shown, in some embodiments, the method for aligning the lens with the camera may include the following steps:
[0107] S41: Acquire a photo through the lens using a camera;
[0108] S42: Determine whether the optical axis of the lens is parallel to the direction from the first mark to the second mark by comparing whether the center of the first mark in the photograph coincides with the center of the second mark;
[0109] S43: Since the optical axis of the lens is not parallel to the direction from the first marking part to the second marking part, adjust the lens rotation until it is parallel;
[0110] S44: Take another photo through the lens using the camera;
[0111] S45: By comparing the first center of the photograph with the second center of the marker, it is determined whether the center of the lens and the center of the camera coincide along the optical axis.
[0112] S46: If the lens and camera are not aligned, adjust the lens movement and / or adjust the camera movement until the center of the lens and the center of the camera coincide along the optical axis.
[0113] In this disclosure, by determining whether the first marking part 101 and the second marking part are aligned, it can be determined whether the first marking part 101 and the second marking part are on the optical axis. This allows for accurate determination of whether the lens is aligned with the camera in subsequent processes. Furthermore, when the first marking part 101 and the second marking part are aligned, i.e., when the optical axis is calibrated, alignment adjustments are then performed.
[0114] According to this disclosure, if the optical axis of the lens is not parallel to the direction from the first marking portion to the second marking portion, the lens rotation is adjusted until it is parallel.
[0115] For example, in some embodiments, the lens rotation can be adjusted by the following method:
[0116] S431: Based on the fact that the optical axis of the lens is not parallel to the direction from the first marking part to the second marking part, obtain the second relative offset between the center of the first marking part and the center of the second marking part;
[0117] S432: Adjust the lens movement according to the second relative offset until the optical axis of the lens is parallel to the direction from the first marking part to the second marking part.
[0118] The second relative offset may include the offset of the first marking portion and the second marking portion in different directions, such as the offset on the x-axis, the offset on the y-axis, etc. Based on the offset in different directions, the lens is controlled to move in the corresponding direction until the optical axis of the lens is parallel to the direction from the first marking portion 101 to the second marking portion.
[0119] Figure 13 This is a flowchart illustrating a method for adjusting the alignment of a lens and a camera according to an exemplary embodiment, such as... Figure 13 As shown, in some embodiments, the method for aligning the lens with the camera may include the following steps:
[0120] S51: Acquires a photo through the lens using a camera;
[0121] S52: By comparing the first center of the photograph with the second center of the marker, it is determined whether the center of the lens and the center of the camera coincide along the optical axis.
[0122] S53: Based on the fact that the center of the lens along the optical axis coincides with the center of the camera, obtain the first coordinate of the lens and the second coordinate of the camera. If the lens and the camera are not aligned, adjust the movement of the lens and / or adjust the movement of the camera until the center of the lens along the optical axis coincides with the center of the camera.
[0123] In this disclosure, if the lens 20 is aligned with the camera 300, then the first coordinates of the lens 20 and the second coordinates of the camera 300 are obtained. The first coordinates may include the coordinates of the lens 20 in different directions, such as the coordinates on the x-axis, the coordinates on the y-axis, etc. The second coordinates may include the coordinates of the camera 300 in different directions, such as the coordinates on the x-axis, the coordinates on the y-axis, etc.
[0124] Based on the acquired first and second coordinates, they can be stored in the storage module of the lens and camera alignment device. In this way, the device can adjust the lens and camera for subsequent programs based on the stored coordinates.
[0125] Based on the same concept, this disclosure also provides a device for adjusting the alignment of a lens with a camera. Figure 14 This is a block diagram illustrating a device for adjusting the alignment of a lens and a camera according to an exemplary embodiment, such as... Figure 14 As shown, the lens and camera alignment device disclosed herein may include:
[0126] Acquisition unit 111 is used to acquire photos of the lens through the camera;
[0127] The judgment unit 112 determines whether the center of the lens and the center of the camera coincide along the optical axis by comparing the first center of the photo in the photo with the second center of the marker.
[0128] The adjustment unit 113 is used to adjust the lens movement and / or adjust the camera movement until the center of the lens along the optical axis coincides with the center of the camera, based on the fact that the center of the lens along the optical axis does not coincide with the center of the camera.
[0129] In some embodiments, the determination unit 112 may determine whether the lens and the camera are aligned by comparing the first center of the photograph with the second center of the marker: obtaining the first center of the photograph, wherein the first center is the intersection of the two diagonals of the photograph, and obtaining the geometric center of the marker as the second center; determining whether the center of the lens and the center of the camera are aligned along the optical axis based on whether the first center and the second center coincide along the optical axis.
[0130] In some embodiments, the adjustment unit 113 may adjust the lens movement and / or the camera movement until the center of the lens along the optical axis coincides with the center of the camera based on the fact that the center of the lens along the optical axis does not coincide with the center of the camera: obtaining a first relative offset between the first center and the second center based on the fact that the center of the lens along the optical axis does not coincide with the center of the camera; and adjusting the lens movement and / or the camera movement according to the first relative offset until the center of the lens along the optical axis coincides with the center of the camera.
[0131] In some embodiments, the acquisition unit 111 may acquire a photo of the lens through the camera by controlling the center of the camera to focus and take a picture; or by acquiring a photo taken by the camera.
[0132] In some embodiments, the determining unit 112 is further configured to: determine whether the optical axis of the lens is parallel to the direction from the first mark to the second mark by comparing whether the center of the first mark and the center of the second mark in the photograph coincide; the adjusting unit is further configured to: adjust the lens to rotate until it is parallel based on the fact that the optical axis of the lens is not parallel to the direction from the first mark to the second mark.
[0133] In some embodiments, the adjustment unit 113 adjusts the lens to rotate until it is parallel to the direction from the first marking portion to the second marking portion by the following method: based on the fact that the optical axis of the lens is not parallel to the direction from the first marking portion to the second marking portion, a second relative offset between the center of the first marking portion and the center of the second marking portion is obtained; based on the second relative offset, the lens is moved until the optical axis of the lens is parallel to the direction from the first marking portion to the second marking portion.
[0134] In some embodiments, the acquisition unit 111 is further configured to acquire the first coordinates of the lens and the second coordinates of the camera based on the fact that the center of the lens along the optical axis coincides with the center of the camera.
[0135] In this disclosure, a marking part is provided on the marking member for lens centering adjustment. The marking part is located at the center of the body and is configured to allow light to pass through. With this configuration, the lens can be centered in the lens centering process by utilizing the distance difference between the light passing through the marking part and the center of the lens.
[0136] Figure 15 This is a flowchart illustrating a method for aligning a lens with a camera according to an exemplary embodiment. Figure 15 As shown, taking the method of centering the phone's camera as an example, it can be done as follows:
[0137] Place the mold over the repeater mirror, with the hole in the center of the mold aligned with the center of the repeater mirror, and then open the light source board;
[0138] Place the phone on the vehicle in the test channel, with the camera positioned below the relay mirror;
[0139] Call the shooting command of the camera corresponding to the current test item on the mobile phone, so that the mobile phone can take pictures. The images will have bright spots of light shining through the center hole of the mold.
[0140] The centering algorithm is invoked to calculate whether the bright spot is in the center of the image. If it is, the coordinates are output to the software platform, which then controls the mobile relay mirror (y-axis) and the mobile phone carrier (x-axis) to move to the specified coordinates, and the centering ends. If the bright spot is not in the center of the image, the offset is calculated and output to the software platform, which then controls the mobile relay mirror (y-axis) and the mobile phone carrier (x-axis) to move by the offset. The image is then taken again, and the above operations are repeated until the centering is complete.
[0141] The electronic devices involved in this disclosure, also referred to as terminal devices, user equipment (UE), mobile stations (MS), mobile terminals (MT), etc., are devices that provide voice and / or data connectivity to users. For example, a terminal can be a handheld device with wireless connectivity, an in-vehicle device, etc. Currently, examples of terminals include: smartphones (Mobile Phones), pocket personal computers (PPCs), handheld computers, personal digital assistants (PDAs), laptops, tablets, wearable devices, or in-vehicle devices. Furthermore, when it is a vehicle-to-everything (V2X) communication system, the terminal device can also be an in-vehicle device. It should be understood that the embodiments of this disclosure do not limit the specific technology or device form used in the terminal.
[0142] It is understood that the lens and camera alignment device provided in this disclosure includes hardware structures and / or software modules corresponding to each function in order to achieve the above-mentioned functions. In conjunction with the units and algorithm steps of the various examples disclosed in this disclosure, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of this disclosure.
[0143] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0144] Figure 16 This is a block diagram illustrating an apparatus 800 according to an exemplary embodiment. For example, apparatus 800 may be an electronic device as described above, specifically a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, etc.
[0145] Reference Figure 16 The device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0146] Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0147] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0148] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 800.
[0149] Multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0150] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0151] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0152] Sensor assembly 814 includes one or more sensors for providing status assessments of various aspects of device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of device 800, changes in the position of device 800 or a component of device 800, the presence or absence of user contact with device 800, the orientation or acceleration / deceleration of device 800, and temperature changes of device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0153] Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. Device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0154] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0155] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of the device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0156] It is understood that in this disclosure, "multiple" refers to two or more, and other quantifiers are similar. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. The singular forms "a," "the," and "the" are also intended to include the plural forms unless the context clearly indicates otherwise.
[0157] It is further understood that the terms "first," "second," etc., are used to describe various types of information, but this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and do not indicate a specific order or degree of importance. In fact, the expressions "first," "second," etc., are completely interchangeable. For example, without departing from the scope of this disclosure, first information can also be referred to as second information, and similarly, second information can also be referred to as first information.
[0158] It is further understood that the terms “center,” “longitudinal,” “lateral,” “front,” “rear,” “up,” “down,” “left,” “right,” “vertical,” “horizontal,” “top,” “bottom,” “inner,” and “outer,” etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this embodiment and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation.
[0159] It can be further understood that, unless otherwise specified, "connection" includes both direct connections where no other components exist between the two parties and indirect connections where other components exist between them.
[0160] It is further understood that although operations are described in a specific order in the accompanying drawings in the embodiments of this disclosure, this should not be construed as requiring these operations to be performed in the specific order or serial order shown, or requiring all of the shown operations to be performed to obtain the desired result. In certain environments, multitasking and parallel processing may be advantageous.
[0161] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0162] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. An identification component, characterized in that, Used for centering and adjusting the lens, including: The body, which is a rotating body centered on the optical axis of the lens; and A marking section, the marking section being located at the center of the body, and the marking section allowing light to pass through; The main body includes a first body and a second body disposed opposite to each other. In the direction in which the light passes through, the center of the first body coincides with the center of the light-incident surface of the lens, and the center of the second body coincides with the center of the light-outceasing surface of the lens. The marking part includes a first marking part and a second marking part. The first marking part is disposed at the center of the first body, and the second marking part is disposed at the center of the second body. The first body and the second body are connected by the connecting part.
2. The identification element according to claim 1, characterized in that, The marking section is equipped with scales.
3. The identification element according to claim 1, characterized in that, The main body is a low-transmittance part, and the marking part is hollowed out.
4. The identification element according to claim 2, characterized in that, The marking part can be one of the following: perforated, linearly distributed, or surface-distributed shapes.
5. The identification element according to claim 1, characterized in that, The body includes a light-shielding part, the light transmittance of which is less than the light transmittance of the marking part.
6. The identification element according to claim 5, characterized in that, The light-shielding part includes black paint or black dye.
7. The identification element according to claim 1, characterized in that, The body has a shape adapted to the light-incident surface of the lens; and / or The body has a shape adapted to the light-emitting surface of the lens.
8. The identification element according to claim 7, characterized in that, The first body and the second body are positioned opposite each other in the direction in which light passes.
9. A method for adjusting the alignment of a lens with a camera, characterized in that, The method includes: The camera captures a photograph of the lens, wherein the lens and the marker are arranged along the optical axis of the camera. By comparing the first center of the photograph with the second center of the marker, it is determined whether the center of the lens and the center of the camera coincide along the optical axis, wherein the marker is located at the center of the body of the marker. If the center of the lens along the optical axis does not coincide with the center of the camera, then adjust the movement of the lens and / or adjust the movement of the camera until the center of the lens along the optical axis coincides with the center of the camera. The identification element includes: The body, which is a rotating body centered on the optical axis of the lens; and A marking section, the marking section being located at the center of the body, and the marking section allowing light to pass through; The main body includes a first body and a second body disposed opposite to each other. In the direction in which the light passes through, the center of the first body coincides with the center of the light-incident surface of the lens, and the center of the second body coincides with the center of the light-outceasing surface of the lens. The marking part includes a first marking part and a second marking part. The first marking part is disposed at the center of the first body, and the second marking part is disposed at the center of the second body. The first body and the second body are connected by the connecting part.
10. The method for adjusting the alignment of the lens and the camera according to claim 9, characterized in that, Determining whether the center of the lens coincides with the center of the camera along the optical axis by comparing the first center of the photograph with the second center of the marker in the photograph includes: Obtain the first center of the photo, wherein the first center is the intersection of the two diagonals of the photo, and obtain the geometric center of the identifier as the second center; Whether the center of the lens and the center of the camera coincide along the optical axis is determined by whether the first center and the second center coincide along the optical axis.
11. The method for adjusting the alignment of the lens and the camera according to claim 10, characterized in that, The step of adjusting the lens and / or adjusting the camera until the center of the lens and the center of the camera coincide along the optical axis, based on the fact that the center of the lens and the center of the camera do not coincide along the optical axis, includes: Based on the fact that the center of the lens along the optical axis does not coincide with the center of the camera, a first relative offset between the first center and the second center is obtained; Based on the first relative offset, adjust the movement of the lens and / or the movement of the camera until the center of the lens coincides with the center of the camera along the optical axis.
12. The method for adjusting the alignment of the lens and the camera according to claim 9, characterized in that, The process of acquiring the image through the lens via the camera includes: Control the camera to focus on the center and take a picture; Acquire photos taken by the camera.
13. The method for adjusting the alignment of the lens and the camera according to claim 9, characterized in that, The method further includes: By comparing whether the center of the first marking portion and the center of the second marking portion in the photograph coincide, it is determined whether the optical axis of the lens is parallel to the direction from the first marking portion to the second marking portion. Since the optical axis of the lens is not parallel to the direction from the first marking part to the second marking part, the lens is adjusted to rotate until it is parallel.
14. The method for adjusting the alignment of the lens and the camera according to claim 13, characterized in that, The optical axis based on the lens is not parallel to the direction from the first marking portion to the second marking portion. Adjusting the lens to rotate until it is parallel includes: The optical axis based on the lens is not parallel to the direction from the first marking part to the second marking part, and a second relative offset between the center of the first marking part and the center of the second marking part is obtained; Based on the second relative offset, the lens is adjusted until the optical axis of the lens is parallel to the direction from the first marking portion to the second marking portion.
15. The method for adjusting the alignment of the lens and the camera according to claim 9, characterized in that, The method further includes: Based on the fact that the center of the lens coincides with the center of the camera along the optical axis, the first coordinates of the lens and the second coordinates of the camera are obtained.
16. A device for adjusting the alignment of a lens and a camera, characterized in that, include: The acquisition unit acquires a photograph of the lens through the camera, wherein the lens and the marker are arranged along the optical axis of the camera; The judgment unit is used to determine whether the center of the lens and the center of the camera coincide along the optical axis by comparing the first center of the photograph in the photograph with the second center of the marking part, wherein the marking part is located at the center of the body of the marking member; An adjustment unit is configured to adjust the movement of the lens and / or the movement of the camera until the center of the lens and the center of the camera coincide along the optical axis if the center of the lens and the center of the camera do not coincide. The identification element includes: The body, which is a rotating body centered on the optical axis of the lens; and A marking section, the marking section being located at the center of the body, and the marking section allowing light to pass through; The main body includes a first body and a second body disposed opposite to each other. In the direction in which the light passes through, the center of the first body coincides with the center of the light-incident surface of the lens, and the center of the second body coincides with the center of the light-outceasing surface of the lens. The marking part includes a first marking part and a second marking part. The first marking part is disposed at the center of the first body, and the second marking part is disposed at the center of the second body. The first body and the second body are connected by the connecting part.