Four-eye camera handheld high-precision three-dimensional scanning array structure, visual method and system

Through the four-camera handheld structure, combined with 3-channel black and white cameras and 1-channel RGB camera, the problems of texture mapping, occlusion matching and field of view accuracy of binocular machine vision in 3D reconstruction are solved, achieving high-precision and high-detail 3D scanning. Effect.

CN118138740BActive Publication Date: 2024-10-25HANGZHOU FEIBAI 3D TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410272271.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-11
Publication Date
2024-10-25
Estimated Expiration
2044-03-11

AI Technical Summary

Technical Problem

Existing binocular machine vision suffers from poor texture mapping results in 3D reconstruction, difficulty in name-point matching during occlusion, high noise and blur caused by color cameras, and difficulty in balancing volume accuracy and detail accuracy in the field of view of traditional binocular structures. question.

Method used

It adopts a four-camera handheld high-precision three-dimensional scanning array structure, including 3 black and white cameras and 1 RGB camera. It is calibrated through the rotation matrix and horizontal matrix relationship. The combination of 3 black and white cameras and 1 RGB camera is used for binocular stereo vision. Reconstruction implements color texture mapping and pixel compensation to form 8 binocular combinations to adapt to different field of view sizes and accuracy requirements.

Benefits of technology

It improves the accuracy and detailed information of 3D scanning, reduces noise, enhances matching efficiency and accuracy, realizes flexible adjustment of field of view size, and solves the difficulty of balancing accuracy and details in traditional technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118138740B_ABST
    Figure CN118138740B_ABST
Patent Text Reader

Abstract

The present invention proposes a four-camera handheld high-precision three-dimensional scanning array structure, a visual method and a system. The four-camera handheld high-precision three-dimensional scanning array structure includes four cameras, wherein the four cameras include three black-and-white cameras and one RGB camera, and the three black-and-white cameras are not in a straight line. The visual method includes arranging the position and camera parameters of one of the three black-and-white cameras; using one of the three black-and-white cameras as pixel compensation of the same name point of the occlusion combined with the color texture mapping of the one RGB camera to establish a 3D model with color texture of the target object. The system includes modules corresponding to the steps of the method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention proposes a four-eye camera handheld high-precision three-dimensional scanning array structure, a visual method and a system. The present invention relates to the field of three-dimensional scanning array technology, and in particular to the field of four-eye camera handheld high-precision three-dimensional scanning array structure technology. Background Art

[0002] Existing binocular machine vision usually uses black and white cameras for 3D reconstruction, which does not have the effect of texture mapping. Binocular stereo vision relies on binocular same-name point matching. When encountering occlusion, point matching is difficult and there are scanning blind spots. Some binocular stereo vision uses color cameras for 3D reconstruction. Color cameras are prone to high noise, data loss and reconstruction blur. The traditional binocular structure has only one set of internal and external parameters. The larger the field of view, the better the volume accuracy, but it often leads to blurred details. The smaller the field of view, the better the details, but it is difficult to guarantee volume accuracy. Summary of the invention

[0003] The present invention provides a four-camera handheld high-precision three-dimensional scanning array structure, a visual method and a system to solve the problems that the existing binocular machine vision usually uses black and white cameras for three-dimensional reconstruction, which does not have the effect of accompanying texture mapping, and the binocular stereo vision relies on binocular same-name point matching. When encountering occlusion, the matching of the name points is difficult and there are scanning dead angles. Some binocular stereo vision uses color cameras for three-dimensional reconstruction, and color cameras are prone to high noise, data loss and reconstruction fuzziness. The traditional binocular structure has only one set of internal and external parameters. The larger the field of view, the better the volume accuracy, but often leads to blurred details. The smaller the field of view, the better the details, but it is difficult to ensure the volume accuracy.

[0004] The present invention proposes a four-camera handheld high-precision three-dimensional scanning array structure, a visual method and a system. The four-camera handheld high-precision three-dimensional scanning array structure includes four cameras, wherein the four cameras include three black-and-white cameras and one RGB camera, and the three black-and-white cameras are not in a straight line.

[0005] Furthermore, a camera straight-line distance is formed between every two cameras in the three black-and-white cameras, and three camera straight-line distances are generated in total, wherein two camera straight-line distances among the three camera straight-line distances are smaller than the third camera straight-line distance. Every two cameras in the three black-and-white cameras form a binocular stereoscopic vision relationship for multiple binocular stereoscopic vision reconstruction.

[0006] Furthermore, the two black-and-white cameras corresponding to the straight-line distance of the camera with the longest straight-line distance constitute a binocular relationship, and a third black-and-white camera other than the two black-and-white cameras in the binocular relationship exists in a common field of view for the two black-and-white cameras in the binocular relationship, and is used to perform matching relationship judgment on the occluded same-name points generated by the two black-and-white cameras in the binocular relationship.

[0007] Furthermore, the distance between the 1-way RGB camera and the 3-way black-and-white cameras is calibrated using the relationship between the rotation matrix and horizontal matrix of the 3-way black-and-white cameras and the rotation matrix and horizontal matrix of the 1-way RGB camera. The distance between the 1-way RGB camera and the 3-way black-and-white cameras is obtained by the following formula:

[0008] The distance calculation formula between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship is:

[0009]

[0010] in, is the distance between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship. is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the third black-and-white camera, is the rotation angle of the third black-and-white camera at the mth rotation, and a plane rectangular coordinate system is established with the preset origin as the reference point. is the larger abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the smaller abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the larger ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera, is the smaller ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera;

[0011] The distance formula between one RGB camera and two black and white cameras in binocular relationship is:

[0012]

[0013] in, is the distance between one RGB camera and two black-and-white cameras in binocular relationship, is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the two black-and-white cameras that form the binocular relationship, and are the rotation angles of the two black-and-white cameras that constitute the binocular relationship at the mth rotation, and the center point of the straight-line distance between the two black-and-white cameras that constitute the binocular relationship is the binocular camera coordinate point. is the larger horizontal coordinate of the horizontal coordinate of the binocular camera coordinate point and the horizontal coordinate of the RGB camera, is the smaller horizontal coordinate of the binocular camera coordinate point and the RGB camera horizontal coordinate, is the larger ordinate of the binocular camera coordinate point and the RGB camera ordinate, It is the smaller ordinate of the binocular camera coordinate point and the ordinate of the RGB camera.

[0014] Furthermore, the visual method comprises:

[0015] Arrange the position and camera parameters of one of the three black-and-white cameras;

[0016] A 3D model with color texture of the target object is established by using one black-and-white camera among the three black-and-white cameras to compensate the pixel of the occluded homonymous points and combining it with the color texture mapping of one RGB camera.

[0017] Furthermore, the position and camera parameters of one of the three black-and-white cameras are arranged, including:

[0018] Perform internal and external parameter calibration for three black-and-white cameras and one RGB camera, wherein the internal parameters include the optical center and the distortion coefficient; the external parameters include the rotation matrix and the horizontal matrix;

[0019] The distance between the 1-way RGB camera and the 3-way black-and-white cameras is calibrated by using the relationship between the rotation matrix and the horizontal matrix of the 3-way black-and-white cameras and the rotation matrix and the horizontal matrix of the 1-way RGB camera; wherein the distance between the 1-way RGB camera and the 3-way black-and-white cameras is obtained by the following formula:

[0020] The distance calculation formula between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship is:

[0021]

[0022] in, is the distance between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship. is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the third black-and-white camera, is the rotation angle of the third black-and-white camera at the mth rotation, and a plane rectangular coordinate system is established with the preset origin as the reference point. is the larger abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the smaller abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the larger ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera, is the smaller ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera;

[0023] The distance formula between one RGB camera and two black and white cameras in binocular relationship is:

