WO2020259625A1 - Three-dimensional scanning method, scanner, three-dimensional scanning system, computer device, and computer-readable storage medium - Google Patents

Three-dimensional scanning method, scanner, three-dimensional scanning system, computer device, and computer-readable storage medium Download PDF

Info

Publication number
WO2020259625A1
WO2020259625A1 PCT/CN2020/098253 CN2020098253W WO2020259625A1 WO 2020259625 A1 WO2020259625 A1 WO 2020259625A1 CN 2020098253 W CN2020098253 W CN 2020098253W WO 2020259625 A1 WO2020259625 A1 WO 2020259625A1
Authority
WO
WIPO (PCT)
Prior art keywords
measured object
waveband
image information
camera module
pattern
Prior art date
Application number
PCT/CN2020/098253
Other languages
French (fr)
Chinese (zh)
Inventor
赵晓波
王文斌
Original Assignee
先临三维科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201910577941.4A external-priority patent/CN112146565B/en
Priority claimed from CN201910577905.8A external-priority patent/CN112146564B/en
Application filed by 先临三维科技股份有限公司 filed Critical 先临三维科技股份有限公司
Publication of WO2020259625A1 publication Critical patent/WO2020259625A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/24Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
    • G01B11/25Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures by projecting a pattern, e.g. one or more lines, moiré fringes on the object
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration

