A method, apparatus, medium, and equipment for detecting dual-camera modules.

By acquiring two images from a dual-camera module and calculating their relative angle, the problem of low efficiency and large error in existing technologies has been solved, achieving efficient angle deviation detection.

CN116248860BActive Publication Date: 2025-10-31KUNSHAN QIUTI PHOTOELECTRIC TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310141686.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2025-10-31
Estimated Expiration
2043-02-21

AI Technical Summary

Technical Problem

Existing technology cannot efficiently and accurately detect the relative angular deviation of dual-camera modules, which increases the probability that the modules are considered defective.

Method used

By acquiring two images of the background image taken by the dual-camera module, the relative rotation angle, relative flip angle, and relative pitch angle are calculated using preset marker points, and the deviation of the module is detected based on these angles.

Benefits of technology

It simplifies the testing process, improves testing efficiency, reduces human error, and achieves efficient angle deviation detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116248860B_ABST
    Figure CN116248860B_ABST
Patent Text Reader

Abstract

This invention provides a method, apparatus, medium, and device for detecting dual-camera modules. The method includes: acquiring a first image captured by a first camera module of a background image and acquiring a second image captured by a second camera module of the background image; the background image has at least four pre-set markers located in the four corner areas of the background image; acquiring a first detection parameter in the first image and a second detection parameter in the second image; determining the relative rotation angle, relative flip angle, and relative pitch angle of the dual-camera module based on the first and second detection parameters; and detecting the dual-camera module based on the relative rotation angle, relative flip angle, and relative pitch angle. Thus, by simply capturing images of the background image using the dual-camera module and obtaining the first and second images, the detection of the dual-camera module can be achieved. The entire detection process is simple, thereby improving the detection efficiency of dual-camera modules.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of camera module testing technology, and in particular to a method, apparatus, medium and equipment for testing dual camera modules. Background Technology

[0002] In camera module manufacturing, the relative position of dual-camera modules needs to remain stable, therefore the relative angle of the dual-camera modules must meet requirements. However, in actual production, due to various factors such as tolerances and assembly precision, there will actually be a deviation in the relative angle. If the deviation of the relative angle is not within the allowable range, the module is considered a defective module. Therefore, it is necessary to inspect the relative angle of the dual-camera module to determine whether the dual-camera module is defective.

[0003] Currently, existing technologies generally use dedicated testing equipment to detect the relative angular deviation of dual-camera modules. This physical measurement method requires manual operation according to the measurement procedure, which is inefficient and prone to human error. Alternatively, Zhang Zhengyou can take images from multiple angles and use intrinsic and extrinsic parameter calibration methods to calculate the relative angular deviation of the modules; however, this method requires taking many images from different angles, and its efficiency cannot be guaranteed.

[0004] Therefore, there is an urgent need for an efficient and accurate detection method to detect the relative angle deviation of dual-camera modules. Summary of the Invention

[0005] To address the problems existing in the prior art, embodiments of the present invention provide a method, apparatus, medium, and device for detecting dual-camera modules, so as to solve or partially solve the technical problem that the prior art cannot efficiently detect the relative angle deviation of dual-camera modules.

[0006] The first aspect of this invention provides a method for detecting a dual-camera module, the dual-camera module comprising a first camera module and a second camera module, the method comprising:

[0007] The system acquires a first image captured by the first camera module and a second image captured by the second camera module; the background image has at least four pre-set markers, which are located in the four corner areas of the background image.

[0008] Obtain the first detection parameters in the first image and the second detection parameters in the second image;

[0009] The relative rotation angle, relative flip angle, and relative pitch angle of the dual-camera module are determined based on the first detection parameter and the second detection parameter.

[0010] The dual-camera module is detected based on the relative rotation angle, the relative flip angle, and the relative pitch angle.

[0011] In the above scheme, obtaining the first detection parameter in the first image and obtaining the second detection parameter in the second image includes:

[0012] If it is necessary to detect the relative rotation angle of the dual-camera module, the first reference pixel in the first image and the second reference pixel in the second image are determined.

[0013] Determine the first horizontal line connecting the first reference pixel to its horizontally adjacent pixel and the first vertical line connecting the first reference pixel to its vertically adjacent pixel;