[0024]

[0025] in, is the distance between one RGB camera and two black-and-white cameras in binocular relationship, is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the two black-and-white cameras that form the binocular relationship, and are the rotation angles of the two black-and-white cameras that constitute the binocular relationship at the mth rotation, and the center point of the straight-line distance between the two black-and-white cameras that constitute the binocular relationship is the binocular camera coordinate point. is the larger horizontal coordinate of the horizontal coordinate of the binocular camera coordinate point and the horizontal coordinate of the RGB camera, is the smaller horizontal coordinate of the binocular camera coordinate point and the RGB camera horizontal coordinate, is the larger ordinate of the binocular camera coordinate point and the RGB camera ordinate, It is the smaller ordinate of the binocular camera coordinate point and the ordinate of the RGB camera.

[0026] Align the three black-and-white cameras and the one RGB camera with the target object so that the three black-and-white cameras and the one RGB camera are on the same horizontal plane as the target object; wherein a camera straight-line distance is formed between every two cameras in the three black-and-white cameras, and a total of three camera straight-line distances are generated, and among the three camera straight-line distances, two camera straight-line distances are smaller than the third camera straight-line distance;

[0027] Using the two black-and-white cameras corresponding to the camera straight-line distance with the longest straight-line distance to form a binocular relationship;

[0028] In addition to the two black-and-white cameras in the binocular relationship, a third black-and-white camera is made to exist in the common field of view of the two black-and-white cameras in the binocular relationship.

[0029] Furthermore, a 3D model with color texture of the target object is established by using one black-and-white camera among the three black-and-white cameras to compensate the pixel of the occluded same-name point and combining the color texture mapping of one RGB camera, including:

[0030] Obtaining corresponding same-name point pixels of the target object in the camera fields of view of the two black-and-white cameras with a binocular relationship as the same-name point pixels to be matched;

[0031] Setting a third black-and-white camera other than the two black-and-white cameras in binocular relationship to have the same field of view as the two black-and-white cameras in binocular relationship, and using the third black-and-white camera other than the two black-and-white cameras in binocular relationship to obtain pixels of the target object corresponding to the pixels of the same name points to be matched as candidate pixels of the same name points;

[0032] When there are occluded same-name points among the same-name point pixels to be matched, the corresponding pixels of the occluded same-name points are replaced with the candidate same-name point pixels to complete the binocular stereoscopic vision reconstruction of the target object and obtain a 3D model of the target object;

[0033] After completing the binocular stereoscopic vision reconstruction of the target object, a RGB camera is used to collect the colored 2D texture of the target object, and the 2D texture is mapped to the 3D model of the target object through texture mapping to obtain the 3D model of the target object with colored texture.

[0034] Furthermore, the visual system comprises:

[0035] A position and parameter setting module is used to set the position and camera parameters of one of the three black and white cameras;

[0036] The four-eye stereo vision reconstruction module is used to establish a 3D model with color texture of the target object by using one black-and-white camera among the three black-and-white cameras to compensate the pixel of the occluded same-name points and combining the color texture mapping of one RGB camera.

[0037] Furthermore, the position and parameter setting module includes:

[0038] A camera parameter calibration module is used to perform internal parameter calibration and external parameter calibration for three black-and-white cameras and one RGB camera, wherein the internal parameters include the optical center and the distortion coefficient; the external parameters include the rotation matrix and the horizontal matrix;

[0039] The distance parameter calibration module is used to calibrate the distance between the 1-way RGB camera and the 3-way black-and-white cameras by using the relationship between the rotation matrix and the horizontal matrix of the 3-way black-and-white cameras and the rotation matrix and the horizontal matrix of the 1-way RGB camera; wherein the distance between the 1-way RGB camera and the 3-way black-and-white cameras is obtained by the following formula:

[0040] The distance calculation formula between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship is:

[0041]

[0042] in, is the distance between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship. is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the third black-and-white camera, is the rotation angle of the third black-and-white camera at the mth rotation, and a plane rectangular coordinate system is established with the preset origin as the reference point. is the larger abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the smaller abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the larger ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera, is the smaller ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera;

[0043] The distance formula between one RGB camera and two black and white cameras in binocular relationship is:

[0044]

[0045] in, is the distance between one RGB camera and two black-and-white cameras in binocular relationship, is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the two black-and-white cameras that form the binocular relationship, and are the rotation angles of the two black-and-white cameras that constitute the binocular relationship at the mth rotation, and the center point of the straight-line distance between the two black-and-white cameras that constitute the binocular relationship is the binocular camera coordinate point. is the larger horizontal coordinate of the horizontal coordinate of the binocular camera coordinate point and the horizontal coordinate of the RGB camera, is the smaller horizontal coordinate of the binocular camera coordinate point and the RGB camera horizontal coordinate, is the larger ordinate of the binocular camera coordinate point and the RGB camera ordinate, It is the smaller ordinate of the binocular camera coordinate point and the ordinate of the RGB camera.

[0046] A straight-line distance setting module is used to align the three black-and-white cameras and the one RGB camera with the target object so that the three black-and-white cameras and the one RGB camera are on the same horizontal plane as the target object; wherein a camera straight-line distance is formed between every two cameras in the three black-and-white cameras, and a total of three camera straight-line distances are generated, and among the three camera straight-line distances, two camera straight-line distances are smaller than the third camera straight-line distance;

[0047] A binocular relationship establishment module, used to establish a binocular relationship using two black-and-white cameras corresponding to the camera straight-line distance with the longest straight-line distance;

[0048] The third camera field of view setting module is used to make the third black-and-white camera, except the two black-and-white cameras of the binocular relationship, exist in the common field of view of the two black-and-white cameras of the binocular relationship.

[0049] Furthermore, the four-eye stereo vision reconstruction module includes:

[0050] A module for obtaining pixels of the same name points to be matched is used to obtain corresponding pixels of the same name points of the target object in the camera fields of view of the two black and white cameras with a binocular relationship as pixels of the same name points to be matched;

[0051] A candidate same-name point pixel acquisition module is used to set a third black-and-white camera other than the two black-and-white cameras with a binocular relationship to have the same field of view as the two black-and-white cameras with a binocular relationship, and use the third black-and-white camera other than the two black-and-white cameras with a binocular relationship to acquire pixels of the target object corresponding to the same-name point pixels to be matched as candidate same-name point pixels;

[0052] The occluded homonymous point judgment and replacement module is used to replace the corresponding pixels of the occluded homonymous points with the candidate homonymous point pixels to complete the binocular stereoscopic vision reconstruction of the target object and obtain the 3D model of the target object when there are occluded homonymous points among the homonymous point pixels to be matched;

[0053] The color texture mapping module is used to collect the colored 2D texture of the target object using a RGB camera after completing the binocular stereo vision reconstruction of the target object, and map the 2D texture to the 3D model of the target object through texture mapping to obtain the 3D model of the target object with color texture.

[0054] Beneficial effects of the present invention: Compared with the traditional color binocular, we adopt the mode of 4 black and white cameras + color camera, forming 8 binocular combinations, and the size of the field of view can be arbitrarily changed. When precision is required, a large field of view can be called, when details are required, a small field of view can be called, and when color is required, RGB matching texture can be called. The four cameras can be freely combined when in use, for example, cameras 123 obtain point cloud data, and camera 4 obtains texture data; the combination of three cameras can achieve unambiguous matching of points of the same name between binoculars, the matching efficiency can be increased by more than 2 times, the matching accuracy can be greatly improved, and the generation of noise data can be reduced. Binocular is an open-loop system and trinocular is a closed-loop system. The accuracy of binocular is difficult to guarantee, but the trinocular system can be self-closed and self-verified, which can greatly improve the stability of accuracy. Compared with traditional binocular cameras that generally use black and white RGB binoculars, we use a black and white camera + color camera mode, which not only takes advantage of the high-precision characteristics of black and white cameras, reduces noise, but also comes with true color texture information. Four cameras are combined in pairs to provide 8 kinds of binocular relationships + 4 kinds of binocular combinations, and 12 sets of internal and external parameters are the first in the industry. Traditional technical solutions cannot achieve high-speed synchronization of hundreds of frames of four cameras. The present invention creatively uses self-developed hardware + dual-channel Type-C to successfully solve the problem of high-speed data transmission and synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 Schematic diagram of the composition of the visual method of a four-camera handheld high-precision three-dimensional scanning array structure. DETAILED DESCRIPTION