Definitions

  • the present disclosure relates to the technical field of three-dimensional model reconstruction, in particular to a three-dimensional scanning method, a scanner, a three-dimensional scanning system, a computer device, and a computer-readable storage medium.
  • the three-dimensional scanning system can project light onto the surface of the object, and the imaging device captures the image projected by the light, and uses a three-dimensional reconstruction algorithm to reconstruct the three-dimensional size information of the surface of the object according to the shape of the captured image.
  • the three-dimensional scanning method uses the same set of cameras to recognize the landmark points and the point cloud data at the same time, and complete the splicing of the point cloud data after the landmark points are used for stitching.
  • the above-mentioned 3D scanning method is to ensure the accuracy of the 3D model, it is necessary to paste enough marker points, which results in many holes in the final data that need to be filled later.
  • the present disclosure provides a three-dimensional scanning method, a scanner, a three-dimensional scanning system, a computer device, and a computer-readable storage medium, which can ensure the details of the scanned data and improve the accuracy of the scan while reducing the usage of marker points.
  • a three-dimensional scanning method includes:
  • the coarse image information and the fine image information of the measured object are acquired, and the coarse image information and the fine image information are processed to obtain complete three-dimensional data of the measured object.
  • the processing the coarse image information and the fine image information includes:
  • the processing the coarse image information and the fine image information includes:
  • Acquire 3D data of a first mark point based on the rough image information acquire 3D data of a second mark point and second point cloud data based on the fine image information, and obtain 3D data of a first mark point and the second mark point
  • the three-dimensional data is spliced with the second point cloud data.
  • the processing the coarse image information and the fine image information includes:
  • the processing the coarse image information and the fine image information includes:
  • first mark point three-dimensional data and first point cloud data based on the rough image information
  • acquire second mark point three-dimensional data and second point cloud data based on the fine image information
  • the second point cloud data is spliced based on the three-dimensional data of the first mark point and the three-dimensional data of the second mark point.
  • processing the coarse image information and the fine image information further includes:
  • the curvature of the points in the first point cloud data and the second point cloud data is determined, and one of the first point cloud data and the second point cloud data is retained according to the curvature.
  • the collecting rough image information of the surface of the measured object and collecting the fine image information reflected by the measured object based on the reconstructed pattern includes:
  • the collecting rough image information reflected by the measured object and collecting fine image information reflected by the measured object based on the reconstructed pattern includes:
  • the collecting rough image information of the surface of the measured object and collecting fine image information reflected by the measured object based on the reconstructed pattern includes:
  • the collecting rough image information reflected by the measured object and collecting fine image information reflected by the measured object based on the reconstructed pattern includes:
  • the collecting rough image information reflected by the measured object and collecting fine image information reflected by the measured object based on the reconstructed pattern includes:
  • the collecting rough image information reflected by the measured object and collecting fine image information reflected by the measured object based on the reconstructed pattern includes:
  • the second waveband reconstruction pattern is simultaneously projected to the measured object to collect the second waveband modulation reconstruction pattern of the measured object.
  • a scanner the scanner body, the scanner body including:
  • Projection device used to project the reconstructed pattern to the measured object
  • An internal camera module configured as a second scanning range for collecting fine image information based on the reconstructed pattern reflected by the measured object;
  • An external camera module configured as a first scanning range, and is used to collect rough image information of the surface of the measured object, so as to obtain the measured object according to the rough image information and the fine image information Complete three-dimensional data of the object; the second scanning range is smaller than the first scanning range.
  • the scanner body includes a housing, the projection device, the internal camera module, and the external camera module are installed in the housing, and the scanner further includes a holding portion, the holding The part is installed on the scanner body.
  • the external camera module further includes a first illuminating element and a first filter in the first wavelength band, and the first illuminating element is annularly arranged around each of the external cameras for projecting the first One waveband of light to illuminate the mark points on the surface of the object to be measured;
  • the first filter is arranged at the front end of the external camera, and is used to retain the incident light of the first waveband and filter out the incident light of other wavebands;
  • the external The camera module is used to collect the landmark points of the first waveband of the measured object;
  • the internal camera module includes a second filter of a second wavelength band, and the second filter is disposed at the front end of the internal camera for retaining incident light in the second wavelength band and filtering out incident light in other wavelength bands.
  • the first waveband and the second waveband are different wavebands;
  • the projection device includes a projector for projecting the reconstruction pattern of the second waveband to the measured object, so that the internal camera module synchronously collects the modulation reconstruction pattern of the measured object in the second waveband .
  • the projection device includes a first projector and a second projector, the first projector is used to project a reconstruction pattern in the first waveband, and the second projector is used to project a reconstruction pattern in the second waveband ,
  • the external camera module further includes a first illuminating element and a first filter in the first wavelength band, the first illuminating element is annularly arranged around each of the external cameras, and is used to project light in the first wavelength band to To illuminate the mark points on the surface of the object to be measured, the first filter is arranged at the front end of the external camera, and is used to retain the incident light of the first waveband and filter out the incident light of other wavebands;
  • the internal camera module further includes a second illuminating element in a second wavelength band and a second filter, and the second illuminating element is annularly arranged around the internal camera for projecting light in the second wavelength band to illuminate the Measuring the mark points on the surface of the object, the second filter is arranged at the front end of the external camera, and is used to retain the incident light of the second waveband and filter the incident light of other wavebands;
  • the external camera module is used to collect the marker points and modulation reconstruction patterns of the first waveband of the measured object
  • the internal camera module is used to synchronously collect the marker points and the modulation reconstruction pattern of the second waveband of the measured object.
  • the projection device includes a dual-frequency projector, the dual-frequency projector is used to project the reconstruction pattern of the first waveband in the first time period, and project the reconstruction pattern of the second waveband in the second time period; so
  • the scanner body further includes a first illuminating member and a second illuminating member, the first illuminating member is annularly arranged around each of the external cameras, and the second illuminating member is annularly arranged around the internal camera for Illuminate the marking points on the surface of the measured object;
  • the external camera module is used to collect the mark points and the modulation reconstruction pattern of the measured object in a first time period
  • the internal camera module is used to collect the mark points and the modulation reconstruction pattern of the measured object in the second time period.
  • the projection device includes a first projector and a second projector, and the first projector is used to project a reconstruction pattern of the first waveband on the measured object in a first time period, and the second projector The two projectors project the reconstructed pattern of the second waveband on the measured object in the second time period;
  • the scanner body further includes a first illuminating element and a second illuminating element, the first illuminating element is annularly arranged on each Around the external camera, the second illuminating element is annularly arranged around the internal camera for illuminating the landmark points on the surface of the object to be measured;
  • the external camera module is used to collect the mark points and the modulation reconstruction pattern of the measured object in a first time period
  • the internal camera module is used to collect the mark points and the modulation reconstruction pattern of the measured object in the second time period.
  • the projection device includes a projector for projecting a reconstructed pattern to the object to be measured;
  • the three-dimensional scanning system further includes a first illuminating element and a second illuminating element, the first illuminating element An annular shape is arranged around each of the external cameras, and the second illuminating element is annularly arranged around the internal camera for illuminating the mark points on the surface of the measured object;
  • the external camera module is used to collect the mark points of the measured object in a first time period
  • the internal camera module is used to collect the mark points and the modulation reconstruction pattern of the measured object in the second time period.
  • the external camera module includes a first illuminating element and a first filter in a first wavelength band; the first illuminating element is annularly arranged around each of the external cameras for illuminating the Mark points on the surface of the object to be measured; the first filter is arranged at the front end of the external camera, and is used to retain the incident light in the first waveband and filter out the incident light in other wavebands; the internal camera module includes a second waveband A second illuminating element; the projection device includes a second projector, the second projector is used to project the second waveband reconstruction pattern to the measured object;
  • the external camera module is used to collect the landmark points of the first waveband of the measured object
  • the internal camera module is used to synchronously collect the marker points and the modulation reconstruction pattern of the second waveband of the measured object.
  • the external camera module includes a first illuminating element and a first filter in a first wavelength band; the first illuminating element is annularly arranged around each of the external cameras for illuminating the Marking points on the surface of the object to be measured; the first filter is arranged at the front end of the external camera, and is used to retain the incident light in the first waveband and filter out incident light in other wavebands; the projection device includes a first projector and a second Two projectors, the first projector is used to project the reconstructed pattern of the first wave band to the measured object; the second projector is used to project the reconstructed pattern of the second wave band to the measured object;
  • the external camera module is used to collect the mark points of the object under test and the modulation reconstruction pattern of the first waveband;
  • the internal camera module is used to synchronously collect the mark points of the object under test and the modulation reconstruction pattern of the second waveband.
  • the external camera module includes a first camera and a second camera
  • the internal camera module includes a third camera
  • the third camera is disposed between the first camera and the second camera
  • the projection device is arranged between the third camera and the first camera, or between the third camera and the second camera.
  • the external camera module includes a first camera and a second camera
  • the internal camera module includes a third camera and a fourth camera; both the third camera and the fourth camera are located in the first camera.
  • the projection device is arranged between the third camera and the fourth camera.
  • a three-dimensional scanning system includes the above-mentioned scanner, the scanner includes a scanner body, and the scanner body includes:
  • Projection device used to project the reconstructed pattern to the measured object
  • An external camera module configured to have a first scanning range, and the external camera module includes a plurality of external cameras for collecting rough image information reflected by the measured object based on the projection reconstruction pattern ;
  • An internal camera module configured as a second scanning range, the internal camera module includes at least one internal camera for collecting fine image information reflected by the measured object based on the projected reconstruction pattern ;
  • the second scanning range is smaller than the first scanning range;
  • the processing device is respectively connected with the external camera module and the internal camera module, and is used to obtain the coarse image information and the fine image information of the measured object, and to compare the coarse image information and the fine image information Processing is performed to obtain complete three-dimensional data of the measured object.
  • a computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the foregoing method when the computer program is executed.
  • a computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above method are realized.
  • the three-dimensional scanning method, scanner, scanning system, computer equipment, and computer-readable storage medium include: projecting a reconstructed pattern on a measured object; collecting rough image information reflected by the measured object; and collecting the The fine image information reflected by the measured object based on the reconstructed pattern; the coarse image information and the fine image information of the measured object are obtained, and the coarse image information and the fine image information are processed to obtain Complete three-dimensional data of the measured object.
  • the above-mentioned 3D scanning method assists the splicing of the fine image information collected by the internal camera module according to the collected rough image information, thereby realizing the acquisition of complete 3D data of the measured object, which can ensure the scanned data while reducing the usage of marker points Details, improve the accuracy of scanning.
  • Figure 1a is a schematic structural diagram of a scanner provided by an embodiment
  • Figure 1b is a schematic structural diagram of a scanner provided by an embodiment
  • Figure 1c is a schematic structural diagram of a scanner provided by another embodiment
  • FIG. 2 is a flowchart of a three-dimensional scanning method provided by an embodiment
  • 3 is a flowchart of processing steps for rough image information and fine image information according to an embodiment
  • FIG. 4 is a flowchart of a three-dimensional scanning method provided by another embodiment
  • FIG. 5 is a flowchart of a three-dimensional scanning method provided by still another embodiment
  • FIG. 6 is a flowchart of processing steps for rough image information and fine image information according to another embodiment
  • Figure 7 is a structural block diagram of a three-dimensional scanning device in an embodiment
  • Figure 8 is an internal structure diagram of a computer device in an embodiment.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include at least one of the features.
  • a plurality of means at least two, such as two, three, etc., unless otherwise specifically defined.
  • everal means at least one, such as one, two, etc., unless specifically defined otherwise.
  • the three-dimensional scanning method provided in the present disclosure can be implemented through software control, and can also be applied to a three-dimensional scanning system.
  • the embodiments of the present disclosure are described by taking application in a scanner as an example.
  • the scanner includes a scanner body, which includes a projection device 110, an internal camera module 120, and an external camera module 130, wherein,
  • the projection device 110 is used to project the reconstructed pattern to the measured object
  • the internal camera module 120 is configured as a second scanning range for collecting fine image information based on the reconstructed pattern reflected by the measured object;
  • the external camera module 130 is configured as a first scanning range, and the first scanning range is larger than the second scanning range, and is used to collect rough image information of the surface of the object to be measured.
  • the scanning range of the camera can be configured in four ways. (1) The different scanning ranges of the internal camera module and the external camera module are realized by setting different focal lengths. The larger the focal length, the larger the scanning range. The specific focal length difference between the external camera module 130 and the internal camera module 120 may be determined according to the characteristics of the object 140 to be measured. (2) Different scanning ranges of the internal camera module and the external camera module are realized by setting different CCD sizes. (3) The different scanning ranges of the internal camera module and the external camera module are realized by setting the arrangement positions of the cameras in the internal camera module and the external camera module.
  • the internal camera module and the external camera module can be realized by adjusting the setting angle of the camera in the internal camera module and the external camera module Different scan ranges.
  • scanners with different scanning ranges can be configured according to different applications, and the scanning ranges of the external camera and the internal camera can be configured in one or more of the four ways.
  • the specific configuration method is not limited in the embodiment of the present disclosure, as long as it is ensured that the second scanning range is smaller than the first scanning range.
  • the second scanning range and the first scanning range have an overlapping area.
  • the first scanning range completely covers the second scanning range.
  • the scanning range of the external camera module 130 is larger than the scanning range of the internal camera module 120.
  • the rough image information is obtained by the external camera module 130, the rough image information may include the mark point information and/or the modulation reconstruction pattern of the measured object, and the fine image information may include the mark point information and/or the modulation reconstruction pattern of the measured object.
  • the rough image information and the fine image information at least part of the images correspond to the same area of the measured object.
  • the first scanning range of the external camera module 130 is larger than the second scanning range of the internal camera module 120 and the first scanning range and the second scanning range have an overlapping area, when the external camera module 130 and the internal camera module 120 are aligned
  • the single scan area of the external camera module 130 on the object needs to be scanned multiple times for the internal camera module 120, according to the multi-frame fine influence information collected by the internal camera module 120 for multiple scans
  • the obtained multiple pieces of point cloud data correspond to the relevant data obtained according to the rough image information collected by the external camera module 130 in a single scan, and the distribution of multiple pieces of point cloud data can be determined based on the relevant data obtained by the external camera module 130 Relationship, that is, based on the relevant data obtained by the external camera module 130, accurate splicing of multiple pieces of point cloud data can be completed.
  • the rough image information includes marker points
  • the fine image information includes a reconstructed pattern modulated by the surface of the measured object.
  • the internal camera module 120 includes at least two cameras, and the external camera module 130 includes at least one camera.
  • the external camera module 130 includes a plurality of external cameras, and the internal camera module 120 includes at least one internal camera.
  • the external camera module 130 also includes a first illuminating element 121 in the first wavelength band and a first filter in the first wavelength band.
  • the first illuminating element 121 is annularly arranged around each external camera and used to project light in the first wavelength band.
  • the first filter is arranged at the front end of the external camera to retain the incident light of the first waveband and filter out the incident light of other wavebands.
  • the internal camera module 120 also includes a second illuminating element 131 in the second wavelength band and a second filter 132 in the second wavelength band.
  • the second illuminating element 131 is annularly arranged around each internal camera for projecting the first wavelength
  • the light is used to illuminate the marking points on the surface of the object 140
  • the second filter is arranged at the front end of the internal camera to retain the incident light of the second waveband and filter out the incident light of other wavebands.
  • the projection device 110 includes a first projector of the first waveband and a second projector of the second waveband.
  • the first projector projects the reconstructed pattern of the first waveband to the measured object 140, and the second projector is used to project the measured object 140
  • the reconstructed pattern in the second band, the reconstructed pattern is a normal fringe pattern or a speckle pattern or a sinusoidal fringe pattern.
  • the reconstructed pattern in the first band and the reconstructed pattern in the second band are both normal fringe patterns, and the normal fringe in the first band
  • the pattern and the stripe density distribution of the normal stripe pattern in the second waveband can be the same or different.
  • the stripe distribution of the normal stripe pattern in the first waveband is sparsely distributed so that an external camera module with a larger scanning range can identify and extract Stripes, the stripes of the common stripe pattern in the second band are more densely distributed so that more point cloud data can be obtained.
  • the first waveband and the second waveband are different wavebands, which ensures that when there are multiple wavebands of light at the same time, both the external camera module and the internal camera module can simultaneously collect the light of the corresponding waveband, and No interference light of other bands will be collected, for example, when the first illuminator, the first projector, the second illuminator, and the second projector simultaneously project the light to the surface of the object to be measured, and the external camera and the internal camera simultaneously collect ,
  • the external camera only collects the light of the first waveband projected by the first illuminating element and the first projector, but not the second illuminator and the second waveband light projected by the second projector.
  • the internal camera only collects the second wave The light of the second waveband projected by the illuminating element and the second projector does not collect the light of the first waveband projected by the first illuminating element and the first projector.
  • the scanner of this embodiment can be configured with one or more of the following working modes. Select one of the configurations to scan according to the scanning requirements. When scanning, the scanner runs the corresponding working parts or modules according to the working mode:
  • Working mode 1 The first illuminator irradiates the light of the first waveband to the surface of the measured object, and the first projector projects the reconstructed pattern of the first waveband to the surface of the measured object in synchronization with the first illuminator, and the surface of the measured object is pasted There are marker points, the light of the first band and the reconstructed pattern are collected by the external camera reflected by the surface of the measured object, and the external camera collects rough image information including the marker points and the modulated reconstruction pattern; the second illuminator illuminates the light of the second band To the surface of the measured object, the second projector simultaneously projects the reconstructed pattern of the second wave band to the surface of the measured object relative to the second illuminator.
  • the light and the reconstructed pattern of the second wave band are reflected by the surface of the measured object and collected by the internal camera ,
  • the internal camera synchronously collects the fine image information including the mark points and the modulation reconstruction pattern with respect to the external camera; the complete three-dimensional data of the measured object is obtained based on the collected rough image information and fine image information.
  • the three-dimensional data of the first mark point is reconstructed based on the mark points of the coarse image information
  • the first point cloud data is reconstructed based on the modulation reconstruction pattern of the coarse image information
  • the three-dimensional data of the second mark point is reconstructed based on the mark points of the fine image information.
  • the second point cloud data is reconstructed by the modulation reconstruction pattern of the image information, the first conversion matrix is determined based on the splicing of the three-dimensional data of the first marker points, and the first point cloud data and the second point cloud data are spliced based on the first conversion matrix to realize the Obtain complete three-dimensional data of the measured object.
  • Stitching the first point cloud data and the second point cloud data based on the first transformation matrix specifically includes: stitching multiple pieces of first point cloud data based on the first transformation matrix, based on the first transformation matrix and the external camera module 130 and the internal camera module Splicing the first point cloud data and the second point cloud data of the calibration external parameters of the group 120; or splicing multiple pieces of first point cloud data based on the first conversion matrix, based on the three-dimensional data of the first marker point and the three-dimensional data of the second marker point
  • the second conversion matrix is determined by splicing, and the first point cloud data and the second point cloud data are spliced based on the second conversion matrix, so that the external parameters of the external camera and the internal camera may not be calibrated.
  • whether to retain the first point cloud data or the second point cloud data can be selected according to the curvature, so as to realize the self-adaptive retention of feature details of the data, thereby ensuring the details of the data.
  • the curvature On the basis of reducing the volume of data.
  • Working mode 2 The first illuminator irradiates the light of the first waveband to the surface of the object under test in the first time period, and the first projector projects the reconstructed pattern of the first waveband to the surface of the object under test in the first time period.
  • Marking points are pasted on the surface of the object to be measured, the first waveband light and reconstruction pattern are reflected by the surface of the measured object and collected by an external camera in the first time period, and the external camera collects rough image information including the marking points and the modulation reconstruction pattern;
  • the two illuminators irradiate the light of the second waveband to the surface of the object under test in the second time period, the second projector projects the reconstructed pattern of the second waveband to the surface of the object under test during the second time period, the light of the second waveband and The reconstructed pattern is collected by the internal camera in the second time period after being reflected by the surface of the measured object.
  • the first time period and the second time period are different time periods.
  • the internal camera is time-sharing to the external camera to collect the reconstruction pattern including the mark points and modulation.
  • the fine image information based on the collected coarse image information and fine image information to obtain complete three-dimensional data of the measured object, specifically, based on the marker points of the coarse image information to reconstruct the first marker point three-dimensional data, based on the modulation reconstruction of the coarse image information
  • the first conversion matrix based on the first conversion matrix to splice multiple pieces of first point cloud data
  • the second conversion matrix is determined based on the splicing of the first mark point three-dimensional data and the second mark point three-dimensional data
  • the first point is spliced based on the second conversion matrix
  • the cloud data and the second point cloud data realize the acquisition of complete three-dimensional
  • the first point cloud data and the second point cloud data whether to retain the first point cloud data or the second point cloud data can be selected according to the curvature, so as to realize the self-adaptive retention of feature details of the data, thereby ensuring the details of the data.
  • the first point cloud data can be obtained by scanning the external camera module
  • the second point cloud data can be obtained by scanning the internal camera module for the part of the measured object that requires high detail.
  • the first point cloud data and the second point cloud data are spliced to obtain complete three-dimensional data of the measured object. It can be seen that high-fidelity and high-detail data quality can be obtained while ensuring data details, and the data volume is reduced.
  • Working mode 3 The first illuminator irradiates the light of the first wave band to the surface of the measured object, the surface of the measured object is pasted with marking points, the light of the first wave band is reflected by the surface of the measured object and is collected by the external camera, and the external camera collects To the rough image information including the mark points; the second illuminating element illuminates the second waveband light to the surface of the object to be measured, and the second projector simultaneously projects the reconstructed pattern of the second waveband to the surface of the object under test relative to the second illuminating element, The second-band light and the reconstructed pattern are reflected by the surface of the measured object and collected by the internal camera.
  • the internal camera synchronously collects the fine image information including the marker points and the modulation reconstruction pattern with the external camera; based on the collected rough image information and fine image
  • the information obtains the complete 3D data of the measured object.
  • the 3D data of the first marker is reconstructed based on the markers of the coarse image information
  • the 3D data of the second marker is reconstructed based on the markers of the fine image information
  • the modulation reconstruction based on the fine image information
  • the pattern reconstructs the second point cloud data
  • the first conversion matrix is determined based on the splicing of a plurality of first mark point 3D data
  • the plurality of second point cloud data are spliced based on the first conversion matrix to realize the acquisition of the complete 3D data of the measured object.
  • Working mode 4 The first illuminator irradiates the light of the first waveband to the surface of the measured object in the first time period, the surface of the measured object is pasted with marking points, and the light of the first waveband is reflected by the surface of the measured object by the external camera Collected in the first time period, the external camera collects the rough image information including the mark points; the second illuminator illuminates the second waveband of light to the surface of the measured object in the second time period, and the second projector is in the second time period Project the reconstructed pattern of the second wave band to the surface of the measured object. The light and the reconstructed pattern of the second wave band are reflected by the surface of the measured object and collected by the internal camera in the second time period.
  • the first time period and the second time period are different In the time period, the internal camera collects the fine image information including the marker points and the modulation reconstruction pattern in time-sharing compared with the external camera; based on the collected rough image information and fine image information, the complete three-dimensional data of the measured object is obtained, specifically, based on the rough
  • the mark points of the image information reconstruct the three-dimensional data of the first mark point
  • the three-dimensional data of the second mark point is reconstructed based on the mark points of the fine image information
  • the second point cloud data is reconstructed based on the modulation reconstruction pattern of the fine image information, based on multiple first mark points
  • the splicing of the three-dimensional data determines the first conversion matrix
  • the second conversion matrix is determined based on the splicing of the first mark point three-dimensional data and the second mark point three-dimensional data
  • the multiple pieces of second point cloud data are spliced based on the first conversion matrix and the second conversion matrix , To achieve the acquisition of complete three-dimensional data of the measured
  • Working mode 5 The first illuminating element irradiates the light of the first wave band to the surface of the measured object, and the first projector projects the reconstructed pattern of the first wave band to the surface of the measured object in synchronization with the first illuminating element, and the surface of the measured object is pasted There are marking points, the light of the first band and the reconstructed pattern are reflected by the surface of the measured object and collected by an external camera.
  • the external camera collects rough image information including marking points and modulated reconstruction patterns; the second projector is synchronized with the second illuminator Project the reconstructed pattern of the second wave band to the surface of the measured object.
  • the reconstructed pattern of the second wave band is modulated by the surface of the measured object and collected by the internal camera.
  • the internal camera synchronously collects the fine image information including the modulated reconstruction pattern with the external camera;
  • the collected coarse image information and fine image information obtain complete three-dimensional data of the measured object.
  • the first mark point three-dimensional data is reconstructed based on the mark points of the coarse image information
  • the first point cloud is reconstructed based on the modulation reconstruction pattern of the coarse image information Data
  • reconstruct the second point cloud data based on the modulation reconstruction pattern of the fine image information
  • a conversion matrix and calibrated external parameters of the external camera module and the internal camera module splicing the first point cloud data and the second point cloud data to realize the acquisition of complete three-dimensional data of the measured object.
  • the usage of the mark points on the measured object can be reduced, the holes in the second point cloud data can be reduced, and the high detail of the complete three-dimensional data of the measured object can be guaranteed.
  • whether to retain the first point cloud data or the second point cloud data can be selected according to the curvature, so as to realize the self-adaptive retention of feature details of the data, thereby ensuring the details of the data.
  • the curvature On the basis of reducing the volume of data.
  • Working mode 6 The first illuminator irradiates the light of the first wave band to the surface of the measured object, and the surface of the measured object is pasted with marking points.
  • the light of the first wave band is reflected by the surface of the measured object and is collected by an external camera.
  • the second projector projects the reconstructed pattern of the second wave band to the surface of the measured object synchronously with respect to the first illuminator, which is collected by the internal camera after the surface modulation of the measured object, and the internal camera is relative to the external camera Synchronously collect fine image information including modulation reconstruction patterns; obtain complete three-dimensional data of the measured object based on the collected coarse image information and fine image information, specifically, reconstruct the three-dimensional data of the first marker point based on the marker points of the coarse image information, The second point cloud data is reconstructed based on the modulation reconstruction pattern of the fine image information, the first conversion matrix is determined based on the splicing of the three-dimensional data of the first marker points, and the second point cloud data is spliced based on the first conversion matrix to realize the measured object Acquisition of complete three-dimensional data.
  • the usage of the mark points on the measured object can be reduced, the holes in the second point cloud data can be reduced, and the high detail of the complete three-
  • the external camera module 130 includes a plurality of external cameras, and the internal camera module 120 includes at least one internal camera.
  • the external camera module 130 also includes a first illuminating element 121 in the first wavelength band and a first filter in the first wavelength band.
  • the first illuminating element 121 is annularly arranged around each external camera and used to project light in the first wavelength band.
  • the first filter is arranged at the front end of the external camera to retain the incident light of the first waveband and filter out the incident light of other wavebands.
  • the projection device 110 includes a projector of the second waveband, which is used to project the reconstructed pattern of the second waveband to the measured object 140.
  • the internal camera module 120 includes a second filter 132 in the second wavelength band, and the second filter is disposed at the front end of the internal camera for retaining incident light in the second wavelength band and filtering out incident light in other wavelength bands.
  • the first waveband and the second waveband are different wavebands.
  • the scanner of this embodiment configures the sixth working mode described above.
  • the scanner runs the corresponding working parts or modules according to the working mode.
  • the external camera module 130 includes a plurality of external cameras
  • the internal camera module 120 includes at least one internal camera.
  • the projection device 110 includes a first projector of the first waveband and a second projector of the second waveband. The first projector projects the reconstructed pattern of the first waveband to the measured object 140, and the second projector is used to project the measured object 140 The reconstruction pattern of the second band.
  • the external camera module includes a first illuminating element 121 of the first waveband, the first illuminating element 121 is annularly arranged around each external camera, and is used to project light of the first waveband to illuminate the mark points on the surface of the object 140 under test;
  • the camera module 120 includes a second illuminating element 131 of the second waveband, the second illuminating element 131 is annularly arranged around each internal camera, and is used for projecting light of the second waveband to illuminate the marking points on the surface of the object 140 under test.
  • the first waveband and the second waveband are the same waveband.
  • the front end of the external camera and the front end of the internal camera may not be provided with a filter, or a filter for the light of the first wave band (ie the second wave band) to pass through, and the filter can filter the light of other wave bands according to requirements Set up.
  • the projection device 110 may be provided with only one projector, which can be used as both the first projector and the second projector.
  • the scanner of this embodiment is configured with one or more of the above-mentioned working mode two, working mode three, working mode four, and working mode six. Select one of the configurations to scan according to the scanning requirements. During scanning, the scanner runs the corresponding working parts or modules according to the working mode.
  • the external camera module 130 includes a plurality of external cameras
  • the internal camera module 120 includes at least one internal camera.
  • the projection device 110 includes a first projector of the first waveband and a second projector of the second waveband. The first projector projects the reconstructed pattern of the first waveband to the measured object 140, and the second projector is used to project the measured object 140 The reconstruction pattern of the second band.
  • the external camera module includes a first illuminating element 121 of the first waveband, the first illuminating element 121 is annularly arranged around each external camera, and is used to project light of the first waveband to illuminate the mark points on the surface of the object 140 under test;
  • the camera module 120 includes a second illuminating element 131 of the second waveband, the second illuminating element 131 is annularly arranged around each internal camera, and is used for projecting light of the second waveband to illuminate the marking points on the surface of the object 140 under test.
  • the first waveband and the second waveband are different wavebands.
  • the front end of the external camera and the front end of the internal camera may not be provided with a filter, or may be provided with a filter for passing light of the first and second wavelength bands, and the filter for filtering other wavelengths of light is set according to requirements.
  • the projection device 110 may also be a dual-frequency projector, which controls the dual-frequency projector to alternately project the reconstructed pattern in the first waveband and the reconstructed pattern in the second waveband.
  • the scanner of this embodiment is configured with one or both of the above-mentioned working mode two, working mode three, working mode four, and working mode six. Select one of the configurations to scan according to the scanning requirements. During scanning, the scanner runs the corresponding working parts or modules according to the working mode.
  • the external camera module 130 includes a plurality of external cameras
  • the internal camera module 120 includes at least one internal camera.
  • the external camera module 130 includes a first illuminating element in the first waveband, the first illuminating element is annularly arranged around each of the external cameras, and is used to project light in the first waveband to illuminate the mark on the surface of the object 140 to be measured Point;
  • the internal camera module 120 includes a second illuminating element of the second waveband, the second illuminating element is annularly arranged around the internal camera, and is used to project light of the second waveband to illuminate the mark on the surface of the measured object 140 Point;
  • the first waveband and the second waveband are different wavebands.
  • the projection device includes a projector, which can be used as a first projector to project a reconstructed pattern of the first wave band to the measured object 140 or a second projector to project a reconstructed pattern of the second wave band to the measured object 140.
  • the front end of the external camera and the front end of the internal camera may not be provided with a filter, or may be provided with a filter for passing light of the first and second wavelength bands, and the filter for filtering other wavelengths of light is set according to requirements.
  • the scanner of this embodiment is configured with one or both of the above-mentioned working mode two, working mode three, working mode four, and working mode six. Select one of the configurations to scan according to the scanning requirements. During scanning, the scanner runs the corresponding working parts or modules according to the working mode.
  • the external camera module 130 includes a plurality of external cameras
  • the internal camera module 120 includes at least one internal camera.
  • the external camera module 130 includes a first illuminating element of the first waveband and a first filter, and the first illuminating element is annularly arranged around each of the external cameras for illuminating the mark points on the surface of the object to be measured,
  • the first filter is disposed at the front end of the external camera, and is used to retain the incident light in the first waveband and filter out incident light in other wavebands;
  • the internal camera module includes a second illuminator in the second waveband and a second
  • the second illuminating element is annularly arranged around each of the internal cameras to illuminate the mark points on the surface of the object to be measured, and the second filter is arranged on the front end of the internal camera to retain the first The incident light in the second waveband filters out the incident light in other wavebands.
  • the projection device includes a second projector, and the second projector is used to project the
  • the scanner of this embodiment is configured with one or more of the above-mentioned working mode three, working mode four, and working mode six. Select one of the configurations to scan according to the scanning requirements. During scanning, the scanner runs the corresponding working parts or modules according to the working mode.
  • the external camera module 130 includes a plurality of external cameras
  • the internal camera module 120 includes at least one internal camera.
  • the external camera module includes a first illuminating element and a first filter in the first waveband; the first illuminating element is annularly arranged around each of the external cameras, and is used to illuminate the mark points on the surface of the object to be measured
  • the first filter is arranged at the front end of the external camera, and is used to retain the incident light of the first waveband and filter out the incident light of other wavebands;
  • the internal camera module includes a second filter, the second The filter is arranged at the front end of the internal camera and is used to retain the incident light of the second waveband and filter out the incident light of other wavebands.
  • the projection device includes a first projector and a second projector.
  • the first projector is used to project the reconstructed pattern of the first wave band to the measured object;
  • the second projector is used to project the second wave band of the measured object to the measured object. Reconstruct the pattern; in this embodiment, the first waveband and the second waveband are different wavebands.
  • the scanner of this embodiment is configured with one or both of the above-mentioned working mode 5 and working mode 6. Select one of the configurations to scan according to the scanning requirements. During scanning, the scanner runs the corresponding working parts or modules according to the working mode.
  • a plurality of first lighting parts may be arranged around each external camera.
  • the specific number is not limited in this embodiment.
  • Both the first lighting element 121 and the second lighting element 131 may be LED lights.
  • the illuminating element is arranged in a ring around the camera to scan multiple azimuth landmark points, so as to scan the measured object 140 more comprehensively and improve the accuracy of scanning.
  • the external camera module 130 includes two cameras, a first camera 111 and a second camera 112, respectively.
  • the first camera 111 and the second camera 112 construct a binocular reconstruction system
  • the internal camera module 120 includes one
  • the third camera 113 and the third camera 113 construct a monocular reconstruction system.
  • the third camera 113 is arranged between the first camera 111 and the second camera 112; the projection device 110 can be arranged between the third camera 113 and the first camera 111, and the projection device 110 can also be arranged between the third camera 113 and the second camera. Between cameras 112.
  • the external camera module 130 includes a first camera 111 and a second camera 112, the first camera 111 and the second camera 112 construct a binocular reconstruction system, and the internal camera module 120 includes a second camera.
  • the third camera 113 and the fourth camera 114, the third camera 113 and the fourth camera 114 construct a binocular reconstruction system; the third camera 113 and the fourth camera 114 are both located between the first camera 111 and the second camera 112, that is, the first The camera 111 and the second camera 112 are located outside the scanner, the third camera 113 and the fourth camera 114 are both located inside the scanner, and the projection device 110 is arranged between the third camera 113 and the fourth camera 114, namely the projection device 110 Located in the middle, so that the projected reconstruction pattern can be distributed more uniformly and the scanning accuracy can be improved.
  • the external camera module 130 includes a first camera 111, a second camera 112, and a fifth camera 115, any of the first camera 111, the second camera 112, and the fifth camera 115
  • Two cameras can construct a binocular reconstruction system.
  • the first camera 111 and the second camera 112 may construct a binocular reconstruction system, or the second camera 112 and the fifth camera 115 may construct a binocular reconstruction system, etc.
  • the internal camera module 120 includes a third camera 113 and a fourth camera 114, and the third camera 113 and the fourth camera 114 construct a binocular reconstruction system.
  • the projection device 110 may also be arranged in other positions.
  • the arrangement position of the projection device 110 in the above embodiment is only an example, and the specific arrangement position of the projection device 110 is not limited.
  • the scanner provided by the embodiment of the present disclosure includes a projection device 110, an internal camera module 120, and an external camera module 130.
  • the projection device 110 projects a reconstructed pattern on an object 140;
  • the internal camera module 120 is configured as a second scanning range, Used to collect fine image information based on the reconstructed pattern reflected by the measured object 140;
  • the external camera module 130 is configured as a first scanning range, and the first scanning range is larger than the second scanning range, and is used to collect the surface of the measured object 140
  • the rough image information is used to obtain complete three-dimensional data of the measured object according to the rough image information and the fine image information.
  • the present disclosure obtains multiple pieces of point cloud data through the fine image information of the measured object 140 collected by the internal camera module 120, and obtains the three-dimensional data of the landmark points through the rough image information collected by the external camera module 130.
  • the range is larger than the scanning range of the internal camera module 120 and overlaps. Therefore, a single piece of landmark 3D data can correspond to multiple pieces of point cloud data, and the positional relationship between the multiple pieces of point cloud data is determined thereby, thereby realizing multiple pieces of point cloud
  • the splicing of data For the same camera, when an image of a larger scene is to be captured, the details of the captured image are relatively poor. Conversely, when an image with better detail is to be captured, the scene of the captured image is smaller.
  • the external camera module is used to collect the landmark points on the surface of the measured object
  • the internal camera module is used to collect the reconstructed pattern modulated by the measured object to obtain the point cloud data with better details.
  • the scanning range of the group is large, and the surface of the measured object can be pasted with more scattered marker points, that is, the splicing of point cloud data can be completed under the condition of reducing the use of marker points, and the scanning range of the internal camera module is small However, the details of the data are better. Therefore, the present disclosure can ensure the details of the scanned data and improve the accuracy of the scan while reducing the usage of the marker points.
  • the external camera module can also be used for other collections, and is not limited to the collection of marker points
  • the internal camera module can also be used for other collections, and is not limited to reconstruction patterns.
  • the scanner body further includes a housing, the projection device, the internal camera module, and the external camera module are installed in the housing, and the scanner further includes a holding portion, the holding portion Installed on the scanner body.
  • the present disclosure also provides a three-dimensional scanning system.
  • the three-dimensional scanning system includes a processing device and the scanner described in any one of the above embodiments.
  • the processing device is connected to the external camera module 130 and the internal camera module 120 in the scanner, respectively.
  • To obtain the coarse image information and fine image information of the measured object and process the coarse image information and fine image information to obtain the complete three-dimensional data of the measured object. Specifically, after the rough influence information and the fine image information are obtained, multiple pieces of point cloud data corresponding to the fine image information are extracted, and the multiple pieces of point cloud data are stitched according to the rough image information, thereby completing the accuracy of the measured object 140 Splicing to obtain complete three-dimensional data of the measured object 140.
  • Fig. 2 is a flowchart of a three-dimensional scanning method provided by an embodiment. Referring to Figs. 1a, 1b and 2, the three-dimensional scanning method includes steps 210 to 240, wherein:
  • Step 210 project the reconstructed pattern to the measured object 140.
  • the reconstructed pattern can be projected to the measured object 140 through the projection device in the scanning device.
  • the scanning device scanner or three-dimensional scanning system
  • it needs to be calibrated that is, the cameras in the internal camera module 120 and the external camera module 130 are calibrated to obtain calibration parameters.
  • the internal camera in the internal camera module 120 and the external camera in the external camera module 130 are calibrated, so as to obtain the internal and external parameters of the multiple cameras and the rotation and translation matrix corresponding to the relative positions between the multiple cameras.
  • a good scanning device can further obtain complete three-dimensional data of the measured object 140 according to the obtained image information.
  • the processing module obtains the landmark information and the modulation reconstruction pattern, it only needs to process the internal and external parameters of the camera, the relative position parameters of the projection device and the internal camera, and the external camera, without considering the relative position parameters of the internal and external cameras. , Which can reduce processing complexity and increase the speed of three-dimensional scanning.
  • marking points need to be pasted on the measured object 140, and the marking points can be used as reference points all over the outer surface of the measured object 140.
  • the number of marking points can be multiple, and the specific number and setting positions are not limited in this embodiment, but it is necessary to ensure that all marking points are not on the same straight line.
  • any three marking points are not on the same straight line, so that the splicing of point cloud data can be completed more accurately.
  • the marking point can be made of a reflective material with high reflective performance, and the marking point may be pasted on the outer surface of the object 140 to be measured.
  • the light of a preset waveband is projected to the measured object 140 through the illuminating element.
  • the above-mentioned first waveband and second waveband are both preset wavebands.
  • the spectrum of the light of the preset waveband is not limited.
  • the light of the preset waveband is one of the three monochromatic lights of red, blue, and green.
  • the reconstruction pattern projected by the projection device 110 is not limited, and may be a normal fringe pattern, a speckle pattern, a sinusoidal fringe pattern, and the like.
  • the reconstruction pattern is a normal stripe pattern, and the number of stripes is not limited, but in order to improve scanning efficiency, more than 15 stripes are usually required. It is understandable that when the number of stripes is small, the reconstructed pattern is sparser, and the data obtained in a single scan is less, and more data information of the measured object 140 can be obtained through multiple scans; when the number of stripes is large , The reconstructed pattern is denser, and more data information of the measured object 140 can be obtained in a single scan.
  • the structure of the projection device 110 is not limited, as long as it can project the reconstructed pattern to the measured object 140.
  • the projection device 110 may include a laser and/or a projector.
  • Step 220 Collect rough image information on the surface of the measured object 140.
  • the rough image information of the surface of the object 140 can be collected by the external camera module 130 in the scanning device.
  • the first illuminating element 121 of the external camera module 130 emits light of the first waveband.
  • the light reflected by the mark point is collected by the external camera module 130.
  • the mark point carries the mark point information of the measured object 140, that is, the three-dimensional data of the mark point can be determined based on the mark point in the rough image information. Since the scanning range of the external camera module 130 is relatively large, the use of marker points on the measured object is reduced, and the marker points on the measured object are more dispersed.
  • the three-dimensional marker points determined by the rough image information collected by the external camera module 130 The data can be spliced, and the data can better reflect the overall information of the measured object 140.
  • step 230 fine image information based on the reconstructed pattern reflected by the measured object 140 is collected.
  • the internal camera module 120 can collect fine image information based on the reconstructed pattern reflected by the measured object 140.
  • the internal camera module 120 has a relatively small scanning range, and can perform partial scanning of the measured object 140 to obtain detailed information of the measured object 140.
  • the coarse image information may include marker points and/or modulation reconstruction patterns, and the fine image information may include marker points and/or modulation reconstruction patterns.
  • the types of the internal camera module 120 and the external camera module 130 are not limited, as long as the image information of the measured object 140 can be collected. It is understandable that the reconstructed pattern projected by the projection device 110 to the side object is deformed by the height modulation of the measured object 140, and the modulated reconstructed pattern is collected by the internal camera module 120 and/or the external camera module 130. .
  • Step 240 Obtain rough image information and fine image information of the measured object 140 through the processing device, and process the rough image information and the fine image information to obtain complete three-dimensional data of the measured object 140.
  • the rough image information and the fine image information of the measured object 140 can be acquired by the processing device, and the rough image information and the fine image information can be processed to obtain complete three-dimensional data of the measured object 140.
  • the processing device can obtain the rough image information collected by the external camera module 130 and the fine image information collected by the internal camera module 120 through the data interface, and then perform processing such as reconstruction, splicing, and fusion on the rough image information and the fine image information to obtain the Measure the complete three-dimensional data of the object 140.
  • the processing device may be a central processing unit CPU. It can be understood that the processing device is also used to control the working status of the projection device 110, the internal camera module 120, and the external camera module 130. Specifically, the processing device may send control instructions to control the projection device 110 to project the reconstructed patterns, and control the number of reconstructed patterns projected, etc.; the processing device may send control instructions to control the exposure time of the internal camera module 120 and the external camera module 130, To collect rough image information and fine image information.
  • the data interface receives the image information and sends it to the CPU.
  • the three-dimensional scanning method provided in this embodiment projects the reconstructed pattern to the measured object 140 through the projection device 110; collects the rough image information based on the reconstructed pattern reflected by the measured object 140 through the external camera module 130; The fine image information based on the reconstructed pattern reflected by the measured object 140; the rough image information and the fine image information of the measured object 140 are acquired through the processing device, and the rough image information and the fine image information are processed to obtain the complete image of the measured object 140 Three-dimensional data.
  • the above-mentioned three-dimensional scanning method assists the splicing of the point cloud data of the fine image information collected by the internal camera module 120 according to the rough image information collected by the external camera module 130, thereby achieving the acquisition of complete three-dimensional data of the measured object 140, which can reduce the mark In the case of point usage, ensure the details of scanned data and improve the accuracy of scanning.
  • collecting rough image information of the measured object 140 through the external camera module 130 includes: projecting a first waveband of light through the first illuminating element 121 to illuminate the mark points on the surface of the measured object 140, and make the exterior The camera module 130 collects the mark points of the measured object 140.
  • the projection device 110 includes a projector of the second waveband, and projecting the reconstructed pattern to the measured object 140 through the projection device 110 includes: projecting the reconstructed pattern of the second waveband to the measured object 140 through the projector, so that the internal camera module 120 can collect synchronously The modulation reconstruction pattern of the measured object 140.
  • the projector in this embodiment may be a single-frequency projector, as long as it can project the reconstructed pattern of the second waveband.
  • the calibrated scanner is first turned on, and the first illuminating element 121 in the external camera module 130 is controlled to flicker to project the first wave band of light to the mark point on the surface of the measured object 140, and the first wave band of light is projected
  • the external camera module 130 collects the rough image information including the mark point. Since the front end of the external camera is provided with a first waveband filter, and the internal camera is provided with a second waveband second filter outside, the external camera can only collect the landmark points of the measured object 140 in the first waveband.
  • the second waveband projector projects the second waveband reconstruction pattern to the measured object 140 and reflects the second waveband modulation reconstruction pattern.
  • the second waveband modulation reconstruction pattern carries the detailed information of the measured object 140.
  • the internal camera can only collect The modulation reconstruction pattern to the second band.
  • obtaining the coarse image information and the fine image information of the measured object 140 through the processing device, and processing the coarse image information and the fine image information to obtain the complete three-dimensional data of the measured object 140 includes steps 310 and 320, of which:
  • step 310 the processing device determines and splices the three-dimensional data of the mark points after acquiring the mark points of the measured object 140 to obtain the first transformation matrix.
  • Step 320 Obtain the modulation reconstruction pattern of the measured object 140, reconstruct the point cloud data based on the modulation reconstruction pattern, and stitch the point cloud data according to the first conversion matrix to obtain the complete three-dimensional data of the measured object 140.
  • the point cloud data is first reconstructed based on the modulation reconstruction pattern, and the splicing of the point cloud data is a process of aligning any two pieces of point cloud data to a unified coordinate system.
  • the complete process of splicing is generally divided into two steps: three-dimensional data splicing of marker points and point cloud data splicing.
  • Marking 3D data splicing refers to pasting mark points on the surface of the measured object 140, reconstructing mark point three-dimensional data according to the obtained mark points, unifying multiple mark point three-dimensional data into the same coordinate system, and marking point three-dimensional data splicing is stable , The characteristics of fast speed.
  • the first conversion matrix is obtained.
  • the first conversion matrix can guide the splicing of the point cloud data, that is, the point cloud data can be unified in the same coordinate system through the first conversion matrix to complete the point cloud data To obtain the complete three-dimensional data of the measured object 140.
  • the projection device 110 includes a first projector in the first waveband and a second projector in the second waveband
  • the external camera module 130 includes the first illuminating element 121 in the first waveband
  • the internal camera module 120 includes The second illuminator 131 of the second waveband
  • collecting rough image information of the surface of the measured object 140 through the external camera module 130 and collecting the fine image information based on the reconstructed pattern reflected by the measured object 140 through the internal camera module 120 includes step 410 And step 420, where:
  • Step 410 Control the first projector to project the reconstructed pattern of the first wave band to the measured object 140, and synchronously control the first illuminator 121 to project the first wave of light to illuminate the mark points on the surface of the measured object 140 so as to make the outside
  • the camera module 130 collects the mark points and the modulation reconstruction pattern of the first waveband of the object 140 under test.
  • Step 420 Control the second projector to project the reconstructed pattern of the second wave band to the measured object 140, and synchronously control the second illuminator 131 to project the second wave band of light to illuminate the mark points on the surface of the measured object 140, and make the interior
  • the camera module 120 collects the marker points and the modulation reconstruction pattern of the second waveband of the measured object 140.
  • first turn on the already calibrated scanner control the first projector and the second projector to simultaneously project the reconstructed pattern to the measured object 140, the reconstructed pattern of the first waveband projected by the first projector and the second projector project
  • the density of the reconstructed pattern in the second band is not limited.
  • the internal camera module 120 recognizes a relatively dense reconstruction pattern
  • the external camera module 130 recognizes a relatively sparse reconstruction pattern.
  • the first illuminating part 121 and the second illuminating part 131 are controlled to blink to illuminate the mark points on the surface of the measured object 140.
  • the first illuminating element 121 projects light of the first waveband to the measured object 140
  • the second illuminating element 131 projects light of the second waveband to the measured object 140.
  • the external camera module 130 can collect the marker points including the first waveband and the first waveband
  • the internal camera module 120 can collect fine image information including the marker points of the second waveband and the modulation reconstruction pattern of the second waveband. Based on the collected rough image information and fine image information, complete three-dimensional data of the measured object is obtained.
  • the projection device 110 includes a first projector in the first waveband and a second projector in the second waveband
  • the external camera module 130 includes a first lighting element 121
  • the internal camera module 120 includes a second lighting element 131 Collecting rough image information on the surface of the measured object 140 through the external camera module 130 and collecting fine image information based on the reconstructed pattern reflected by the measured object 140 through the internal camera module 120 includes steps 510 and 520, where:
  • step 510 the first projector is controlled to project the reconstruction pattern of the first waveband on the measured object 140 in the first time period, and the external camera module 130 is synchronously controlled to collect the mark points and modulation reconstruction pattern of the first waveband of the measured object 140.
  • step 520 the second projector is controlled to project the reconstruction pattern of the second waveband to the measured object 140 in the second time period, and the internal camera module 120 is synchronously controlled to collect the landmark points and modulation reconstruction pattern of the second waveband of the measured object 140.
  • the first projector is controlled to project the reconstruction pattern of the first waveband to the measured object 140 in the first time period to form the modulation reconstruction pattern of the first waveband.
  • the second The projector is not working. Synchronously control the operation of the external camera module 130.
  • the first illuminating element 121 arranged in the ring around the external camera projects light to the measured object 140 to illuminate the mark point, and on the other hand, the external camera module 130 collects the mark point and The modulation reconstruction pattern of the first band.
  • the second projector is controlled to project the reconstruction pattern of the second waveband to the measured object 140 in the second time period to form the modulation reconstruction pattern of the second waveband.
  • the first projector does not work. Synchronously control the operation of the internal camera module 120.
  • the second illuminating element 131 arranged in the ring around the internal camera projects light to the measured object 140 to illuminate the mark point, and on the other hand, the internal camera module 120 collects the mark point and Modulation reconstruction pattern of the second band.
  • the projection device 110 may also be a dual-frequency projector, and the dual-frequency projector is controlled by the processing device to alternately project the reconstructed pattern in the first waveband and the reconstructed pattern in the second waveband.
  • the first projector and the external camera module 130 are synchronized to work, and the second projector and the internal camera module 120 are synchronized. jobs.
  • the external camera module 130 can collect the landmark points and modulation reconstruction patterns of the first waveband
  • the internal camera module 120 can collect the landmark points and the second waveband. Modulate the effect of the reconstruction pattern.
  • the processing device is used to obtain the coarse image information and the fine image information of the measured object 140, and the coarse image information and the fine image information are processed to obtain the complete three-dimensional data of the measured object 140, including steps 610 to Step 650, where:
  • Step 610 Obtain the mark points and modulation reconstruction pattern of the measured object 140 in the first waveband, and the mark points and modulation reconstruction pattern of the measured object 140 in the second waveband, and obtain the first wave based on the mark points and modulation reconstruction pattern of the first waveband.
  • the three-dimensional data of the mark point and the first point cloud data are obtained, and the three-dimensional data of the second mark point and the second point cloud data are obtained based on the mark point and the modulation reconstruction pattern of the second band.
  • Step 620 splicing the three-dimensional data of the first mark point and the three-dimensional data of the second mark point to obtain a second conversion matrix
  • step 630 the first point cloud data and the second point cloud data are spliced according to the first conversion matrix and the second conversion matrix to obtain a complete first three-dimensional data of the measured object.
  • Step 640 Calculate the curvatures of the first point cloud data and the second point cloud data, and retain the first point cloud data or the second point cloud data according to the curvature, so as to obtain a complete second three-dimensional data of the measured object.
  • a plurality of first mark point three-dimensional data is spliced to obtain a first conversion matrix, and the first conversion matrix is used to indicate the splicing of a plurality of first point cloud data.
  • the three-dimensional data of the first mark point and the three-dimensional data of the second mark point are unified in the same coordinate system to obtain the second conversion matrix.
  • the splicing of the first point cloud data and the second point cloud data is completed according to the second conversion matrix to obtain complete three-dimensional data of the measured object. Calculate the curvature value of each point in the point cloud data. If the curvature value of the point is greater than the preset threshold, the area where the point is located is considered as a characteristic area, which contains more detailed information.
  • the second point cloud data is retained If the curvature value of the point is not greater than the preset threshold, the area where the point is located is considered as a non-characteristic area and contains less detailed information. At this time, the point of the first point cloud data is retained.
  • the value of the preset threshold can be selected according to actual conditions, and this embodiment does not specifically limit it.
  • the projection device 110 includes a projector for projecting a reconstruction pattern to the measured object 140, and the reconstruction pattern may be a first waveband or a second waveband.
  • the external camera module 130 includes a first lighting element 121, the internal camera module 130 includes a second lighting element 131, the first lighting element 121 is annularly arranged around each external camera, and the second lighting element 131 is annularly arranged around the internal camera, Used to illuminate the mark points on the surface of the measured object; the external camera module 130 is used to collect the mark points of the measured object 140 in the first time period; 120 the internal camera module is used to collect the measured object 140 in the second time period The mark points and modulation reconstruction pattern.
  • the external camera module and the first lighting component are controlled to work in the first time period, so that the external camera module collects the mark points of the measured object in the first time period.
  • the internal camera module, the second lighting element and the projector are controlled to work, so that the internal camera module collects the mark points and modulation reconstruction patterns of the measured object in the second time period.
  • the external camera module 130 includes a first illuminating element 121 and a first filter in the first wavelength band; the first illuminating element 121 is annularly arranged around each external camera and used to illuminate the object 140 under test. The marking point on the surface; the first filter is set at the front end of the external camera to retain the incident light in the first waveband and filter out incident light in other wavebands; the internal camera module 120 includes a second illuminating element 131 and a second waveband Two filters, the second illuminating element is annularly arranged around each of the internal cameras for illuminating the mark points on the surface of the object to be measured, and the second filter is arranged on the front end of the internal camera for retaining The incident light in the second waveband filters out incident light in other wavebands.
  • the projection device 110 includes a second projector, which is used to project the reconstructed pattern of the second waveband to the measured object 140; the external camera module 130 is used to collect the landmark points of the first waveband of the measured object; the internal camera module 120 It is used to synchronously collect the marker points and modulation reconstruction patterns of the second waveband of the measured object 140.
  • the external camera module 130 includes a first illuminating element 121 and a first filter in the first wavelength band; the first illuminating element 121 is annularly arranged around each external camera and used to illuminate the object 140 under test.
  • the marking point on the surface; the first filter is set at the front end of the external camera, and is used to retain the incident light of the first waveband and filter out the incident light of other wavebands;
  • the projection device 110 includes a first projector and a second projector, the first projection The second projector is used to project the reconstructed pattern of the first wave band to the measured object 140; the second projector is used to project the reconstructed pattern of the second wave band to the measured object 140.
  • the internal camera module 120 includes a second filter, which is disposed at the front end of the internal camera, and is used to retain incident light in the second waveband and filter out incident light in other wavebands.
  • the external camera module 130 is used to collect the mark points of the first waveband of the measured object 140 and the modulation reconstruction pattern of the first waveband; the internal camera module 120 is used to synchronously collect the second waveband modulation and reconstruction pattern of the measured object 140.
  • the foregoing embodiment only describes two wavebands, that is, two scanning ranges as examples, but does not limit the scanning range. In other embodiments, multiple scanning ranges may be used. That is, the projection device 110 may include multiple projectors of different wavelength bands.
  • a three-dimensional scanning device includes a projection module 710, an external camera module 720, an internal camera module 730, and a processing module 740, wherein:
  • the projection module 710 is used to project the reconstructed pattern to the measured object 140;
  • An external camera module 720 the external camera module 720 is configured as a first scanning range, and is used to collect rough image information on the surface of the object 140 to be measured;
  • the internal camera module 730 is configured as a second scanning range for collecting fine image information based on the reconstructed pattern reflected by the measured object 140; the second scanning range is smaller than the first scanning range;
  • the processing module 740 is configured to process the rough image information and the fine image information to obtain complete three-dimensional data of the measured object.
  • the projection device 710 includes a projector of the second waveband, and the projection of the reconstructed pattern to the measured object through the projection device 710 includes:
  • the second waveband reconstruction pattern is projected to the measured object through the projector, so that the internal camera module 730 synchronously collects the modulation reconstruction pattern of the measured object.
  • the external camera module 720 includes a plurality of external cameras, and the internal camera module 730 includes at least one internal camera; the external camera module 720 also includes a first lighting element and a first filter in the first wavelength band, and the first lighting A ring is arranged around each external camera.
  • the first filter is arranged at the front end of the external camera to retain the incident light of the first waveband and filter out the incident light of other wavebands; the internal camera module 730 includes the second illumination of the second waveband
  • the second filter is arranged at the front end of the internal camera and is used to retain the incident light of the second waveband and filter out the incident light of other wavebands.
  • the first waveband and the second waveband are different wavebands.
  • the rough image information of the measured object collected by the external camera module 720 includes:
  • the first illuminating element projects the first waveband light to illuminate the mark points on the surface of the measured object, so that the external camera module collects the mark points of the measured object.
  • obtaining the coarse image information and fine image information of the measured object through the processing module 740, and processing the coarse image information and fine image information to obtain the complete three-dimensional data of the measured object 140 includes:
  • the projection module 710 includes a first projector in the first waveband and a second projector in the second waveband
  • the three-dimensional scanning device further includes a first illuminator in the first waveband and a second illuminator in the second waveband.
  • Collecting rough image information of the measured object through the external camera module 720 and collecting fine image information of the measured object through the internal camera module 730 includes:
  • the marker point and modulation reconstruction pattern of the second band of the object is
  • the projection module 710 includes a first projector in the first waveband and a second projector in the second waveband, and the three-dimensional scanning device includes a first illuminator and a second illuminator; the external camera module 720 collects the measured
  • the rough image information of the object and the fine image information of the measured object collected by the internal camera module 730 include:
  • Control the first projector to project the reconstruction pattern of the first waveband to the measured object at the first time, and synchronously control the external camera module 720 to collect the mark points and modulation reconstruction pattern of the first waveband of the measured object;
  • the second projector is controlled to project the reconstructed pattern of the second waveband to the measured object at the second time, and the internal camera module 730 is synchronously controlled to collect the landmark points and the modulation reconstruction pattern of the second waveband of the measured object.
  • obtaining the coarse image information and fine image information of the measured object through the processing module 740, and processing the coarse image information and fine image information to obtain the complete three-dimensional data of the measured object includes:
  • the first point cloud data is spliced according to the first conversion matrix, and the first point cloud data and the second point cloud data are spliced according to the second conversion matrix to obtain the complete first three-dimensional data of the measured object.
  • whether to retain the first point cloud data or the second point cloud data can be selected according to the curvature, so as to realize the self-adaptive feature preservation of the data.
  • the curvatures of the first point cloud data and the second point cloud data are calculated, and the first point cloud data or the second point cloud data is retained according to the magnitude of the curvature.
  • the point cloud data with a large curvature is a triangular patch
  • the point cloud data with more and less curvature has fewer triangles, which can obtain high-fidelity and high-detail data quality while ensuring data details.
  • Each module in the above-mentioned three-dimensional scanning device may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
  • a computer device is provided.
  • the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 8.
  • the computer equipment includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus.
  • the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and a computer program.
  • the internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer program is executed by the processor to realize a three-dimensional scanning method.
  • the display screen of the computer device can be a liquid crystal display or an electronic ink display screen
  • the input device of the computer device can be a touch layer covered on the display screen, or it can be a button, trackball or touchpad set on the computer device shell , It can also be an external keyboard, touchpad, or mouse.
  • FIG. 8 is only a block diagram of a part of the structure related to the solution of the present disclosure, and does not constitute a limitation on the computer device to which the solution of the present disclosure is applied.
  • the specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
  • a computer device including a memory and a processor, and a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:
  • the coarse image information and the fine image information of the measured object 140 are acquired, and the coarse image information and the fine image information are processed to obtain complete three-dimensional data of the measured object 140.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
  • the coarse image information and the fine image information of the measured object 140 are acquired, and the coarse image information and the fine image information are processed to obtain complete three-dimensional data of the measured object 140.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Abstract

