Photographing equipment for inclined plane detection and photographing measurement and calculation method

Through the camera equipment and image processing algorithm for inclined surface detection, the problem of traditional vertical photography methods being difficult to accurately obtain inclined surface structure information has been solved, high-precision inclined surface detection has been achieved, and the accuracy and stability of the detection results have been improved.

CN120593620APending Publication Date: 2025-09-05SHENZHEN INTELLIGENT PRECISION INSTR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510879741.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-27
Publication Date
2025-09-05

AI Technical Summary

Technical Problem

Traditional vertical photography methods make it difficult to accurately obtain the spatial position and size information of inclined structures, affecting the accuracy and reliability of detection results.

Method used

The photographic equipment using inclined surface detection includes multi-angle shooting and image processing algorithms. The first camera component and the second camera component are used to take pictures of the front of the product and the front of the connection part respectively. Combined with the image processing unit and the spatial coordinate calculation unit of the geometric calculation module, the edge and center line information are extracted, and spatial coordinate transformation and geometric relationship calculation are performed.

Benefits of technology

It achieves high-precision detection of inclined structures, improves detection accuracy and efficiency, avoids the limitations of traditional vertical photography methods, and ensures the accuracy and stability of detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120593620A_ABST
    Figure CN120593620A_ABST
Patent Text Reader

Abstract

The invention relates to photographing equipment for inclined plane detection and a photographing calculation method. The photographing equipment comprises a first camera assembly for photographing the front side of a product, a second camera assembly for photographing the front side of a connecting part, and a geometric calculation module. According to the equipment, the first camera assembly and the second camera assembly are used for carrying out multi-angle photographing on the front face of the product and the front face of the connecting part, the geometric calculation module is used for carrying out image processing and space coordinate calculation, and rapid and accurate measurement of the position, the size and the angle of the connecting part is achieved. According to the invention, the measurement precision of product photographing is ensured, the accuracy of data is also ensured, and the device is suitable for high-precision detection requirements of products with inclined plane connection structures, such as button cells.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial detection equipment, and more particularly to a photographing device for inclined surface detection and a photographing and measuring method. Background Art

[0002] The connector of a button battery is a key structure for connecting it to external components. It is usually designed as a slanted ridge. To ensure the stability and reliability of the connection, the size and position accuracy of this connector must strictly meet design requirements.

[0003] With the continuous development of inspection technology, a variety of inspection devices and methods have emerged within the industry, capable of meeting most inspection needs. However, when dealing with inclined joints, traditional vertical imaging methods struggle to accurately capture their true spatial position and dimensions, thus impacting the accuracy and reliability of inspection results. Existing technologies still have limitations when measuring such inclined structures, making it difficult to meet the practical application requirements of high-precision inspection. Summary of the Invention

[0004] The technical problem to be solved by the present invention is that, in response to the above-mentioned defects of the prior art, a photographic device and a photographic measurement method for inclined surface detection are provided, which can accurately detect the size, position and angle information of products with inclined connection parts through multi-angle shooting and image processing algorithms, thereby improving detection accuracy and efficiency.

[0005] On the one hand, the technical solution adopted by the present invention to solve its technical problem is: a photographic device for inclined surface detection, which includes a detection position for placing a product; the front of the product is provided with an inclined connecting portion, and the front of the connecting portion is an inclined surface arranged at an angle to the front of the product; a photographic module for photographing the product is provided on one side of the detection position; the photographic module includes a first camera component for photographing the front of the product, and a second camera component for photographing the front of the connecting portion; the photographic device also includes a geometric calculation module; the geometric calculation module includes an image processing unit and a spatial coordinate calculation unit; the image processing unit is used to process the images taken by the first camera component and the second camera component, and extract edge information and center line information of the connecting portion; the spatial coordinate calculation unit is used to perform spatial coordinate transformation and geometric relationship calculation based on the extracted edge information and center line information to determine the position and size of the connecting portion and its relative relationship with the front of the product;

[0006] The photographing device of the present invention, wherein the photographing module further includes a third camera assembly for photographing the upper surface of the product at the inspection position, and a lifting assembly for driving the third camera assembly toward or away from the inspection position;