[0056] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0057] The present embodiment proposes a four-camera handheld high-precision three-dimensional scanning array structure, a visual method and a system, wherein the four-camera handheld high-precision three-dimensional scanning array structure includes four cameras, wherein the four cameras include three black-and-white cameras and one RGB camera, and the three black-and-white cameras are not in a straight line.

[0058] The working principle of the above technical solution is as follows: 3 black and white cameras and 1 RGB camera together constitute a four-eye camera handheld high-precision three-dimensional scanning array structure. Among them, the 3 black and white cameras are not in a straight line, which makes the camera's field of view cover a wider range and can better capture the details of the scanned object. The role of the RGB camera is to capture color images and provide color information, which helps to restore the color of the scan results in post-processing, making the scan results more realistic and vivid. The 3 black and white cameras obtain the shape information of the scanned object by shooting its surface. Since the 3 cameras are not in the same straight line, they can obtain more comprehensive shape information, including details such as the top, side and edge of the scanned object. Through reasonable algorithms and data processing, the data of these four cameras can be fused together to obtain a complete high-precision three-dimensional model. The model not only contains the shape information of the scanned object, but also contains color information, so that the actual situation of the scanned object can be restored more realistically. The self-developed SOC is used to solve the problem of microsecond synchronization of four high-speed cameras, and the dual-channel Type-C is used to successfully solve the problem of high-speed data transmission;

[0059] The effect of the above technical solution is: due to the nonlinear four-way camera layout, the scanning result has higher accuracy. This not only improves the accuracy of the scanning result, but also makes the device more widely used in measurement, detection, reverse engineering and other fields. Since the three black and white cameras are not in a straight line, they can obtain more comprehensive shape information, including details such as the top, side and edge of the scanned object. This makes the scanning result have richer detail information and can better restore the actual situation of the scanned object. The addition of RGB camera makes the scanning result have better color restoration effect. In post-processing, the scanning result can be filled with color according to the RGB information to make the scanning result more real and vivid. In some cases, the device can also realize real-time scanning and modeling, which enables it to play an important role in some scenarios that require real-time feedback. For example, in the fields of industrial detection, medical diagnosis, etc., real-time scanning and modeling can help people better understand and solve practical problems.

[0060] In this embodiment, a camera straight-line distance is formed between every two cameras in the three black-and-white cameras, and three camera straight-line distances are generated in total, wherein two camera straight-line distances among the three camera straight-line distances are smaller than the third camera straight-line distance. Every two cameras in the three black-and-white cameras form a binocular stereoscopic vision relationship for multiple binocular stereoscopic vision reconstruction.

[0061] The working principle of the above technical solution is as follows: the three black and white cameras mentioned here mean that there are three cameras, which usually work at the same time, each capturing a different perspective or part of the scene. For each camera, the captured image is black and white, that is, there are only different levels of brightness and no color information. This means that the three cameras are arranged at a certain distance in physical space, and this distance is directly formed without additional settings or adjustments. Since there are three cameras, there will be three camera straight-line distances. This is describing the arrangement of the cameras. Generally speaking, in a binocular stereo system, the distance between two cameras is smaller than the distance between them and the third point, so that parallax and depth perception can be better achieved. The visual relationship formed by each two cameras can be used for binocular stereo reconstruction. Binocular stereo is to capture the same object or scene from different angles through two or more cameras, and then obtain the three-dimensional shape and position information of the object through calculation and inference. This setting can be used for multiple binocular stereo reconstructions. Each reconstruction can be for different objects or scenes, or the same object or scene can be reconstructed multiple times to obtain more accurate or richer three-dimensional information.

[0062] The effect of the above technical solution is: by capturing different perspectives of the same object or scene with multiple cameras, the depth and distance of the object can be inferred more accurately. Compared with a single camera, multiple cameras can cover a wider field of view, thereby capturing more comprehensive scene information. The three-dimensional shape and position of the object can be calculated more accurately through data from multiple cameras. This setting can process multiple objects or scenes at the same time and realize multi-target tracking and reconstruction. Since the cameras work independently, the parameters and settings of the cameras can be adjusted as needed to adapt to different application scenarios and needs.

[0063] In this embodiment, the two black-and-white cameras corresponding to the straight-line distance of the camera with the longest straight-line distance constitute a binocular relationship, and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship exists in a common field of view for the two black-and-white cameras in the binocular relationship, and is used to perform matching relationship judgment on the occluded same-name points generated by the two black-and-white cameras in the binocular relationship.

[0064] The working principle of the above technical solution is: the two black-and-white cameras corresponding to the straight-line distance of the camera with the longest straight-line distance form a binocular stereoscopic vision relationship. The binocular stereoscopic vision relationship is usually achieved by two cameras capturing the same object or scene from different angles, and then calculating and inferring to obtain the three-dimensional shape and position information of the object. In addition to the two black-and-white cameras that form the binocular relationship, the third black-and-white camera also shoots the field of view where the two cameras are located. The third camera can help see the obscured parts of the binocular camera, thereby supplementing the images generated by the two cameras in the binocular relationship. Since the two cameras in the binocular relationship may have field of view obstruction, the data from the third camera can be used to match the obscured points of the same name generated by the two cameras in the binocular relationship, thereby more accurately judging the situation of the obscured parts.

[0065] The effect of the above technical solution is: through the data of the binocular relationship camera and the third camera, the depth and distance of the object can be judged more accurately, and the depth perception can be enhanced. Due to the existence of the third camera, more comprehensive scene information can be obtained, including parts that may be blocked by the binocular camera. Through the data of the three cameras, the three-dimensional shape and position of the object can be calculated more accurately, and the reconstruction accuracy can be improved. Since the three cameras work independently, the parameters and settings of the camera can be adjusted as needed to adapt to different application scenarios and needs; three-way black and white cameras are used for binocular stereo vision reconstruction, and by establishing a binocular relationship and using the third camera for field of view supplement and matching relationship judgment, depth perception is enhanced, reconstruction accuracy is improved, and more comprehensive scene information is obtained.

[0066] This embodiment uses the relationship between the rotation matrix and horizontal matrix of the three black-and-white cameras and the rotation matrix and horizontal matrix of the one RGB camera to calibrate the distance between the one RGB camera and the three black-and-white cameras. The distance between the one RGB camera and the three black-and-white cameras is obtained by the following formula:

[0067] The distance calculation formula between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship is:

[0068]

[0069] in, is the distance between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship. is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the third black-and-white camera, is the rotation angle of the third black-and-white camera at the mth rotation, and a plane rectangular coordinate system is established with the preset origin as the reference point. is the larger abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the smaller abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the larger ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera, is the smaller ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera;

[0070] The distance formula between one RGB camera and two black and white cameras in binocular relationship is:

[0071]