[0014] Determine the first horizontal angle between the first horizontal line and the horizontal baseline in the first image, and determine the first vertical angle between the first vertical line and the vertical baseline in the first image;

[0015] Determine the second horizontal line connecting the second reference pixel to its horizontally adjacent pixel and the first vertical line connecting the second reference pixel to its vertically adjacent pixel;

[0016] Determine the second horizontal angle between the second horizontal line and the horizontal baseline in the second image, and determine the second vertical angle between the second vertical line and the vertical baseline in the second image; wherein, the first detection parameter includes: the first vertical angle and the first horizontal angle; the second detection parameter includes: the second horizontal angle and the second vertical angle.

[0017] In the above scheme, determining the relative rotation angle of the dual-camera module based on the first detection parameter and the second detection parameter includes:

[0018] Determine the absolute value of the first rotation angle difference between the first horizontal angle and the second horizontal angle;

[0019] Determine the absolute value of the second rotation angle difference between the first vertical angle and the second vertical angle;

[0020] The larger of the absolute values ​​of the first and second rotation angle differences is determined as the relative rotation angle of the dual-camera module.

[0021] In the above scheme, obtaining the first detection parameter in the first image and obtaining the second detection parameter in the second image includes:

[0022] If it is necessary to detect the relative flip angle of the dual-camera module, the first detection parameters include: the distance between the center point of the lens of the first camera module and the center point of the background image; the distance between two horizontally adjacent marker points in the background image; the distance between two first vertically adjacent target pixels in the first image; and the distance between two second vertically adjacent target pixels in the first image.

[0023] The second detection parameters include: the distance between the center point of the second camera module lens and the center point of the background image; the distance between two horizontally adjacent marker points in the background image; the distance between two first vertically adjacent target pixels in the second image; and the distance between two second vertically adjacent target pixels in the second image; wherein,

[0024] The positions of the target pixels in the first and second images are determined based on the positions of the corresponding marker points in the background image.

[0025] In the above scheme, determining the relative flip angle of the dual-camera module based on the first detection parameter and the second detection parameter includes:

[0026] According to the formula Determine the flip angle a1 of the first camera module;

[0027] According to the formula Determine the flip angle a2 of the second camera module;

[0028] The relative flip angle 'a' of the dual-camera module is determined according to the formula a = |a1 - a2|; where...

[0029] d1 is the distance between the center point of the first camera module lens and the center point of the background image; w is the distance between two horizontally adjacent marker points in the background image; bd1 is the distance between two first vertically adjacent target pixels in the first image; ac1 is the distance between two second vertically adjacent target pixels in the first image; d2 is the distance between the center point of the second camera module lens and the center point of the background image; bd2 is the distance between two first vertically adjacent target pixels in the second image; ac2 is the distance between two second vertically adjacent target pixels in the second image.

[0030] In the above scheme, obtaining the first detection parameter in the first image and obtaining the second detection parameter in the second image includes:

[0031] If it is necessary to detect the relative pitch angle of the dual-camera module, the first detection parameters include: the distance between the center point of the lens of the first camera module and the center point of the background image; the distance between two vertically adjacent marker points in the background image; the distance between two first horizontally adjacent target pixels in the first image; and the distance between two second horizontally adjacent target pixels in the first image.

[0032] The second detection parameters include: the distance between the center point of the second camera module lens and the center point of the background image; the distance between two vertically adjacent marker points in the background image; the distance between two first horizontally adjacent target pixels in the second image; and the distance between two second horizontally adjacent target pixels in the second image; wherein,

[0033] The positions of the target pixels in the first and second images are determined based on the positions of the corresponding marker points in the background image.

[0034] In the above scheme, determining the relative pitch angle of the dual-camera module based on the first detection parameter and the second detection parameter includes:

[0035] According to the formula Determine the pitch angle β1 of the first camera module;

[0036] According to the formula Determine the pitch angle β2 of the second camera module; wherein,