[0007] The photographing device of the present invention further comprises a lighting component for providing light to the product at the inspection position;

[0008] In the photographing device of the present invention, the illumination component is located between the detection position and the photographing module; the illumination component includes two sets of illumination modules; the two sets of illumination modules are respectively located on the left and right sides of the photographing line of sight of the photographing module;

[0009] The photographing device of the present invention, wherein the illumination module includes a first light source for illuminating the front surface of the product, and a second light source for illuminating the front surface of the connecting portion;

[0010] The photographing device of the present invention further comprises a mounting frame; the detection position is located on the front side of the mounting frame; the third camera assembly and the lifting assembly are mounted on the upper end of the mounting frame; the first camera assembly and the second camera assembly are both mounted on the rear side of the mounting frame via a fixing bracket; the mounting frame is provided with an avoidance groove running through the front and rear sides of the mounting frame to facilitate the photographing module to directly photograph the corresponding detection position;

[0011] The photographing device of the present invention, wherein the second camera assembly and the first camera assembly are arranged vertically, and the shooting angle of the first camera assembly is perpendicular to the central axis of the product; the shooting angle of the second camera assembly is perpendicular to the front face of the connecting portion;

[0012] The photographing device of the present invention, wherein a third light source is fixedly provided on the mounting frame between the detection position and the third camera assembly; the third light source illuminates the upper surface of the product on the detection position;

[0013] The photographing device of the present invention is characterized in that the photographing modules are provided in multiple groups; each group of the photographing modules can take photos of products at two of the inspection positions;

[0014] On the other hand, the present invention further provides a photographic measurement method, using any of the above-described photographic devices for slope detection, wherein the photographic measurement method comprises the following steps:

[0015] Place the product on the inspection position, take a picture of the front of the product with the first camera assembly, and take a picture of the front of the connecting part with the second camera assembly;

[0016] The image processing unit of the geometric calculation module processes the image of the connection portion captured by the second camera assembly, extracts the outer edge, center line and center point of the connection portion and records their position information;

[0017] Mapping the center point of the connecting portion to the front image captured by the first camera assembly, extracting information about the edges of a vertex of the product in the front image through the image processing unit of the geometric calculation module, and further establishing a reference line A;

[0018] The vertical distance from the center point of the connecting part to the reference line A, as well as the angle between the center line of the connecting part and the reference line A, are calculated by the spatial coordinate calculation unit of the geometric calculation module; based on the preset size and angle standards, whether the vertical distance and angle meet the requirements is judged, and then the position, size and relative relationship of the connecting part to the front of the product are determined, and the detection results are output.

[0019] The beneficial effects of the present invention are: the photographic equipment for inclined surface detection has a simple structure and an ingenious design; it includes a first camera component, a second camera component and a geometric calculation module; the geometric calculation module includes an image processing unit and a spatial coordinate calculation unit; the first camera component takes a frontal photograph of the front of the product and the second camera component takes a frontal photograph of the front of the connection part; the image processing unit processes the images taken by the first camera component and the second camera component, and extracts the edge information and center line information of the connection part; the spatial coordinate calculation unit is used to perform spatial coordinate transformation and geometric relationship calculation based on the extracted edge information and center line information to determine the position, size and relative relationship of the connection part to the front of the product.

[0020] Through the image processing unit and spatial coordinate calculation unit, the edge and center point information of the connection can be accurately extracted, and spatial coordinate transformation and geometric relationship calculation can be performed, thereby achieving high-precision detection of the connection position, size, and angle, and realizing fast and accurate measurement results. This structure not only ensures the measurement accuracy of product photography, but also avoids the limitations of traditional vertical photography in inclined surface structure inspection. At the same time, through the fusion processing of multi-angle image data, it significantly improves data accuracy, providing a reliable technical support for high-precision industrial inspection. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be further described below with reference to the accompanying drawings and embodiments. The drawings described below are only some embodiments of the present invention. Those skilled in the art can also derive other drawings based on these drawings without inventive efforts.

[0022] Figure 1 This is a schematic diagram of the structure of a camera device for inclined surface detection according to a preferred embodiment of the present invention. Figure 1 .