[0072] in, is the distance between one RGB camera and two black-and-white cameras in binocular relationship, is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the two black-and-white cameras that form the binocular relationship, and are the rotation angles of the two black-and-white cameras that constitute the binocular relationship at the mth rotation, and the center point of the straight-line distance between the two black-and-white cameras that constitute the binocular relationship is the binocular camera coordinate point. is the larger horizontal coordinate of the horizontal coordinate of the binocular camera coordinate point and the horizontal coordinate of the RGB camera, is the smaller horizontal coordinate of the binocular camera coordinate point and the RGB camera horizontal coordinate, is the larger ordinate of the binocular camera coordinate point and the RGB camera ordinate, It is the smaller ordinate of the binocular camera coordinate point and the ordinate of the RGB camera.

[0073] The working principle of the above technical solution is: through the distance calculation formula between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship, the distance between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship can be calculated. The parameters involved in this formula include the number of rotations of the RGB camera and the rotation angle of each rotation, as well as the total number of rotations of the third black-and-white camera and the rotation angle of each rotation. These parameters are calculated by the rotation matrix of the camera. By comparing the horizontal coordinates and vertical coordinates of the RGB camera and the third black-and-white camera, the distance between the two cameras can be determined. The distance formula between one RGB camera and the two black-and-white cameras in the binocular relationship can be calculated. This formula also involves the number of rotations of the RGB camera and the rotation angle of each rotation, as well as the total number of rotations of the two black-and-white cameras that form the binocular relationship and the rotation angle of each rotation. These parameters take the center point of the straight-line distance between the two black-and-white cameras that form the binocular relationship as the binocular camera coordinate point, and then compare the horizontal coordinates and vertical coordinates of the RGB camera and the binocular camera coordinate points to determine the distance between the two black-and-white cameras and the RGB camera.

[0074] The effect of the above technical solution is: the distance calculation formula between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship is The rotation angle deviation ratio coefficient of the RGB camera relative to the third black and white camera can be calculated by using the formula The straight-line distance between the RGB camera and the third black-and-white camera can be calculated; the distance formula between one RGB camera and two black-and-white cameras in binocular relationship is The deviation proportional coefficient of the rotation angle of the RGB camera relative to the two black and white cameras that construct the binocular relationship can be calculated by using the formula The straight-line distance between the two black-and-white cameras that construct the binocular relationship and the RGB camera can be calculated; by combining the data of multiple cameras, the distance of the object or scene can be calculated more accurately, thereby improving the accuracy of distance measurement. Through the data of the binocular relationship camera and the third camera, the depth and distance of the object can be more accurately inferred, thereby enhancing depth perception. In addition to the two cameras of the binocular relationship, the presence of the third camera can cover a more comprehensive field of view, thereby obtaining more comprehensive scene information. Each camera in this system can work independently, and the parameters and settings of the camera can be adjusted as needed to adapt to different application scenarios and needs. Since each camera in this system can work independently, it is relatively easy to install and maintain; the technical effects of using 3-way black-and-white cameras and 1-way RGB camera for distance calibration include improved distance measurement accuracy, enhanced depth perception, comprehensive field of view coverage, high flexibility, and easy installation and maintenance.

[0075] The visual method described in this embodiment includes:

[0076] Arrange the position and camera parameters of one of the three black-and-white cameras;

[0077] A 3D model with color texture of the target object is established by using one black-and-white camera among the three black-and-white cameras to compensate the pixel of the occluded homonymous points and combining it with the color texture mapping of one RGB camera.

[0078] The working principle of the above technical solution is as follows: among the three black-and-white cameras, the position and camera parameters of one of the black-and-white cameras need to be arranged. This process needs to consider factors such as the shape, size, and position of the target object, as well as parameters such as the height, angle, and focal length of the camera. Through reasonable arrangement, it can be ensured that the camera can capture the complete image or video of the target object, and can accurately measure the three-dimensional dimensions of the target object such as the height, width, and depth. When using three black-and-white cameras for binocular stereo vision reconstruction, due to the different viewing angles and positions of the cameras, the same-name points may be blocked. At this time, the color image taken by one RGB camera can be used for pixel compensation. Specifically, the color image taken by the RGB camera can be matched and fused with the image taken by the black-and-white camera, and the pixels in the color image can be compensated to the same-name points blocked in the black-and-white image. This can make the reconstructed target object more complete and accurate. When establishing a 3D model with color texture, the color image taken by one RGB camera can be used for texture mapping. Specifically, the color image taken by the RGB camera can be converted into a grayscale image and mapped as a texture to the reconstructed target object. This can make the target object have a more realistic and vivid appearance. By properly arranging one of the three black and white cameras, the image or video of the target object can be obtained. Then, the three-dimensional shape and position information of the target object are calculated using the binocular stereo vision algorithm. Next, the reconstructed target object is pixel-compensated by matching and fusing the color image taken by the RGB camera with the image taken by the black and white camera. Finally, the color image taken by the RGB camera is converted into a grayscale image and mapped as a texture onto the reconstructed target object, thereby obtaining a 3D model with color texture.

[0079] The effect of the above technical solution is: through reasonable layout and parameter adjustment, it can be ensured that 1 black and white camera can capture the complete image or video of the target object, and can accurately measure the three-dimensional dimensions of the target object such as height, width, depth, etc. By mapping the color image taken by the RGB camera as a texture onto the reconstructed target object, the target object can have a more realistic and vivid appearance. Since each camera can work independently, the parameters and settings of the camera can be adjusted as needed to adapt to different application scenarios and needs. In addition, this method can also expand the field of view coverage and accuracy of the system by adding more cameras or adjusting the position and parameters of the camera. Since each camera can work independently, it is relatively easy to install and maintain. At the same time, this method can also be automatically operated and managed through a remote control and monitoring system.

[0080] This embodiment arranges the position and camera parameters of one black-and-white camera among the three black-and-white cameras, including:

[0081] Perform internal and external parameter calibration for three black-and-white cameras and one RGB camera, wherein the internal parameters include the optical center and the distortion coefficient; the external parameters include the rotation matrix and the horizontal matrix;

[0082] The distance between the 1-way RGB camera and the 3-way black-and-white cameras is calibrated by using the relationship between the rotation matrix and the horizontal matrix of the 3-way black-and-white cameras and the rotation matrix and the horizontal matrix of the 1-way RGB camera; wherein the distance between the 1-way RGB camera and the 3-way black-and-white cameras is obtained by the following formula:

[0083] The distance calculation formula between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship is:

[0084]

[0085] in, is the distance between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship. is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the third black-and-white camera, is the rotation angle of the third black-and-white camera at the mth rotation, and a plane rectangular coordinate system is established with the preset origin as the reference point. is the larger abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the smaller abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the larger ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera, is the smaller ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera;

[0086] The distance formula between one RGB camera and two black and white cameras in binocular relationship is:

[0087]

[0088] in, is the distance between one RGB camera and two black-and-white cameras in binocular relationship, is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the two black-and-white cameras that form the binocular relationship, and are the rotation angles of the two black-and-white cameras that constitute the binocular relationship at the mth rotation, and the center point of the straight-line distance between the two black-and-white cameras that constitute the binocular relationship is the binocular camera coordinate point. is the larger horizontal coordinate of the horizontal coordinate of the binocular camera coordinate point and the horizontal coordinate of the RGB camera, is the smaller horizontal coordinate of the binocular camera coordinate point and the RGB camera horizontal coordinate, is the larger ordinate of the binocular camera coordinate point and the RGB camera ordinate, It is the smaller ordinate of the binocular camera coordinate point and the ordinate of the RGB camera.

[0089] Align the three black-and-white cameras and the one RGB camera with the target object so that the three black-and-white cameras and the one RGB camera are on the same horizontal plane as the target object; wherein a camera straight-line distance is formed between every two cameras in the three black-and-white cameras, and a total of three camera straight-line distances are generated, and among the three camera straight-line distances, two camera straight-line distances are smaller than the third camera straight-line distance;