[0037] d1 is the distance between the center point of the first camera module lens and the center point of the background image; h is the distance between two vertically adjacent marker points in the background image; cd1 is the distance between two first horizontally adjacent target pixels in the first image; ab1 is the distance between two second horizontally adjacent target pixels in the first image; d2 is the distance between the center point of the second camera module lens and the center point of the background image; cd2 is the distance between two first horizontally adjacent target pixels in the second image; ab2 is the distance between two second horizontally adjacent target pixels in the second image.

[0038] A second aspect of the present invention provides an apparatus for detecting a dual-camera module, the apparatus comprising:

[0039] The first acquisition unit is used to acquire a first image captured by the first camera module in relation to a background image and to acquire a second image captured by the second camera module in relation to the background image; the background image has at least four preset marker points, and the four marker points are respectively located in the four corner areas of the background image;

[0040] The second acquisition unit is used to acquire the first detection parameters in the first image and the second detection parameters in the second image;

[0041] The determining unit is used to determine the relative rotation angle, relative flip angle, and relative pitch angle of the dual-camera module based on the first detection parameter and the second detection parameter.

[0042] The detection unit is used to detect the dual-camera module based on the relative rotation angle, the relative flip angle, and the relative pitch angle.

[0043] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps of the method described in any of the first aspects.

[0044] A fourth aspect of the present invention provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the steps of the method described in any of the first aspects.

[0045] This invention provides a method, apparatus, medium, and device for detecting a dual-camera module. The dual-camera module includes a first camera module and a second camera module. The method includes: acquiring a first image captured by the first camera module of a background image and acquiring a second image captured by the second camera module of the background image; the background image has at least four pre-set markers located in the four corner areas of the background image; acquiring a first detection parameter in the first image and acquiring a second detection parameter in the second image; determining a relative rotation angle, a relative flip angle, and a relative pitch angle of the dual-camera module based on the first and second detection parameters; and detecting the dual-camera module based on the relative rotation angle, the relative flip angle, and the relative pitch angle. Thus, by simply capturing images of the background image using the dual-camera module to obtain the first and second images, the detection of the dual-camera module can be achieved. The entire detection process is simple, thereby improving the detection efficiency of dual-camera modules. Attached Figure Description

[0046] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings.

[0047] In the attached diagram:

[0048] Figure 1 A schematic flowchart of a method for detecting a dual-camera module according to an embodiment of the present invention is shown;

[0049] Figure 2 A schematic diagram of a background image according to an embodiment of the present invention is shown;

[0050] Figure 3 A schematic diagram of a dual-camera module rotation according to an embodiment of the present invention is shown;

[0051] Figure 4 A schematic diagram of a dual-camera module flipping according to an embodiment of the present invention is shown;

[0052] Figure 5 A schematic diagram of the pitch of a dual-camera module according to an embodiment of the present invention is shown;

[0053] Figure 6 This illustrates a first image captured when the first camera module in a dual-camera module rotates, according to an embodiment of the present invention.

[0054] Figure 7 A schematic diagram is shown of the first camera module in a dual-camera module according to an embodiment of the present invention when it is flipped.

[0055] Figure 8 An embodiment of the present invention is shown. Figure 7 Equivalent conversion diagram;

[0056] Figure 9 A schematic diagram illustrating the principle of determining the flip angle when a dual-camera module flips according to an embodiment of the present invention is shown;

[0057] Figure 10 A schematic diagram of a device structure for detecting a dual-camera module according to an embodiment of the present invention is shown;

[0058] Figure 11 A schematic diagram of a computer-readable storage medium structure according to an embodiment of the present invention is shown;

[0059] Figure 12 A schematic diagram of a computer device structure according to an embodiment of the present invention is shown. Detailed Implementation

[0060] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to 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 disclosure to those skilled in the art.

[0061] This invention provides a method for detecting a dual-camera module, the dual-camera module including a first camera module and a second camera module, such as... Figure 1 As shown, the method includes the following steps:

[0062] S110, acquire a first image captured by the first camera module of the background image and acquire a second image captured by the second camera module of the background image; the background image has at least four preset marker points, and the four marker points are respectively located in the four corner areas of the background image;

[0063] To facilitate the detection of the dual-camera module, this embodiment specifically sets up a background image. Detection can be achieved once the dual-camera module takes a picture of the background image.