[0023] Figure 2 This is a schematic diagram of the structure of a camera device for inclined surface detection according to a preferred embodiment of the present invention. Figure 2 .

[0024] Figure 3 yes Figure 1 Schematic diagram of the product structure Figure 1 .

[0025] Figure 4 yes Figure 1 Schematic diagram of the product structure Figure 2 .

[0026] Figure 5 yes Figure 4 Front view of the middle connection. DETAILED DESCRIPTION

[0027] The terms "first," "second," "third," and "fourth," etc., in the specification, claims, and accompanying drawings of the present invention are used to distinguish between different items, not to describe a specific order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements, but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.

[0028] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute a separate or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0029] "Multiple" refers to two or more. "And / or" describes the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0030] Moreover, the terms "up, down, front, back, left, right, upper end, lower end, longitudinal" and the like indicating directions are all based on the posture and position of the device or apparatus described in this solution during normal use.

[0031] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the following will be a clear and complete description of the technical solutions in the embodiments of the present invention. Obviously, the embodiments described are some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work shall fall within the scope of protection of the present invention.

[0032] Example 1:

[0033] A photographic device for detecting an inclined surface according to a preferred embodiment of the present invention is as follows: Figure 1-5 As shown, it includes a mounting frame 10; the front end of the mounting frame 10 is provided with a detection position 01 for placing a product 11; the front face 111 of the product 11 is provided with an inclined connection portion 12, and the connection portion 12 is located on the front face of the product 11; the front face 121 of the connection portion 12 is an inclined surface set at an angle to the front face of the product 11; the product 11 is such as a button battery. A camera module 20 for taking a picture of the product 11 is provided on one side of the detection position 01; the camera module 20 includes a first camera assembly 21 for taking a frontal picture of the front face of the product 11, and a second camera assembly 22 for taking a frontal picture of the front face of the connection portion 12; the first camera assembly and the second camera assembly respectively take pictures of the front face of the product and the front face of the connection portion, thereby overcoming the problem that traditional vertical photography cannot accurately identify inclined surface structures. In this embodiment, both the first camera assembly and the second camera assembly can adopt CCD cameras in the prior art. The first camera assembly 21 and the second camera assembly 22 are both mounted on the rear side of the mounting frame 10 through a fixing bracket 13; the mounting frame 10 is provided with an avoidance groove 14 running through the front and rear sides of the mounting frame 10, so that the camera module 20 can directly take pictures toward the corresponding detection position 01.

[0034] For connecting parts with inclined structures, traditional vertical photography methods are prone to image distortion or information loss due to viewing angle deviation. However, the present invention uses a second camera component to take pictures from the front of the connecting part, which can obtain image information of the inclined structure more realistically and completely, thereby improving the measurement accuracy of size and position.

[0035] In this embodiment, the photographing device further includes a geometric calculation module; the geometric calculation module includes an image processing unit (not shown) and a spatial coordinate calculation unit (not shown); the image processing unit is used to process the images captured by the first camera assembly 21 and the second camera assembly 22, and extract edge information (L1, L2, L3 and L4) and center line information (L5, L6) of the connecting portion 12. The intersection of the two center lines is the center point P, which overcomes the edge blur or distortion problem caused by the inclined surface structure in traditional image processing and ensures the accurate positioning of key feature points;

[0036] The spatial coordinate calculation unit is used to perform spatial coordinate transformation and geometric relationship calculation based on the extracted edge and centerline information to determine the position and size of the connecting portion 12 and its relative relationship to the front of the product 11. Through the image processing unit and the spatial coordinate calculation unit, the edge and centerline information of the connecting portion can be accurately extracted, and spatial coordinate transformation and geometric relationship calculation can be performed, thereby achieving high-precision detection of the position, size, and angle of the connecting portion.

[0037] Through the collaborative work of the image processing unit and the spatial coordinate calculation unit, the device can adapt to the needs of joint inspection with complex inclined structures. Whether it is edge detection or angle calculation, it can maintain high precision and stability to meet the highest standards of industrial inspection.