[0090] Using the two black-and-white cameras corresponding to the camera straight-line distance with the longest straight-line distance to form a binocular relationship;

[0091] In addition to the two black-and-white cameras in the binocular relationship, a third black-and-white camera is made to exist in the common field of view of the two black-and-white cameras in the binocular relationship.

[0092] The working principle of the above technical solution is: through the distance calculation formula between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in binocular relationship, the distance between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in binocular relationship can be calculated. The parameters involved in this formula include the number of rotations of the RGB camera and the rotation angle of each rotation, as well as the total number of rotations of the third black-and-white camera and the rotation angle of each rotation. These parameters are calculated by the rotation matrix of the camera. By comparing the horizontal and vertical coordinates of the RGB camera and the third black-and-white camera, the distance between the two cameras can be determined. The distance formula between one RGB camera and the two black-and-white cameras in binocular relationship can be used to calculate the distance between one RGB camera and the two black-and-white cameras in binocular relationship. This formula also involves the number of rotations of the RGB camera and the rotation angle of each rotation, as well as the total number of rotations of the two black-and-white cameras constituting the binocular relationship and the rotation angle of each rotation. These parameters take the center point of the straight-line distance of the two black-and-white cameras constituting the binocular relationship as the binocular camera coordinate point, and then compare the horizontal coordinates and the vertical coordinates of the coordinate points of the RGB camera and the binocular camera to determine the distance between the two black-and-white cameras and the RGB camera; align the three black-and-white cameras and the one RGB camera with the target object so that the three black-and-white cameras and the one RGB camera are on the same horizontal plane as the target object; wherein a camera straight-line distance is formed between every two cameras in the three black-and-white cameras, and a total of three camera straight-line distances are generated, and among the three camera straight-line distances, two camera straight-line distances are smaller than the third camera straight-line distance; the two black-and-white cameras corresponding to the camera straight-line distance with the longest straight-line distance are used to form a binocular relationship; and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship is made to exist in the common field of view for the two black-and-white cameras in the binocular relationship.

[0093] The effect of the above technical solution is: the distance calculation formula between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship is The rotation angle deviation ratio coefficient of the RGB camera relative to the third black and white camera can be calculated by using the formula The straight-line distance between the RGB camera and the third black-and-white camera can be calculated; the distance formula between one RGB camera and two black-and-white cameras in binocular relationship is The deviation proportional coefficient of the rotation angle of the RGB camera relative to the two black and white cameras that construct the binocular relationship can be calculated by using the formula The straight-line distance between the two black-and-white cameras that construct the binocular relationship and the RGB camera can be calculated; by combining the data of multiple cameras, the distance of the object or scene can be calculated more accurately, thereby improving the accuracy of distance measurement. Through the data of the binocular relationship camera and the third camera, the depth and distance of the object can be more accurately inferred, thereby enhancing depth perception. In addition to the two cameras of the binocular relationship, the presence of the third camera can cover a more comprehensive field of view, thereby obtaining more comprehensive scene information. Each camera in this system can work independently, and the parameters and settings of the camera can be adjusted as needed to adapt to different application scenarios and needs. Since each camera in this system can work independently, it is relatively easy to install and maintain; the technical effects of using 3-way black-and-white cameras and 1-way RGB camera for distance calibration include improving distance measurement accuracy, enhancing depth perception, comprehensive field of view coverage, high flexibility, and easy installation and maintenance. By aligning the 3-way black-and-white cameras and the 1-way RGB camera with the target object, the cameras are on the same horizontal plane as the target object. This alignment helps to ensure that the image or video captured by the camera is measured at the same height or depth as the target object, thereby improving the accuracy of subsequent processing. By using the camera straight-line distance formed between every two cameras in the three black-and-white cameras, three camera straight-line distances are generated. Among them, the straight-line distances of two cameras are smaller than the straight-line distance of the third camera. This setting helps to improve the accuracy of stereo vision. The two black-and-white cameras corresponding to the longest straight-line distance form a binocular relationship. The establishment of this binocular relationship is a key step in stereo vision reconstruction. In addition to the two black-and-white cameras in the binocular relationship, the third black-and-white camera captures the two black-and-white cameras in the binocular relationship in the common field of view. This means that the third black-and-white camera and the two black-and-white cameras in the binocular relationship can see the same scene or object at the same time, providing more comprehensive field of view coverage and richer scene information for subsequent stereo vision reconstruction.

[0094] This embodiment uses one black-and-white camera among three black-and-white cameras as pixel compensation for occluded homonymous points combined with color texture mapping of one RGB camera to establish a 3D model with color texture of the target object, including:

[0095] Obtaining corresponding same-name point pixels of the target object in the camera fields of view of the two black-and-white cameras with a binocular relationship as the same-name point pixels to be matched;

[0096] Setting a third black-and-white camera other than the two black-and-white cameras in binocular relationship to have the same field of view as the two black-and-white cameras in binocular relationship, and using the third black-and-white camera other than the two black-and-white cameras in binocular relationship to obtain pixels of the target object corresponding to the pixels of the same name points to be matched as candidate pixels of the same name points;

[0097] When there are occluded same-name points among the same-name point pixels to be matched, the corresponding pixels of the occluded same-name points are replaced with the candidate same-name point pixels to complete the binocular stereoscopic vision reconstruction of the target object and obtain a 3D model of the target object;

[0098] After completing the binocular stereoscopic vision reconstruction of the target object, a RGB camera is used to collect the colored 2D texture of the target object, and the 2D texture is mapped to the 3D model of the target object through texture mapping to obtain the 3D model of the target object with colored texture.

[0099] The working principle of the above technical solution is: obtaining the corresponding same-name point pixels of the target object in the camera fields of view of the two black-and-white cameras with binocular relationship as the same-name point pixels to be matched; setting a third black-and-white camera other than the two black-and-white cameras with binocular relationship to the same field of view as the two black-and-white cameras with binocular relationship, and using the third black-and-white camera other than the two black-and-white cameras with binocular relationship to obtain the pixels of the target object corresponding to the same-name point pixels to be matched as candidate same-name point pixels; when there are occluded same-name points in the same-name point pixels to be matched, using the candidate same-name point pixels to replace the corresponding pixels of the occluded same-name points to complete the binocular stereoscopic vision reconstruction of the target object, and obtain the 3D model of the target object; after completing the binocular stereoscopic vision reconstruction of the target object, using a RGB camera to collect the 2D texture with color of the target object, and mapping the 2D texture to the 3D model of the target object through texture mapping, to obtain the 3D model of the target object with color texture.

[0100] The effect of the above technical solution is: through binocular stereo vision technology, the depth information of the target object in three-dimensional space can be obtained. This method uses two black and white cameras with binocular relationship to obtain the pixels of the same name points to be matched of the target object. These pixels of the same name points are consistent in depth, and then the depth value of each pixel is calculated through the geometric relationship of the camera, so as to reconstruct the 3D model of the target object. By setting the third black and white camera other than the two black and white cameras with binocular relationship to the same field of view as the two black and white cameras with binocular relationship, it can be ensured that the pixel information obtained by the camera is consistent with the information obtained by the binocular camera in terms of viewing angle, so that the reconstructed 3D model is more accurate. When there are occluded same name points in the pixels of the same name points to be matched, the method uses the candidate same name point pixels to replace the corresponding pixels of the occluded same name points, thereby correcting the occluded pixels, making the reconstructed 3D model more accurate and complete. This method effectively handles the situation where the target object is partially occluded and improves the robustness of reconstruction. After completing the binocular stereo vision reconstruction of the target object, a RGB camera is used to collect the colored 2D texture of the target object, and the 2D texture is mapped to the 3D model of the target object through texture mapping, so that the reconstructed model has real color texture and looks more vivid and realistic. In this method, each camera can work independently, so it is relatively easy to install and maintain. At the same time, this method can also be automatically operated and managed through a remote control and monitoring system. Reconstructing the 3D model of a static target object can also be extended to dynamic scenes and real-time reconstruction. By adjusting the camera parameters and settings, it can adapt to different target objects and scene types, and has a wide range of applicability.