[0064] For reference Figure 2 The background image contains at least four pre-defined markers (A, B, C, and D), located in the four corners of the image. The areas corresponding to these four markers cover at least 70% of the entire background image. Adjacent markers are on the same horizontal or vertical line. The background image also includes a center point O.

[0065] When testing a dual-camera module, the module can be pointed at the background image and photographed. To avoid shooting errors, the center point of the dual-camera module's lens should ideally be on the same horizontal line as the center point of the background image.

[0066] After shooting, a first image captured by the first camera module and a second image captured by the second camera module can be obtained.

[0067] S111, obtain the first detection parameters in the first image and obtain the second detection parameters in the second image;

[0068] Generally, the testing items for dual-camera modules include three types: relative rotation angle deviation, relative tilt angle deviation, and relative pitch angle deviation. For each testing item, the first detection parameter and the second detection parameter required are different. Figure 3 This is a schematic diagram showing that one of the modules in a dual-camera module is rotating. Figure 4 This is a schematic diagram showing that one of the modules in a dual-camera module is flipped. Figure 5 This is a schematic diagram showing the tilt of one of the camera modules in a dual-camera module.

[0069] In one implementation, obtaining a first detection parameter in a first image and obtaining a second detection parameter in a second image includes:

[0070] If it is necessary to detect the relative rotation angle of the dual-camera module, determine the first reference pixel in the first image and the second reference pixel in the second image;

[0071] Determine the first horizontal line connecting the first reference pixel to its horizontally adjacent pixel and the first vertical line connecting the first reference pixel to its vertically adjacent pixel;

[0072] Determine the first horizontal angle between the first horizontal line and the horizontal baseline in the first image, and determine the first vertical angle between the first vertical line and the vertical baseline in the first image;

[0073] Determine the second horizontal line connecting the second reference pixel to its horizontally adjacent pixel and the first vertical line connecting the second reference pixel to its vertically adjacent pixel;

[0074] Determine the second horizontal angle between the second horizontal line and the horizontal baseline in the second image, and determine the second vertical angle between the second vertical line and the vertical baseline in the second image; wherein, the first detection parameters include: the first vertical angle and the second vertical angle; the second detection parameters include: the first horizontal angle and the second horizontal angle.

[0075] Taking the first image as an example, assuming the first camera module is rotated, please refer to... Figure 6 The four markers A, B, C, and D in the background image correspond to the target pixels A1, B1, C1, and D1 in the first image, respectively. The first reference pixel can be any one of the target pixels A1, B1, C1, and D1. Assuming point A1 in the first image is the first reference pixel, its horizontal adjacent pixel is B1, and its vertical adjacent pixel is C1, then the first horizontal line connecting them is A1B1, and the first vertical line connecting them is A1C1. The horizontal baseline is the x-axis in the first image, and the vertical baseline is the y-axis. Therefore, the first horizontal angle is the angle between A1B1 and the x-axis, and the first vertical angle is the angle between A1C1 and the y-axis.

[0076] In one implementation, obtaining a first detection parameter in a first image and obtaining a second detection parameter in a second image includes:

[0077] If it is necessary to detect the relative flip angle of the dual-camera module, the first detection parameters include: the distance between the center point of the first camera module lens and the center point of the background image, the distance between two horizontally adjacent marker points in the background image, the distance between two first vertically adjacent target pixels in the first image, and the distance between two second vertically adjacent target pixels in the first image;

[0078] The second detection parameters include: the distance between the center point of the second camera module lens and the center point of the background image; the distance between two horizontally adjacent marker points in the background image; the distance between two first vertically adjacent target pixels in the second image; and the distance between two second vertically adjacent target pixels in the second image.

[0079] Specifically, continuing with the example of the first camera module, assuming that the first camera module can be flipped (flipped down on the left and flipped up on the right), the following diagram can be found: Figure 7 To better understand this technical solution, this embodiment provides... Figure 7 Equivalent changes were made, resulting in Figure 8 . Figure 8 The first camera module 81 is normal, while the background image 82 has been flipped. Here, x1 is the flip distance, w is the distance between two horizontally adjacent marker points (marker points A and B or C and D) in the background image, and d1 is the distance between the center point of the first camera module lens and the center point of the background image.