[0038] The image processing unit and the spatial coordinate calculation unit are both mature components in the existing technology. The image processing unit uses existing image processing algorithms and hardware implementations, such as edge detection algorithms (such as Canny edge detection) and contour extraction algorithms based on the OpenCV library. The spatial coordinate calculation unit utilizes existing spatial coordinate transformation and geometric relationship calculation methods, such as coordinate mapping based on perspective transformation, 3D reconstruction algorithms, and least squares fitting. These technologies can perform precise spatial coordinate transformation and geometric relationship calculation based on the feature information extracted by the image processing unit, thereby determining parameters such as the target object's position, size, and angle in three-dimensional space.

[0039] Furthermore, the second camera assembly 22 and the first camera assembly 21 are arranged vertically, and the shooting angle of the first camera assembly 21 is perpendicular to the central axis of the product 11; the shooting angle of the second camera assembly 22 is perpendicular to the front of the connection part 12. The first camera assembly 21 can shoot the connection part from a first perspective, and the second camera assembly 22 can shoot the connection part from a second perspective. The connection part of the inclined structure may be difficult to clearly identify from a vertical perspective due to shadows or angle problems. The present invention adopts a multi-angle shooting method, combining the formal and oblique image information of the same surface of the connection part, to effectively enhance the accuracy and stability of image recognition, and facilitate subsequent image processing and geometric calculations. It is suitable for tiny electronic components with inclined connections, such as button batteries, with a compact structure and reasonable layout, good versatility and adaptability, and can meet the needs of various product inspections.

[0040] Furthermore, the camera module 20 includes a third camera assembly 23 for photographing the upper surface of the product 11 at the inspection position 01, and a lifting assembly 24 for moving the third camera assembly 23 toward or away from the inspection position 01 to accommodate products of varying thicknesses. The third camera assembly 23 and the lifting assembly 24 are mounted on the upper end of the mounting frame 10. The third camera assembly 23 can be adjusted in distance by the lifting assembly 24. The third camera assembly 23 can also be a CCD camera as known in the art, and the lifting assembly 24 can be a linear drive motor, a lead screw drive motor, or other drive structure as known in the art.

[0041] The third camera assembly 23 is used to take pictures of the upper surface of the product. Combined with the first camera assembly 21 and the second camera assembly 22, they respectively take pictures of the front and the inclined surface, forming a multi-angle and multi-directional image acquisition system for the product, enhancing the comprehensiveness of the detection information and helping to more accurately judge the overall structure and appearance quality of the product.

[0042] In order to improve the image quality, the photographing device also includes an illumination component 30 that provides light to the product 11 on the detection position 01. The illumination component 30 provides a uniform and stable lighting environment for the product 11, which helps to enhance the brightness and contrast of the image, making the multiple surfaces of the connecting portion 12 clearer in the image, and facilitating the image processing unit to accurately extract edge and centerline information, thereby improving detection accuracy. In this embodiment, the illumination component 30 is located between the detection position 01 and the photographing module 20; the illumination component 30 includes two sets of illumination modules; the two sets of illumination modules are respectively located on the left and right sides of the photographing line of sight of the photographing module 20, which can effectively avoid shadows or reflections caused by a single light source, especially for products made of metal or highly reflective surfaces (such as button batteries), which can significantly reduce light spots or dark areas in the image and improve the stability and consistency of image quality. Stable lighting conditions help to reduce image fluctuations caused by changes in ambient light, thereby improving the stability and repeatability of the equipment in detection at different times and in different batches, and enhancing the reliability of the detection results.

[0043] Furthermore, the illumination module includes a first light source component 31 for illuminating the front of the product 11, and a second light source component 32 for illuminating the front of the connecting portion 12. In this embodiment, the first light source component 31 and the second light source component 32 are both light source bars in the prior art, and the two light source bars are arranged up and down, and the two light source bars are electrically connected by wires. The first light source component 31 is specifically used for illuminating the front of the product (the first viewing angle of the connecting portion), and the second light source component 32 is specifically used for illuminating the front of the connecting portion (the second viewing angle of the connecting portion), which can optimize the lighting conditions of the front and the inclined surface respectively, avoid certain areas being too bright or too dark due to a single light source, thereby significantly improving the overall quality of the image, and helping the image processing unit to more accurately extract edge and centerline information.