[0101] The visual system described in this embodiment includes:

[0102] A position and parameter setting module is used to set the position and camera parameters of one of the three black and white cameras;

[0103] The four-eye stereo vision reconstruction module is used to establish a 3D model with color texture of the target object by using one black-and-white camera among the three black-and-white cameras to compensate the pixel of the occluded same-name points and combining the color texture mapping of one RGB camera.

[0104] The working principle of the above technical solution is as follows: through the position and parameter setting module, the camera parameters of a black and white camera are obtained, and these parameters are used to correct and stereo match the image obtained from the camera to obtain the pixels of the same name points to be matched. At the same time, the pixels of the target object corresponding to the pixels of the same name points to be matched are obtained by using the other two black and white cameras as candidate pixels of the same name points. When there are occluded same name points in the pixels of the same name points to be matched, the corresponding pixels of the occluded same name points are replaced by the candidate pixels of the same name points to complete the binocular stereo vision reconstruction of the target object and obtain the 3D model of the target object. The 2D texture with color of the target object is collected by using a RGB camera, and the 2D texture is mapped to the 3D model of the target object through texture mapping to obtain the 3D model of the target object with color texture.

[0105] The effect of the above technical solution is: by using binocular stereo vision technology and using a black and white camera to compensate for the pixels of the blocked points, a high-precision 3D model of the target object can be obtained. By mapping the 2D texture collected by the RGB camera to the 3D model, the model can have a real color texture and look more vivid and realistic. Since each camera can work independently, it is relatively easy to install and maintain. At the same time, the field of view coverage and accuracy of the system can be expanded by adding more cameras or adjusting the position and parameters of the camera. Since each camera can work independently, it is relatively easy to install and maintain. At the same time, this method can also be automatically operated and managed through a remote control and monitoring system. This design reduces the cost and complexity of installation and maintenance, while providing higher flexibility and scalability.

[0106] The position and parameter setting module described in this embodiment includes:

[0107] A camera parameter calibration module is used to perform internal parameter calibration and external parameter calibration for three black-and-white cameras and one RGB camera, wherein the internal parameters include the optical center and the distortion coefficient; the external parameters include the rotation matrix and the horizontal matrix;

[0108] The distance parameter calibration module is used to calibrate the distance between the 1-way RGB camera and the 3-way black-and-white cameras by using the relationship between the rotation matrix and the horizontal matrix of the 3-way black-and-white cameras and the rotation matrix and the horizontal matrix of the 1-way RGB camera; wherein the distance between the 1-way RGB camera and the 3-way black-and-white cameras is obtained by the following formula:

[0109] The distance calculation formula between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship is:

[0110]

[0111] in, is the distance between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship. is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the third black-and-white camera, is the rotation angle of the third black-and-white camera at the mth rotation, and a plane rectangular coordinate system is established with the preset origin as the reference point. is the larger abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the smaller abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the larger ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera, is the smaller ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera;

[0112] The distance formula between one RGB camera and two black and white cameras in binocular relationship is:

[0113]

[0114] in, is the distance between one RGB camera and two black-and-white cameras in binocular relationship, is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the two black-and-white cameras that form the binocular relationship, and are the rotation angles of the two black-and-white cameras that constitute the binocular relationship at the mth rotation, and the center point of the straight-line distance between the two black-and-white cameras that constitute the binocular relationship is the binocular camera coordinate point. is the larger horizontal coordinate of the horizontal coordinate of the binocular camera coordinate point and the horizontal coordinate of the RGB camera, is the smaller horizontal coordinate of the binocular camera coordinate point and the RGB camera horizontal coordinate, is the larger ordinate of the binocular camera coordinate point and the RGB camera ordinate, It is the smaller ordinate of the binocular camera coordinate point and the ordinate of the RGB camera.

[0115] A straight-line distance setting module is used to align the three black-and-white cameras and the one RGB camera with the target object so that the three black-and-white cameras and the one RGB camera are on the same horizontal plane as the target object; wherein a camera straight-line distance is formed between every two cameras in the three black-and-white cameras, and a total of three camera straight-line distances are generated, and among the three camera straight-line distances, two camera straight-line distances are smaller than the third camera straight-line distance;

[0116] A binocular relationship establishment module, used to establish a binocular relationship using two black-and-white cameras corresponding to the camera straight-line distance with the longest straight-line distance;

[0117] The third camera field of view setting module is used to make the third black-and-white camera, except the two black-and-white cameras of the binocular relationship, exist in the common field of view of the two black-and-white cameras of the binocular relationship.

[0118] The working principle of the above technical solution is as follows: the camera parameter calibration module is used to perform internal parameter calibration and external parameter calibration for the three black-and-white cameras and the one RGB camera, wherein the internal parameters include the optical center and the distortion coefficient; the external parameters include the rotation matrix and the horizontal matrix; the distance parameter calibration module is used to calibrate the distance between the one RGB camera and the three black-and-white cameras by using the relationship between the rotation matrix and the horizontal matrix of the three black-and-white cameras and the rotation matrix and the horizontal matrix of the one RGB camera; the straight-line distance setting module is used to align the three black-and-white cameras and the one RGB camera with the target object. , so that the three black-and-white cameras and the one RGB camera are on the same horizontal plane as the target object; wherein, a camera straight-line distance is formed between every two cameras in the three black-and-white cameras, and three camera straight-line distances are generated in total, and among the three camera straight-line distances, two camera straight-line distances are smaller than the third camera straight-line distance; the binocular relationship establishment module is used to form a binocular relationship using the two black-and-white cameras corresponding to the camera straight-line distance with the longest straight-line distance; the third camera field of view setting module is used to make the third black-and-white camera, except the two black-and-white cameras in the binocular relationship, exist in the common field of view for the two black-and-white cameras in the binocular relationship.

[0119] The effect of the above technical solution is: the distance calculation formula between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship is The rotation angle deviation ratio coefficient of the RGB camera relative to the third black and white camera can be calculated by using the formula The straight-line distance between the RGB camera and the third black-and-white camera can be calculated; the distance formula between one RGB camera and two black-and-white cameras in binocular relationship is The deviation proportional coefficient of the rotation angle of the RGB camera relative to the two black and white cameras that construct the binocular relationship can be calculated by using the formula The straight-line distance between the two black-and-white cameras that construct the binocular relationship and the RGB camera can be calculated; by combining the data of multiple cameras, the distance of the object or scene can be calculated more accurately, thereby improving the accuracy of distance measurement. Through the data of the binocular relationship camera and the third camera, the depth and distance of the object can be more accurately inferred, thereby enhancing depth perception. In addition to the two cameras of the binocular relationship, the presence of the third camera can cover a more comprehensive field of view, thereby obtaining more comprehensive scene information. Each camera in this system can work independently, and the parameters and settings of the camera can be adjusted as needed to adapt to different application scenarios and needs. Since each camera in this system can work independently, it is relatively easy to install and maintain; the technical effects of using 3-way black-and-white cameras and 1-way RGB camera for distance calibration include improving distance measurement accuracy, enhancing depth perception, comprehensive field of view coverage, high flexibility, and easy installation and maintenance. By aligning the 3-way black-and-white cameras and the 1-way RGB camera with the target object, the cameras are on the same horizontal plane as the target object. This alignment helps to ensure that the image or video captured by the camera is measured at the same height or depth as the target object, thereby improving the accuracy of subsequent processing. By using the camera straight-line distance formed between every two cameras in the three black-and-white cameras, three camera straight-line distances are generated. Among them, the straight-line distances of two cameras are smaller than the straight-line distance of the third camera. This setting helps to improve the accuracy of stereo vision. The two black-and-white cameras corresponding to the longest straight-line distance form a binocular relationship. The establishment of this binocular relationship is a key step in stereo vision reconstruction. In addition to the two black-and-white cameras in the binocular relationship, the third black-and-white camera captures the two black-and-white cameras in the binocular relationship in the common field of view. This means that the third black-and-white camera and the two black-and-white cameras in the binocular relationship can see the same scene or object at the same time, providing more comprehensive field of view coverage and richer scene information for subsequent stereo vision reconstruction.