[0080] Assuming the flip angle of the first camera module is a1, refer to Figure 7 Then we have:

[0081]

[0082] Will Figure 8 Converting to a plan view yields Figure 9 , Figure 9 In the middle, h is the distance between marked points A and C or B and D in the background image, d is the distance between the center point of the lens 91 of the first camera module and the center point of the background image when the first camera module is not flipped, v is the focal length of the first camera module, and ac1 is the distance between the first two vertically adjacent target pixels in the first image.

[0083] Since the flip distance is x1, it's equivalent to the first camera module shifting upwards by x1 on the left and downwards by x1 on the right. (Continue referring to...) Figure 9 According to the principle of similar triangles, we can obtain:

[0084]

[0085] Similarly, there are:

[0086]

[0087] According to formulas (1), (2), and (3), we can obtain:

[0088]

[0089] From formula (4), we can obtain:

[0090]

[0091] As can be seen from formula (5), the first detection parameters required to determine the flip angle a1 of the first camera module include: the distance d1 between the midpoint of the lens of the first camera module and the center point of the background image, the distance w between two horizontally adjacent marker points in the background image, the distance ac1 between two first vertically adjacent target pixels in the first image, and the distance bd1 between two second vertically adjacent target pixels.

[0092] For the same reason, the second detection parameters needed to determine the flip angle a2 of the second camera module include: the distance d2 between the center point of the lens of the second camera module and the center point of the background image, the distance w between two horizontally adjacent marker points in the background image, and the distance ac2 between the first vertically adjacent target pixels and the distance bd2 between the second vertically adjacent target pixels in the second image.

[0093] Since the camera module tilts up and down, and the direction of the tilt is exactly opposite to the left and right tilt, the first detection parameters needed to determine the tilt angle β1 of the first camera module include: the distance d1 between the center point of the lens of the first camera module and the center point of the background image, the distance h between two vertically adjacent marker points in the background image, the distance ab1 between two first horizontally adjacent target pixels in the first image, and the distance cd1 between two second horizontally adjacent target pixels.

[0094] The second detection parameters required to determine the pitch angle β2 of the second camera module include: the distance d2 between the center point of the lens of the second camera module and the center point of the background image, the distance h between two vertically adjacent marker points in the background image, and the distance ab2 between two first horizontally adjacent target pixels and the distance cd2 between two second horizontally adjacent target pixels in the second image.

[0095] In this way, the first and second detection parameters of the dual-camera module under different flipping scenarios can be determined.

[0096] S112, determine the relative rotation angle, relative flip angle and relative pitch angle of the dual-camera module based on the first detection parameter and the second detection parameter;

[0097] In one implementation, when the dual-camera module rotates, determining the relative rotation angle of the dual-camera module based on a first detection parameter and a second detection parameter includes:

[0098] Determine the absolute value of the first rotation angle difference between the first horizontal angle and the second horizontal angle;

[0099] Determine the absolute value of the second rotation angle difference between the first vertical angle and the second vertical angle;

[0100] The larger of the absolute values ​​of the first and second rotation angle differences is determined as the relative rotation angle of the dual-camera module.

[0101] That is, the relative rotation angle θ can be determined according to formula (6);

[0102] θ=max[|θ1-θ2|, |θ3-θ4|] (6)

[0103] Wherein, θ1 is the first horizontal angle, θ2 is the second horizontal angle, θ3 is the first vertical angle, and θ4 is the fourth vertical angle.

[0104] In one implementation, when the dual-camera module flips, determining the relative flip angle of the dual-camera module based on a first detection parameter and a second detection parameter includes:

[0105] According to the formula Determine the flip angle a1 of the first camera module;

[0106] According to the formula Determine the flip angle a2 of the second camera module;

[0107] The relative flip angle 'a' of the dual-camera module is determined using the formula a = |a1 - a2|; where...

[0108] d1 is the distance between the center point of the first camera module lens and the center point of the background image; w is the distance between two horizontally adjacent marker points in the background image; bd1 is the distance between two first vertically adjacent target pixels in the first image; ac1 is the distance between two second vertically adjacent target pixels in the first image; d2 is the distance between the center point of the second camera module lens and the center point of the background image; bd2 is the distance between two first vertically adjacent target pixels in the second image; ac2 is the distance between two second vertically adjacent target pixels in the second image.