[0044] Furthermore, a third light source 15 is fixedly provided on the mounting frame 10 between the detection position 01 and the third camera assembly 23; the third light source 15 illuminates the upper surface of the product 11 on the detection position 01. The third light source 15 is a light source ring structure known in the prior art. The third light source 15 is specifically used to illuminate the upper surface of the product 11, effectively improving the brightness and contrast of the image captured by the third camera assembly 23. In particular, when the product surface is reflective, matte, or dark in color, it can significantly improve the image quality, facilitating the image processing unit to accurately identify and analyze upper surface features (such as logos, scratches, dimensional contours, etc.).

[0045] Optionally, multiple groups of camera modules 20 are provided; each group of camera modules 20 can take pictures of the products 11 on the two detection positions 01. By providing multiple groups of camera modules, and each group of modules can take pictures of the products on the two detection positions at the same time, the number of inspections per unit time can be significantly increased. In an automated production line, this parallel inspection capability helps to shorten the inspection cycle, increase the throughput of the entire production line, and meet the needs of large-scale, high-frequency inspections; rationally pairing multiple detection positions with camera modules enables the equipment to achieve higher inspection capabilities within a limited space. Compared with the traditional single-module, single-detection position design, the multi-module, multi-detection position layout is more compact, which is conducive to the integration and deployment of equipment on the production line, and is particularly suitable for automated workshop environments with limited space.

[0046] During operation, the user places the product on the inspection position, and the camera module begins capturing images from multiple angles. The geometric calculation module processes the images, extracts key geometric features of the connection, and performs spatial mapping and calculations. By calculating the vertical distance from the center point of the connection to reference line A, as well as the angle between the center line of the connection and reference line A, it determines whether the connection meets the preset size and angle standards.

[0047] Example 2:

[0048] A photographic measurement method, using the photographic device for slope detection as described in Example 1, is characterized in that the photographic measurement method comprises the following steps:

[0049] Place the product on the inspection position, take a picture of the front of the product (such as a button battery) with the first camera assembly, and take a picture of the front of the connection part with the second camera assembly;

[0050] The image processing unit of the geometric calculation module processes the connection part image taken by the second camera assembly, and extracts the outer edge of the connection part (such as Figure 4 L1, L2, L3 and L4 in), center line (such as Figure 4L5 and L6 in the figure) and the center point P and record their position information; wherein, the center line L5 of L1 and L2, and the center line L6 of L3 and L4, take the intersection point P of L5 and L6 as the center point of the connection;