[0120] The four-eye stereo vision reconstruction module described in this embodiment includes:

[0121] A module for obtaining pixels of the same name points to be matched is used to obtain corresponding pixels of the same name points of the target object in the camera fields of view of the two black and white cameras with a binocular relationship as pixels of the same name points to be matched;

[0122] A candidate same-name point pixel acquisition module is used to set a third black-and-white camera other than the two black-and-white cameras with a binocular relationship to have the same field of view as the two black-and-white cameras with a binocular relationship, and use the third black-and-white camera other than the two black-and-white cameras with a binocular relationship to acquire pixels of the target object corresponding to the same-name point pixels to be matched as candidate same-name point pixels;

[0123] The occluded homonymous point judgment and replacement module is used to replace the corresponding pixels of the occluded homonymous points with the candidate homonymous point pixels to complete the binocular stereoscopic vision reconstruction of the target object and obtain the 3D model of the target object when there are occluded homonymous points among the homonymous point pixels to be matched;

[0124] The color texture mapping module is used to collect the colored 2D texture of the target object using a RGB camera after completing the binocular stereo vision reconstruction of the target object, and map the 2D texture to the 3D model of the target object through texture mapping to obtain the 3D model of the target object with color texture.

[0125] The working principle of the above technical solution is as follows: the to-be-matched same-name point pixel acquisition module is used to acquire the same-name point pixels corresponding to the target object of the two black-and-white cameras with binocular relationship in the camera fields of view of the two black-and-white cameras with binocular relationship as the to-be-matched same-name point pixels; the candidate same-name point pixel acquisition module is used to set a third black-and-white camera other than the two black-and-white cameras with binocular relationship to have the same field of view as the two black-and-white cameras with binocular relationship, and use the third black-and-white camera other than the two black-and-white cameras with binocular relationship to acquire the pixels of the target object corresponding to the to-be-matched same-name point pixels as the candidate same-name point pixels. The occluded homonymous point judgment and replacement module is used to replace the corresponding pixels of the occluded homonymous points with the candidate homonymous point pixels to complete the binocular stereo vision reconstruction of the target object and obtain the 3D model of the target object when there are occluded homonymous points among the homonymous point pixels to be matched; the color texture mapping module is used to collect the colored 2D texture of the target object with a RGB camera after completing the binocular stereo vision reconstruction of the target object, and map the 2D texture to the 3D model of the target object through texture mapping to obtain the 3D model of the target object with color texture.

[0126] The effect of the above technical solution is: two black and white cameras with binocular relationship are used to obtain the pixels of the same name points to be matched of the target object, and the third black and white camera is used to obtain the pixels of the candidate same name points, thereby improving the accuracy of reconstruction. When there are occluded same name points in the pixels of the same name points to be matched, the corresponding pixels of the occluded same name points are replaced by the pixels of the candidate same name points, thereby correcting the occluded pixels, making the reconstructed 3D model more accurate and complete. The parameters and settings of the camera can be flexibly adjusted to adapt to different application scenarios and requirements. At the same time, the field of view coverage and accuracy of the system can be expanded by adding more cameras or adjusting the position and parameters of the camera. By mapping the 2D texture collected by the RGB camera to the 3D model, the model can have real color texture and look more vivid and realistic. The 2D texture with color is applied to the 3D model through texture mapping technology, realizing the restoration of realism and details. Since each camera can work independently, it is relatively easy to install and maintain. At the same time, this method can also be automatically operated and managed through a remote control and monitoring system. This design reduces the cost and complexity of installation and maintenance, while providing greater flexibility and scalability. By setting the third monochrome camera to have the same field of view as the two monochrome cameras in a binocular relationship, a more comprehensive field of view coverage is obtained. This helps to obtain more comprehensive information about the target object and improves the completeness and accuracy of the reconstruction.

[0127] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A four-eye camera handheld high-precision three-dimensional scanning array structure, characterized in that: The four-camera handheld high-precision three-dimensional scanning array structure includes four cameras, wherein the four cameras include three black-and-white cameras and one RGB camera, and the three black-and-white cameras are not in a straight line; The distance between the 1-way RGB camera and the 3-way black-and-white cameras is calibrated by using the relationship between the rotation matrix and the horizontal matrix of the 3-way black-and-white cameras and the rotation matrix and the horizontal matrix of the 1-way RGB camera. The distance between the 1-way RGB camera and the 3-way black-and-white cameras is obtained by the following formula: The distance calculation formula between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship is: in, is the distance between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship. is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the third black-and-white camera, is the rotation angle of the third black-and-white camera at the mth rotation, and a plane rectangular coordinate system is established with the preset origin as the reference point. is the larger abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the smaller abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the larger ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera, is the smaller ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera; The distance formula between one RGB camera and two black and white cameras in binocular relationship is: in, is the distance between one RGB camera and two black-and-white cameras in binocular relationship, is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the two black-and-white cameras that form the binocular relationship, and are the rotation angles of the two black-and-white cameras that constitute the binocular relationship at the mth rotation, and the center point of the straight-line distance between the two black-and-white cameras that constitute the binocular relationship is the binocular camera coordinate point. is the larger horizontal coordinate of the horizontal coordinate of the binocular camera coordinate point and the horizontal coordinate of the RGB camera, is the smaller horizontal coordinate of the binocular camera coordinate point and the RGB camera horizontal coordinate, is the larger ordinate of the binocular camera coordinate point and the RGB camera ordinate, It is the smaller ordinate of the binocular camera coordinate point and the ordinate of the RGB camera.

2. According to claim 1, the four-eye camera handheld high-precision three-dimensional scanning array structure is characterized in that: A camera straight-line distance is formed between every two cameras in the three black-and-white cameras, and three camera straight-line distances are generated in total. Among the three camera straight-line distances, two camera straight-line distances are smaller than the third camera straight-line distance.

3. The four-camera handheld high-precision three-dimensional scanning array structure according to claim 1 or 2, characterized in that: The two black-and-white cameras corresponding to the straight-line distance of the camera with the longest straight-line distance constitute a binocular relationship, and a third black-and-white camera other than the two black-and-white cameras in the binocular relationship exists in a common field of view for the two black-and-white cameras in the binocular relationship and is used to perform matching relationship judgment on the occluded same-name points generated by the two black-and-white cameras in the binocular relationship.