Provided are a three-dimensional scanning method, scanner, three-dimensional scanning system, computer device, and computer-readable storage medium; the three-dimensional scanning method comprises: projecting a reconstructed pattern (210) to a measured object (140) by means of a projection apparatus (110); by means of an external camera module (130), collecting rough image information (220) based on the reconstructed pattern reflected by the measured object (140); by means of an internal camera module (120), collecting fine image information (230) based on the reconstructed pattern and reflected by the measured object (140); obtaining rough image information and fine image information of the measured object (140) by means of a processing apparatus, and processing the rough image information and fine image information to obtain point cloud data (240) of the measured object (140). According to the rough image information collected by the external camera module (130), the three-dimensional scanning method assists in the splicing of the fine image information collected by the internal camera module (120), thereby achieving the acquisition of point cloud data of the measured object (140); the invention can reduce the use of marker points, ensuring the details of the scanned data, and improving the accuracy of scanning.

Description

三维扫描方法、扫描仪、三维扫描系统、计算机设备和计算机可读存储介质Three-dimensional scanning method, scanner, three-dimensional scanning system, computer equipment and computer readable storage medium
本公开以2019年6月28日递交的、申请号为201910577905.8且名称为“三维扫描方法、装置、计算机设备和计算机可读存储介质”的专利文件以及2019年6月28日递交的、申请号为201910577941.4且名称为“扫描仪和三维扫描系统”的专利文件为优先权文件,其全部内容通过引用结合在本公开中。This disclosure is based on the patent document filed on June 28, 2019 with an application number of 201910577905.8 and titled "Three-dimensional scanning method, device, computer equipment and computer-readable storage medium" and the application number filed on June 28, 2019 The patent document named 201910577941.4 and titled "Scanner and 3D Scanning System" is a priority document, and the entire content of which is incorporated in this disclosure by reference.
技术领域Technical field
本公开涉及三维模型重建技术领域,特别是涉及一种三维扫描方法、扫描仪、三维扫描系统、计算机设备和计算机可读存储介质。The present disclosure relates to the technical field of three-dimensional model reconstruction, in particular to a three-dimensional scanning method, a scanner, a three-dimensional scanning system, a computer device, and a computer-readable storage medium.
背景技术Background technique
随着数字图像处理、数字投影显示和计算机处理技术的发展与成熟,三维扫描技术得到了快速的发展。三维扫描系统可以将光投影到物体表面,摄像设备拍摄光投射下的图像,根据拍摄到的图像的形状利用三维重建算法来重建获取物体表面的三维尺寸信息。With the development and maturity of digital image processing, digital projection display and computer processing technology, three-dimensional scanning technology has developed rapidly. The three-dimensional scanning system can project light onto the surface of the object, and the imaging device captures the image projected by the light, and uses a three-dimensional reconstruction algorithm to reconstruct the three-dimensional size information of the surface of the object according to the shape of the captured image.
传统地,三维扫描方法使用同一组相机同时识别标志点和点云数据,用标志点进行拼接后完成点云数据的拼接。但是上述三维扫描方法若要保证三维模型的精确度就需要粘贴足够多的标志点,导致最后数据中的很多空洞需要后期填补。Traditionally, the three-dimensional scanning method uses the same set of cameras to recognize the landmark points and the point cloud data at the same time, and complete the splicing of the point cloud data after the landmark points are used for stitching. However, if the above-mentioned 3D scanning method is to ensure the accuracy of the 3D model, it is necessary to paste enough marker points, which results in many holes in the final data that need to be filled later.
发明内容Summary of the invention
本公开提供一种三维扫描方法、扫描仪、三维扫描系统、计算机设备和计算机可读存储介质,可以在降低标志点使用量的情况下,保证扫描的数据细节,提高扫描的精确度。The present disclosure provides a three-dimensional scanning method, a scanner, a three-dimensional scanning system, a computer device, and a computer-readable storage medium, which can ensure the details of the scanned data and improve the accuracy of the scan while reducing the usage of marker points.
一种三维扫描方法,所述方法包括:A three-dimensional scanning method, the method includes:
向被测物体投射重建图案;Project the reconstructed pattern to the measured object;
采集所述被测物体表面的粗略影像信息;Collecting rough image information of the surface of the measured object;
采集所述被测物体反射的基于所述重建图案的精细影像信息;Collecting fine image information reflected by the measured object based on the reconstructed pattern;
获取所述被测物体的粗略影像信息以及所述精细影像信息,并对所述粗略影像信息和所述精细影像信息进行处理,以获取所述被测物体的完整三维数据。The coarse image information and the fine image information of the measured object are acquired, and the coarse image information and the fine image information are processed to obtain complete three-dimensional data of the measured object.
在一实施例中,所述对所述粗略影像信息和所述精细影像信息进行处理包括:In an embodiment, the processing the coarse image information and the fine image information includes:
基于所述粗略影像信息获取第一标志点三维数据,基于所述精细影像信息获取第二点云数据,基于所述第一标志点三维数据拼接所述第二点云数据。Obtaining first mark point three-dimensional data based on the rough image information, acquiring second point cloud data based on the fine image information, and stitching the second point cloud data based on the first mark point three-dimensional data.
在一实施例中,所述对所述粗略影像信息和所述精细影像信息进行处理包括:In an embodiment, the processing the coarse image information and the fine image information includes:
基于所述粗略影像信息获取第一标志点三维数据,基于所述精细影像信息获取第二标志点三维数据和第二点云数据,基于所述第一标志点三维数据及所述第二标志点三维数据拼接所述第二点云数据。Acquire 3D data of a first mark point based on the rough image information, acquire 3D data of a second mark point and second point cloud data based on the fine image information, and obtain 3D data of a first mark point and the second mark point The three-dimensional data is spliced with the second point cloud data.
在一实施例中,所述对所述粗略影像信息和所述精细影像信息进行处理包括:In an embodiment, the processing the coarse image information and the fine image information includes:
基于所述粗略影像信息获取第一标志点三维数据和第一点云数据,基于所述精细影像信息获取第二点云数据,基于所述第一标志点三维数据拼接所述第一点云数据和所述第二点云数据。Acquire first point cloud data and first point cloud data based on the rough image information, acquire second point cloud data based on the fine image information, and stitch the first point cloud data based on the first three-dimensional data of the landmark points And the second point cloud data.
在一实施例中,所述对所述粗略影像信息和所述精细影像信息进行处理包括:In an embodiment, the processing the coarse image information and the fine image information includes:
基于所述粗略影像信息获取第一标志点三维数据和第一点云数据,基于所述精细影像信息获取第二标志点三维数据和第二点云数据,基于所述第一标志点三维数据拼接所述第一点云数据,基于所述第一标志点三维数据和所述第二标志点三维数据拼接所述第二点云数据。Acquire first mark point three-dimensional data and first point cloud data based on the rough image information, acquire second mark point three-dimensional data and second point cloud data based on the fine image information, and stitch based on the first mark point three-dimensional data For the first point cloud data, the second point cloud data is spliced based on the three-dimensional data of the first mark point and the three-dimensional data of the second mark point.
在一实施例中,所述对所述粗略影像信息和所述精细影像信息进行处理还包括:In an embodiment, the processing the coarse image information and the fine image information further includes:
确定第一点云数据和第二点云数据中点的曲率,根据曲率保留第一点云数据和第二点云数据中的一者。The curvature of the points in the first point cloud data and the second point cloud data is determined, and one of the first point cloud data and the second point cloud data is retained according to the curvature.
在一实施例中,所述采集所述被测物体表面的粗略影像信息,以及采集所述被测物体反射的基于所述重建图案的精细影像信息包括:In an embodiment, the collecting rough image information of the surface of the measured object and collecting the fine image information reflected by the measured object based on the reconstructed pattern includes:
向所述被测物体投射第二波段的重建图案,并投射第一波段的光以照亮所述被测物体表面的标志点,以同步采集所述被测物体的标志点和重建图案。Projecting the reconstructed pattern of the second waveband to the measured object, and projecting the light of the first waveband to illuminate the mark points on the surface of the measured object, so as to synchronously collect the mark points and the reconstructed pattern of the measured object.
在一实施例中,所述采集所述被测物体反射的粗略影像信息以及采集所述被测物体反射的基于所述重建图案的精细影像信息包括:In an embodiment, the collecting rough image information reflected by the measured object and collecting fine image information reflected by the measured object based on the reconstructed pattern includes:
向所述被测物体投射第一波段的重建图案和第二波段的重建图案,并投射第一波段的光和第二波段的光以照亮被测物体表面的标志点,以同步采集所述被测物体的第一波段的标志点和调制重建图案,以及所述被测物体的第二波段的标志点和调制重建图案。Project the reconstructed pattern of the first waveband and the reconstructed pattern of the second waveband to the measured object, and project the light of the first waveband and the light of the second waveband to illuminate the mark points on the surface of the measured object, so as to collect the The mark point and modulation reconstruction pattern of the first waveband of the measured object, and the mark point and modulation reconstruction pattern of the second waveband of the measured object.
在一实施例中,所述采集所述被测物体表面的粗略影像信息以及采集所述被测物体反射的基于所述重建图案的精细影像信息包括:In an embodiment, the collecting rough image information of the surface of the measured object and collecting fine image information reflected by the measured object based on the reconstructed pattern includes:
在第一时间周期向所述被测物体投射第一波段的光和第一波段的重建图案,并采集所述被测物体第一波段的标志点和调制重建图案;Projecting the light of the first waveband and the reconstruction pattern of the first waveband to the measured object in the first time period, and collecting the mark points and the modulation reconstruction pattern of the first waveband of the measured object;
在第二时间周期向所述被测物体投射第二波段的光和第二波段的重建图案,并采集所述被测物体第二波段的标志点和调制重建图案。Projecting the second waveband light and the reconstruction pattern of the second waveband to the measured object in the second time period, and collecting the mark points and modulation reconstruction pattern of the second waveband of the measured object.
在一实施例中,所述采集所述被测物体反射的粗略影像信息以及采集所述被测物体反射的基于所述重建图案的精细影像信息包括:In an embodiment, the collecting rough image information reflected by the measured object and collecting fine image information reflected by the measured object based on the reconstructed pattern includes:
分别在第一时间周期和第二时间周期向所述被测物体投射光以照亮被测物体表面的标志点;并在第二时间周期向被测物体投射重建图案;以在第一时间周期采集所述被测物体的标志点;在第二时间周期采集所述被测物体的标志点和调制重建图案。Projecting light to the measured object in the first time period and the second time period respectively to illuminate the mark points on the surface of the measured object; and projecting the reconstructed pattern on the measured object in the second time period; in the first time period Collect the mark points of the measured object; collect the mark points and the modulation reconstruction pattern of the measured object in a second time period.
在一实施例中,所述采集所述被测物体反射的粗略影像信息以及采集所述被测物体反射的基于所述重建图案的精细影像信息包括:In an embodiment, the collecting rough image information reflected by the measured object and collecting fine image information reflected by the measured object based on the reconstructed pattern includes:
向被测物体投射第一波段的光照亮被测物体表面的标志点,以采集所述被测物体第一波段的标志点;Projecting the first waveband light to the measured object to illuminate the mark points on the surface of the measured object to collect the mark points of the first waveband of the measured object;
同步向被测物体投射第二波段的光和第二波段的重建图案,以采集所述被测物体第二波段的标志点和调制重建图案。Simultaneously project the second waveband light and the second waveband reconstruction pattern to the measured object to collect the second waveband mark points and modulate the reconstruction pattern of the measured object.
在一实施例中,所述采集所述被测物体反射的粗略影像信息以及采集所述被测物体反射的基于所述重建图案的精细影像信息包括:In an embodiment, the collecting rough image information reflected by the measured object and collecting fine image information reflected by the measured object based on the reconstructed pattern includes:
向被测物体投射第一波段的光和第一波段的重建图案,以采集所述被测物体第一波段的标志点和第一波段的调制重建图案;Projecting the first waveband light and the first waveband reconstruction pattern to the measured object to collect the first waveband mark points and the first waveband modulation reconstruction pattern of the measured object;
同步向被测物体投射第二波段的重建图案,以采集所述被测物体第二波段的调制重建图案。The second waveband reconstruction pattern is simultaneously projected to the measured object to collect the second waveband modulation reconstruction pattern of the measured object.
一种扫描仪,所述扫描仪扫描仪本体,所述扫描仪本体包括:A scanner, the scanner body, the scanner body including:
投射装置,用于向被测物体投射重建图案;Projection device, used to project the reconstructed pattern to the measured object;
内部相机模组,所述内部相机模组配置为第二扫描范围,用于采集所述被测物体反射的基于所述重建图案的精细影像信息;An internal camera module, the internal camera module is configured as a second scanning range for collecting fine image information based on the reconstructed pattern reflected by the measured object;
外部相机模组,所述外部相机模组配置为第一扫描范围,用于采集所述被测物体表面的粗略影像信息,以根据所述粗略影像信息和所述精细影像信息得到所述被测物体完整的三维数据;所述第二扫描范围小于所述第一扫描范围。An external camera module, the external camera module is configured as a first scanning range, and is used to collect rough image information of the surface of the measured object, so as to obtain the measured object according to the rough image information and the fine image information Complete three-dimensional data of the object; the second scanning range is smaller than the first scanning range.
在一实施例中,所述扫描仪本体包括壳体,所述投射装置、内部相机模组和外部相机模组安装于所述壳体内,所述扫描仪还包括握持部,所述握持部安装于所述扫描仪本体。In an embodiment, the scanner body includes a housing, the projection device, the internal camera module, and the external camera module are installed in the housing, and the scanner further includes a holding portion, the holding The part is installed on the scanner body.
在一实施例中,所述外部相机模组还包括第一波段的第一照明件和第一滤光片,所述第一照明件环形设置在每一所述外部相机周围,用于投射第一波段的光以照亮被测物体表面的标志点;所述第一滤光片设置于所述外部相机前端,用于保留第一波段的入射光滤除其他波段的入射光;所述外部相机模组用于采集所述被测物体第一波段的标志点;In an embodiment, the external camera module further includes a first illuminating element and a first filter in the first wavelength band, and the first illuminating element is annularly arranged around each of the external cameras for projecting the first One waveband of light to illuminate the mark points on the surface of the object to be measured; the first filter is arranged at the front end of the external camera, and is used to retain the incident light of the first waveband and filter out the incident light of other wavebands; the external The camera module is used to collect the landmark points of the first waveband of the measured object;
所述内部相机模组包括第二波段的第二滤光片,所述第二滤光片设置于所述内部相机前端,用于保留第二波段的入射光滤除其他波段的入射光,所述第一波段与所述第二波段为不同的波段;The internal camera module includes a second filter of a second wavelength band, and the second filter is disposed at the front end of the internal camera for retaining incident light in the second wavelength band and filtering out incident light in other wavelength bands. The first waveband and the second waveband are different wavebands;
所述投射装置包括投射器,所述投射器用于向所述被测物体投射第二波段的重建图案,以使所述内部相机模组同步采集所述被测物体在第二波段的调制重建图案。The projection device includes a projector for projecting the reconstruction pattern of the second waveband to the measured object, so that the internal camera module synchronously collects the modulation reconstruction pattern of the measured object in the second waveband .
在一实施例中,所述投射装置包括第一投射器和第二投射器,所述第一投射器用于投射第一波段的重建图案,所述第二投射器用于投射第二波段的重建图案,所述外部相机模组还包括第一波段的第一照明件和第一滤光片,所述第一照明件环形设置在每一所述外部相机周围,用于投射第一波段的光以照亮被测物体表面的标志点,所述第一滤光片设置于所述外部相机前端,用于保留第一波段的入射光滤除其他波段的入射光;In an embodiment, the projection device includes a first projector and a second projector, the first projector is used to project a reconstruction pattern in the first waveband, and the second projector is used to project a reconstruction pattern in the second waveband , The external camera module further includes a first illuminating element and a first filter in the first wavelength band, the first illuminating element is annularly arranged around each of the external cameras, and is used to project light in the first wavelength band to To illuminate the mark points on the surface of the object to be measured, the first filter is arranged at the front end of the external camera, and is used to retain the incident light of the first waveband and filter out the incident light of other wavebands;
所述内部相机模组还包括第二波段的第二照明件和第二滤光片,所述第二照明件环形设置在所述内部相机周围,用于投射第二波段的光以照亮被测物体表面的标志点,所述第二滤光片设置于所述外部相机前端,用于保留第二波段的入射光滤除其他波段的入射光;The internal camera module further includes a second illuminating element in a second wavelength band and a second filter, and the second illuminating element is annularly arranged around the internal camera for projecting light in the second wavelength band to illuminate the Measuring the mark points on the surface of the object, the second filter is arranged at the front end of the external camera, and is used to retain the incident light of the second waveband and filter the incident light of other wavebands;
所述外部相机模组用于采集所述被测物体第一波段的标志点和调制重建图案;The external camera module is used to collect the marker points and modulation reconstruction patterns of the first waveband of the measured object;
所述内部相机模组用于同步采集所述被测物体第二波段的标志点和调制重建图案。The internal camera module is used to synchronously collect the marker points and the modulation reconstruction pattern of the second waveband of the measured object.
在一实施例中,所述投射装置包括双频投射器,所述双频投射器用于在第一时间周期投射第一波段的重建图案,在第二时间周期投射第二波段的重建图案;所述扫描仪本体还包括第一照明件和第二照明件,所述第一照明件环形设置在每一所述外部相机周围,所述第二照明件环形设置在所述内部相机周围,用于照亮被测物体表面的标志点;In an embodiment, the projection device includes a dual-frequency projector, the dual-frequency projector is used to project the reconstruction pattern of the first waveband in the first time period, and project the reconstruction pattern of the second waveband in the second time period; so The scanner body further includes a first illuminating member and a second illuminating member, the first illuminating member is annularly arranged around each of the external cameras, and the second illuminating member is annularly arranged around the internal camera for Illuminate the marking points on the surface of the measured object;
所述外部相机模组用于在第一时间周期采集所述被测物体的标志点和调制重建图案;The external camera module is used to collect the mark points and the modulation reconstruction pattern of the measured object in a first time period;
所述内部相机模组用于在第二时间周期采集所述被测物体的标志点和调制重建图案。The internal camera module is used to collect the mark points and the modulation reconstruction pattern of the measured object in the second time period.
在一实施例中,所述投射装置包括第一投射器和第二投射器,所述第一投射器用于在第一时间周期向所述被测物体投射第一波段的重建图案,所述第二投射器在第二时间周期向所述被测物体投射第二波段的重建图案;所述扫描仪本体还包括第一照明件和第二照明件,所述第一照明件环形设置在每一所述外部相机周围,所述第二照明件环形设置在所述内部相机周围,用于照亮被测物体表面的标志点;In an embodiment, the projection device includes a first projector and a second projector, and the first projector is used to project a reconstruction pattern of the first waveband on the measured object in a first time period, and the second projector The two projectors project the reconstructed pattern of the second waveband on the measured object in the second time period; the scanner body further includes a first illuminating element and a second illuminating element, the first illuminating element is annularly arranged on each Around the external camera, the second illuminating element is annularly arranged around the internal camera for illuminating the landmark points on the surface of the object to be measured;
所述外部相机模组用于在第一时间周期采集所述被测物体的标志点和调制重建图案;The external camera module is used to collect the mark points and the modulation reconstruction pattern of the measured object in a first time period;
所述内部相机模组用于在第二时间周期采集所述被测物体的标志点和调制重建图案。The internal camera module is used to collect the mark points and the modulation reconstruction pattern of the measured object in the second time period.
在一实施例中,所述投射装置包括投射器,所述投射器用于向被测物体投射重建图案;所述三维扫描系统还包括第一照明件和第二照明件,所述第一照明件环形设置在每一所述外部相机周围,所述第二照明件环形设置在所述内部相机周围,用于照亮被测物体表面的标志点;In an embodiment, the projection device includes a projector for projecting a reconstructed pattern to the object to be measured; the three-dimensional scanning system further includes a first illuminating element and a second illuminating element, the first illuminating element An annular shape is arranged around each of the external cameras, and the second illuminating element is annularly arranged around the internal camera for illuminating the mark points on the surface of the measured object;
所述外部相机模组用于在第一时间周期采集所述被测物体的标志点;The external camera module is used to collect the mark points of the measured object in a first time period;
所述内部相机模组用于在第二时间周期采集所述被测物体的标志点和调制重建图案。The internal camera module is used to collect the mark points and the modulation reconstruction pattern of the measured object in the second time period.
在一实施例中,所述外部相机模组包括第一波段的第一照明件和第一滤光片;所述第一照明件环形设置在每一所述外部相机周围,用于照亮被测物体表面的标志点;所述第一滤光片设置于所述外部相机前端,用于保留第一波段的入射光滤除其他波段的入射光;所述内部相机模组包括第二波段的第二照明件;所述投射装置包括第二投射器,所述第二投射器用于向被测物体投射第二波段的重建图案;In an embodiment, the external camera module includes a first illuminating element and a first filter in a first wavelength band; the first illuminating element is annularly arranged around each of the external cameras for illuminating the Mark points on the surface of the object to be measured; the first filter is arranged at the front end of the external camera, and is used to retain the incident light in the first waveband and filter out the incident light in other wavebands; the internal camera module includes a second waveband A second illuminating element; the projection device includes a second projector, the second projector is used to project the second waveband reconstruction pattern to the measured object;
所述外部相机模组用于采集所述被测物体第一波段的标志点;The external camera module is used to collect the landmark points of the first waveband of the measured object;
所述内部相机模组用于同步采集所述被测物体第二波段的标志点和调制重建图案。The internal camera module is used to synchronously collect the marker points and the modulation reconstruction pattern of the second waveband of the measured object.
在一实施例中,所述外部相机模组包括第一波段的第一照明件和第一滤光片;所述第一照明件环形设置在每一所述外部相机周围,用于照亮被测物体表面的标志点;所述第一滤光片设置于所述外部相机前端,用于保留第一波段的入射光滤除其他波段的入射光;所述投射装置包括第一投射器和第二投射器,所述第一投射器用于向被测物体投射第一波段的重建图案;所述第二投射器用于向被测物体投射第二波段的重建图案;In an embodiment, the external camera module includes a first illuminating element and a first filter in a first wavelength band; the first illuminating element is annularly arranged around each of the external cameras for illuminating the Marking points on the surface of the object to be measured; the first filter is arranged at the front end of the external camera, and is used to retain the incident light in the first waveband and filter out incident light in other wavebands; the projection device includes a first projector and a second Two projectors, the first projector is used to project the reconstructed pattern of the first wave band to the measured object; the second projector is used to project the reconstructed pattern of the second wave band to the measured object;
所述外部相机模组用于采集所述被测物体的标志点和第一波段的调制重建图案;The external camera module is used to collect the mark points of the object under test and the modulation reconstruction pattern of the first waveband;
所述内部相机模组用于同步采集所述被测物体的标志点和第二波段的调制重建图案。The internal camera module is used to synchronously collect the mark points of the object under test and the modulation reconstruction pattern of the second waveband.
在一实施例中,所述外部相机模组包括第一相机和第二相机,所述内部相机模组包括第三相机;所述第三相机设置在所述第一相机和第二相机之间;所述投射装置设置在所述第三相机和所述第一相机之间,或设置在所述第三相机和所述第二相机之间。In an embodiment, the external camera module includes a first camera and a second camera, the internal camera module includes a third camera; the third camera is disposed between the first camera and the second camera ; The projection device is arranged between the third camera and the first camera, or between the third camera and the second camera.
在一实施例中,所述外部相机模组包括第一相机和第二相机,所述内部相机模组包括第三相机和第四相机;所述第三相机和第四相机均位于所述第一相机和第二相机之间,所述投射装置设置在所述第三相机和第四相机之间。In an embodiment, the external camera module includes a first camera and a second camera, and the internal camera module includes a third camera and a fourth camera; both the third camera and the fourth camera are located in the first camera. Between a camera and a second camera, the projection device is arranged between the third camera and the fourth camera.
一种三维扫描系统,所述三维扫描系统包括上述的扫描仪,所述扫描仪包括扫描仪本体,所述扫描仪本体包括:A three-dimensional scanning system, the three-dimensional scanning system includes the above-mentioned scanner, the scanner includes a scanner body, and the scanner body includes:
投射装置,用于向被测物体投射重建图案;Projection device, used to project the reconstructed pattern to the measured object;
外部相机模组,所述外部相机模组配置为第一扫描范围,所述外部相机模组包括多个外部相机,用于采集所述被测物体反射的基于所述投射重建图案的粗略影像信息;An external camera module configured to have a first scanning range, and the external camera module includes a plurality of external cameras for collecting rough image information reflected by the measured object based on the projection reconstruction pattern ;
内部相机模组,所述内部相机模组配置为第二扫描范围,所述内部相机模组包括至少一个内部相机,用于采集所述被测物体反射的基于所述投射重建图案的精细影像信息;所述第二扫描范围小于所述第一扫描范围;An internal camera module, the internal camera module is configured as a second scanning range, the internal camera module includes at least one internal camera for collecting fine image information reflected by the measured object based on the projected reconstruction pattern ; The second scanning range is smaller than the first scanning range;
处理装置,分别与所述外部相机模组和内部相机模组连接,用于获取所述被测物体的粗略影像信息以及所述精细影像信息,并对所述粗略影像信息和所述精细影像信息进行处理,以获取所述被测物体完整的三维数据。The processing device is respectively connected with the external camera module and the internal camera module, and is used to obtain the coarse image information and the fine image information of the measured object, and to compare the coarse image information and the fine image information Processing is performed to obtain complete three-dimensional data of the measured object.
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述方法的步骤。A computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the foregoing method when the computer program is executed.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述的方法的步骤。A computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above method are realized.
本公开实施例提供的三维扫描方法、扫描仪、扫描系统、计算机设备和计算机可读存储介质,包括:向被测物体投射重建图案;采集所述被测物体反射的粗略影像信息;采集所述被测物体反射的基于所述重建图案的精细影像信息;获取所述被测物体的粗略影像信息以及所述精细影像信息,并对所述粗略影像信息和所述精细影像信息进行处理,以获取所述被测物体的完整三维数据。上述三维扫描方法根据采集的粗略影像信息来辅助内部相机模组采集的精细影像信息的拼接,进而实现被测物体完整三维数据的获取,可以在降低标志点使用量的情况下,保证扫描的数据细节,提高扫描的精确度。The three-dimensional scanning method, scanner, scanning system, computer equipment, and computer-readable storage medium provided by the embodiments of the present disclosure include: projecting a reconstructed pattern on a measured object; collecting rough image information reflected by the measured object; and collecting the The fine image information reflected by the measured object based on the reconstructed pattern; the coarse image information and the fine image information of the measured object are obtained, and the coarse image information and the fine image information are processed to obtain Complete three-dimensional data of the measured object. The above-mentioned 3D scanning method assists the splicing of the fine image information collected by the internal camera module according to the collected rough image information, thereby realizing the acquisition of complete 3D data of the measured object, which can ensure the scanned data while reducing the usage of marker points Details, improve the accuracy of scanning.
附图说明Description of the drawings
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present disclosure or the technical solutions in the prior art more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1a为一实施例提供的扫描仪的结构示意图;Figure 1a is a schematic structural diagram of a scanner provided by an embodiment;
图1b为一实施例提供的扫描仪的结构示意图;Figure 1b is a schematic structural diagram of a scanner provided by an embodiment;
图1c为另一实施例提供的扫描仪的结构示意图;Figure 1c is a schematic structural diagram of a scanner provided by another embodiment;
图2为一实施例提供的三维扫描方法的流程图;FIG. 2 is a flowchart of a three-dimensional scanning method provided by an embodiment;
图3为一实施例提供的对粗略影像信息和精细影像信息进行处理步骤的流程图;3 is a flowchart of processing steps for rough image information and fine image information according to an embodiment;
图4为另一实施例提供的三维扫描方法的流程图;FIG. 4 is a flowchart of a three-dimensional scanning method provided by another embodiment;
图5为再一实施例提供的三维扫描方法的流程图;FIG. 5 is a flowchart of a three-dimensional scanning method provided by still another embodiment;
图6为另一实施例提供的对粗略影像信息和精细影像信息进行处理步骤的流程图;6 is a flowchart of processing steps for rough image information and fine image information according to another embodiment;
图7为一个实施例中三维扫描装置的结构框图;Figure 7 is a structural block diagram of a three-dimensional scanning device in an embodiment;
图8为一个实施例中计算机设备的内部结构图。Figure 8 is an internal structure diagram of a computer device in an embodiment.
具体实施方式Detailed ways
为了便于理解本公开,为使本公开的上述目的、特征和优点能够更加明显易懂,下面结合附图对本公开的具体实施方式做详细的说明。在下面的描述中阐述了很多具体细节以便于充分理解本公开,附图中给出了本公开的较佳实施方式。但是,本公开可以以许多不同的形式来实现,并不限于本文所描述的实施方式。相反地,提供这些实施方式的目的是使对本公开的公开内容理解的更加透彻全面。本公开能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本公开内涵的情况下做类似改进,因此本公开不受下面公开的具体实施例的限制。In order to facilitate the understanding of the present disclosure, and to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and understandable, the specific embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. In the following description, many specific details are explained in order to fully understand the present disclosure, and the preferred embodiments of the present disclosure are given in the accompanying drawings. However, the present disclosure can be implemented in many different forms, and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present disclosure more thorough and comprehensive. The present disclosure can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without departing from the connotation of the present disclosure. Therefore, the present disclosure is not limited by the specific embodiments disclosed below.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本公开的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。在本公开的描述中,“若干”的含义是至少一个,例如一个,两个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "a plurality of" means at least two, such as two, three, etc., unless otherwise specifically defined. In the description of the present disclosure, "several" means at least one, such as one, two, etc., unless specifically defined otherwise.
除非另有定义,本文所使用的所有的技术和科学术语与属于本公开的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述具体的实施方式的目的,不是旨在于限制本公开。本文所使用的术语“及/或”包括一个或多个相关的所列项目的任意的和所有的组合。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field of the present disclosure. The terminology used herein is only for the purpose of describing specific embodiments, and is not intended to limit the present disclosure. The term "and/or" as used herein includes any and all combinations of one or more related listed items.
本公开提供的三维扫描方法可以通过软件控制实现,也可以应用于三维扫描系统中。本公开实施例以应用于扫描仪中为例进行说明。如图1a所示,扫描仪包括扫描仪本体,扫描仪本体包括投射装置110、内 部相机模组120和外部相机模组130,其中,The three-dimensional scanning method provided in the present disclosure can be implemented through software control, and can also be applied to a three-dimensional scanning system. The embodiments of the present disclosure are described by taking application in a scanner as an example. As shown in Figure 1a, the scanner includes a scanner body, which includes a projection device 110, an internal camera module 120, and an external camera module 130, wherein,
投射装置110,用于向被测物体投射重建图案;The projection device 110 is used to project the reconstructed pattern to the measured object;
内部相机模组120配置为第二扫描范围,用于采集被测物体反射的基于重建图案的精细影像信息;The internal camera module 120 is configured as a second scanning range for collecting fine image information based on the reconstructed pattern reflected by the measured object;
外部相机模组130配置为第一扫描范围,且第一扫描范围大于第二扫描范围,用于采集被测物体表面的粗略影像信息。The external camera module 130 is configured as a first scanning range, and the first scanning range is larger than the second scanning range, and is used to collect rough image information of the surface of the object to be measured.
根据粗略影像信息和精细影像信息得到所述被测物体完整的三维数据。相机的扫描范围可以通过四种方式进行配置。(1)通过设置不同的焦距实现内部相机模组与外部相机模组不同的扫描范围。焦距越大,扫描范围越大。外部相机模组130与内部相机模组120具体焦距的差值可以根据被测物体140的特征来决定。(2)通过设置不同的CCD尺寸实现内部相机模组与外部相机模组不同的扫描范围。(3)通过设置内部相机模组与外部相机模组中相机的排布位置实现内部相机模组与外部相机模组不同的扫描范围。(4)在内部相机模组与外部相机模组中相机的排布位置固定时,可以通过调整内部相机模组与外部相机模组中相机的设置夹角实现内部相机模组与外部相机模组不同的扫描范围。在实际工作中,根据不同的应用可配置不同扫描范围的扫描仪,可以通过四种方式中的一种或多种共同配置外部相机与内部相机的扫描范围。具体配置方式本公开实施例不作限制,只要保证第二扫描范围小于第一扫描范围即可。Obtain complete three-dimensional data of the measured object according to the rough image information and the fine image information. The scanning range of the camera can be configured in four ways. (1) The different scanning ranges of the internal camera module and the external camera module are realized by setting different focal lengths. The larger the focal length, the larger the scanning range. The specific focal length difference between the external camera module 130 and the internal camera module 120 may be determined according to the characteristics of the object 140 to be measured. (2) Different scanning ranges of the internal camera module and the external camera module are realized by setting different CCD sizes. (3) The different scanning ranges of the internal camera module and the external camera module are realized by setting the arrangement positions of the cameras in the internal camera module and the external camera module. (4) When the arrangement of the cameras in the internal camera module and the external camera module is fixed, the internal camera module and the external camera module can be realized by adjusting the setting angle of the camera in the internal camera module and the external camera module Different scan ranges. In actual work, scanners with different scanning ranges can be configured according to different applications, and the scanning ranges of the external camera and the internal camera can be configured in one or more of the four ways. The specific configuration method is not limited in the embodiment of the present disclosure, as long as it is ensured that the second scanning range is smaller than the first scanning range.
需要说明的是,第二扫描范围与第一扫描范围具有重叠区,优选的,第一扫描范围完全覆盖第二扫描范围。It should be noted that the second scanning range and the first scanning range have an overlapping area. Preferably, the first scanning range completely covers the second scanning range.
外部相机模组130的扫描范围大于内部相机模组120的扫描范围。粗略影像信息通过外部相机模组130获取,粗略影像信息可以包括被测物体的标志点信息和/或调制重建图案,精细影像信息可以包括被测物体标志点信息和/或调制重建图案。粗略影像信息与精细影像信息至少部分影像对应于被测物体的同一区域。由于外部相机模组130的第一扫描范围大于内部相机模组120的第二扫描范围且第一扫描范围与第二扫描范围具有重叠区,因此当外部相机模组130与内部相机模组120针对同一被测物进行扫描时,被测物上外部相机模组130单次的扫描区对于内部相机模组120需进行多次扫描,根据内部相机模组120多次扫描采集的多帧精细影响信息得到的多片点云数据与根据外部相机模组130单次扫描采集的粗略影像信息得到的相关数据相互对应,进而基于外部相机模组130得到的相关数据可确定出多片点云数据的分布关系,也就是说,基于外部相机模组130得到的相关数据可完成多片点云数据的准确拼接。具体地,粗略影像信息包括标志点,精细影像信息包括经被测物表面调制的重建图案。根据粗略影像信息得到第一标志点三维数据,以及根据精细影像信息得到多片第二点云数据,根据第一标志点三维数据拼接多片第二点云数据,对多片点云数据完成对被测物体的准确拼接。The scanning range of the external camera module 130 is larger than the scanning range of the internal camera module 120. The rough image information is obtained by the external camera module 130, the rough image information may include the mark point information and/or the modulation reconstruction pattern of the measured object, and the fine image information may include the mark point information and/or the modulation reconstruction pattern of the measured object. The rough image information and the fine image information at least part of the images correspond to the same area of the measured object. Since the first scanning range of the external camera module 130 is larger than the second scanning range of the internal camera module 120 and the first scanning range and the second scanning range have an overlapping area, when the external camera module 130 and the internal camera module 120 are aligned When the same object is scanned, the single scan area of the external camera module 130 on the object needs to be scanned multiple times for the internal camera module 120, according to the multi-frame fine influence information collected by the internal camera module 120 for multiple scans The obtained multiple pieces of point cloud data correspond to the relevant data obtained according to the rough image information collected by the external camera module 130 in a single scan, and the distribution of multiple pieces of point cloud data can be determined based on the relevant data obtained by the external camera module 130 Relationship, that is, based on the relevant data obtained by the external camera module 130, accurate splicing of multiple pieces of point cloud data can be completed. Specifically, the rough image information includes marker points, and the fine image information includes a reconstructed pattern modulated by the surface of the measured object. Obtain the three-dimensional data of the first mark point according to the rough image information, and obtain multiple pieces of second point cloud data according to the fine image information, stitch multiple pieces of second point cloud data according to the three-dimensional data of the first mark point, and complete the alignment of the multiple pieces of point cloud data Accurate splicing of measured objects.
内部相机模组120至少包括两个相机,外部相机模组130至少包括一个相机。The internal camera module 120 includes at least two cameras, and the external camera module 130 includes at least one camera.
在一实施例中,外部相机模组130包括多个外部相机,内部相机模组120包括至少一个内部相机。外部相机模组130还包括第一波段的第一照明件121以及第一波段的第一滤光片,第一照明件121环形设置在每一外部相机周围,用于投射第一波段的光以照亮被测物体140表面的标志点,第一滤光片设置于外部相机前端,用于保留第一波段的入射光滤除其他波段的入射光。;内部相机模组120还包括第二波段的第二照明件131以及第二波段的第二滤光片132,第二照明件131环形设置在每一内部相机周围,用于投射第一波段的光以照亮被测物体140表面的标志点,第二滤光片设置于内部相机前端,用于保留第二波段的入射光滤除其他波段的入射光。投射装置110包括第一波段的第一投射器以及第二波段的第二投射器,第一投射器向被测物体140投射第一波段的重建图案,第二投射器用于向被测物体140投射第二波段的重建图案,重建图案为普通条纹图案或散斑图案或正弦条纹图案,优选地,第一波段的重建图案与第二波段的重建图案均为普通条纹图案,第一波段的普通条纹图案与第二波段的普通条纹图案的条纹疏密分布可相同也可不同,优选地,第一波段的普通条纹图案的条纹分布得较为稀疏,以便扫描范围较大的外部相机模组能够识别提取条纹,第二波段的普通条纹图案的条纹分布得较为密集,以便可以获取较多的点云数据。本实施例中,第一波段和第二波段为不同的波段,这样可确保当同时有多种波段的光时,外部相机模组和内部相机模组均可以同步采集到对应波段的光,而不会采集到其他波段的干扰光,例如,第一照明件、第一投射器、第二照明件和第二投射器同步投射光至被测物体的表面,且外部相机与内部相机同步采集时,外部相机只采集第一照明件和第一投射器投射的第一波段的光而不会采集到的第二照明件和第二投射器投射的第二波段的光,内部相机只采集第二照明件和第二投射器投射的第二波段的光而不会采集第一照明件 和第一投射器投射的第一波段的光。In an embodiment, the external camera module 130 includes a plurality of external cameras, and the internal camera module 120 includes at least one internal camera. The external camera module 130 also includes a first illuminating element 121 in the first wavelength band and a first filter in the first wavelength band. The first illuminating element 121 is annularly arranged around each external camera and used to project light in the first wavelength band. To illuminate the mark points on the surface of the object 140 to be measured, the first filter is arranged at the front end of the external camera to retain the incident light of the first waveband and filter out the incident light of other wavebands. The internal camera module 120 also includes a second illuminating element 131 in the second wavelength band and a second filter 132 in the second wavelength band. The second illuminating element 131 is annularly arranged around each internal camera for projecting the first wavelength The light is used to illuminate the marking points on the surface of the object 140, and the second filter is arranged at the front end of the internal camera to retain the incident light of the second waveband and filter out the incident light of other wavebands. The projection device 110 includes a first projector of the first waveband and a second projector of the second waveband. The first projector projects the reconstructed pattern of the first waveband to the measured object 140, and the second projector is used to project the measured object 140 The reconstructed pattern in the second band, the reconstructed pattern is a normal fringe pattern or a speckle pattern or a sinusoidal fringe pattern. Preferably, the reconstructed pattern in the first band and the reconstructed pattern in the second band are both normal fringe patterns, and the normal fringe in the first band The pattern and the stripe density distribution of the normal stripe pattern in the second waveband can be the same or different. Preferably, the stripe distribution of the normal stripe pattern in the first waveband is sparsely distributed so that an external camera module with a larger scanning range can identify and extract Stripes, the stripes of the common stripe pattern in the second band are more densely distributed so that more point cloud data can be obtained. In this embodiment, the first waveband and the second waveband are different wavebands, which ensures that when there are multiple wavebands of light at the same time, both the external camera module and the internal camera module can simultaneously collect the light of the corresponding waveband, and No interference light of other bands will be collected, for example, when the first illuminator, the first projector, the second illuminator, and the second projector simultaneously project the light to the surface of the object to be measured, and the external camera and the internal camera simultaneously collect , The external camera only collects the light of the first waveband projected by the first illuminating element and the first projector, but not the second illuminator and the second waveband light projected by the second projector. The internal camera only collects the second wave The light of the second waveband projected by the illuminating element and the second projector does not collect the light of the first waveband projected by the first illuminating element and the first projector.
本实施例的扫描仪可以配置以下工作模式中的一种或多种。根据扫描需求从配置中选择其中一种进行扫描。在扫描时,扫描仪根据工作模式运行对应的工作部件或模块:The scanner of this embodiment can be configured with one or more of the following working modes. Select one of the configurations to scan according to the scanning requirements. When scanning, the scanner runs the corresponding working parts or modules according to the working mode:
工作模式一:第一照明件照射第一波段的光至被测物体的表面,第一投射器相对第一照明件同步投射第一波段的重建图案至被测物体的表面,被测物表面粘贴有标志点,第一波段的光和重建图案经被测物体的表面反射由外部相机采集,外部相机采集到包括标志点和调制重建图案的粗略影像信息;第二照明件照射第二波段的光至被测物体的表面,第二投射器相对第二照明件同步投射第二波段的重建图案至被测物体的表面,第二波段的光及重建图案经被测物体的表面反射由内部相机采集,内部相机相对外部相机同步采集到包括标志点和调制重建图案的精细影像信息;基于采集到的粗略影像信息和精细影像信息得到被测物体的完整三维数据。具体地,基于粗略影像信息的标志点重建第一标志点三维数据,基于粗略影像信息的调制重建图案重建第一点云数据,基于精细影像信息的标志点重建第二标志点三维数据,基于精细影像信息的调制重建图案重建第二点云数据,基于多个第一标志点三维数据的拼接确定第一转换矩阵,基于第一转换矩阵拼接第一点云数据和第二点云数据,实现被测物体完整三维数据的获取。Working mode 1: The first illuminator irradiates the light of the first waveband to the surface of the measured object, and the first projector projects the reconstructed pattern of the first waveband to the surface of the measured object in synchronization with the first illuminator, and the surface of the measured object is pasted There are marker points, the light of the first band and the reconstructed pattern are collected by the external camera reflected by the surface of the measured object, and the external camera collects rough image information including the marker points and the modulated reconstruction pattern; the second illuminator illuminates the light of the second band To the surface of the measured object, the second projector simultaneously projects the reconstructed pattern of the second wave band to the surface of the measured object relative to the second illuminator. The light and the reconstructed pattern of the second wave band are reflected by the surface of the measured object and collected by the internal camera , The internal camera synchronously collects the fine image information including the mark points and the modulation reconstruction pattern with respect to the external camera; the complete three-dimensional data of the measured object is obtained based on the collected rough image information and fine image information. Specifically, the three-dimensional data of the first mark point is reconstructed based on the mark points of the coarse image information, the first point cloud data is reconstructed based on the modulation reconstruction pattern of the coarse image information, and the three-dimensional data of the second mark point is reconstructed based on the mark points of the fine image information. The second point cloud data is reconstructed by the modulation reconstruction pattern of the image information, the first conversion matrix is determined based on the splicing of the three-dimensional data of the first marker points, and the first point cloud data and the second point cloud data are spliced based on the first conversion matrix to realize the Obtain complete three-dimensional data of the measured object.
基于第一转换矩阵拼接第一点云数据和第二点云数据,具体包括:基于第一转换矩阵拼接多片第一点云数据,基于第一转换矩阵以及外部相机模组130与内部相机模组120的标定外参拼接第一点云数据和第二点云数据;或者,基于第一转换矩阵拼接多片第一点云数据,基于第一标志点三维数据与第二标志点三维数据的拼接确定第二转换矩阵,基于第二转换矩阵拼接第一点云数据和第二点云数据,这样可不对外部相机及内部相机的外参进行标定。Stitching the first point cloud data and the second point cloud data based on the first transformation matrix specifically includes: stitching multiple pieces of first point cloud data based on the first transformation matrix, based on the first transformation matrix and the external camera module 130 and the internal camera module Splicing the first point cloud data and the second point cloud data of the calibration external parameters of the group 120; or splicing multiple pieces of first point cloud data based on the first conversion matrix, based on the three-dimensional data of the first marker point and the three-dimensional data of the second marker point The second conversion matrix is determined by splicing, and the first point cloud data and the second point cloud data are spliced based on the second conversion matrix, so that the external parameters of the external camera and the internal camera may not be calibrated.
在本实施例中,对于第一点云数据和第二点云数据可根据曲率选择保留第一点云数据还是第二点云数据,实现数据的自适应保留特征细节,从而在保证数据细节的基础上降低数据量体积。In this embodiment, for the first point cloud data and the second point cloud data, whether to retain the first point cloud data or the second point cloud data can be selected according to the curvature, so as to realize the self-adaptive retention of feature details of the data, thereby ensuring the details of the data. On the basis of reducing the volume of data.
工作模式二:第一照明件在第一时间周期照射第一波段的光至被测物体的表面,第一投射器在第一时间周期投射第一波段的重建图案至被测物体的表面,被测物表面粘贴有标志点,第一波段的光和重建图案经被测物体的表面反射由外部相机在第一时间周期采集,外部相机采集到包括标志点和调制重建图案的粗略影像信息;第二照明件在第二时间周期照射第二波段的光至被测物体的表面,第二投射器在第二时间周期投射第二波段的重建图案至被测物体的表面,第二波段的光及重建图案经被测物体的表面反射由内部相机在第二时间周期采集,第一时间周期与第二时间周期为不同的时间周期,内部相机相对外部相机分时采集到包括标志点和调制重建图案的精细影像信息;基于采集到的粗略影像信息和精细影像信息得到被测物体完整的三维数据,具体地,基于粗略影像信息的标志点重建第一标志点三维数据,基于粗略影像信息的调制重建图案重建第一点云数据,基于精细影像信息的标志点重建第二标志点三维数据,基于精细影像信息的调制重建图案重建第二点云数据,基于多个第一标志点三维数据的拼接确定第一转换矩阵,基于第一转换矩阵拼接多片第一点云数据,基于第一标志点三维数据与第二标志点三维数据的拼接确定第二转换矩阵,基于第二转换矩阵拼接第一点云数据和第二点云数据,实现被测物体完整三维数据的获取。Working mode 2: The first illuminator irradiates the light of the first waveband to the surface of the object under test in the first time period, and the first projector projects the reconstructed pattern of the first waveband to the surface of the object under test in the first time period. Marking points are pasted on the surface of the object to be measured, the first waveband light and reconstruction pattern are reflected by the surface of the measured object and collected by an external camera in the first time period, and the external camera collects rough image information including the marking points and the modulation reconstruction pattern; The two illuminators irradiate the light of the second waveband to the surface of the object under test in the second time period, the second projector projects the reconstructed pattern of the second waveband to the surface of the object under test during the second time period, the light of the second waveband and The reconstructed pattern is collected by the internal camera in the second time period after being reflected by the surface of the measured object. The first time period and the second time period are different time periods. The internal camera is time-sharing to the external camera to collect the reconstruction pattern including the mark points and modulation. The fine image information; based on the collected coarse image information and fine image information to obtain complete three-dimensional data of the measured object, specifically, based on the marker points of the coarse image information to reconstruct the first marker point three-dimensional data, based on the modulation reconstruction of the coarse image information Pattern reconstruction of the first point cloud data, reconstruction of the second mark point 3D data based on the mark points of the fine image information, reconstruction of the second point cloud data based on the modulation reconstruction pattern of the fine image information, and determination based on the stitching of multiple first mark point 3D data The first conversion matrix, based on the first conversion matrix to splice multiple pieces of first point cloud data, the second conversion matrix is determined based on the splicing of the first mark point three-dimensional data and the second mark point three-dimensional data, and the first point is spliced based on the second conversion matrix The cloud data and the second point cloud data realize the acquisition of complete three-dimensional data of the measured object.
在本实施例中,对于第一点云数据和第二点云数据可根据曲率选择保留第一点云数据还是第二点云数据,实现数据的自适应保留特征细节,从而在保证数据细节的基础上降低数据量体积。对于被测物上不需要高细节的部分可通过外部相机模组扫描获取第一点云数据,对于被测物上需要高细节的部分可通过内部相机模组扫描获取第二点云数据,将第一点云数据与第二点云数据拼接,以得到被测物体的完整的三维数据,可见,在保证数据细节的同时可以得到高保真高细节的数据质量,且数据量体积降低。In this embodiment, for the first point cloud data and the second point cloud data, whether to retain the first point cloud data or the second point cloud data can be selected according to the curvature, so as to realize the self-adaptive retention of feature details of the data, thereby ensuring the details of the data. On the basis of reducing the volume of data. For the part of the measured object that does not require high detail, the first point cloud data can be obtained by scanning the external camera module, and the second point cloud data can be obtained by scanning the internal camera module for the part of the measured object that requires high detail. The first point cloud data and the second point cloud data are spliced to obtain complete three-dimensional data of the measured object. It can be seen that high-fidelity and high-detail data quality can be obtained while ensuring data details, and the data volume is reduced.
工作模式三:第一照明件照射第一波段的光至被测物体的表面,被测物表面粘贴有标志点,第一波段的光经被测物体的表面反射由外部相机采集,外部相机采集到包括标志点的粗略影像信息;第二照明件照射第二波段的光至被测物体的表面,第二投射器相对第二照明件同步投射第二波段的重建图案至被测物体的表面,第二波段的光及重建图案经被测物体的表面反射由内部相机采集,内部相机相对外部相机同步采集到包括标志点和调制重建图案的精细影像信息;基于采集到的粗略影像信息和精细影像信息得到被测物体完整的三维数据,具体地,基于粗略影像信息的标志点重建第一标志点三维数据,基于精细影像信息的标志点重建第二标志点三维数据,基于精细影像信息的调制重建图案重建第二点云数据,基于多个第一标志点三维数据的拼接确定第一转换矩阵,基于第一转换矩阵拼接多片第二点云数据,实现被测物体完整三维数据的获取。这样,可减少被测物体上标志点的使用量,减少第二点云数据的空洞,同时保证被测物体 完整三维数据的高细节。Working mode 3: The first illuminator irradiates the light of the first wave band to the surface of the measured object, the surface of the measured object is pasted with marking points, the light of the first wave band is reflected by the surface of the measured object and is collected by the external camera, and the external camera collects To the rough image information including the mark points; the second illuminating element illuminates the second waveband light to the surface of the object to be measured, and the second projector simultaneously projects the reconstructed pattern of the second waveband to the surface of the object under test relative to the second illuminating element, The second-band light and the reconstructed pattern are reflected by the surface of the measured object and collected by the internal camera. The internal camera synchronously collects the fine image information including the marker points and the modulation reconstruction pattern with the external camera; based on the collected rough image information and fine image The information obtains the complete 3D data of the measured object. Specifically, the 3D data of the first marker is reconstructed based on the markers of the coarse image information, the 3D data of the second marker is reconstructed based on the markers of the fine image information, and the modulation reconstruction based on the fine image information The pattern reconstructs the second point cloud data, the first conversion matrix is determined based on the splicing of a plurality of first mark point 3D data, and the plurality of second point cloud data are spliced based on the first conversion matrix to realize the acquisition of the complete 3D data of the measured object. In this way, the use of marker points on the measured object can be reduced, the holes in the second point cloud data can be reduced, and the high detail of the complete three-dimensional data of the measured object can be guaranteed.
工作模式四:第一照明件在第一时间周期照射第一波段的光至被测物体的表面,被测物表面粘贴有标志点,第一波段的光经被测物体的表面反射由外部相机在第一时间周期采集,外部相机采集到包括标志点的粗略影像信息;第二照明件在第二时间周期照射第二波段的光至被测物体的表面,第二投射器在第二时间周期投射第二波段的重建图案至被测物体的表面,第二波段的光及重建图案经被测物体的表面反射由内部相机在第二时间周期采集,第一时间周期与第二时间周期为不同的时间周期,内部相机相对外部相机分时采集到包括标志点和调制重建图案的精细影像信息;基于采集到的粗略影像信息和精细影像信息得到被测物体完整的三维数据,具体地,基于粗略影像信息的标志点重建第一标志点三维数据,基于精细影像信息的标志点重建第二标志点三维数据,基于精细影像信息的调制重建图案重建第二点云数据,基于多个第一标志点三维数据的拼接确定第一转换矩阵,基于第一标志点三维数据与第二标志点三维数据的拼接确定第二转换矩阵,基于第一转换矩阵与第二转换矩阵拼接多片第二点云数据,实现被测物体完整三维数据的获取。Working mode 4: The first illuminator irradiates the light of the first waveband to the surface of the measured object in the first time period, the surface of the measured object is pasted with marking points, and the light of the first waveband is reflected by the surface of the measured object by the external camera Collected in the first time period, the external camera collects the rough image information including the mark points; the second illuminator illuminates the second waveband of light to the surface of the measured object in the second time period, and the second projector is in the second time period Project the reconstructed pattern of the second wave band to the surface of the measured object. The light and the reconstructed pattern of the second wave band are reflected by the surface of the measured object and collected by the internal camera in the second time period. The first time period and the second time period are different In the time period, the internal camera collects the fine image information including the marker points and the modulation reconstruction pattern in time-sharing compared with the external camera; based on the collected rough image information and fine image information, the complete three-dimensional data of the measured object is obtained, specifically, based on the rough The mark points of the image information reconstruct the three-dimensional data of the first mark point, the three-dimensional data of the second mark point is reconstructed based on the mark points of the fine image information, the second point cloud data is reconstructed based on the modulation reconstruction pattern of the fine image information, based on multiple first mark points The splicing of the three-dimensional data determines the first conversion matrix, the second conversion matrix is determined based on the splicing of the first mark point three-dimensional data and the second mark point three-dimensional data, and the multiple pieces of second point cloud data are spliced based on the first conversion matrix and the second conversion matrix , To achieve the acquisition of complete three-dimensional data of the measured object.
工作模式五:第一照明件照射第一波段的光至被测物体的表面,第一投射器相对第一照明件同步投射第一波段的重建图案至被测物体的表面,被测物表面粘贴有标志点,第一波段的光和重建图案经被测物体的表面反射由外部相机采集,外部相机采集到包括标志点和调制重建图案的粗略影像信息;第二投射器相对第二照明件同步投射第二波段的重建图案至被测物体的表面,第二波段的重建图案经被测物体的表面调制由内部相机采集,内部相机相对外部相机同步采集到包括调制重建图案的精细影像信息;基于采集到的粗略影像信息和精细影像信息得到被测物体完整的三维数据,具体地,基于粗略影像信息的标志点重建第一标志点三维数据,基于粗略影像信息的调制重建图案重建第一点云数据,基于精细影像信息的调制重建图案重建第二点云数据,基于多个第一标志点三维数据的拼接确定第一转换矩阵,基于第一转换矩阵拼接多片第一点云数据,基于第一转换矩阵以及外部相机模组与内部相机模组的标定外参拼接第一点云数据和第二点云数据,实现被测物体完整三维数据的获取。这样,可减少被测物体上标志点的使用量,减少第二点云数据的空洞,同时保证被测物体完整三维数据的高细节。Working mode 5: The first illuminating element irradiates the light of the first wave band to the surface of the measured object, and the first projector projects the reconstructed pattern of the first wave band to the surface of the measured object in synchronization with the first illuminating element, and the surface of the measured object is pasted There are marking points, the light of the first band and the reconstructed pattern are reflected by the surface of the measured object and collected by an external camera. The external camera collects rough image information including marking points and modulated reconstruction patterns; the second projector is synchronized with the second illuminator Project the reconstructed pattern of the second wave band to the surface of the measured object. The reconstructed pattern of the second wave band is modulated by the surface of the measured object and collected by the internal camera. The internal camera synchronously collects the fine image information including the modulated reconstruction pattern with the external camera; The collected coarse image information and fine image information obtain complete three-dimensional data of the measured object. Specifically, the first mark point three-dimensional data is reconstructed based on the mark points of the coarse image information, and the first point cloud is reconstructed based on the modulation reconstruction pattern of the coarse image information Data, reconstruct the second point cloud data based on the modulation reconstruction pattern of the fine image information, determine the first conversion matrix based on the splicing of the three-dimensional data of the first mark points, splice the first point cloud data based on the first conversion matrix, and A conversion matrix and calibrated external parameters of the external camera module and the internal camera module splicing the first point cloud data and the second point cloud data to realize the acquisition of complete three-dimensional data of the measured object. In this way, the usage of the mark points on the measured object can be reduced, the holes in the second point cloud data can be reduced, and the high detail of the complete three-dimensional data of the measured object can be guaranteed.
在本实施例中,对于第一点云数据和第二点云数据可根据曲率选择保留第一点云数据还是第二点云数据,实现数据的自适应保留特征细节,从而在保证数据细节的基础上降低数据量体积。In this embodiment, for the first point cloud data and the second point cloud data, whether to retain the first point cloud data or the second point cloud data can be selected according to the curvature, so as to realize the self-adaptive retention of feature details of the data, thereby ensuring the details of the data. On the basis of reducing the volume of data.
工作模式六:第一照明件照射第一波段的光至被测物体的表面,被测物表面粘贴有标志点,第一波段的光经被测物体的表面反射由外部相机采集,外部相机采集到包括标志点的粗略影像信息;第二投射器相对第一照明件同步投射第二波段的重建图案至被测物体的表面,经被测物体的表面调制由内部相机采集,内部相机相对外部相机同步采集到包括调制重建图案的精细影像信息;基于采集到的粗略影像信息和精细影像信息得到被测物体完整的三维数据,具体地,基于粗略影像信息的标志点重建第一标志点三维数据,基于精细影像信息的调制重建图案重建第二点云数据,基于多个第一标志点三维数据的拼接确定第一转换矩阵,基于第一转换矩阵拼接多片第二点云数据,实现被测物体完整三维数据的获取。这样,可减少被测物体上标志点的使用量,减少第二点云数据的空洞,同时保证被测物体完整三维数据的高细节。Working mode 6: The first illuminator irradiates the light of the first wave band to the surface of the measured object, and the surface of the measured object is pasted with marking points. The light of the first wave band is reflected by the surface of the measured object and is collected by an external camera. To the rough image information including the marker points; the second projector projects the reconstructed pattern of the second wave band to the surface of the measured object synchronously with respect to the first illuminator, which is collected by the internal camera after the surface modulation of the measured object, and the internal camera is relative to the external camera Synchronously collect fine image information including modulation reconstruction patterns; obtain complete three-dimensional data of the measured object based on the collected coarse image information and fine image information, specifically, reconstruct the three-dimensional data of the first marker point based on the marker points of the coarse image information, The second point cloud data is reconstructed based on the modulation reconstruction pattern of the fine image information, the first conversion matrix is determined based on the splicing of the three-dimensional data of the first marker points, and the second point cloud data is spliced based on the first conversion matrix to realize the measured object Acquisition of complete three-dimensional data. In this way, the usage of the mark points on the measured object can be reduced, the holes in the second point cloud data can be reduced, and the high detail of the complete three-dimensional data of the measured object can be guaranteed.
在一实施例中,外部相机模组130包括多个外部相机,内部相机模组120包括至少一个内部相机。外部相机模组130还包括第一波段的第一照明件121以及第一波段的第一滤光片,第一照明件121环形设置在每一外部相机周围,用于投射第一波段的光以照亮被测物体140表面的标志点,第一滤光片设置于外部相机前端,用于保留第一波段的入射光滤除其他波段的入射光。投射装置110包括第二波段的投射器,用于向被测物体140投射第二波段的重建图案。内部相机模组120包括第二波段的第二滤光片132,第二滤光片设置于内部相机前端,用于保留第二波段的入射光滤除其他波段的入射光。本实施例中,第一波段和第二波段为不同的波段。In an embodiment, the external camera module 130 includes a plurality of external cameras, and the internal camera module 120 includes at least one internal camera. The external camera module 130 also includes a first illuminating element 121 in the first wavelength band and a first filter in the first wavelength band. The first illuminating element 121 is annularly arranged around each external camera and used to project light in the first wavelength band. To illuminate the mark points on the surface of the object 140 to be measured, the first filter is arranged at the front end of the external camera to retain the incident light of the first waveband and filter out the incident light of other wavebands. The projection device 110 includes a projector of the second waveband, which is used to project the reconstructed pattern of the second waveband to the measured object 140. The internal camera module 120 includes a second filter 132 in the second wavelength band, and the second filter is disposed at the front end of the internal camera for retaining incident light in the second wavelength band and filtering out incident light in other wavelength bands. In this embodiment, the first waveband and the second waveband are different wavebands.
本实施例的扫描仪配置上述工作模式六。扫描时扫描仪根据工作模式运行对应的工作部件或模块。The scanner of this embodiment configures the sixth working mode described above. When scanning, the scanner runs the corresponding working parts or modules according to the working mode.
在一实施例中,外部相机模组130包括多个外部相机,内部相机模组120包括至少一个内部相机。投射装置110包括第一波段的第一投射器以及第二波段的第二投射器,第一投射器向被测物体140投射第一波段的重建图案,第二投射器用于向被测物体140投射第二波段的重建图案。外部相机模组包括第一波段的第一照明件121,第一照明件121环形设置在每一外部相机周围,用于投射第一波段的光以照亮被测物体140表面的标志点;内部相机模组120包括第二波段的第二照明件131,第二照明件131环形设置在每 一内部相机周围,用于投射第二波段的光以照亮被测物体140表面的标志点。在本实施例中,第一波段与第二波段为相同的波段。外部相机的前端及内部相机的前端可不设置滤光片,也可设置供第一波段(即第二波段)的光穿过的滤光片,滤光片对其他波段的光的滤除根据需求设置。可以理解的是,投射装置110可仅设置一个投射器,既作为第一投射器使用,也作为第二投射器使用。In an embodiment, the external camera module 130 includes a plurality of external cameras, and the internal camera module 120 includes at least one internal camera. The projection device 110 includes a first projector of the first waveband and a second projector of the second waveband. The first projector projects the reconstructed pattern of the first waveband to the measured object 140, and the second projector is used to project the measured object 140 The reconstruction pattern of the second band. The external camera module includes a first illuminating element 121 of the first waveband, the first illuminating element 121 is annularly arranged around each external camera, and is used to project light of the first waveband to illuminate the mark points on the surface of the object 140 under test; The camera module 120 includes a second illuminating element 131 of the second waveband, the second illuminating element 131 is annularly arranged around each internal camera, and is used for projecting light of the second waveband to illuminate the marking points on the surface of the object 140 under test. In this embodiment, the first waveband and the second waveband are the same waveband. The front end of the external camera and the front end of the internal camera may not be provided with a filter, or a filter for the light of the first wave band (ie the second wave band) to pass through, and the filter can filter the light of other wave bands according to requirements Set up. It is understandable that the projection device 110 may be provided with only one projector, which can be used as both the first projector and the second projector.
本实施例的扫描仪配置上述工作模式二、工作模式三、工作模式四和工作模式六中的一者或多者。根据扫描需求从配置中选择其中一种进行扫描,扫描时扫描仪根据工作模式运行对应的工作部件或模块。The scanner of this embodiment is configured with one or more of the above-mentioned working mode two, working mode three, working mode four, and working mode six. Select one of the configurations to scan according to the scanning requirements. During scanning, the scanner runs the corresponding working parts or modules according to the working mode.
在一实施例中,外部相机模组130包括多个外部相机,内部相机模组120包括至少一个内部相机。投射装置110包括第一波段的第一投射器以及第二波段的第二投射器,第一投射器向被测物体140投射第一波段的重建图案,第二投射器用于向被测物体140投射第二波段的重建图案。外部相机模组包括第一波段的第一照明件121,第一照明件121环形设置在每一外部相机周围,用于投射第一波段的光以照亮被测物体140表面的标志点;内部相机模组120包括第二波段的第二照明件131,第二照明件131环形设置在每一内部相机周围,用于投射第二波段的光以照亮被测物体140表面的标志点。在本实施例中,第一波段与第二波段为不同的波段。外部相机的前端及内部相机的前端可不设置滤光片,也可设置供第一波段及第二波段的光穿过的滤光片,滤光片对其他波段的光的滤除根据需求设置。可以理解的是,投射装置110还可以是一个双频投射器,控制双频投射器交替投射第一波段的重建图案和第二波段的重建图案。In an embodiment, the external camera module 130 includes a plurality of external cameras, and the internal camera module 120 includes at least one internal camera. The projection device 110 includes a first projector of the first waveband and a second projector of the second waveband. The first projector projects the reconstructed pattern of the first waveband to the measured object 140, and the second projector is used to project the measured object 140 The reconstruction pattern of the second band. The external camera module includes a first illuminating element 121 of the first waveband, the first illuminating element 121 is annularly arranged around each external camera, and is used to project light of the first waveband to illuminate the mark points on the surface of the object 140 under test; The camera module 120 includes a second illuminating element 131 of the second waveband, the second illuminating element 131 is annularly arranged around each internal camera, and is used for projecting light of the second waveband to illuminate the marking points on the surface of the object 140 under test. In this embodiment, the first waveband and the second waveband are different wavebands. The front end of the external camera and the front end of the internal camera may not be provided with a filter, or may be provided with a filter for passing light of the first and second wavelength bands, and the filter for filtering other wavelengths of light is set according to requirements. It is understandable that the projection device 110 may also be a dual-frequency projector, which controls the dual-frequency projector to alternately project the reconstructed pattern in the first waveband and the reconstructed pattern in the second waveband.
本实施例的扫描仪配置上述工作模式二、工作模式三、工作模式四和工作模式六中的一者或两者。根据扫描需求从配置中选择其中一种进行扫描,扫描时扫描仪根据工作模式运行对应的工作部件或模块。The scanner of this embodiment is configured with one or both of the above-mentioned working mode two, working mode three, working mode four, and working mode six. Select one of the configurations to scan according to the scanning requirements. During scanning, the scanner runs the corresponding working parts or modules according to the working mode.
在一实施例中,外部相机模组130包括多个外部相机,内部相机模组120包括至少一个内部相机。外部相机模组130包括第一波段的第一照明件,所述第一照明件环形设置在每一所述外部相机周围,用于投射第一波段的光以照亮被测物体140表面的标志点;内部相机模组120包括第二波段的第二照明件,所述第二照明件环形设置在所述内部相机周围,用于投射第二波段的光以照亮被测物体140表面的标志点;在本实施例中,第一波段与第二波段为不同的波段。所述投射装置包括一投射器,既可作为第一投射器向被测物体140投射第一波段的重建图案,也可作为第二投射器向被测物体140投射第二波段的重建图案。外部相机的前端及内部相机的前端可不设置滤光片,也可设置供第一波段及第二波段的光穿过的滤光片,滤光片对其他波段的光的滤除根据需求设置。In an embodiment, the external camera module 130 includes a plurality of external cameras, and the internal camera module 120 includes at least one internal camera. The external camera module 130 includes a first illuminating element in the first waveband, the first illuminating element is annularly arranged around each of the external cameras, and is used to project light in the first waveband to illuminate the mark on the surface of the object 140 to be measured Point; the internal camera module 120 includes a second illuminating element of the second waveband, the second illuminating element is annularly arranged around the internal camera, and is used to project light of the second waveband to illuminate the mark on the surface of the measured object 140 Point; In this embodiment, the first waveband and the second waveband are different wavebands. The projection device includes a projector, which can be used as a first projector to project a reconstructed pattern of the first wave band to the measured object 140 or a second projector to project a reconstructed pattern of the second wave band to the measured object 140. The front end of the external camera and the front end of the internal camera may not be provided with a filter, or may be provided with a filter for passing light of the first and second wavelength bands, and the filter for filtering other wavelengths of light is set according to requirements.
本实施例的扫描仪配置上述工作模式二、工作模式三、工作模式四和工作模式六中的一者或两者。根据扫描需求从配置中选择其中一种进行扫描,扫描时扫描仪根据工作模式运行对应的工作部件或模块。The scanner of this embodiment is configured with one or both of the above-mentioned working mode two, working mode three, working mode four, and working mode six. Select one of the configurations to scan according to the scanning requirements. During scanning, the scanner runs the corresponding working parts or modules according to the working mode.
在一实施例中,外部相机模组130包括多个外部相机,内部相机模组120包括至少一个内部相机。外部相机模组130包括第一波段的第一照明件和第一滤光片,所述第一照明件环形设置在每一所述外部相机周围,用于照亮被测物体表面的标志点,所述第一滤光片设置于所述外部相机前端,用于保留第一波段的入射光滤除其他波段的入射光;所述内部相机模组包括第二波段的第二照明件和第二滤光片,所述第二照明件环形设置在每一所述内部相机周围,用于照亮被测物体表面的标志点,所述第二滤光片设置于内部相机前端,用于保留第二波段的入射光滤除其他波段的入射光。所述投射装置包括第二投射器,所述第二投射器用于向被测物体投射第二波段的重建图案。在本实施例中,第一波段与第二波段为不同的波段。In an embodiment, the external camera module 130 includes a plurality of external cameras, and the internal camera module 120 includes at least one internal camera. The external camera module 130 includes a first illuminating element of the first waveband and a first filter, and the first illuminating element is annularly arranged around each of the external cameras for illuminating the mark points on the surface of the object to be measured, The first filter is disposed at the front end of the external camera, and is used to retain the incident light in the first waveband and filter out incident light in other wavebands; the internal camera module includes a second illuminator in the second waveband and a second The second illuminating element is annularly arranged around each of the internal cameras to illuminate the mark points on the surface of the object to be measured, and the second filter is arranged on the front end of the internal camera to retain the first The incident light in the second waveband filters out the incident light in other wavebands. The projection device includes a second projector, and the second projector is used to project the reconstructed pattern of the second waveband to the measured object. In this embodiment, the first waveband and the second waveband are different wavebands.
本实施例的扫描仪配置上述工作模式三、工作模式四和工作模式六中的一者或多者。根据扫描需求从配置中选择其中一种进行扫描,扫描时扫描仪根据工作模式运行对应的工作部件或模块。The scanner of this embodiment is configured with one or more of the above-mentioned working mode three, working mode four, and working mode six. Select one of the configurations to scan according to the scanning requirements. During scanning, the scanner runs the corresponding working parts or modules according to the working mode.
在一实施例中,外部相机模组130包括多个外部相机,内部相机模组120包括至少一个内部相机。所述外部相机模组包括第一波段的第一照明件和第一滤光片;所述第一照明件环形设置在每一所述外部相机周围,用于照亮被测物体表面的标志点;所述第一滤光片设置于所述外部相机前端,用于保留第一波段的入射光滤除其他波段的入射光;所述内部相机模组包括第二滤光片,所述第二滤光片设置于内部相机前端,用于保留第二波段的入射光滤除其他波段的入射光。所述投射装置包括第一投射器和第二投射器,所述第一投射器用于向被测物体投射第一波段的重建图案;所述第二投射器用于向被测物体投射第二波段的重建图案;在本实施例中,第一波段和第二波段为不同的波段。In an embodiment, the external camera module 130 includes a plurality of external cameras, and the internal camera module 120 includes at least one internal camera. The external camera module includes a first illuminating element and a first filter in the first waveband; the first illuminating element is annularly arranged around each of the external cameras, and is used to illuminate the mark points on the surface of the object to be measured The first filter is arranged at the front end of the external camera, and is used to retain the incident light of the first waveband and filter out the incident light of other wavebands; the internal camera module includes a second filter, the second The filter is arranged at the front end of the internal camera and is used to retain the incident light of the second waveband and filter out the incident light of other wavebands. The projection device includes a first projector and a second projector. The first projector is used to project the reconstructed pattern of the first wave band to the measured object; the second projector is used to project the second wave band of the measured object to the measured object. Reconstruct the pattern; in this embodiment, the first waveband and the second waveband are different wavebands.
本实施例的扫描仪配置上述工作模式五和工作模式六中的一者或两者。根据扫描需求从配置中选择其中一种进行扫描,扫描时扫描仪根据工作模式运行对应的工作部件或模块。The scanner of this embodiment is configured with one or both of the above-mentioned working mode 5 and working mode 6. Select one of the configurations to scan according to the scanning requirements. During scanning, the scanner runs the corresponding working parts or modules according to the working mode.
每一外部相机周围可以设置有多个第一照明件。其具体数量本实施例并不作限制。第一照明件121和 第二照明件131均可以为LED灯。照明件环形设置在相机周围可以扫描多个方位的标志点,更全面地对被测物体140进行扫描,提高扫描的精确度。A plurality of first lighting parts may be arranged around each external camera. The specific number is not limited in this embodiment. Both the first lighting element 121 and the second lighting element 131 may be LED lights. The illuminating element is arranged in a ring around the camera to scan multiple azimuth landmark points, so as to scan the measured object 140 more comprehensively and improve the accuracy of scanning.
如图1a所示,外部相机模组130包括两个相机,分别是第一相机111和第二相机112,第一相机111和第二相机112构建双目重建系统,内部相机模组120包括一个第三相机113,第三相机113构建单目重建系统。第三相机113设置在第一相机111和第二相机112之间;投射装置110可以设置在第三相机113和第一相机111之间,投射装置110也可以设置在第三相机113和第二相机112之间。As shown in Figure 1a, the external camera module 130 includes two cameras, a first camera 111 and a second camera 112, respectively. The first camera 111 and the second camera 112 construct a binocular reconstruction system, and the internal camera module 120 includes one The third camera 113 and the third camera 113 construct a monocular reconstruction system. The third camera 113 is arranged between the first camera 111 and the second camera 112; the projection device 110 can be arranged between the third camera 113 and the first camera 111, and the projection device 110 can also be arranged between the third camera 113 and the second camera. Between cameras 112.
在一实施例中,如图1b所示,外部相机模组130包括第一相机111和第二相机112,第一相机111和第二相机112构建双目重建系统,内部相机模组120包括第三相机113和第四相机114,第三相机113和第四相机114构建双目重建系统;第三相机113和第四相机114均位于第一相机111和第二相机112之间,即第一相机111和第二相机112位于扫描仪的外侧,第三相机113和第四相机114均位于扫描仪的内侧,投射装置110设置在第三相机113和第四相机114之间,即投射装置110位于中间,从而可以使投射的重建图案分布更均匀,提高扫描精度。In one embodiment, as shown in FIG. 1b, the external camera module 130 includes a first camera 111 and a second camera 112, the first camera 111 and the second camera 112 construct a binocular reconstruction system, and the internal camera module 120 includes a second camera. The third camera 113 and the fourth camera 114, the third camera 113 and the fourth camera 114 construct a binocular reconstruction system; the third camera 113 and the fourth camera 114 are both located between the first camera 111 and the second camera 112, that is, the first The camera 111 and the second camera 112 are located outside the scanner, the third camera 113 and the fourth camera 114 are both located inside the scanner, and the projection device 110 is arranged between the third camera 113 and the fourth camera 114, namely the projection device 110 Located in the middle, so that the projected reconstruction pattern can be distributed more uniformly and the scanning accuracy can be improved.
在一实施例中,如图1c所示,外部相机模组130包括第一相机111、第二相机112和第五相机115,第一相机111、第二相机112和第五相机115中的任意两个相机可以构建双目重建系统。例如,可以是第一相机111和第二相机112构建双目重建系统,也可以是第二相机112和第五相机115构建双目重建系统等,在扫描过程中,三个相机可以进行切换来构建双目重建系统。内部相机模组120包括第三相机113和第四相机114,第三相机113和第四相机114构建双目重建系统。In an embodiment, as shown in FIG. 1c, the external camera module 130 includes a first camera 111, a second camera 112, and a fifth camera 115, any of the first camera 111, the second camera 112, and the fifth camera 115 Two cameras can construct a binocular reconstruction system. For example, the first camera 111 and the second camera 112 may construct a binocular reconstruction system, or the second camera 112 and the fifth camera 115 may construct a binocular reconstruction system, etc. During the scanning process, the three cameras can be switched to Build a binocular reconstruction system. The internal camera module 120 includes a third camera 113 and a fourth camera 114, and the third camera 113 and the fourth camera 114 construct a binocular reconstruction system.
可以理解的是,投射装置110也可以设置在其他位置,以上实施例中投射装置110的设置位置仅是举例说明,并不对投射装置110的具体设置位置进行限定。It can be understood that the projection device 110 may also be arranged in other positions. The arrangement position of the projection device 110 in the above embodiment is only an example, and the specific arrangement position of the projection device 110 is not limited.
本公开实施例提供的扫描仪包括投射装置110、内部相机模组120、和外部相机模组130,投射装置110向被测物体140投射重建图案;内部相机模组120配置为第二扫描范围,用于采集被测物体140反射的基于重建图案的精细影像信息;外部相机模组130配置为第一扫描范围,且第一扫描范围大于第二扫描范围,用于采集被测物体140表面的的粗略影像信息,以根据所述粗略影像信息和所述精细影像信息得到所述被测物体完整的三维数据。本公开通过内部相机模组120采集的被测物体140精细影像信息来获取多片点云数据,通过外部相机模组130采集的粗略影像信息获取标志点三维数据,由于外部相机模组130的扫描范围大于内部相机模组120的扫描范围且存在重叠,因此单片标志点三维数据可对应多片点云数据,并由此确定多片点云数据之间的位置关系,进而实现多片点云数据的拼接。对于同一相机来说,当要采集较大场景的影像时,采集到的影像的细节相对就差,反之,当要采集细节较好的影像时,采集到的影像的场景就小。在本公开中,外部相机模组用于采集被测物体的表面的标志点,内部相机模组用于采集经被测物体调制的重建图案以获取细节较好的点云数据,由于外部相机模组的扫描范围较大,被测物体的表面可以粘贴较为分散的标志点,即可以在降低标志点使用量的情况下,完成对点云数据的拼接,又内部相机模组的扫描范围较小但数据细节较好,因此,本公开可以在降低标志点使用量的情况下,保证扫描的数据细节,提高扫描的精确度。当然,外部相机模组也可用于其他的采集,并不限于标志点的采集,内部相机模组也可用于其他的采集,并不限于重建图案。The scanner provided by the embodiment of the present disclosure includes a projection device 110, an internal camera module 120, and an external camera module 130. The projection device 110 projects a reconstructed pattern on an object 140; the internal camera module 120 is configured as a second scanning range, Used to collect fine image information based on the reconstructed pattern reflected by the measured object 140; the external camera module 130 is configured as a first scanning range, and the first scanning range is larger than the second scanning range, and is used to collect the surface of the measured object 140 The rough image information is used to obtain complete three-dimensional data of the measured object according to the rough image information and the fine image information. The present disclosure obtains multiple pieces of point cloud data through the fine image information of the measured object 140 collected by the internal camera module 120, and obtains the three-dimensional data of the landmark points through the rough image information collected by the external camera module 130. The range is larger than the scanning range of the internal camera module 120 and overlaps. Therefore, a single piece of landmark 3D data can correspond to multiple pieces of point cloud data, and the positional relationship between the multiple pieces of point cloud data is determined thereby, thereby realizing multiple pieces of point cloud The splicing of data. For the same camera, when an image of a larger scene is to be captured, the details of the captured image are relatively poor. Conversely, when an image with better detail is to be captured, the scene of the captured image is smaller. In the present disclosure, the external camera module is used to collect the landmark points on the surface of the measured object, and the internal camera module is used to collect the reconstructed pattern modulated by the measured object to obtain the point cloud data with better details. The scanning range of the group is large, and the surface of the measured object can be pasted with more scattered marker points, that is, the splicing of point cloud data can be completed under the condition of reducing the use of marker points, and the scanning range of the internal camera module is small However, the details of the data are better. Therefore, the present disclosure can ensure the details of the scanned data and improve the accuracy of the scan while reducing the usage of the marker points. Of course, the external camera module can also be used for other collections, and is not limited to the collection of marker points, and the internal camera module can also be used for other collections, and is not limited to reconstruction patterns.
在一实施例中,扫描仪本体还包括壳体,所述投射装置、内部相机模组和外部相机模组安装于所述壳体内,所述扫描仪还包括握持部,所述握持部安装于所述扫描仪本体。In an embodiment, the scanner body further includes a housing, the projection device, the internal camera module, and the external camera module are installed in the housing, and the scanner further includes a holding portion, the holding portion Installed on the scanner body.
本公开还提供一种三维扫描系统,三维扫描系统包括处理装置和上述实施例任一所述的扫描仪,处理装置分别与扫描仪中的外部相机模组130和内部相机模组120连接,用于获取被测物体的粗略影像信息以及精细影像信息,并对粗略影像信息和精细影像信息进行处理,以获取被测物体完整的三维数据。具体地,在获取到粗略影响信息和精细影像信息后,提取精细影像信息对应的多片点云数据,根据粗略影像信息实现对多片点云数据的拼接,进而完成对被测物体140的准确拼接,获得被测物体140的完整三维数据。The present disclosure also provides a three-dimensional scanning system. The three-dimensional scanning system includes a processing device and the scanner described in any one of the above embodiments. The processing device is connected to the external camera module 130 and the internal camera module 120 in the scanner, respectively. To obtain the coarse image information and fine image information of the measured object, and process the coarse image information and fine image information to obtain the complete three-dimensional data of the measured object. Specifically, after the rough influence information and the fine image information are obtained, multiple pieces of point cloud data corresponding to the fine image information are extracted, and the multiple pieces of point cloud data are stitched according to the rough image information, thereby completing the accuracy of the measured object 140 Splicing to obtain complete three-dimensional data of the measured object 140.
图2为一实施例提供的三维扫描方法的流程图,参考图1a、图1b和图2,三维扫描方法包括步骤210至步骤240,其中:Fig. 2 is a flowchart of a three-dimensional scanning method provided by an embodiment. Referring to Figs. 1a, 1b and 2, the three-dimensional scanning method includes steps 210 to 240, wherein:
步骤210,向被测物体140投射重建图案。 Step 210, project the reconstructed pattern to the measured object 140.
本实施例中,可以通过扫描设备中的投射装置向被测物体140投射重建图案。在扫描设备(扫描仪或三维扫描系统)工作前,需要进行标定,即对内部相机模组120、外部相机模组130中的相机进行标定, 获得标定参数。具体地,对内部相机模组120中的内部相机和外部相机模组130中的外部相机进行标定,从而获取多个相机的内外参数及多个相机之间的相对位置对应的旋转平移矩阵,标定好的扫描设备可以根据获取的影像信息进一步获取被测物体140完整的三维数据。In this embodiment, the reconstructed pattern can be projected to the measured object 140 through the projection device in the scanning device. Before the scanning device (scanner or three-dimensional scanning system) works, it needs to be calibrated, that is, the cameras in the internal camera module 120 and the external camera module 130 are calibrated to obtain calibration parameters. Specifically, the internal camera in the internal camera module 120 and the external camera in the external camera module 130 are calibrated, so as to obtain the internal and external parameters of the multiple cameras and the rotation and translation matrix corresponding to the relative positions between the multiple cameras. A good scanning device can further obtain complete three-dimensional data of the measured object 140 according to the obtained image information.
需要说明的是,在内部相机模组120和外部相机模组130同时采集被测物体140的标志点时,内部相机和外部相机的相对位置可以不进行标定,只需将多个相机的内外参数,以及投射装置与内部相机、外部相机的相对位置进行标定。处理模块在获取到标志点信息和调制重建图案后,只需要根据相机的内外参数、投射装置与内部相机、外部相机的相对位置参数进行处理,不需要再考虑内部相机和外部相机的相对位置参数,从而可以降低处理复杂度,提高三维扫描的速度。It should be noted that when the internal camera module 120 and the external camera module 130 collect the landmark points of the object 140 at the same time, the relative position of the internal camera and the external camera need not be calibrated, only the internal and external parameters of multiple cameras , And calibrate the relative positions of the projection device, the internal camera and the external camera. After the processing module obtains the landmark information and the modulation reconstruction pattern, it only needs to process the internal and external parameters of the camera, the relative position parameters of the projection device and the internal camera, and the external camera, without considering the relative position parameters of the internal and external cameras. , Which can reduce processing complexity and increase the speed of three-dimensional scanning.
在扫描之前,需要在被测物体140上粘贴标志点,标志点作为参考点可以遍布在被测物体140的外表面。标志点的数量可以为多个,具体数量和设置位置本实施例不作限定,但是要保证所有的标志点不在同一直线上。优选地,任意三个标志点均不在同一直线上,从而可以更准确地完成点云数据的拼接。Before scanning, marking points need to be pasted on the measured object 140, and the marking points can be used as reference points all over the outer surface of the measured object 140. The number of marking points can be multiple, and the specific number and setting positions are not limited in this embodiment, but it is necessary to ensure that all marking points are not on the same straight line. Preferably, any three marking points are not on the same straight line, so that the splicing of point cloud data can be completed more accurately.
标志点可以采用反光性能较高的反光材料,将标志点粘贴在被测物体140的外表面。通过照明件向被测物体140投射预设波段的光。上述的第一波段和第二波段均为预设波段。预设波段的光的光谱不限,优选地,预设波段的光为红、蓝、绿三种单色光中的一种。The marking point can be made of a reflective material with high reflective performance, and the marking point may be pasted on the outer surface of the object 140 to be measured. The light of a preset waveband is projected to the measured object 140 through the illuminating element. The above-mentioned first waveband and second waveband are both preset wavebands. The spectrum of the light of the preset waveband is not limited. Preferably, the light of the preset waveband is one of the three monochromatic lights of red, blue, and green.
投射装置110所投射的重建图案不限,可以为普通条纹图案、散斑图案、正弦条纹图案等。优选地,重建图案为普通条纹图案,条纹的数量不限,但为了提高扫描效率,通常需要大于15条。可以理解的是,当条纹的数量较少时,重建图案较稀疏,单次扫描获取到的数据较少,可以通过多次扫描来获取被测物体140更多的数据信息;当条纹数量较多时,重建图案较密集,单次扫描即可以获取到被测物体140较多的数据信息。The reconstruction pattern projected by the projection device 110 is not limited, and may be a normal fringe pattern, a speckle pattern, a sinusoidal fringe pattern, and the like. Preferably, the reconstruction pattern is a normal stripe pattern, and the number of stripes is not limited, but in order to improve scanning efficiency, more than 15 stripes are usually required. It is understandable that when the number of stripes is small, the reconstructed pattern is sparser, and the data obtained in a single scan is less, and more data information of the measured object 140 can be obtained through multiple scans; when the number of stripes is large , The reconstructed pattern is denser, and more data information of the measured object 140 can be obtained in a single scan.
投射装置110的结构不限,只要能向被测物体140投射重建图案即可。优选地,投射装置110可以包括激光器和/或投影仪。The structure of the projection device 110 is not limited, as long as it can project the reconstructed pattern to the measured object 140. Preferably, the projection device 110 may include a laser and/or a projector.
步骤220,采集被测物体140表面的粗略影像信息。Step 220: Collect rough image information on the surface of the measured object 140.
本实施例中,可以通过扫描设备中的外部相机模组130采集被测物体140表面的粗略影像信息。外部相机模组130的第一照明件121发射第一波段的光,当第一波段的光照射到被测物体140的标志点上,标志点反射回来的光被外部相机模组130采集。标志点携带了被测物体140的标志点信息,即基于粗略影像信息中的标志点可确定标志点三维数据。由于外部相机模组130的扫描范围较大,因此被测物体上减少标志点的使用量,被测物体上标志点更分散地分布,外部相机模组130采集的粗略影像信息确定的标志点三维数据可进行拼接,该数据可以较好地反映出被测物体140的整体信息。In this embodiment, the rough image information of the surface of the object 140 can be collected by the external camera module 130 in the scanning device. The first illuminating element 121 of the external camera module 130 emits light of the first waveband. When the light of the first waveband irradiates the mark point of the object 140 to be measured, the light reflected by the mark point is collected by the external camera module 130. The mark point carries the mark point information of the measured object 140, that is, the three-dimensional data of the mark point can be determined based on the mark point in the rough image information. Since the scanning range of the external camera module 130 is relatively large, the use of marker points on the measured object is reduced, and the marker points on the measured object are more dispersed. The three-dimensional marker points determined by the rough image information collected by the external camera module 130 The data can be spliced, and the data can better reflect the overall information of the measured object 140.
步骤230,采集被测物体140反射的基于重建图案的精细影像信息。In step 230, fine image information based on the reconstructed pattern reflected by the measured object 140 is collected.
本实施例中,可以通过内部相机模组120采集被测物体140反射的基于重建图案的精细影像信息。内部相机模组120的扫描范围较小,可以对被测物体140进行局部扫描,从而获取被测物体140的细节信息。In this embodiment, the internal camera module 120 can collect fine image information based on the reconstructed pattern reflected by the measured object 140. The internal camera module 120 has a relatively small scanning range, and can perform partial scanning of the measured object 140 to obtain detailed information of the measured object 140.
在投射装置110向被测物体140投射重建图案后,通常外部相机模组130识别的是较为稀疏的条纹图像;而内部相机模组120识别的是较为密集的条纹图像。粗略影像信息可以包括标志点和/或调制重建图案,精细影像信息可以包括标志点和/或调制重建图案。After the projection device 110 projects the reconstructed pattern to the measured object 140, usually the external camera module 130 recognizes a relatively sparse fringe image; while the internal camera module 120 recognizes a relatively dense fringe image. The coarse image information may include marker points and/or modulation reconstruction patterns, and the fine image information may include marker points and/or modulation reconstruction patterns.
内部相机模组120和外部相机模组130的类型不限,只要能采集到被测物体140的影像信息即可。可以理解的是,由于投射装置110向被侧物体投射的重建图案,经被测物体140的高度调制发生变形,产生调制后的重建图案通过内部相机模组120和/或外部相机模组130采集。The types of the internal camera module 120 and the external camera module 130 are not limited, as long as the image information of the measured object 140 can be collected. It is understandable that the reconstructed pattern projected by the projection device 110 to the side object is deformed by the height modulation of the measured object 140, and the modulated reconstructed pattern is collected by the internal camera module 120 and/or the external camera module 130. .
步骤240,通过处理装置获取被测物体140的粗略影像信息以及精细影像信息,并对粗略影像信息和精细影像信息进行处理,以获取被测物体140完整的三维数据。Step 240: Obtain rough image information and fine image information of the measured object 140 through the processing device, and process the rough image information and the fine image information to obtain complete three-dimensional data of the measured object 140.
本实施例中,可以通过处理装置获取被测物体140的粗略影像信息以及精细影像信息,并对粗略影像信息和精细影像信息进行处理,以获取被测物体140完整的三维数据。处理装置可以通过数据接口获取外部相机模组130采集的粗略影像信息以及内部相机模组120采集的精细影像信息,然后对粗略影像信息和精细影像信息进行重建、拼接、融合等处理,以获取被测物体140完整的三维数据。In this embodiment, the rough image information and the fine image information of the measured object 140 can be acquired by the processing device, and the rough image information and the fine image information can be processed to obtain complete three-dimensional data of the measured object 140. The processing device can obtain the rough image information collected by the external camera module 130 and the fine image information collected by the internal camera module 120 through the data interface, and then perform processing such as reconstruction, splicing, and fusion on the rough image information and the fine image information to obtain the Measure the complete three-dimensional data of the object 140.
处理装置可以为中央处理器CPU。可以理解的是,处理装置还用于控制投射装置110、内部相机模组120和外部相机模组130的工作状态。具体地,处理装置可以发送控制指令控制投射装置110投射重建图案,并控制所投射重建图案的条数等;处理装置可以发送控制指令控制内部相机模组120和外部相机 模组130的曝光时间,以采集粗略影像信息和精细影像信息。数据接口接收影像信息后发送至CPU。The processing device may be a central processing unit CPU. It can be understood that the processing device is also used to control the working status of the projection device 110, the internal camera module 120, and the external camera module 130. Specifically, the processing device may send control instructions to control the projection device 110 to project the reconstructed patterns, and control the number of reconstructed patterns projected, etc.; the processing device may send control instructions to control the exposure time of the internal camera module 120 and the external camera module 130, To collect rough image information and fine image information. The data interface receives the image information and sends it to the CPU.
本实施例提供的三维扫描方法通过投射装置110向被测物体140投射重建图案;通过外部相机模组130采集被测物体140反射的基于重建图案的粗略影像信息;通过内部相机模组120采集被测物体140反射的基于重建图案的精细影像信息;通过处理装置获取被测物体140的粗略影像信息以及精细影像信息,并对粗略影像信息和精细影像信息进行处理,以获取被测物体140完整的三维数据。上述三维扫描方法根据外部相机模组130采集的粗略影像信息来辅助内部相机模组120采集的精细影像信息的点云数据的拼接,进而实现被测物体140完整三维数据的获取,可以在降低标志点使用量的情况下,保证扫描的数据细节,提高扫描的精确度。The three-dimensional scanning method provided in this embodiment projects the reconstructed pattern to the measured object 140 through the projection device 110; collects the rough image information based on the reconstructed pattern reflected by the measured object 140 through the external camera module 130; The fine image information based on the reconstructed pattern reflected by the measured object 140; the rough image information and the fine image information of the measured object 140 are acquired through the processing device, and the rough image information and the fine image information are processed to obtain the complete image of the measured object 140 Three-dimensional data. The above-mentioned three-dimensional scanning method assists the splicing of the point cloud data of the fine image information collected by the internal camera module 120 according to the rough image information collected by the external camera module 130, thereby achieving the acquisition of complete three-dimensional data of the measured object 140, which can reduce the mark In the case of point usage, ensure the details of scanned data and improve the accuracy of scanning.
在一实施例中,通过外部相机模组130采集被测物体140的粗略影像信息包括:通过第一照明件121投射第一波段的光以照亮被测物体140表面的标志点,并使外部相机模组130采集被测物体140的标志点。In one embodiment, collecting rough image information of the measured object 140 through the external camera module 130 includes: projecting a first waveband of light through the first illuminating element 121 to illuminate the mark points on the surface of the measured object 140, and make the exterior The camera module 130 collects the mark points of the measured object 140.
投射装置110包括第二波段的投射器,通过投射装置110向被测物体140投射重建图案包括:通过投射器向被测物体140投射第二波段的重建图案,以使内部相机模组120同步采集被测物体140的调制重建图案。本实施例中的投射器可以为单频投射器,只要可以投射第二波段的重建图案即可。The projection device 110 includes a projector of the second waveband, and projecting the reconstructed pattern to the measured object 140 through the projection device 110 includes: projecting the reconstructed pattern of the second waveband to the measured object 140 through the projector, so that the internal camera module 120 can collect synchronously The modulation reconstruction pattern of the measured object 140. The projector in this embodiment may be a single-frequency projector, as long as it can project the reconstructed pattern of the second waveband.
具体地,首先开启已经标定好的扫描仪,控制外部相机模组130中的第一照明件121闪烁,以投射第一波段的光至被测物体140表面的标志点,第一波段的光投射至标志点反射后由外部相机模组130采集,外部相机模组采集到包括标志点的粗略影像信息。由于外部相机前端设置有第一波段的滤光片,内部相机外部设置有第二波段的第二滤光片,因此,外部相机仅可以采集到被测物体140第一波段的标志点。第二波段的投射器向被测物体140投射第二波段的重建图案后反射第二波段的调制重建图案,第二波段的调制重建图案携带有被测物体140的细节信息,内部相机仅可以采集到第二波段的调制重建图案。Specifically, the calibrated scanner is first turned on, and the first illuminating element 121 in the external camera module 130 is controlled to flicker to project the first wave band of light to the mark point on the surface of the measured object 140, and the first wave band of light is projected After reflecting at the mark point, the external camera module 130 collects the rough image information including the mark point. Since the front end of the external camera is provided with a first waveband filter, and the internal camera is provided with a second waveband second filter outside, the external camera can only collect the landmark points of the measured object 140 in the first waveband. The second waveband projector projects the second waveband reconstruction pattern to the measured object 140 and reflects the second waveband modulation reconstruction pattern. The second waveband modulation reconstruction pattern carries the detailed information of the measured object 140. The internal camera can only collect The modulation reconstruction pattern to the second band.
在一实施例中,通过处理装置获取被测物体140的粗略影像信息以及精细影像信息,并对粗略影像信息和精细影像信息进行处理,以获取被测物体140完整的三维数据包括步骤310和步骤320,其中:In one embodiment, obtaining the coarse image information and the fine image information of the measured object 140 through the processing device, and processing the coarse image information and the fine image information to obtain the complete three-dimensional data of the measured object 140 includes steps 310 and 320, of which:
步骤310,处理装置在获取到被测物体140的标志点后确定标志点三维数据并进行拼接,以得到第一转换矩阵。In step 310, the processing device determines and splices the three-dimensional data of the mark points after acquiring the mark points of the measured object 140 to obtain the first transformation matrix.
步骤320,获取被测物体140的调制重建图案,基于调制重建图案重建出点云数据,根据第一转换矩阵对点云数据进行拼接,以获取被测物体140完整的三维数据。Step 320: Obtain the modulation reconstruction pattern of the measured object 140, reconstruct the point cloud data based on the modulation reconstruction pattern, and stitch the point cloud data according to the first conversion matrix to obtain the complete three-dimensional data of the measured object 140.
具体地,首先基于调制重建图案重建点云数据,点云数据的拼接是将任意的两片点云数据对齐到统一的坐标系的过程。拼接的完整过程一般分为两步:标志点三维数据拼接和点云数据拼接。标志点三维数据拼接是指通过在被测量物体140表面粘贴标志点,根据获取的标志点重建标志点三维数据,将多个标志点三维数据统一到同一坐标系下,标志点三维数据拼接具有稳定,速度快的特点。在标志点三维数据拼接完成后得到第一转换矩阵,该第一转换矩阵可以指导点云数据进行拼接,即各个点云数据可以通过第一转换矩阵统一在同一坐标系下,从而完成点云数据的拼接,获取被测物体140完整的三维数据。Specifically, the point cloud data is first reconstructed based on the modulation reconstruction pattern, and the splicing of the point cloud data is a process of aligning any two pieces of point cloud data to a unified coordinate system. The complete process of splicing is generally divided into two steps: three-dimensional data splicing of marker points and point cloud data splicing. Marking 3D data splicing refers to pasting mark points on the surface of the measured object 140, reconstructing mark point three-dimensional data according to the obtained mark points, unifying multiple mark point three-dimensional data into the same coordinate system, and marking point three-dimensional data splicing is stable , The characteristics of fast speed. After completing the splicing of the three-dimensional data of the marker points, the first conversion matrix is obtained. The first conversion matrix can guide the splicing of the point cloud data, that is, the point cloud data can be unified in the same coordinate system through the first conversion matrix to complete the point cloud data To obtain the complete three-dimensional data of the measured object 140.
在一实施例中,投射装置110包括第一波段的第一投射器以及第二波段的第二投射器,外部相机模组130包括第一波段的第一照明件121,内部相机模组120包括第二波段的第二照明件131;通过外部相机模组130采集被测物体140表面的粗略影像信息以及通过内部相机模组120采集被测物体140反射的基于重建图案的精细影像信息包括步骤410和步骤420,其中:In an embodiment, the projection device 110 includes a first projector in the first waveband and a second projector in the second waveband, the external camera module 130 includes the first illuminating element 121 in the first waveband, and the internal camera module 120 includes The second illuminator 131 of the second waveband; collecting rough image information of the surface of the measured object 140 through the external camera module 130 and collecting the fine image information based on the reconstructed pattern reflected by the measured object 140 through the internal camera module 120 includes step 410 And step 420, where:
步骤410,控制第一投射器向被测物体140投射第一波段的重建图案,并同步控制第一照明件121投射第一波段的光以照亮被测物体140表面的标志点,以使外部相机模组130采集被测物体140第一波段的标志点和调制重建图案。Step 410: Control the first projector to project the reconstructed pattern of the first wave band to the measured object 140, and synchronously control the first illuminator 121 to project the first wave of light to illuminate the mark points on the surface of the measured object 140 so as to make the outside The camera module 130 collects the mark points and the modulation reconstruction pattern of the first waveband of the object 140 under test.
步骤420,控制第二投射器向被测物体140投射第二波段的重建图案,并同步控制第二照明件131投射第二波段的光以照亮被测物体140表面的标志点,并使内部相机模组120采集被测物体140的第二波段的标志点和调制重建图案。Step 420: Control the second projector to project the reconstructed pattern of the second wave band to the measured object 140, and synchronously control the second illuminator 131 to project the second wave band of light to illuminate the mark points on the surface of the measured object 140, and make the interior The camera module 120 collects the marker points and the modulation reconstruction pattern of the second waveband of the measured object 140.
具体地,首先开启已经标定好的扫描仪,控制第一投射器和第二投射器同时向被测物体140投射重建图案,第一投射器投射的第一波段的重建图案和第二投射器投射的第二波段的重建图案的疏密程度并不作限制。通常,内部相机模组120识别的是比较密集的重建图案,外部相机模组130识别的是比较稀疏的重建图案。控制第一照明件121和第二照明件131闪烁,以照亮被测物体140表面的标志点。其中,第一照明件121向被测物体140投射第一波段的光,第二照明件131向被测物体140投射第二波段的光。由于外 部相机前端设置有第一波段的滤光片,内部相机前端设置有第二波段的第二滤光片,因此,外部相机模组130可以采集到包括第一波段的标志点和第一波段的调制重建图案的粗略影像信息,内部相机模组120可以采集到包括第二波段的标志点和第二波段的调制重建图案的精细影像信息。基于采集到的粗略影像信息和精细影像信息得到被测物体的完整三维数据。Specifically, first turn on the already calibrated scanner, control the first projector and the second projector to simultaneously project the reconstructed pattern to the measured object 140, the reconstructed pattern of the first waveband projected by the first projector and the second projector project The density of the reconstructed pattern in the second band is not limited. Generally, the internal camera module 120 recognizes a relatively dense reconstruction pattern, and the external camera module 130 recognizes a relatively sparse reconstruction pattern. The first illuminating part 121 and the second illuminating part 131 are controlled to blink to illuminate the mark points on the surface of the measured object 140. Among them, the first illuminating element 121 projects light of the first waveband to the measured object 140, and the second illuminating element 131 projects light of the second waveband to the measured object 140. Since the front end of the external camera is provided with a first waveband filter, and the front end of the internal camera is provided with a second waveband second filter, the external camera module 130 can collect the marker points including the first waveband and the first waveband For the rough image information of the modulation reconstruction pattern, the internal camera module 120 can collect fine image information including the marker points of the second waveband and the modulation reconstruction pattern of the second waveband. Based on the collected rough image information and fine image information, complete three-dimensional data of the measured object is obtained.
在一实施例中,投射装置110包括第一波段的第一投射器以及第二波段的第二投射器,外部相机模组130包括第一照明件121,内部相机模组120第二照明件131;通过外部相机模组130采集被测物体140表面的粗略影像信息以及通过内部相机模组120采集被测物体140反射的基于重建图案的精细影像信息包括步骤510和步骤520,其中:In an embodiment, the projection device 110 includes a first projector in the first waveband and a second projector in the second waveband, the external camera module 130 includes a first lighting element 121, and the internal camera module 120 includes a second lighting element 131 Collecting rough image information on the surface of the measured object 140 through the external camera module 130 and collecting fine image information based on the reconstructed pattern reflected by the measured object 140 through the internal camera module 120 includes steps 510 and 520, where:
步骤510,控制第一投射器在第一时间周期向被测物体140投射第一波段的重建图案,并同步控制外部相机模组130采集被测物体140第一波段的标志点和调制重建图案。In step 510, the first projector is controlled to project the reconstruction pattern of the first waveband on the measured object 140 in the first time period, and the external camera module 130 is synchronously controlled to collect the mark points and modulation reconstruction pattern of the first waveband of the measured object 140.
步骤520,控制第二投射器在第二时间周期向被测物体140投射第二波段的重建图案,并同步控制内部相机模组120采集被测物体140第二波段的标志点和调制重建图案。In step 520, the second projector is controlled to project the reconstruction pattern of the second waveband to the measured object 140 in the second time period, and the internal camera module 120 is synchronously controlled to collect the landmark points and modulation reconstruction pattern of the second waveband of the measured object 140.
具体地,在开启标定好的三维扫描系统后,控制第一投射器在第一时间周期向被测物体140投射第一波段的重建图案以形成第一波段的调制重建图案,此时,第二投射器不工作。同步控制外部相机模组130工作,一方面使环形设置在外部相机周围的第一照明件121向被测物体140投射光以照亮标志点,另一方面使外部相机模组130采集标志点和第一波段的调制重建图案。控制第二投射器在第二时间周期向被测物体140投射第二波段的重建图案以形成第二波段的调制重建图案,此时,第一投射器不工作。同步控制内部相机模组120工作,一方面使环形设置在内部相机周围的第二照明件131向被测物体140投射光以照亮标志点,另一方面使内部相机模组120采集标志点和第二波段的调制重建图案。Specifically, after the calibrated three-dimensional scanning system is turned on, the first projector is controlled to project the reconstruction pattern of the first waveband to the measured object 140 in the first time period to form the modulation reconstruction pattern of the first waveband. At this time, the second The projector is not working. Synchronously control the operation of the external camera module 130. On the one hand, the first illuminating element 121 arranged in the ring around the external camera projects light to the measured object 140 to illuminate the mark point, and on the other hand, the external camera module 130 collects the mark point and The modulation reconstruction pattern of the first band. The second projector is controlled to project the reconstruction pattern of the second waveband to the measured object 140 in the second time period to form the modulation reconstruction pattern of the second waveband. At this time, the first projector does not work. Synchronously control the operation of the internal camera module 120. On the one hand, the second illuminating element 131 arranged in the ring around the internal camera projects light to the measured object 140 to illuminate the mark point, and on the other hand, the internal camera module 120 collects the mark point and Modulation reconstruction pattern of the second band.
可以理解的是,投射装置110还可以是一个双频投射器,通过处理装置控制双频投射器交替投射第一波段的重建图案和第二波段的重建图案。It is understandable that the projection device 110 may also be a dual-frequency projector, and the dual-frequency projector is controlled by the processing device to alternately project the reconstructed pattern in the first waveband and the reconstructed pattern in the second waveband.
本实施例中通过控制投射装置110、内部相机模组120和外部相机模组130的工作状态,使第一投射器和外部相机模组130同步工作,第二投射器和内部相机模组120同步工作。可以不用限制第一照明件121和第二照明件131的波段,即可以实现外部相机模组130采集第一波段的标志点和调制重建图案,内部相机模组120采集第二波段的标志点和调制重建图案的效果。In this embodiment, by controlling the working status of the projection device 110, the internal camera module 120 and the external camera module 130, the first projector and the external camera module 130 are synchronized to work, and the second projector and the internal camera module 120 are synchronized. jobs. There is no need to limit the wavelength bands of the first illuminating element 121 and the second illuminating element 131, that is, the external camera module 130 can collect the landmark points and modulation reconstruction patterns of the first waveband, and the internal camera module 120 can collect the landmark points and the second waveband. Modulate the effect of the reconstruction pattern.
在一实施例中,通过处理装置获取被测物体140的粗略影像信息以及精细影像信息,并对粗略影像信息和精细影像信息进行处理,以获取被测物体140完整的三维数据,包括步骤610至步骤650,其中:In one embodiment, the processing device is used to obtain the coarse image information and the fine image information of the measured object 140, and the coarse image information and the fine image information are processed to obtain the complete three-dimensional data of the measured object 140, including steps 610 to Step 650, where:
步骤610,获取被测物体140第一波段的标志点和调制重建图案,以及被测物体140在第二波段的标志点和调制重建图案,基于第一波段的标志点和调制重建图案得到第一标志点三维数据和第一点云数据,基于第二波段的标志点和调制重建图案得到第二标志点三维数据和第二点云数据。Step 610: Obtain the mark points and modulation reconstruction pattern of the measured object 140 in the first waveband, and the mark points and modulation reconstruction pattern of the measured object 140 in the second waveband, and obtain the first wave based on the mark points and modulation reconstruction pattern of the first waveband. The three-dimensional data of the mark point and the first point cloud data are obtained, and the three-dimensional data of the second mark point and the second point cloud data are obtained based on the mark point and the modulation reconstruction pattern of the second band.
步骤620,将第一标志点三维数据和第二标志点三维数据进行拼接,以得到第二转换矩阵; Step 620, splicing the three-dimensional data of the first mark point and the three-dimensional data of the second mark point to obtain a second conversion matrix;
步骤630,根据第一转换矩阵和第二转换矩阵对第一点云数据和第二点云数据进行拼接,以得到被测物体完整的第一三维数据。In step 630, the first point cloud data and the second point cloud data are spliced according to the first conversion matrix and the second conversion matrix to obtain a complete first three-dimensional data of the measured object.
步骤640,计算第一点云数据及第二点云数据的曲率,并根据曲率大小保留第一点云数据或第二点云数据,以得到被测物体完整的第二三维数据。Step 640: Calculate the curvatures of the first point cloud data and the second point cloud data, and retain the first point cloud data or the second point cloud data according to the curvature, so as to obtain a complete second three-dimensional data of the measured object.
具体地,首先将多个第一标志点三维数据进行拼接,以得到第一转换矩阵,第一转换矩阵用于指示多个第一点云数据的拼接。将第一标志点三维数据和第二标志点三维数据统一在同一坐标系下,以得到第二转换矩阵。根据第二转换矩阵完成对第一点云数据和第二点云数据的拼接,以得到被测物体完整的三维数据。计算点云数据中各点的曲率值,若该点的曲率值大于预设阈值时,则认为该点所在区域为特征区域,所包含的细节信息较多,此时,保留第二点云数据的点;若该点的曲率值不大于预设阈值时,则认为该点所在区域为非特征区域,所包含的细节信息较少,此时,保留第一点云数据的点。其中预设阈值的取值可以根据实际情况进行选择,本实施例不作具体限定。Specifically, firstly, a plurality of first mark point three-dimensional data is spliced to obtain a first conversion matrix, and the first conversion matrix is used to indicate the splicing of a plurality of first point cloud data. The three-dimensional data of the first mark point and the three-dimensional data of the second mark point are unified in the same coordinate system to obtain the second conversion matrix. The splicing of the first point cloud data and the second point cloud data is completed according to the second conversion matrix to obtain complete three-dimensional data of the measured object. Calculate the curvature value of each point in the point cloud data. If the curvature value of the point is greater than the preset threshold, the area where the point is located is considered as a characteristic area, which contains more detailed information. At this time, the second point cloud data is retained If the curvature value of the point is not greater than the preset threshold, the area where the point is located is considered as a non-characteristic area and contains less detailed information. At this time, the point of the first point cloud data is retained. The value of the preset threshold can be selected according to actual conditions, and this embodiment does not specifically limit it.
本实施例根据曲率的大小自适应保留细节特征,可以在保留数据细节的同时可以得到高保真高细节的数据质量。In this embodiment, detailed features are adaptively retained according to the magnitude of the curvature, and high-fidelity and high-detail data quality can be obtained while retaining data details.
在一实施例中,所述投射装置110包括一投射器,所述投射器用于向被测物体140投射重建图案,所述重建图案可以为第一波段,也可以是第二波段。外部相机模组130包括第一照明件121,内部相机模组 130包括第二照明件131,第一照明件121环形设置在每一外部相机周围,第二照明件131环形设置在内部相机周围,用于照亮被测物体表面的标志点;外部相机模组130用于在第一时间周期采集被测物体140的标志点;120内部相机模组用于在第二时间周期采集被测物体140的标志点和调制重建图案。In an embodiment, the projection device 110 includes a projector for projecting a reconstruction pattern to the measured object 140, and the reconstruction pattern may be a first waveband or a second waveband. The external camera module 130 includes a first lighting element 121, the internal camera module 130 includes a second lighting element 131, the first lighting element 121 is annularly arranged around each external camera, and the second lighting element 131 is annularly arranged around the internal camera, Used to illuminate the mark points on the surface of the measured object; the external camera module 130 is used to collect the mark points of the measured object 140 in the first time period; 120 the internal camera module is used to collect the measured object 140 in the second time period The mark points and modulation reconstruction pattern.
具体地,在第一时间周期控制外部相机模组、第一照明件工作,以使外部相机模组在第一时间周期采集所述被测物体的标志点。在第二时间周期控制内部相机模组、第二照明件以及投射器工作,以使内部相机模组在第二时间周期采集所述被测物体的标志点和调制重建图案。Specifically, the external camera module and the first lighting component are controlled to work in the first time period, so that the external camera module collects the mark points of the measured object in the first time period. In the second time period, the internal camera module, the second lighting element and the projector are controlled to work, so that the internal camera module collects the mark points and modulation reconstruction patterns of the measured object in the second time period.
在一实施例中,外部相机模组130包括第一波段的第一照明件121和第一滤光片;第一照明件121环形设置在每一外部相机周围,用于照亮被测物体140表面的标志点;第一滤光片设置于外部相机前端,用于保留第一波段的入射光滤除其他波段的入射光;内部相机模组120包括第二波段的第二照明件131和第二滤光片,所述第二照明件环形设置在每一所述内部相机周围,用于照亮被测物体表面的标志点,所述第二滤光片设置于内部相机前端,用于保留第二波段的入射光滤除其他波段的入射光。投射装置110包括第二投射器,第二投射器用于向被测物体140投射第二波段的重建图案;外部相机模组130用于采集被测物体第一波段的标志点;内部相机模组120用于同步采集被测物体140第二波段的标志点和调制重建图案。In an embodiment, the external camera module 130 includes a first illuminating element 121 and a first filter in the first wavelength band; the first illuminating element 121 is annularly arranged around each external camera and used to illuminate the object 140 under test. The marking point on the surface; the first filter is set at the front end of the external camera to retain the incident light in the first waveband and filter out incident light in other wavebands; the internal camera module 120 includes a second illuminating element 131 and a second waveband Two filters, the second illuminating element is annularly arranged around each of the internal cameras for illuminating the mark points on the surface of the object to be measured, and the second filter is arranged on the front end of the internal camera for retaining The incident light in the second waveband filters out incident light in other wavebands. The projection device 110 includes a second projector, which is used to project the reconstructed pattern of the second waveband to the measured object 140; the external camera module 130 is used to collect the landmark points of the first waveband of the measured object; the internal camera module 120 It is used to synchronously collect the marker points and modulation reconstruction patterns of the second waveband of the measured object 140.
在一实施例中,外部相机模组130包括第一波段的第一照明件121和第一滤光片;第一照明件121环形设置在每一外部相机周围,用于照亮被测物体140表面的标志点;第一滤光片设置于外部相机前端,用于保留第一波段的入射光滤除其他波段的入射光;投射装置110包括第一投射器和第二投射器,第一投射器用于向被测物体140投射第一波段的重建图案;第二投射器用于向被测物体140投射第二波段的重建图案。内部相机模组120包括第二滤光片,所述第二滤光片设置于内部相机前端,用于保留第二波段的入射光滤除其他波段的入射光。外部相机模组130用于采集被测物体140第一波段的标志点和第一波段的调制重建图案;内部相机模组120用于同步采集被测物体140第二波段的调制重建图案。In an embodiment, the external camera module 130 includes a first illuminating element 121 and a first filter in the first wavelength band; the first illuminating element 121 is annularly arranged around each external camera and used to illuminate the object 140 under test. The marking point on the surface; the first filter is set at the front end of the external camera, and is used to retain the incident light of the first waveband and filter out the incident light of other wavebands; the projection device 110 includes a first projector and a second projector, the first projection The second projector is used to project the reconstructed pattern of the first wave band to the measured object 140; the second projector is used to project the reconstructed pattern of the second wave band to the measured object 140. The internal camera module 120 includes a second filter, which is disposed at the front end of the internal camera, and is used to retain incident light in the second waveband and filter out incident light in other wavebands. The external camera module 130 is used to collect the mark points of the first waveband of the measured object 140 and the modulation reconstruction pattern of the first waveband; the internal camera module 120 is used to synchronously collect the second waveband modulation and reconstruction pattern of the measured object 140.
需要说明的是,上述实施例仅是对两种波段,即两种扫描范围为例进行的说明,但是并不对扫描范围进行限制,在其他实施例中,可以是多种扫描范围。即投射装置110可以包括多个不同波段的投射器。It should be noted that the foregoing embodiment only describes two wavebands, that is, two scanning ranges as examples, but does not limit the scanning range. In other embodiments, multiple scanning ranges may be used. That is, the projection device 110 may include multiple projectors of different wavelength bands.
应该理解的是,虽然图2至图6的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2至图6中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowcharts of FIGS. 2 to 6 are displayed in sequence as indicated by the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless specifically stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least part of the steps in Figures 2 to 6 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. These sub-steps or The execution order of the stages is not necessarily carried out sequentially, but may be executed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
在一个实施例中,如图7所示,提供了一种三维扫描装置,三维扫描装置包括投射模块710、外部相机模块720、内部相机模块730和处理模块740,其中:In one embodiment, as shown in FIG. 7, a three-dimensional scanning device is provided. The three-dimensional scanning device includes a projection module 710, an external camera module 720, an internal camera module 730, and a processing module 740, wherein:
投射模块710,用于向被测物体140投射重建图案;The projection module 710 is used to project the reconstructed pattern to the measured object 140;
外部相机模块720,外部相机模块720配置为第一扫描范围,用于采集被测物体140表面的粗略影像信息;An external camera module 720, the external camera module 720 is configured as a first scanning range, and is used to collect rough image information on the surface of the object 140 to be measured;
内部相机模块730,内部相机模块730配置为第二扫描范围,用于采集被测物体140反射的基于重建图案的精细影像信息;第二扫描范围小于第一扫描范围;The internal camera module 730, the internal camera module 730 is configured as a second scanning range for collecting fine image information based on the reconstructed pattern reflected by the measured object 140; the second scanning range is smaller than the first scanning range;
处理模块740,用于对粗略影像信息和精细影像信息进行处理,以获取被测物体完整的三维数据。The processing module 740 is configured to process the rough image information and the fine image information to obtain complete three-dimensional data of the measured object.
在一实施例中,投射装置710包括第二波段的投射器,通过投射装置710向被测物体投射重建图案包括:In an embodiment, the projection device 710 includes a projector of the second waveband, and the projection of the reconstructed pattern to the measured object through the projection device 710 includes:
通过投射器向被测物体投射第二波段的重建图案,以使内部相机模块730同步采集被测物体的调制重建图案。The second waveband reconstruction pattern is projected to the measured object through the projector, so that the internal camera module 730 synchronously collects the modulation reconstruction pattern of the measured object.
在一实施例中,外部相机模块720包括多个外部相机,内部相机模块730包括至少一个内部相机;外部相机模块720还包括第一波段的第一照明件和第一滤光片,第一照明件环形设置在每一外部相机周围,第一滤光片设置于外部相机前端,用于保留第一波段的入射光滤除其他波段的入射光;内部相机模块730包括第二波段的第二照明件和第二滤光片,第二滤光片设置于内部相机前端,用于保留第二波段的入射光滤除其他波段的入射光,第一波段与第二波段为不同的波段。通过外部相机模块720采集被测物体的粗略影像信息包括:In an embodiment, the external camera module 720 includes a plurality of external cameras, and the internal camera module 730 includes at least one internal camera; the external camera module 720 also includes a first lighting element and a first filter in the first wavelength band, and the first lighting A ring is arranged around each external camera. The first filter is arranged at the front end of the external camera to retain the incident light of the first waveband and filter out the incident light of other wavebands; the internal camera module 730 includes the second illumination of the second waveband The second filter is arranged at the front end of the internal camera and is used to retain the incident light of the second waveband and filter out the incident light of other wavebands. The first waveband and the second waveband are different wavebands. The rough image information of the measured object collected by the external camera module 720 includes:
通过第一照明件投射第一波段的光以照亮被测物体表面的标志点,以使外部相机模组采集被测物体的标志点。The first illuminating element projects the first waveband light to illuminate the mark points on the surface of the measured object, so that the external camera module collects the mark points of the measured object.
在一实施例中,通过处理模块740获取被测物体的粗略影像信息以及精细影像信息,并对粗略影像信息和精细影像信息进行处理,以获取被测物体140完整的三维数据包括:In one embodiment, obtaining the coarse image information and fine image information of the measured object through the processing module 740, and processing the coarse image information and fine image information to obtain the complete three-dimensional data of the measured object 140 includes:
获取粗略影像信息,基于粗略影像信息确定第一标志点三维数据,对第一标志点三维数据进行拼接,以得到第一转换矩阵;Acquiring rough image information, determining the first mark point three-dimensional data based on the rough image information, and stitching the first mark point three-dimensional data to obtain a first conversion matrix;
获取精细影像信息,基于精细影像信息确定第二点云数据,并根据第一转换矩阵对第二点云数据进行拼接,以获取被测物体完整的三维数据。Obtain fine image information, determine the second point cloud data based on the fine image information, and stitch the second point cloud data according to the first conversion matrix to obtain complete three-dimensional data of the measured object.
在一实施例中,投射模块710包括第一波段的第一投射器和第二波段的第二投射器,三维扫描装置还包括第一波段的第一照明件以及第二波段的第二照明件;通过外部相机模块720采集被测物体的粗略影像信息以及通过内部相机模块730采集被测物体的精细影像信息包括:In an embodiment, the projection module 710 includes a first projector in the first waveband and a second projector in the second waveband, and the three-dimensional scanning device further includes a first illuminator in the first waveband and a second illuminator in the second waveband. ; Collecting rough image information of the measured object through the external camera module 720 and collecting fine image information of the measured object through the internal camera module 730 includes:
控制第一投射器向被测物体投射第一波段的重建图案,并同步控制第一照明件投射第一波段的光以照亮被测物体表面的标志点,以使外部相机模块720采集被测物体的第一波段的标志点和调制重建图案;Control the first projector to project the reconstructed pattern of the first waveband to the measured object, and synchronously control the first illuminator to project the first waveband of light to illuminate the mark points on the surface of the measured object, so that the external camera module 720 can collect the measured object The mark point and modulation reconstruction pattern of the first band of the object;
控制第二投射器向被测物体投射第二波段的重建图案,并同步控制第二照明件投射第二波段的光以照亮被测物体表面的标志点,以使内部相机模块730采集被测物体的第二波段的标志点和调制重建图案。Control the second projector to project the reconstructed pattern of the second wave band to the measured object, and synchronously control the second illuminator to project the second wave band of light to illuminate the mark points on the surface of the measured object, so that the internal camera module 730 can collect the measured object. The marker point and modulation reconstruction pattern of the second band of the object.
在一实施例中,投射模块710包括第一波段的第一投射器和第二波段的第二投射器,三维扫描装置包括第一照明件和第二照明件;通过外部相机模块720采集被测物体的粗略影像信息以及通过内部相机模块730采集被测物体的精细影像信息包括:In an embodiment, the projection module 710 includes a first projector in the first waveband and a second projector in the second waveband, and the three-dimensional scanning device includes a first illuminator and a second illuminator; the external camera module 720 collects the measured The rough image information of the object and the fine image information of the measured object collected by the internal camera module 730 include:
控制第一投射器在第一时间向被测物体投射第一波段的重建图案,并同步控制外部相机模块720采集被测物体第一波段的标志点和调制重建图案;Control the first projector to project the reconstruction pattern of the first waveband to the measured object at the first time, and synchronously control the external camera module 720 to collect the mark points and modulation reconstruction pattern of the first waveband of the measured object;
控制第二投射器在第二时间向被测物体投射第二波段的重建图案,并同步控制内部相机模块730采集被测物体第二波段的标志点和调制重建图案。The second projector is controlled to project the reconstructed pattern of the second waveband to the measured object at the second time, and the internal camera module 730 is synchronously controlled to collect the landmark points and the modulation reconstruction pattern of the second waveband of the measured object.
在一实施例中,通过处理模块740获取被测物体的粗略影像信息以及精细影像信息,并对粗略影像信息和精细影像信息进行处理,以获取被测物体完整的三维数据包括:In one embodiment, obtaining the coarse image information and fine image information of the measured object through the processing module 740, and processing the coarse image information and fine image information to obtain the complete three-dimensional data of the measured object includes:
获取被测物体第一波段的标志点和调制重建图案,以及被测物体在第二波段的标志点和调制重建图案;Obtain the mark points and modulation reconstruction patterns of the measured object in the first waveband, and the mark points and modulation reconstruction patterns of the measured object in the second waveband;
基于第一波段的标志点和调制重建图案确定第一标志点三维数据和第一点云数据,基于第二波段的标志点和调制重建图案确定第二标志点三维数据和第二点云数据;Determine the three-dimensional data of the first mark point and the first point cloud data based on the mark point of the first waveband and the modulation reconstruction pattern, and determine the three-dimensional data of the second mark point and the second point cloud data based on the mark point and the modulation reconstruction pattern of the second waveband;
将第一标志点三维数据和第二标志点三维数据进行拼接,以得到第二转换矩阵;Splicing the three-dimensional data of the first mark point and the three-dimensional data of the second mark point to obtain a second conversion matrix;
根据第一转换矩阵拼接第一点云数据,根据第二转换矩阵拼接第一点云数据和第二点云数据,以得到被测物体完整的第一三维数据。The first point cloud data is spliced according to the first conversion matrix, and the first point cloud data and the second point cloud data are spliced according to the second conversion matrix to obtain the complete first three-dimensional data of the measured object.
计算第一点云数据及第二点云数据的曲率,并根据曲率大小保留第一点云数据或第二点云数据,以得到被测物体完整的第二三维数据。Calculate the curvature of the first point cloud data and the second point cloud data, and retain the first point cloud data or the second point cloud data according to the curvature to obtain the complete second three-dimensional data of the measured object.
对于第一点云数据和第二点云数据可根据曲率选择保留第一点云数据还是第二点云数据,从而实现数据的自适应保特征细节。具体地,计算第一点云数据和第二点云数据的曲率,并根据曲率大小保留第一点云数据或第二点云数据,三角网格化后,曲率大的点云数据三角面片多,曲率小的点云数据三角面片少,在保证数据细节的同时可以得到高保真高细节的数据质量。For the first point cloud data and the second point cloud data, whether to retain the first point cloud data or the second point cloud data can be selected according to the curvature, so as to realize the self-adaptive feature preservation of the data. Specifically, the curvatures of the first point cloud data and the second point cloud data are calculated, and the first point cloud data or the second point cloud data is retained according to the magnitude of the curvature. After triangular meshing, the point cloud data with a large curvature is a triangular patch The point cloud data with more and less curvature has fewer triangles, which can obtain high-fidelity and high-detail data quality while ensuring data details.
关于三维扫描装置的具体限定可以参见上文中对于三维扫描方法的限定,在此不再赘述。上述三维扫描装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the three-dimensional scanning device, please refer to the above-mentioned definition of the three-dimensional scanning method, which will not be repeated here. Each module in the above-mentioned three-dimensional scanning device may be implemented in whole or in part by software, hardware, and a combination thereof. The foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理 器执行时以实现一种三维扫描方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 8. The computer equipment includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program is executed by the processor to realize a three-dimensional scanning method. The display screen of the computer device can be a liquid crystal display or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or it can be a button, trackball or touchpad set on the computer device shell , It can also be an external keyboard, touchpad, or mouse.
本领域技术人员可以理解,图8中示出的结构,仅仅是与本公开方案相关的部分结构的框图,并不构成对本公开方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 8 is only a block diagram of a part of the structure related to the solution of the present disclosure, and does not constitute a limitation on the computer device to which the solution of the present disclosure is applied. The specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory and a processor, and a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:
向被测物体140投射重建图案;Project the reconstructed pattern to the measured object 140;
采集被测物体140表面的粗略影像信息;Collect rough image information on the surface of the measured object 140;
采集被测物体140反射的基于重建图案的精细影像信息;Collect fine image information based on the reconstructed pattern reflected by the measured object 140;
获取被测物体140的粗略影像信息以及精细影像信息,并对粗略影像信息和精细影像信息进行处理,以获取被测物体140完整的三维数据。The coarse image information and the fine image information of the measured object 140 are acquired, and the coarse image information and the fine image information are processed to obtain complete three-dimensional data of the measured object 140.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
向被测物体140投射重建图案;Project the reconstructed pattern to the measured object 140;
采集被测物体140表面的粗略影像信息;Collect rough image information on the surface of the measured object 140;
采集被测物体140反射的基于重建图案的精细影像信息;Collect fine image information based on the reconstructed pattern reflected by the measured object 140;
获取被测物体140的粗略影像信息以及精细影像信息,并对粗略影像信息和精细影像信息进行处理,以获取被测物体140完整的三维数据。The coarse image information and the fine image information of the measured object 140 are acquired, and the coarse image information and the fine image information are processed to obtain complete three-dimensional data of the measured object 140.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本公开所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by a computer program instructing relevant hardware, and the computer program can be stored in a non-volatile computer readable storage medium. When the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the various embodiments provided in the present disclosure may include non-volatile and/or volatile memory. Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, they should It is considered as the range described in this specification.
以上实施例仅表达了本公开的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本公开构思的前提下,还可以做出若干变形和改进,这些都属于本公开的保护范围。因此,本公开专利的保护范围应以所附权利要求为准。The above embodiments only express several implementation manners of the present disclosure, and the description is relatively specific and detailed, but it should not be understood as a limitation on the scope of the invention patent. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of the present disclosure, several modifications and improvements can be made, and these all fall within the protection scope of the present disclosure. Therefore, the protection scope of the patent of the present disclosure should be subject to the appended claims.