[0109] In one implementation, when the dual-camera module tilts, the relative flip angle of the dual-camera module is determined based on a first detection parameter and a second detection parameter, including:

[0110] According to the formula Determine the pitch angle β1 of the first camera module;

[0111] According to the formula Determine the pitch angle β2 of the second camera module; where,

[0112] d1 is the distance between the center point of the first camera module lens and the center point of the background image; h is the distance between two vertically adjacent marker points in the background image; cd1 is the distance between two horizontally adjacent target pixels in the first image; ab1 is the distance between two horizontally adjacent target pixels in the first image; d2 is the distance between the center point of the second camera module lens and the center point of the background image; cd2 is the distance between two horizontally adjacent target pixels in the second image; ab2 is the distance between two horizontally adjacent target pixels in the second image.

[0113] In this way, the relative rotation angle, relative flip angle, and relative pitch angle of the dual-camera module can be determined.

[0114] S113, the dual-camera module is detected based on the relative rotation angle, the relative flip angle, and the relative pitch angle.

[0115] In one implementation, a dual-camera module is detected based on relative rotation angle, relative flip angle, and relative pitch angle, including:

[0116] If any of the relative rotation angle, relative flip angle, or relative pitch angle does not meet the preset threshold, the dual-camera module is deemed unqualified.

[0117] If the relative rotation angle, relative flip angle, and relative pitch angle all meet the preset thresholds, then the dual-camera module combination is determined.

[0118] The thresholds include: relative rotation angle threshold, relative flip angle threshold, and relative pitch angle threshold. The thresholds can be determined based on the actual requirements of the customer and are not restricted here.

[0119] In this way, the dual-camera module can be detected simply by taking a picture of the background image. The entire detection process is simple, thus improving the detection efficiency of dual-camera modules.

[0120] Based on the same inventive concept as in the foregoing embodiments, this embodiment also provides a device for detecting a dual-camera module, such as... Figure 10 As shown, the device includes:

[0121] The first acquisition unit 101 is used to acquire a first image captured by the first camera module in relation to a background image and to acquire a second image captured by the second camera module in relation to the background image; the background image has at least four preset marker points, and the four marker points are respectively located in the four corner areas of the background image;

[0122] The second acquisition unit 102 is used to acquire the first detection parameter in the first image and the second detection parameter in the second image;

[0123] The determining unit 103 is used to determine the relative rotation angle, relative flip angle, and relative pitch angle of the dual-camera module based on the first detection parameter and the second detection parameter.

[0124] The detection unit 104 is used to detect the dual-camera module based on the relative rotation angle, the relative flip angle, and the relative pitch angle.

[0125] Since the apparatus described in the embodiments of this invention is used for implementing the method of detecting a dual-camera module according to the embodiments of this invention, those skilled in the art can understand the specific structure and variations of the apparatus based on the method described in the embodiments of this invention, and therefore will not be described in detail here. All apparatuses used in the methods of the embodiments of this invention fall within the scope of protection of this invention.

[0126] Based on the same inventive concept, this embodiment provides a computer device 1100, such as... Figure 11 As shown, it includes a memory 1110, a processor 1120, and a computer program 1111 stored in the memory 1110 and executable on the processor 1120. When the processor 1120 executes the computer program 1111, it implements any step of the method described above.

[0127] Based on the same inventive concept, this embodiment provides a computer-readable storage medium 1200, such as... Figure 12 As shown, a computer program 1211 is stored thereon, which, when executed by a processor, implements the steps of any of the methods described above.

[0128] Through one or more embodiments of the present invention, the present invention has the following beneficial effects or advantages:

[0129] This invention provides a method, apparatus, medium, and device for detecting a dual-camera module. The dual-camera module includes a first camera module and a second camera module. The method includes: acquiring a first image captured by the first camera module of a background image and acquiring a second image captured by the second camera module of the background image; the background image has at least four pre-set markers located in the four corner areas of the background image; acquiring a first detection parameter in the first image and acquiring a second detection parameter in the second image; determining a relative rotation angle, a relative flip angle, and a relative pitch angle of the dual-camera module based on the first and second detection parameters; and detecting the dual-camera module based on the relative rotation angle, the relative flip angle, and the relative pitch angle. Thus, by simply capturing images of the background image using the dual-camera module to obtain the first and second images, the detection of the dual-camera module can be achieved. The entire detection process is simple, thereby improving the detection efficiency of dual-camera modules.

[0130] The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings herein. The required structure for constructing such systems is apparent from the above description. Furthermore, this invention is not directed to any particular programming language. It should be understood that the contents of the invention described herein can be implemented using various programming languages, and the above description of specific languages ​​is for the purpose of disclosing the best mode of implementation of the invention.

[0131] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0132] Similarly, it should be understood that, in order to simplify this disclosure and aid in understanding one or more of the various aspects of the invention, in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof. However, this method of disclosure should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, inventive aspects lie in fewer than all features of a single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into this detailed description, wherein each claim itself is a separate embodiment of the invention.

[0133] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.

[0134] Furthermore, those skilled in the art will understand that although some embodiments herein include certain features included in other embodiments but not others, combinations of features from different embodiments are intended to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.

[0135] The various component embodiments of the present invention can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components of the gateway, proxy server, or system according to embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing some or all of the methods described herein. Such programs implementing the present invention 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, provided on a carrier signal, or provided in any other form.

[0136] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.

[0137] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.

[0138] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for detecting a dual-camera module, the dual-camera module comprising a first camera module and a second camera module, characterized in that, The method includes: The system acquires a first image captured by the first camera module and a second image captured by the second camera module; the background image has at least four pre-set markers, which are located in the four corner areas of the background image. Obtain the first detection parameters in the first image and the second detection parameters in the second image; The relative rotation angle, relative flip angle, and relative pitch angle of the dual-camera module are determined based on the first detection parameter and the second detection parameter. The dual-camera module is detected based on the relative rotation angle, the relative flip angle, and the relative pitch angle; wherein... Determining the relative flip angle of the dual-camera module based on the first detection parameter and the second detection parameter includes: According to the formula Determine the flip angle a1 of the first camera module; According to the formula Determine the flip angle a2 of the second camera module; The relative flip angle 'a' of the dual-camera module is determined according to the formula a = |a1 - a2|; where... d1 is the distance between the center point of the first camera module lens and the center point of the background image; w is the distance between two horizontally adjacent marker points in the background image; bd1 is the distance between two first vertically adjacent target pixels in the first image; ac1 is the distance between two second vertically adjacent target pixels in the first image; d2 is the distance between the center point of the second camera module lens and the center point of the background image; bd2 is the distance between two first vertically adjacent target pixels in the second image; ac2 is the distance between two second vertically adjacent target pixels in the second image.

2. The method as described in claim 1, characterized in that, The steps of obtaining the first detection parameter in the first image and obtaining the second detection parameter in the second image include: If it is necessary to detect the relative rotation angle of the dual-camera module, the first reference pixel in the first image and the second reference pixel in the second image are determined. Determine the first horizontal line connecting the first reference pixel to its horizontally adjacent pixel and the first vertical line connecting the first reference pixel to its vertically adjacent pixel; Determine the first horizontal angle between the first horizontal line and the horizontal baseline in the first image, and determine the first vertical angle between the first vertical line and the vertical baseline in the first image; Determine the second horizontal line connecting the second reference pixel to its horizontally adjacent pixel and the second vertical line connecting the second reference pixel to its vertically adjacent pixel; Determine the second horizontal angle between the second horizontal line and the horizontal baseline in the second image, and determine the second vertical angle between the second vertical line and the vertical baseline in the second image; wherein, the first detection parameter includes: the first vertical angle and the first horizontal angle; the second detection parameter includes: the second horizontal angle and the second vertical angle.

3. The method as described in claim 2, characterized in that, Determining the relative rotation angle of the dual-camera module based on the first detection parameter and the second detection parameter includes: Determine the absolute value of the first rotation angle difference between the first horizontal angle and the second horizontal angle; Determine the absolute value of the second rotation angle difference between the first vertical angle and the second vertical angle; The larger of the absolute values ​​of the first and second rotation angle differences is determined as the relative rotation angle of the dual-camera module.