[0051] The center point P of the connection part is mapped to the front image taken by the first camera assembly, and the image processing unit of the geometric calculation module extracts the edges of one vertex of the product in the front image (such as Figure 5 The intersection points P1 and P2 of L8 and L7 are calculated by the geometric calculation module, and P1 and P2 are connected as a reference line A;

[0052] The vertical distance from the center point of the connecting part to the reference line A, as well as the angle between the center line L5 of the connecting part and the reference line A are calculated by the spatial coordinate calculation unit of the geometric calculation module; according to the preset size and angle standards, it is judged whether the vertical distance and angle meet the requirements, and then the position, size and relative relationship of the connecting part to the front of the product are determined, and the detection results are output.

[0053] By taking photos of the front of the product and the front of the connection using the first and second camera assemblies, respectively, and extracting key geometric features such as edges, centerlines, and center points using the image processing unit, the high-precision positioning of the connection in three-dimensional space can be achieved. The spatial coordinate calculation unit further calculates the vertical distance and angle between the center point of the connection and the reference line A, thereby achieving accurate measurement of inclined structures. This method avoids the subjective errors of manual measurement through standardized image processing processes and spatial calculation algorithms, ensuring the objectivity and consistency of the test results. This method exhibits higher repeatability and stability, especially when inspecting tiny or inclined structures (such as the connection of button batteries).

[0054] Through the image processing unit and spatial coordinate calculation unit, the edge and center point information of the connection can be accurately extracted, and spatial coordinate transformation and geometric relationship calculation can be performed, thereby achieving high-precision detection of the connection position, size, and angle, and realizing fast and accurate measurement results. This structure not only ensures the measurement accuracy of product photography, but also avoids the limitations of traditional vertical photography in inclined surface structure inspection. At the same time, through the fusion processing of multi-angle image data, it significantly improves data accuracy, providing a reliable technical support for high-precision industrial inspection.

[0055] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all such improvements and changes should fall within the scope of protection of the appended claims of the present invention.

Claims

1. A photographic device for inclined surface detection, characterized in that: It includes a detection position for placing a product; the front of the product is provided with an inclined connecting part, and the front of the connecting part is an inclined surface set at an angle to the front of the product; a photo module for taking a photo of the product is provided on one side of the detection position; the photo module includes a first camera component for taking a front photo of the front of the product, and a second camera component for taking a front photo of the front of the connecting part; the photo device also includes a geometric calculation module; the geometric calculation module includes an image processing unit and a spatial coordinate calculation unit; the image processing unit is used to process the images taken by the first camera component and the second camera component, and extract the edge information and center line information of the connecting part; the spatial coordinate calculation unit is used to perform spatial coordinate transformation and geometric relationship calculation based on the extracted edge information and center line information, so as to determine the position, size and relative relationship of the connecting part with the front of the product.

2. The photographic device for inclined surface detection according to claim 1, characterized in that: The photographing module further includes a third camera assembly for photographing the upper surface of the product at the inspection position, and a lifting assembly for driving the third camera assembly toward or away from the inspection position.

3. The photographic device for inclined surface detection according to claim 1 or 2, characterized in that: The photographing device further includes a lighting component for providing light toward the product at the inspection position.

4. The photographic device for inclined surface detection according to claim 3, characterized in that: The illumination component is located between the detection position and the camera module; the illumination component includes two groups of illumination modules; the two groups of illumination modules are respectively located on the left and right sides of the camera module's camera sight line.

5. The photographic device for inclined surface detection according to claim 4, characterized in that: The illumination module includes a first light source for illuminating the front surface of the product, and a second light source for illuminating the front surface of the connecting portion.

6. The photographic device for inclined surface detection according to claim 2, characterized in that: It also includes a mounting frame; the detection position is located on the front side of the mounting frame; the third camera assembly and the lifting assembly are installed on the upper end of the mounting frame; the first camera assembly and the second camera assembly are both installed on the rear side of the mounting frame through a fixed bracket; the mounting frame is provided with an avoidance groove running through the front and rear sides of the mounting frame, so that the camera module can take pictures directly toward the corresponding detection position.

7. The photographic device for inclined surface detection according to claim 6, characterized in that: The second camera assembly and the first camera assembly are arranged vertically, and the shooting angle of the first camera assembly is perpendicular to the central axis of the product; the shooting angle of the second camera assembly is perpendicular to the front side of the connecting part.

8. The photographic device for inclined surface detection according to claim 7, characterized in that: A third light source is fixedly provided on the mounting frame between the detection position and the third camera assembly; the third light source illuminates the upper surface of the product on the detection position.

9. The photographic device for inclined surface detection according to claim 1, characterized in that: There are multiple groups of camera modules; each group of camera modules can take pictures of products on two detection positions.

10. A photographic measurement method, using the photographic device for slope detection according to any one of claims 1 to 9, characterized in that: The photographing and measuring method comprises the following steps: Place the product on the inspection position, take a picture of the front of the product with the first camera assembly, and take a picture of the front of the connecting part with the second camera assembly; The image processing unit of the geometric calculation module processes the image of the connection portion captured by the second camera assembly, extracts the outer edge, center line and center point of the connection portion and records their position information; Mapping the center point of the connecting portion to the front image captured by the first camera assembly, extracting information about the edges of a vertex of the product in the front image through the image processing unit of the geometric calculation module, and further establishing a reference line A; The vertical distance from the center point of the connecting part to the reference line A, as well as the angle between the center line of the connecting part and the reference line A, are calculated by the spatial coordinate calculation unit of the geometric calculation module; based on the preset size and angle standards, whether the vertical distance and angle meet the requirements is judged, and then the position, size and relative relationship of the connecting part to the front of the product are determined, and the detection results are output.