Claims (26)

  1. 一种三维扫描方法,其特征在于,所述方法包括:A three-dimensional scanning method, characterized in that the method includes:
    向被测物体投射重建图案;Project the reconstructed pattern to the measured object;
    采集所述被测物体表面的粗略影像信息;Collecting rough image information of the surface of the measured object;
    采集所述被测物体反射的基于所述重建图案的精细影像信息;Collecting fine image information reflected by the measured object based on the reconstructed pattern;
    获取所述被测物体的粗略影像信息以及所述精细影像信息,并对所述粗略影像信息和所述精细影像信息进行处理,以获取所述被测物体的完整三维数据。The coarse image information and the fine image information of the measured object are acquired, and the coarse image information and the fine image information are processed to obtain complete three-dimensional data of the measured object.
  2. 根据权利要求1所述的方法,其特征在于,所述对所述粗略影像信息和所述精细影像信息进行处理包括:The method according to claim 1, wherein said processing said coarse image information and said fine image information comprises:
    基于所述粗略影像信息获取第一标志点三维数据,基于所述精细影像信息获取第二点云数据,基于所述第一标志点三维数据拼接所述第二点云数据。Obtaining first mark point three-dimensional data based on the rough image information, acquiring second point cloud data based on the fine image information, and stitching the second point cloud data based on the first mark point three-dimensional data.
  3. 根据权利要求1所述的方法,其特征在于,所述对所述粗略影像信息和所述精细影像信息进行处理包括:The method according to claim 1, wherein said processing said coarse image information and said fine image information comprises:
    基于所述粗略影像信息获取第一标志点三维数据,基于所述精细影像信息获取第二标志点三维数据和第二点云数据,基于所述第一标志点三维数据及所述第二标志点三维数据拼接所述第二点云数据。Acquire 3D data of a first mark point based on the rough image information, acquire 3D data of a second mark point and second point cloud data based on the fine image information, and obtain 3D data of a first mark point and the second mark point The three-dimensional data is spliced with the second point cloud data.
  4. 根据权利要求1所述的方法,其特征在于,所述对所述粗略影像信息和所述精细影像信息进行处理包括:The method according to claim 1, wherein said processing said coarse image information and said fine image information comprises:
    基于所述粗略影像信息获取第一标志点三维数据和第一点云数据,基于所述精细影像信息获取第二点云数据,基于所述第一标志点三维数据拼接所述第一点云数据和所述第二点云数据。Acquire first point cloud data and first point cloud data based on the rough image information, acquire second point cloud data based on the fine image information, and stitch the first point cloud data based on the first three-dimensional data of the landmark points And the second point cloud data.
  5. 根据权利要求1所述的方法,其特征在于,所述对所述粗略影像信息和所述精细影像信息进行处理包括:The method according to claim 1, wherein said processing said coarse image information and said fine image information comprises:
    基于所述粗略影像信息获取第一标志点三维数据和第一点云数据,基于所述精细影像信息获取第二标志点三维数据和第二点云数据,基于所述第一标志点三维数据拼接所述第一点云数据,基于所述第一标志点三维数据和所述第二标志点三维数据拼接所述第二点云数据。Acquire first mark point three-dimensional data and first point cloud data based on the rough image information, acquire second mark point three-dimensional data and second point cloud data based on the fine image information, and stitch based on the first mark point three-dimensional data For the first point cloud data, the second point cloud data is spliced based on the three-dimensional data of the first mark point and the three-dimensional data of the second mark point.
  6. 根据权利要求4或5所述的方法,其特征在于,所述对所述粗略影像信息和所述精细影像信息进行处理还包括:The method according to claim 4 or 5, wherein the processing the coarse image information and the fine image information further comprises:
    确定第一点云数据和第二点云数据中点的曲率,根据曲率保留第一点云数据和第二点云数据中的一者。The curvature of the points in the first point cloud data and the second point cloud data is determined, and one of the first point cloud data and the second point cloud data is retained according to the curvature.
  7. 根据权利要求1或2所述的方法,其特征在于,所述采集所述被测物体表面的粗略影像信息,以及采集所述被测物体反射的基于所述重建图案的精细影像信息包括:The method according to claim 1 or 2, wherein the collecting rough image information of the surface of the measured object and collecting the fine image information reflected by the measured object based on the reconstructed pattern comprises:
    向所述被测物体投射第二波段的重建图案,并投射第一波段的光以照亮所述被测物体表面的标志点,以同步采集所述被测物体的标志点和调制重建图案。Projecting the reconstructed pattern of the second waveband to the measured object, and projecting the light of the first waveband to illuminate the mark points on the surface of the measured object, so as to synchronously collect the mark points of the measured object and modulate the reconstructed pattern.
  8. 根据权利要求1或5所述的方法,其特征在于,所述采集所述被测物体反射的粗略影像信息以及采集所述被测物体反射的基于所述重建图案的精细影像信息包括:The method according to claim 1 or 5, wherein the collecting rough image information reflected by the measured object and collecting fine image information reflected by the measured object based on the reconstructed pattern comprises:
    向所述被测物体投射第一波段的重建图案和第二波段的重建图案,并投射第一波段的光和第二波段的光以照亮被测物体表面的标志点,以同步采集所述被测物体的第一波段的标志点和调制重建图案,以及所述被测物体的第二波段的标志点和调制重建图案。Project the reconstructed pattern of the first waveband and the reconstructed pattern of the second waveband to the measured object, and project the light of the first waveband and the light of the second waveband to illuminate the mark points on the surface of the measured object, so as to collect the The mark point and modulation reconstruction pattern of the first waveband of the measured object, and the mark point and modulation reconstruction pattern of the second waveband of the measured object.
  9. 根据权利要求1或5所述的方法,其特征在于,所述采集所述被测物体反射的粗略影像信息以及采集所述被测物体反射的基于所述重建图案的精细影像信息包括:The method according to claim 1 or 5, wherein the collecting rough image information reflected by the measured object and collecting fine image information reflected by the measured object based on the reconstructed pattern comprises:
    在第一时间周期向所述被测物体投射第一波段的光和第一波段的重建图案,并采集所述被测物体第一波段的标志点和调制重建图案;Projecting the light of the first waveband and the reconstruction pattern of the first waveband to the measured object in the first time period, and collecting the mark points and the modulation reconstruction pattern of the first waveband of the measured object;
    在第二时间周期向所述被测物体投射第二波段的光和第二波段的重建图案,并采集所述被测物体第二波段的标志点和调制重建图案。Projecting the second waveband light and the reconstruction pattern of the second waveband to the measured object in the second time period, and collecting the mark points and modulation reconstruction pattern of the second waveband of the measured object.
  10. 根据权利要求1或3所述的方法,其特征在于,所述采集所述被测物体反射的粗略影像信息以及采集所述被测物体反射的基于所述重建图案的精细影像信息包括:The method according to claim 1 or 3, wherein the collecting rough image information reflected by the measured object and collecting fine image information reflected by the measured object based on the reconstructed pattern comprises:
    分别在第一时间周期和第二时间周期向所述被测物体投射光以照亮被测物体表面的标志点;并在第二时间周期向被测物体投射重建图案;以在第一时间周期采集所述被测物体的标志点;在第二时间周期采集 所述被测物体的标志点和调制重建图案。Projecting light to the measured object in the first time period and the second time period respectively to illuminate the mark points on the surface of the measured object; and projecting the reconstructed pattern on the measured object in the second time period; in the first time period Collect the mark points of the measured object; collect the mark points and the modulation reconstruction pattern of the measured object in a second time period.
  11. 根据权利要求1或3所述的方法,其特征在于,所述采集所述被测物体反射的粗略影像信息以及采集所述被测物体反射的基于所述重建图案的精细影像信息包括:The method according to claim 1 or 3, wherein the collecting rough image information reflected by the measured object and collecting fine image information reflected by the measured object based on the reconstructed pattern comprises:
    向被测物体投射第一波段的光照亮被测物体表面的标志点,以采集所述被测物体第一波段的标志点;Projecting the first waveband light to the measured object to illuminate the mark points on the surface of the measured object to collect the mark points of the first waveband of the measured object;
    同步向被测物体投射第二波段的光和第二波段的重建图案,以采集所述被测物体第二波段的标志点和调制重建图案。Simultaneously project the second waveband light and the second waveband reconstruction pattern to the measured object to collect the second waveband mark points and modulate the reconstruction pattern of the measured object.
  12. 根据权利要求1或4所述的方法,其特征在于,所述采集所述被测物体反射的粗略影像信息以及采集所述被测物体反射的基于所述重建图案的精细影像信息包括:The method according to claim 1 or 4, wherein the collecting rough image information reflected by the measured object and collecting fine image information reflected by the measured object based on the reconstructed pattern comprises:
    向被测物体投射第一波段的光和第一波段的重建图案,以采集所述被测物体第一波段的标志点和第一波段的调制重建图案;Projecting the first waveband light and the first waveband reconstruction pattern to the measured object to collect the first waveband mark points and the first waveband modulation reconstruction pattern of the measured object;
    同步向被测物体投射第二波段的重建图案,以采集所述被测物体第二波段的调制重建图案。The second waveband reconstruction pattern is simultaneously projected to the measured object to collect the second waveband modulation reconstruction pattern of the measured object.
  13. 一种扫描仪,其特征在于,所述扫描仪包括扫描仪本体,所述扫描仪本体包括:A scanner, characterized in that the scanner includes a scanner body, and the scanner body includes:
    投射装置,用于向被测物体投射重建图案;Projection device, used to project the reconstructed pattern to the measured object;
    内部相机模组,所述内部相机模组配置为第二扫描范围,用于采集所述被测物体反射的基于所述重建图案的精细影像信息;An internal camera module, the internal camera module is configured as a second scanning range for collecting fine image information based on the reconstructed pattern reflected by the measured object;
    外部相机模组,所述外部相机模组配置为第一扫描范围,用于采集所述被测物体表面的粗略影像信息,以根据所述粗略影像信息和所述精细影像信息得到所述被测物体完整的三维数据;所述第二扫描范围小于所述第一扫描范围。An external camera module, the external camera module is configured as a first scanning range, and is used to collect rough image information of the surface of the measured object, so as to obtain the measured object according to the rough image information and the fine image information Complete three-dimensional data of the object; the second scanning range is smaller than the first scanning range.
  14. 根据权利要求13所述的扫描仪,其特征在于,所述扫描仪本体包括壳体,所述投射装置、内部相机模组和外部相机模组安装于所述壳体内,所述扫描仪还包括握持部,所述握持部安装于所述扫描仪本体。The scanner according to claim 13, wherein the scanner body comprises a housing, the projection device, the internal camera module, and the external camera module are installed in the housing, and the scanner further comprises The holding part is installed on the scanner body.
  15. 根据权利要求13或14所述的扫描仪,其特征在于,The scanner according to claim 13 or 14, wherein:
    所述外部相机模组还包括第一波段的第一照明件和第一滤光片,所述第一照明件环形设置在每一所述外部相机周围,用于投射第一波段的光以照亮被测物体表面的标志点;所述第一滤光片设置于所述外部相机前端,用于保留第一波段的入射光滤除其他波段的入射光;所述外部相机模组用于采集所述被测物体第一波段的标志点;The external camera module further includes a first illuminating element in a first wavelength band and a first filter, the first illuminating element is annularly arranged around each of the external cameras, and is used to project light in the first wavelength band to illuminate Brighten the marking points on the surface of the object to be measured; the first filter is arranged at the front end of the external camera, and is used to retain the incident light in the first waveband and filter out incident light in other wavebands; the external camera module is used to collect The mark point of the first waveband of the measured object;
    所述内部相机模组包括第二波段的第二滤光片,所述第二滤光片设置于所述内部相机前端,用于保留第二波段的入射光滤除其他波段的入射光,所述第一波段与所述第二波段为不同的波段;The internal camera module includes a second filter of a second wavelength band, and the second filter is disposed at the front end of the internal camera for retaining incident light in the second wavelength band and filtering out incident light in other wavelength bands. The first waveband and the second waveband are different wavebands;
    所述投射装置包括投射器,所述投射器用于向所述被测物体投射第二波段的重建图案,以使所述内部相机模组同步采集所述被测物体在第二波段的调制重建图案。The projection device includes a projector for projecting the reconstruction pattern of the second waveband to the measured object, so that the internal camera module synchronously collects the modulation reconstruction pattern of the measured object in the second waveband .
  16. 根据权利要求13或14所述的扫描仪,其特征在于,所述投射装置包括第一投射器和第二投射器,所述第一投射器用于投射第一波段的重建图案,所述第二投射器用于投射第二波段的重建图案,所述外部相机模组还包括第一波段的第一照明件和第一滤光片,所述第一照明件环形设置在每一所述外部相机周围,用于投射第一波段的光以照亮被测物体表面的标志点,所述第一滤光片设置于所述外部相机前端,用于保留第一波段的入射光滤除其他波段的入射光;The scanner according to claim 13 or 14, wherein the projection device comprises a first projector and a second projector, the first projector is used to project a reconstruction pattern in the first waveband, and the second projector The projector is used to project the reconstructed pattern of the second waveband, the external camera module further includes a first illuminating element and a first filter in the first waveband, and the first illuminating element is annularly arranged around each of the external cameras , Used to project light of the first wavelength band to illuminate the mark points on the surface of the object to be measured, and the first filter is arranged at the front end of the external camera to retain the incident light of the first wavelength band and filter the incident light of other wavelength bands Light;
    所述内部相机模组还包括第二波段的第二照明件和第二滤光片,所述第二照明件环形设置在所述内部相机周围,用于投射第二波段的光以照亮被测物体表面的标志点,所述第二滤光片设置于所述外部相机前端,用于保留第二波段的入射光滤除其他波段的入射光;The internal camera module further includes a second illuminating element in a second wavelength band and a second filter, and the second illuminating element is annularly arranged around the internal camera for projecting light in the second wavelength band to illuminate the Measuring the mark points on the surface of the object, the second filter is arranged at the front end of the external camera, and is used to retain the incident light of the second waveband and filter the incident light of other wavebands;
    所述外部相机模组用于采集所述被测物体第一波段的标志点和调制重建图案;The external camera module is used to collect the marker points and modulation reconstruction patterns of the first waveband of the measured object;
    所述内部相机模组用于采集所述被测物体第二波段的标志点和调制重建图案。The internal camera module is used to collect the marker points and modulation reconstruction patterns of the second waveband of the measured object.
  17. 根据权利要求13或14所述的扫描仪,其特征在于,所述投射装置包括双频投射器,所述双频投射器用于在第一时间周期投射第一波段的重建图案,在第二时间周期投射第二波段的重建图案;所述扫描仪本体还包括第一照明件和第二照明件,所述第一照明件环形设置在每一所述外部相机周围,所述第二照明件环形设置在所述内部相机周围,用于照亮被测物体表面的标志点;The scanner according to claim 13 or 14, wherein the projection device comprises a dual-frequency projector, and the dual-frequency projector is used to project the reconstruction pattern of the first waveband in the first time period, and in the second time period. Periodically project the reconstruction pattern of the second waveband; the scanner body further includes a first illuminating element and a second illuminating element, the first illuminating element is annularly arranged around each of the external cameras, and the second illuminating element is annular Set around the internal camera to illuminate the mark points on the surface of the object to be measured;
    所述外部相机模组用于在第一时间周期采集所述被测物体的标志点和调制重建图案;The external camera module is used to collect the mark points and the modulation reconstruction pattern of the measured object in a first time period;
    所述内部相机模组用于在第二时间周期采集所述被测物体的标志点和调制重建图案。The internal camera module is used to collect the mark points and the modulation reconstruction pattern of the measured object in the second time period.
  18. 根据权利要求13或14所述的扫描仪,其特征在于,所述投射装置包括第一投射器和第二投射器,所述第一投射器用于在第一时间周期向所述被测物体投射第一波段的重建图案,所述第二投射器在第二时间周期向所述被测物体投射第二波段的重建图案;所述扫描仪本体还包括第一照明件和第二照明件,所述第一照明件环形设置在每一所述外部相机周围,所述第二照明件环形设置在所述内部相机周围,用于照亮被测物体表面的标志点;The scanner according to claim 13 or 14, wherein the projection device comprises a first projector and a second projector, and the first projector is used to project the object under test in a first time period The reconstructed pattern of the first waveband, the second projector projects the reconstructed pattern of the second waveband to the measured object in the second time period; the scanner body further includes a first illuminating element and a second illuminating element, so The first illuminating element is annularly arranged around each of the external cameras, and the second illuminating element is annularly arranged around the internal camera for illuminating the mark points on the surface of the object to be measured;
    所述外部相机模组用于在第一时间周期采集所述被测物体的标志点和调制重建图案;The external camera module is used to collect the mark points and the modulation reconstruction pattern of the measured object in a first time period;
    所述内部相机模组用于在第二时间周期采集所述被测物体的标志点和调制重建图案。The internal camera module is used to collect the mark points and the modulation reconstruction pattern of the measured object in the second time period.
  19. 根据权利要求13或14所述的扫描仪,其特征在于,所述投射装置包括投射器,所述投射器用于在第二时间周期向被测物体投射重建图案;所述三维扫描系统还包括第一照明件和第二照明件,所述第一照明件环形设置在每一所述外部相机周围,用于在第一时间周期向所述被测物体投射光以照亮被测物体表面的标志点;所述第二照明件环形设置在所述内部相机周围,用于在第二时间周期向所述被测物体投射光以照亮被测物体表面的标志点;The scanner according to claim 13 or 14, wherein the projection device comprises a projector, and the projector is used to project the reconstructed pattern on the object under test in the second time period; the three-dimensional scanning system further comprises a An illuminating part and a second illuminating part, the first illuminating part is annularly arranged around each of the external cameras, and is used for projecting light to the measured object in a first time period to illuminate the mark on the surface of the measured object Point; the second illuminating element is annularly arranged around the internal camera, and is used to project light to the measured object in a second time period to illuminate the mark point on the surface of the measured object;
    所述外部相机模组用于在第一时间周期采集所述被测物体的标志点;The external camera module is used to collect the mark points of the measured object in a first time period;
    所述内部相机模组用于在第二时间周期采集所述被测物体的标志点和调制重建图案。The internal camera module is used to collect the mark points and the modulation reconstruction pattern of the measured object in the second time period.
  20. 根据权利要求13或14所述的扫描仪,其特征在于,所述外部相机模组包括第一波段的第一照明件和第一滤光片;所述第一照明件环形设置在每一所述外部相机周围,用于照亮被测物体表面的标志点;所述第一滤光片设置于所述外部相机前端,用于保留第一波段的入射光滤除其他波段的入射光;所述内部相机模组包括第二波段的第二照明件;所述投射装置包括第二投射器,所述第二投射器用于向被测物体投射第二波段的重建图案;The scanner according to claim 13 or 14, wherein the external camera module includes a first illuminating element and a first filter in the first wavelength band; the first illuminating element is annularly arranged at each The periphery of the external camera is used to illuminate the mark points on the surface of the object to be measured; the first filter is arranged at the front end of the external camera and is used to retain the incident light of the first waveband and filter out the incident light of other wavebands; The internal camera module includes a second illuminator in a second waveband; the projection device includes a second projector, and the second projector is used to project a reconstructed pattern in the second waveband to an object under test;
    所述外部相机模组用于采集所述被测物体第一波段的标志点;The external camera module is used to collect the landmark points of the first waveband of the measured object;
    所述内部相机模组用于同步采集所述被测物体第二波段的标志点和调制重建图案。The internal camera module is used to synchronously collect the marker points and the modulation reconstruction pattern of the second waveband of the measured object.
  21. 根据权利要求13或14所述的扫描仪,其特征在于,所述外部相机模组包括第一波段的第一照明件和第一滤光片;所述第一照明件环形设置在每一所述外部相机周围,用于照亮被测物体表面的标志点;所述第一滤光片设置于所述外部相机前端,用于保留第一波段的入射光滤除其他波段的入射光;所述投射装置包括第一投射器和第二投射器,所述第一投射器用于向被测物体投射第一波段的重建图案;所述第二投射器用于向被测物体投射第二波段的重建图案;The scanner according to claim 13 or 14, wherein the external camera module includes a first illuminating element and a first filter in the first wavelength band; the first illuminating element is annularly arranged at each The periphery of the external camera is used to illuminate the mark points on the surface of the object to be measured; the first filter is arranged at the front end of the external camera, and is used to retain the incident light of the first waveband and filter the incident light of other wavebands; The projection device includes a first projector and a second projector. The first projector is used to project a reconstruction pattern of the first waveband to the measured object; the second projector is used to project a reconstruction of the second waveband to the measured object pattern;
    所述外部相机模组用于采集所述被测物体第一波段的标志点和第一波段的调制重建图案;The external camera module is used to collect the marker points of the first waveband and the modulation reconstruction pattern of the first waveband of the measured object;
    所述内部相机模组用于同步采集所述被测物体第二波段的调制重建图案。The internal camera module is used for synchronously acquiring the modulation reconstruction pattern of the second waveband of the measured object.
  22. 根据权利要求13或14所述的扫描仪,其特征在于,所述外部相机模组包括第一相机和第二相机,所述内部相机模组包括第三相机;所述第三相机设置在所述第一相机和第二相机之间;所述投射装置设置在所述第三相机和所述第一相机之间,或设置在所述第三相机和所述第二相机之间。The scanner according to claim 13 or 14, wherein the external camera module includes a first camera and a second camera, and the internal camera module includes a third camera; the third camera is arranged at the Between the first camera and the second camera; the projection device is arranged between the third camera and the first camera, or between the third camera and the second camera.
  23. 根据权利要求13或14所述的扫描仪,其特征在于,所述外部相机模组包括第一相机和第二相机,所述内部相机模组包括第三相机和第四相机;所述第三相机和第四相机均位于所述第一相机和第二相机之间,所述投射装置设置在所述第三相机和第四相机之间。The scanner according to claim 13 or 14, wherein the external camera module includes a first camera and a second camera, and the internal camera module includes a third camera and a fourth camera; the third camera The camera and the fourth camera are both located between the first camera and the second camera, and the projection device is disposed between the third camera and the fourth camera.
  24. 一种三维扫描系统,其特征在于,所述三维扫描系统包括如权利要求13至权利要求23任一所述的扫描仪,所述扫描仪包括扫描仪本体,所述扫描仪本体包括:A three-dimensional scanning system, wherein the three-dimensional scanning system includes the scanner according to any one of claims 13 to 23, the scanner includes a scanner body, and the scanner body includes:
    投射装置,用于向被测物体投射重建图案;Projection device, used to project the reconstructed pattern to the measured object;
    外部相机模组,所述外部相机模组配置为第一扫描范围,所述外部相机模组包括多个外部相机,用于采集所述被测物体反射的粗略影像信息;An external camera module, the external camera module is configured as a first scanning range, and the external camera module includes a plurality of external cameras for collecting rough image information reflected by the measured object;
    内部相机模组,所述内部相机模组配置为第二扫描范围,所述内部相机模组包括至少一个内部相机,用于采集所述被测物体反射的基于所述重建图案的精细影像信息;所述第二扫描范围小于所述第一扫描范围;An internal camera module, the internal camera module is configured as a second scanning range, and the internal camera module includes at least one internal camera for collecting fine image information based on the reconstructed pattern reflected by the measured object; The second scanning range is smaller than the first scanning range;
    所述扫描系统还包括处理装置,分别与所述外部相机模组和内部相机模组连接,用于获取所述被测物体的粗略影像信息以及所述精细影像信息,并对所述粗略影像信息和所述精细影像信息进行处理,以获取所述被测物体完整的三维数据。The scanning system also includes a processing device, which is respectively connected to the external camera module and the internal camera module, and is used to obtain the rough image information and the fine image information of the measured object, and to compare the rough image information Processing with the fine image information to obtain complete three-dimensional data of the measured object.
  25. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理 器执行所述计算机程序时实现权利要求1至9中任一项所述方法的步骤。A computer device, comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of any one of claims 1 to 9 when the computer program is executed.
  26. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至9中任一项所述的方法的步骤。A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the method according to any one of claims 1 to 9 when the computer program is executed by a processor.