4. A visual method of a four-eye camera handheld high-precision three-dimensional scanning array structure, characterized in that: The visual method includes: Arrange the position and camera parameters of one of the three black-and-white cameras; The 3D model with color texture of the target object is established by using one black-and-white camera among the three black-and-white cameras to compensate the pixel of the occluded same-name point and combining it with the color texture mapping of one RGB camera. The position and camera parameters of one of the three black-and-white cameras are arranged, including: Perform internal and external parameter calibration for three black-and-white cameras and one RGB camera, wherein the internal parameters include the optical center and the distortion coefficient; the external parameters include the rotation matrix and the horizontal matrix; The distance between the 1-way RGB camera and the 3-way black-and-white cameras is calibrated by using the relationship between the rotation matrix and the horizontal matrix of the 3-way black-and-white cameras and the rotation matrix and the horizontal matrix of the 1-way RGB camera; wherein the distance between the 1-way RGB camera and the 3-way black-and-white cameras is obtained by the following formula: The distance calculation formula between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship is: in, is the distance between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship. is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the third black-and-white camera, is the rotation angle of the third black-and-white camera at the mth rotation, and a plane rectangular coordinate system is established with the preset origin as the reference point. is the larger abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the smaller abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the larger ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera, is the smaller ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera; The distance formula between one RGB camera and two black and white cameras in binocular relationship is: in, is the distance between one RGB camera and two black-and-white cameras in binocular relationship, is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the two black-and-white cameras that form the binocular relationship, and are the rotation angles of the two black-and-white cameras that constitute the binocular relationship at the mth rotation, and the center point of the straight-line distance between the two black-and-white cameras that constitute the binocular relationship is the binocular camera coordinate point. is the larger horizontal coordinate of the horizontal coordinate of the binocular camera coordinate point and the horizontal coordinate of the RGB camera, is the smaller horizontal coordinate of the binocular camera coordinate point and the RGB camera horizontal coordinate, is the larger ordinate of the binocular camera coordinate point and the RGB camera ordinate, The smaller ordinate of the binocular camera coordinate point and the RGB camera ordinate; Align the three black-and-white cameras and the one RGB camera with the target object so that the three black-and-white cameras and the one RGB camera are on the same horizontal plane as the target object; wherein a camera straight-line distance is formed between every two cameras in the three black-and-white cameras, and a total of three camera straight-line distances are generated, and among the three camera straight-line distances, two camera straight-line distances are smaller than the third camera straight-line distance; Using the two black-and-white cameras corresponding to the camera straight-line distance with the longest straight-line distance to form a binocular relationship; In addition to the two black-and-white cameras in the binocular relationship, a third black-and-white camera is made to exist in the common field of view of the two black-and-white cameras in the binocular relationship.

5. According to the visual method of the four-eye camera handheld high-precision three-dimensional scanning array structure of claim 4, it is characterized in that: The 3D model with color texture of the target object is established by using one black-and-white camera among the three black-and-white cameras to compensate the pixel of the same name point of the occlusion and combining the color texture mapping of one RGB camera, including: Obtaining corresponding same-name point pixels of the target object in the camera fields of view of the two black-and-white cameras with a binocular relationship as the same-name point pixels to be matched; Setting a third black-and-white camera other than the two black-and-white cameras in binocular relationship to have the same field of view as the two black-and-white cameras in binocular relationship, and using the third black-and-white camera other than the two black-and-white cameras in binocular relationship to obtain pixels of the target object corresponding to the pixels of the same name points to be matched as candidate pixels of the same name points; When there are occluded same-name points among the same-name point pixels to be matched, the corresponding pixels of the occluded same-name points are replaced with the candidate same-name point pixels to complete the binocular stereoscopic vision reconstruction of the target object and obtain a 3D model of the target object; After completing the binocular stereoscopic vision reconstruction of the target object, a RGB camera is used to collect the colored 2D texture of the target object, and the 2D texture is mapped to the 3D model of the target object through texture mapping to obtain the 3D model of the target object with colored texture.

6. A visual system with a four-camera handheld high-precision three-dimensional scanning array structure, characterized in that: The visual system comprises: A position and parameter setting module is used to set the position and camera parameters of one of the three black and white cameras; Wherein, the position and parameter setting module includes: A camera parameter calibration module is used to perform internal parameter calibration and external parameter calibration for three black-and-white cameras and one RGB camera, wherein the internal parameters include the optical center and the distortion coefficient; the external parameters include the rotation matrix and the horizontal matrix; The distance parameter calibration module is used to calibrate the distance between the 1-way RGB camera and the 3-way black-and-white cameras by using the relationship between the rotation matrix and the horizontal matrix of the 3-way black-and-white cameras and the rotation matrix and the horizontal matrix of the 1-way RGB camera; wherein the distance between the 1-way RGB camera and the 3-way black-and-white cameras is obtained by the following formula: The distance calculation formula between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship is: in, is the distance between one RGB camera and the third black-and-white camera other than the two black-and-white cameras in the binocular relationship. is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the third black-and-white camera, is the rotation angle of the third black-and-white camera at the mth rotation, and a plane rectangular coordinate system is established with the preset origin as the reference point. is the larger abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the smaller abscissa of the abscissa of the third black-and-white camera and the abscissa of the RGB camera, is the larger ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera, is the smaller ordinate of the ordinate of the third black-and-white camera and the ordinate of the RGB camera; The distance formula between one RGB camera and two black and white cameras in binocular relationship is: in, is the distance between one RGB camera and two black-and-white cameras in binocular relationship, is the number of rotations of the RGB camera, The rotation angle of the RGB camera calculated by the rotation matrix of the RGB camera for the i-th rotation. is the total number of rotations of the two black-and-white cameras that form the binocular relationship, and are the rotation angles of the two black-and-white cameras that constitute the binocular relationship at the mth rotation, and the center point of the straight-line distance between the two black-and-white cameras that constitute the binocular relationship is the binocular camera coordinate point. is the larger horizontal coordinate of the horizontal coordinate of the binocular camera coordinate point and the horizontal coordinate of the RGB camera, is the smaller horizontal coordinate of the binocular camera coordinate point and the RGB camera horizontal coordinate, is the larger ordinate of the binocular camera coordinate point and the RGB camera ordinate, The smaller ordinate of the binocular camera coordinate point and the RGB camera ordinate; A straight-line distance setting module is used to align the three black-and-white cameras and the one RGB camera with the target object so that the three black-and-white cameras and the one RGB camera are on the same horizontal plane as the target object; wherein a camera straight-line distance is formed between every two cameras in the three black-and-white cameras, and a total of three camera straight-line distances are generated, and among the three camera straight-line distances, two camera straight-line distances are smaller than the third camera straight-line distance; A binocular relationship establishment module, used to establish a binocular relationship using two black-and-white cameras corresponding to the camera straight-line distance with the longest straight-line distance; A third camera field of view setting module is used to make the third black-and-white camera, except for the two black-and-white cameras in binocular relationship, exist in the common field of view of the two black-and-white cameras in binocular relationship; The four-eye stereo vision reconstruction module is used to establish a 3D model with color texture of the target object by using one black-and-white camera among the three black-and-white cameras to compensate the pixel of the occluded same-name points and combining the color texture mapping of one RGB camera.

7. The visual system of the four-camera handheld high-precision three-dimensional scanning array structure according to claim 6 is characterized in that: The four-eye stereo vision reconstruction module includes: A module for obtaining pixels of the same name points to be matched is used to obtain corresponding pixels of the same name points of the target object in the camera fields of view of the two black and white cameras with a binocular relationship as pixels of the same name points to be matched; A candidate same-name point pixel acquisition module is used to set a third black-and-white camera other than the two black-and-white cameras with a binocular relationship to have the same field of view as the two black-and-white cameras with a binocular relationship, and use the third black-and-white camera other than the two black-and-white cameras with a binocular relationship to acquire pixels of the target object corresponding to the same-name point pixels to be matched as candidate same-name point pixels; The occluded homonymous point judgment and replacement module is used to replace the corresponding pixels of the occluded homonymous points with the candidate homonymous point pixels to complete the binocular stereoscopic vision reconstruction of the target object and obtain the 3D model of the target object when there are occluded homonymous points among the homonymous point pixels to be matched; The color texture mapping module is used to collect the colored 2D texture of the target object using a RGB camera after completing the binocular stereo vision reconstruction of the target object, and map the 2D texture to the 3D model of the target object through texture mapping to obtain the 3D model of the target object with color texture.