4. The method as described in claim 1, characterized in that, The steps of obtaining the first detection parameter in the first image and obtaining the second detection parameter in the second image include: If it is necessary to detect the relative flip angle of the dual-camera module, the first detection parameters include: the distance between the center point of the lens of the first camera module and the center point of the background image; the distance between two horizontally adjacent marker points in the background image; the distance between two first vertically adjacent target pixels in the first image; and the distance between two second vertically adjacent target pixels in the first image. The second detection parameters include: the distance between the center point of the second camera module lens and the center point of the background image; the distance between two horizontally adjacent marker points in the background image; the distance between two first vertically adjacent target pixels in the second image; and the distance between two second vertically adjacent target pixels in the second image; wherein, The positions of the target pixels in the first and second images are determined based on the positions of the corresponding marker points in the background image.

5. The method as described in claim 1, characterized in that, The steps of obtaining the first detection parameter in the first image and obtaining the second detection parameter in the second image include: If it is necessary to detect the relative pitch angle of the dual-camera module, the first detection parameters include: the distance between the center point of the lens of the first camera module and the center point of the background image; the distance between two vertically adjacent marker points in the background image; the distance between two first horizontally adjacent target pixels in the first image; and the distance between two second horizontally adjacent target pixels in the first image. The second detection parameters include: the distance between the center point of the second camera module lens and the center point of the background image; the distance between two vertically adjacent marker points in the background image; the distance between two first horizontally adjacent target pixels in the second image; and the distance between two second horizontally adjacent target pixels in the second image; wherein, The positions of the target pixels in the first and second images are determined based on the positions of the corresponding marker points in the background image.

6. The method as described in claim 5, characterized in that, Determining the relative pitch angle of the dual-camera module based on the first detection parameter and the second detection parameter includes: According to the formula Determine the pitch angle β1 of the first camera module; According to the formula Determine the pitch angle β2 of the second camera module; wherein, d1 is the distance between the center point of the first camera module lens and the center point of the background image; h is the distance between two vertically adjacent marker points in the background image; cd1 is the distance between two first horizontally adjacent target pixels in the first image; ab1 is the distance between two second horizontally adjacent target pixels in the first image; d2 is the distance between the center point of the second camera module lens and the center point of the background image; cd2 is the distance between two first horizontally adjacent target pixels in the second image; ab2 is the distance between two second horizontally adjacent target pixels in the second image.

7. A device for detecting a dual-camera module, characterized in that, The device includes: The first acquisition unit is used to acquire a first image captured by a first camera module of a background image and to acquire a second image captured by a second camera module of the background image; the background image has at least four preset marker points, and the four marker points are respectively located in the four corner areas of the background image; The second acquisition unit is used to acquire the first detection parameters in the first image and the second detection parameters in the second image; The determining unit is configured to determine the relative rotation angle, relative flip angle, and relative pitch angle of the dual-camera module based on the first detection parameter and the second detection parameter. The detection unit is used to detect the dual-camera module based on the relative rotation angle, the relative flip angle, and the relative pitch angle; wherein, Determining the relative flip angle of the dual-camera module based on the first detection parameter and the second detection parameter includes: According to the formula Determine the flip angle a1 of the first camera module; According to the formula Determine the flip angle a2 of the second camera module; The relative flip angle 'a' of the dual-camera module is determined according to the formula a = |a1 - a2|; where... d1 is the distance between the center point of the first camera module lens and the center point of the background image; w is the distance between two horizontally adjacent marker points in the background image; bd1 is the distance between two first vertically adjacent target pixels in the first image; ac1 is the distance between two second vertically adjacent target pixels in the first image; d2 is the distance between the center point of the second camera module lens and the center point of the background image; bd2 is the distance between two first vertically adjacent target pixels in the second image; ac2 is the distance between two second vertically adjacent target pixels in the second image.

8. 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-6.

9. 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-6.

Citation Information

Patent Citations

  • Detection method and equipment for double-camera-shooting-unit module

    CN106846401A