PCT/CN2020/098253 2019-06-28 2020-06-24 Three-dimensional scanning method, scanner, three-dimensional scanning system, computer device, and computer-readable storage medium WO2020259625A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201910577941.4A CN112146565B (en) 2019-06-28 2019-06-28 Scanner and three-dimensional scanning system
CN201910577941.4 2019-06-28
CN201910577905.8 2019-06-28
CN201910577905.8A CN112146564B (en) 2019-06-28 2019-06-28 Three-dimensional scanning method, three-dimensional scanning device, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2020259625A1 true WO2020259625A1 (en) 2020-12-30

Family

ID=74059860

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/098253 WO2020259625A1 (en) 2019-06-28 2020-06-24 Three-dimensional scanning method, scanner, three-dimensional scanning system, computer device, and computer-readable storage medium

Country Status (1)

Country Link
WO (1) WO2020259625A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112146564A (en) * 2019-06-28 2020-12-29 先临三维科技股份有限公司 Three-dimensional scanning method, three-dimensional scanning device, computer equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150070468A1 (en) * 2013-09-10 2015-03-12 Faro Technologies, Inc. Use of a three-dimensional imager's point cloud data to set the scale for photogrammetry
CN105547189A (en) * 2015-12-14 2016-05-04 南京航空航天大学 Mutative scale-based high-precision optical three-dimensional measurement method
CN108151671A (en) * 2016-12-05 2018-06-12 杭州先临三维科技股份有限公司 A kind of 3 D digital imaging sensor, 3 D scanning system and its scan method
CN108267097A (en) * 2017-07-17 2018-07-10 杭州先临三维科技股份有限公司 Three-dimensional reconstruction method and device based on binocular three-dimensional scanning system
CN109300189A (en) * 2018-10-26 2019-02-01 五维智能信息科技(北京)有限公司 A kind of object dimensional model building method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150070468A1 (en) * 2013-09-10 2015-03-12 Faro Technologies, Inc. Use of a three-dimensional imager's point cloud data to set the scale for photogrammetry
CN105547189A (en) * 2015-12-14 2016-05-04 南京航空航天大学 Mutative scale-based high-precision optical three-dimensional measurement method
CN108151671A (en) * 2016-12-05 2018-06-12 杭州先临三维科技股份有限公司 A kind of 3 D digital imaging sensor, 3 D scanning system and its scan method
CN108267097A (en) * 2017-07-17 2018-07-10 杭州先临三维科技股份有限公司 Three-dimensional reconstruction method and device based on binocular three-dimensional scanning system
CN109300189A (en) * 2018-10-26 2019-02-01 五维智能信息科技(北京)有限公司 A kind of object dimensional model building method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112146564A (en) * 2019-06-28 2020-12-29 先临三维科技股份有限公司 Three-dimensional scanning method, three-dimensional scanning device, computer equipment and computer readable storage medium
CN112146564B (en) * 2019-06-28 2022-04-15 先临三维科技股份有限公司 Three-dimensional scanning method, three-dimensional scanning device, computer equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
US7200262B2 (en) 3-dimensional image processing method, 3-dimensional image processing device, and 3-dimensional image processing system
WO2020038277A1 (en) Image acquisition and processing methods and apparatuses for three-dimensional scanning, and three-dimensional scanning device
JP6364777B2 (en) Image data acquisition system and image data acquisition method
US10796428B2 (en) Inspection system and inspection method
JP6942876B2 (en) Information processing equipment, information processing methods and programs
CN112146565B (en) Scanner and three-dimensional scanning system
EP2508871A1 (en) Inspection apparatus, measurement method for three-dimensional shape, and production method for structure
US11295434B2 (en) Image inspection system and image inspection method
US10712203B2 (en) Color calibration device, color calibration system, color calibration hologram, color calibration method, and program
WO2022179623A1 (en) Handheld scanner and scanning method thereof
TW201337211A (en) Shape reflector and surface contour mapping
JP2016100698A (en) Calibration device, calibration method, and program
WO2020259625A1 (en) Three-dimensional scanning method, scanner, three-dimensional scanning system, computer device, and computer-readable storage medium
CN102944928B (en) A kind of three-dimensional endoscope and three-dimensional rebuilding method thereof
CN113483892A (en) Multispectral image measuring system and method
US20200322525A1 (en) Image Inspection System And Image Inspection Method
JP6776004B2 (en) Image processing equipment, image processing methods and programs
JP4756148B2 (en) Gloss / color reproduction system, gloss / color reproduction program
JP2008128771A (en) Apparatus and method for simultaneously acquiring spectroscopic information and shape information
CN112146564B (en) Three-dimensional scanning method, three-dimensional scanning device, computer equipment and computer readable storage medium
KR101555027B1 (en) Appapatus for three-dimensional shape measurment and method the same
JP2020536221A (en) Equipment and methods for determining surface topology and associated colors
RU2452992C1 (en) Stereoscopic measuring system and method
JP2008211418A (en) Multi-band image capturing method
JP6758837B2 (en) Equipment, methods and programs for acquiring a two-dimensional distribution of gloss mapping

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20831149

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20831149

Country of ref document: EP

Kind code of ref document: A1