A TOF camera calibration device, calibration equipment and calibration method
By using annular guide rails and multiple calibration plates in the TOF camera calibration device, multiple TOF cameras can work simultaneously or alternately, solving the problems of low calibration efficiency and accuracy in the existing technology, and improving the efficiency and accuracy of calibration. , reducing the number of movements of the calibration plate.
Patent Information
- Application Number
- CN201910817407.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-30
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2039-08-30
AI Technical Summary
The existing TOF camera calibration device has low calibration efficiency and accuracy, and needs to continuously move the calibration plate for multiple calibrations, which is inefficient and the results are not accurate enough.
A calibration device for TOF cameras is designed, which uses a circular guide rail and multiple calibration plates. The controller sends timing control signals to make the TOF camera move along the guide rail, allowing multiple TOF cameras to work simultaneously or alternately, and measure their relationship with different calibration plates. distance value to avoid moving the calibration plate and improve calibration efficiency and accuracy.
It greatly improves the calibration efficiency and accuracy of TOF cameras, solves the problem of multi-machine interference, and ensures the stability and accuracy of calibration results.
Smart Images

Figure CN110458900B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of cameras, and in particular relates to a calibration device, a calibration equipment and a calibration method for a TOF camera. Background Art
[0002] TOF (Time-of-Flight) is a technology that uses the constant propagation speed of light in the air to measure the flight time of light to achieve accurate distance measurement. A TOF camera is a camera device that converts the distance of the photographed object by calculating the time difference or phase difference between the emission and reflection of light to generate depth information. Moreover, since TOF cameras can simultaneously obtain grayscale images and distance images, they have gradually been applied to system fields such as gesture control, 3D modeling, automotive radar, and robot vision. However, due to the existence of systematic errors and random errors, the measurement results and measurement accuracy of TOF cameras will be affected by many factors such as the internal and external environment of the camera system, that is, there will be measurement errors. Therefore. In order to obtain more accurate distance information, it is usually necessary to calibrate the depth value of the TOF camera. However, the existing calibration device can only calibrate one TOF camera at a time, and it is necessary to continuously move the calibration plate to different distances for multiple calibrations. Its calibration efficiency is low, and the calibration results are not accurate enough. Summary of the invention
[0003] The purpose of the present invention is to overcome the above-mentioned deficiencies of the prior art and provide a calibration device for a TOF camera, which aims to solve the problem of low calibration efficiency and accuracy of existing TOF cameras.
[0004] The present invention provides a calibration device for a TOF camera.
[0005] A guide rail, comprising a plurality of support frames arranged at intervals, wherein the support frames are used to support a TOF camera to be calibrated;
[0006] A plurality of calibration plates, wherein the calibration plates are slidably mounted on the vertical support rails, each of the calibration plates comprises at least one calibration surface, and the distances between each calibration surface and the TOF camera corresponding to the calibration surface are different;
[0007] A mechanical arm, operating the TOF camera to be calibrated, and used to place the TOF camera to be calibrated on the support frame or remove it from the support frame;
[0008] A controller is connected to the guide rail and the TOF camera, and is used to send a first set of timing control signals to control the guide rail to carry the TOF camera to move along the guide rail, and to send a second set of timing control signals to the TOF camera to control multiple TOF cameras to work simultaneously or alternately to measure the distance value between the TOF camera and the corresponding calibration plate. Optionally, the calibration device of the TOF camera also includes a fixture assembly provided on the guide rail, the fixture assembly is electrically connected to the guide rail through a wire, and a center slip ring for placing the wire is provided at the center of the guide rail on the mounting partition.
[0009] Optionally, the calibration device of the TOF camera also includes a locking cylinder and an opening cylinder, the locking cylinder is used to tightly lock the TOF camera to be calibrated with the jig assembly to ensure the parallelism of the TOF camera to be calibrated, and the opening cylinder is used to separate the TOF camera to be calibrated from the jig assembly.
[0010] The present invention also provides a TOF camera calibration device, comprising:
[0011] The calibration device of TOF camera as described above;
[0012] A frame, wherein the calibration device of the TOF camera is arranged inside the frame;
[0013] A material stacking device is arranged on one side of the frame and is used for placing the TOF camera.
[0014] Optionally, the rack includes a rack body and a mounting partition, the rack body is divided into an upper rack having an upper mounting cavity and a lower rack having a lower mounting cavity by the mounting partition, the calibration device of the TOF camera is arranged in the upper mounting cavity, the guide rail is fixed on the mounting partition, and the vertical supporting slide rail is installed on the inner wall surface of the upper mounting cavity; the controller is arranged in the lower mounting cavity.
[0015] Optionally, the robotic arm is mounted on the mounting partition and is located between the material stacking device and the guide rail.
[0016] Optionally, the material stacking device includes an incoming material box for placing the TOF cameras to be calibrated, a calibration failure box for placing the TOF cameras that failed calibration, and a calibration completion box for placing the TOF cameras that completed calibration.
[0017] Optionally, the robotic arm is mounted on the mounting partition and is located between the material stacking device and the guide rail.
[0018] The present invention further provides a TOF camera calibration method, wherein the TOF camera calibration method uses the TOF camera calibration device as described above to complete the calibration of the TOF camera, and comprises the following steps:
[0019] S100, taking out the TOF camera to be calibrated from the material stacking device and placing it on a support frame on the guide rail;
[0020] S200, the controller controls the guide rail to carry the TOF camera to move along the guide rail;
[0021] S300, when the TOF camera moves to a preset calibration position, the guide rail stops moving, and the controller controls the TOF camera to work so as to measure a measurement distance value between the TOF camera and a corresponding calibration plate;
[0022] S400, the controller obtains the measured distance value, and calculates and obtains a compensation correction value according to the measured distance value and the actual distance value between the TOF camera and the corresponding calibration plate;
[0023] S500: Compensate the measured distance value according to the compensation correction value to obtain a calibration result value of the TOF camera.
[0024] Optionally, the controller is connected to the guide rail by wire or wirelessly, and the controller sends a first set of timing control signals to the guide rail, the first set of timing control signals is a pulse signal, when the pulse is at a high level, the guide rail carries the TOF camera to rotate in a preset direction, and the TOF camera is in a non-calibrated time period, when the pulse is at a low level, the guide rail stops rotating, the TOF camera is in the calibration time period, and step S300 is performed;
[0025] When the TOF camera is in the calibration time period, the controller sends a second set of timing control signals to the guide rail, and the second set of timing control signals is also a pulse signal. When the pulse is at a high level, the TOF camera is turned on and is in a working state, and when the pulse signal is at a low level, the TOF camera is turned off and is in a non-working state;
[0026] And the voltage state of the second group of timing control signals is opposite to the voltage state of the first group of timing control signals.
[0027] Optionally, the controller performs synchronous control on the TOF cameras, wherein the controller controls all the TOF cameras to be turned on during the calibration time period, and controls all the TOF cameras to be turned off during the non-calibration time period; or,
[0028] During the calibration time period, the controller controls one of the two adjacent TOF cameras to turn on, and during the non-calibration time period, the controller controls all the TOF cameras to turn off.
[0029] Based on this structural design and method design, in the technical solution of the present invention, since multiple TOF cameras are arranged at intervals on the annular guide rail, multiple calibration plates are provided above the guide rail, and the distances between the calibration surfaces of each calibration plate and the TOF cameras corresponding to their positions are different, during calibration, the controller only needs to send a first set of timing control signals to control the guide rail to drive the TOF camera to move along the guide rail, and then the controller sends a second set of timing control signals to control multiple TOF cameras to work simultaneously or alternately to measure the distance values between them and the corresponding calibration plates. In other words, the present invention sets up multiple calibration plates, and then the guide rail carries multiple TOF cameras to move, so that each calibration plate has at least one TOF camera to be calibrated to measure the distance thereof. In this way, compared with the currently common TOF camera calibration method, the calibration device of the TOF camera does not need to move the calibration plate during the calibration process. It only needs to send a first set of timing control signals through the controller to control the guide rail to rotate one circle, so that the TOF camera to be calibrated can measure the distance value between it and different calibration plates, and realize the calibration of multiple TOF cameras, thereby greatly improving the efficiency and accuracy of TOF camera calibration. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1 is a structural schematic diagram of a TOF camera calibration device provided by a first embodiment of the present invention;
[0032] Figure 2 is a structural schematic diagram of a TOF camera calibration device provided by a second embodiment of the present invention;
[0033] Figure 3 is a schematic structural diagram of a TOF camera calibration device provided by a third embodiment of the present invention;
[0034] Figure 4 is a schematic structural diagram of a TOF camera calibration device provided by a fourth embodiment of the present invention;
[0035] Figure 5 is a schematic structural diagram of a calibration device for a TOF camera provided in a fifth embodiment of the present invention;
[0036] Figure 6 is a flow chart of a TOF camera calibration method provided by an embodiment of the present invention;
[0037] Figure 7 is a structural schematic diagram of a TOF camera calibration device including a TOF camera calibration apparatus provided in an embodiment of the present invention;
[0038] Figure 8 is a top view of a TOF camera calibration device provided by an embodiment of the present invention;
[0039] Fig. 9 It is a flow chart of a TOF camera calibration method using a TOF camera calibration device provided in an embodiment of the present invention.
[0040] Description of Figure Numbers:
[0041] Label name Label name 100 guide 200 Calibration board 300 TOF Camera 210 Calibration surface 410 Calibration tube 420 Light shielding ring 430 Light-proof housing 110 First rail 120 Second rail 10 frame 12 Lower rack 11 Rack 13 Installing the bulkhead 20 Material stacking device 21 Incoming box 22 Calibration Failure Box 23 Calibration completed box 500 Support rails 30 Robotic Arm 600 Fixture components 40 Center slip ring 51 Snap-on cylinder 52 Open the cylinder DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0043] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.
[0044] It should also be noted that the directional terms such as left, right, up and down in the embodiments of the present invention are merely relative concepts or are based on the normal use status of the product and should not be considered as restrictive.
[0045] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0046] In the description of the present invention, it is necessary to understand that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" etc. indicating orientations or positional relationships are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0047] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0048] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0049] Embodiments of the present invention provide a calibration device and a calibration equipment for a TOF camera.
[0050] See also Figures 1 to 5In multiple embodiments of the present invention, the calibration device of the TOF camera includes at least one guide rail 100 arranged in a ring shape, multiple calibration plates 200, a mechanical arm 30 and a controller; the calibration plate 200 is slidably mounted on the vertical support rail 500, each calibration plate 200 includes at least one calibration surface 210, and the distances between each calibration surface 210 and the TOF camera 300 corresponding to the position thereof are different, and the plane where the guide rail 100 is located is parallel to the calibration surface 210; the guide rail 100 includes multiple support frames (not shown) arranged at intervals, and the support frames are used to support the TOF camera 300 to be calibrated; the controller (not shown) is connected to both the guide rail 100 and the TOF camera 300, and is used to send a first set of timing control signals to control the guide rail 100 to carry the TOF camera 300 to move along the guide rail 100, and send a second set of timing control signals to the TOF camera 300 to control multiple TOF cameras 300 to work simultaneously or alternately to measure the distance value between them and the corresponding calibration plate 200. In addition, the controller is also used to calculate a compensation correction value according to the measured distance value and the actual distance value of the calibration plate 200, and compensate the measured distance value according to the compensation correction value to obtain a calibration result.
[0051] It should be noted that in the technical solution of the present invention, the TOF camera 300 includes a light source transmitting module and a light sensing receiving module, and the light source transmitting module includes a laser transmitter. Here, the light source transmitting module is used to transmit a light wave of a specific band, that is, a transmitting light wave, which is reflected on the surface of the target to be measured and is received by the light sensing receiving module. Then, the light sensing receiving module calculates the depth information of the target to be measured based on the time difference or phase difference between the transmitting light wave and the receiving light wave. Therefore, in the calibration device of the TOF camera, it is very important to select a light wave of a suitable band with a higher focusing degree and a certain degree of anti-interference in the external environment, and lasers can meet this requirement.
[0052] Based on this structural design, in the technical solution of the present invention, since a plurality of TOF cameras 300 are arranged at intervals on the annular guide rail 100, a plurality of calibration plates 200 are arranged above the guide rail 100, and the calibration surface 210 of the calibration plate 200 is parallel to the plane where the guide rail 100 is located, but the distances between the calibration surfaces 210 of each calibration plate 200 and the TOF cameras 300 corresponding to their positions are different. Therefore, during calibration, the controller only needs to send a first set of timing control signals to control the guide rail 100 to drive the TOF camera 300 to move along the guide rail 100, and then the controller sends a second set of timing control signals to control the plurality of TOF cameras 300 to work simultaneously or alternately to measure the distance values between them and the corresponding calibration plates 200. In other words, the present invention sets up multiple calibration plates 200, and then the guide rail 100 carries multiple TOF cameras 300 to move, so that each calibration plate 200 has at least one TOF camera 300 to be calibrated for distance measurement. In this way, compared with the current common TOF camera calibration method, the calibration device of the TOF camera does not need to move the calibration plate 200 during the calibration process. It only needs to send a first group of timing control signals through the controller to control the guide rail 100 to rotate one circle, so that the TOF camera 300 to be calibrated can measure the distance value between itself and different calibration plates 200, and realize the calibration of multiple TOF cameras 300, thereby greatly improving the efficiency and accuracy of the TOF camera 300 calibration. In addition, the controller can also send a second set of timing control signals to control multiple TOF cameras 300 to be calibrated to open alternately. In this way, not only can the TOF camera 300 cooperate better with the guide rail 100 during calibration, but it can also solve the multi-machine interference problem generated between multiple TOF cameras 300 during calibration, thereby further improving the stability and accuracy of camera calibration.
[0053] It should be noted that, in order to facilitate the cyclic rotation of the TOF camera 300 on the guide rail 100, the guide rail 100 may be an arc-shaped ellipse or circle, for example, Figures 1 to 5 As shown, the guide rail 100 is a circular track. However, the present design is not limited thereto. In other embodiments, the guide rail 100 may also be in other shapes, which are not limited here.
[0054] Refer to the following Figure 1For example, in the first embodiment, the TOF camera 300 has a moving section moving on the guide rail 100 and a calibration position that is stationary relative to the guide rail 100. At the calibration position, the light-emitting optical axis of the TOF camera 300 is perpendicular to the calibration surface 210 corresponding to the position. Specifically, in this embodiment, eight TOF cameras 300 to be calibrated are arranged on each support frame of the circular guide rail 100. In a stationary state, that is, during the calibration period, the light-emitting optical axis direction of each TOF camera 300 to be calibrated has a calibration surface 210 of the calibration plate 200 opposite to it, and the distance from each calibration surface 210 to the relative TOF camera 300 to be calibrated is different. For example, the calibration distance can be specifically set to 300mm, 600mm, 900mm, 1200mm, 1500mm, 1800mm, 2100mm, 2400mm, etc. Of course, in other embodiments, the number of TOF cameras 300 to be calibrated placed on the guide rail 100 can be adaptively adjusted according to specific needs, and each calibration distance can also be set according to actual requirements.
[0055] Furthermore, in the present embodiment, at the calibration position, the light-emitting optical axis of the TOF camera 300 coincides with the calibration center of the calibration surface 210 corresponding to the calibration position. In this way, each time the TOF camera 300 moves step by step with the guide rail 100 at a preset track length, it can correspond exactly to a certain calibration plate 200, that is, each TOF camera 300 can be imaged at different distances after each movement, so as to facilitate the establishment of the relationship between the measured distance and the real distance, thereby achieving the technical purpose of obtaining a more accurate depth map by correcting the measured distance. In addition, the calibration surface 210 of the calibration plate 200 should be as flat and smooth as possible, and in order to make the reflectivity of the surface of the calibration plate 200 higher and more uniform, the calibration surface 210 is preferably set in white, and can be made of white matte paper.
[0056] Specifically, see Figures 1 to 5 In the first to fifth embodiments, the guide rail 100 is arranged in a circular ring shape, and the angles formed by the lines connecting the two adjacent TOF cameras 300 and the center of the guide rail 100 are equal, and the angle is specifically but not limited to 45 degrees. In this way, when the guide rail 100 runs in a preset direction (clockwise or counterclockwise) under the control of the controller, the angle of each rotation is the same 45 degrees, so that the controller can easily control the rotation of the guide rail 100, and the rotation process is more accurate and stable. In addition, in order to ensure the calibration efficiency, the rotation speed of the guide rail 100 is preferably greater than 2.5r / min. However, the present design is not limited to this. In other embodiments, the angle of each rotation of the guide rail 100 may also be different, which can be set according to the shape of the guide rail 100 and the calibration time of each TOF camera 300 to be calibrated.
[0057] It is understandable that in the actual calibration process, if all cameras are turned on, interference may occur between adjacent cameras, that is, a TOF camera 300 may not only receive the light emitted by the camera and reflected by the calibration plate 200, but also receive the light emitted by the adjacent camera, which will cause a certain error in the measured distance value. Therefore, in order to avoid the problem of multi-machine interference, in addition to controlling the TOF cameras 300 to work alternately, or appropriately increasing the spacing between the calibration plates 200, a method of providing a shading device between the TOF camera 300 and the corresponding calibration plate 200 can be further adopted. Among them, the shading device has various forms, such as in Figure 3 The third embodiment shown and Figure 4 In the fourth embodiment shown, the shading device is a calibration tube 410 having a hollow cavity. The axial extension direction of the calibration tube 410 is consistent with the light output axis of the TOF camera 300. The calibration plate 200 is arranged at the end of the calibration tube 410 away from the guide rail 100. The light signal emitted by the TOF camera 300 reaches the calibration plate 200 corresponding to the position via the hollow cavity. Here, in order to avoid the influence of ambient light on the light signal emitted by the TOF camera 300 and reduce the influence of the multipath effect on the inner wall of the hollow cavity of the calibration tube 410, it is preferred to coat the inner wall surface of the hollow cavity with a coating to reduce the reflectivity. The coating is usually made of black material, such as but not limited to black polyvinyl chloride material, and the reflectivity should be less than 1.5%. Of course, in the case of Figure 5 In the fifth embodiment shown, the shading device can also be replaced by a shading ring 420, which has an inner ring hole for the light signal emitted by the TOF camera 300 to pass through, that is, the light signal sent by the TOF camera 300 to be calibrated can reach the calibration plate 200 via the hollow inner ring hole in the middle of the shading ring 420.
[0058] Similarly, in order to reduce the influence of ambient light on the optical signal emitted by the TOF camera 300, the calibration device further includes a light-proof housing 430 covering the guide rail 100, the calibration plate 200 and the TOF camera 300. The light-proof housing 430 can be coated with a coating to reduce light reflectivity, just like the inner side wall of the calibration tube 410.
[0059] Further, in Figure 2 The second embodiment shown and Figure 4In the fourth embodiment shown, the difference from the first and third embodiments is that the guide rail 100 includes a first guide rail 110 and a second guide rail 120 arranged on both sides of the calibration plate 200; wherein the calibration plate 200 has a first calibration surface 210 facing the first guide rail 110 and a second calibration surface 210 facing the second guide rail 120. The calibration principle of the calibration device of the TOF camera in these two embodiments is the same as the calibration principle of the other two embodiments, which will not be repeated here. Among them, the controller can synchronously control the first guide rail 110 and the second guide rail 120, so that when the first guide rail 110 and the second guide rail 120 rotate one circle at the same time, the UPH (units per hour) of the calibration device of the TOF camera can be doubled, thereby greatly improving the calibration efficiency.
[0060] See also Figure 7 and Figure 8 In the technical solution of the invention, a calibration device for a TOF camera including the calibration device of the aforementioned TOF camera is also involved, and the device specifically includes a frame 10, the calibration device as described above, and a material stacking device 20. Among them, the frame 10 includes a frame body and a mounting partition 13, and the frame body is divided into an upper frame 11 with an upper mounting cavity and a lower frame 12 with a lower mounting cavity by the mounting partition 13; the calibration device is arranged in the upper mounting cavity; the material stacking device 20 is arranged on one side of the frame 10 for placing a TOF camera 300; a controller (not shown) is arranged in the lower mounting cavity, connected to both the guide rail 100 and the TOF camera 300, and the controller is used to send a first set of timing control signals to control the guide rail 100 to carry the TOF camera 300 to move along the guide rail 100, and send a second set of timing control signals to the TOF camera 300 to control multiple TOF cameras 300 to work simultaneously or alternately to measure the distance value between them and the corresponding calibration plate 200.
[0061] Here, the calibration device of the TOF camera includes a calibration device of the TOF camera. The specific structure of the calibration device of the TOF camera refers to the above embodiment. Since the calibration device of the TOF camera adopts all the technical solutions of all the above embodiments, it also has all the beneficial effects brought by the technical solutions of the above embodiments, which will not be repeated here. The frame 10 is divided into an upper frame 11 and a lower frame 12. The lower frame 12 is used to accommodate a controller electrically connected to the calibration device of the TOF camera in the upper frame 11, so as to ensure that the front of the lower frame 12 is simple, thereby avoiding the safety hazards caused by the wires or parts of the controller being exposed to the outside. In addition, in order to avoid the influence of ambient light on the calibration device of the TOF camera, it is preferred to coat the inner wall surface of the upper mounting cavity with a coating to reduce the light reflectivity, such as but not limited to coating the inner wall of the upper frame 11 with a black material, such as but not limited to black polyvinyl chloride and other materials, to reduce the reflectivity and make the reflectivity less than 1.5%.
[0062] Specifically, Figure 7 and Figure 8 As shown, in one embodiment, the support rails 500 extend in the up-down direction, and a calibration plate 200 is slidably mounted on each support rail 500, and multiple support rails 500 are respectively mounted on the left and right inner side walls of the upper frame 11, and are evenly spaced and arranged on the same inner side wall. Here, since the calibration plate 200 can slide in the up-down direction on the corresponding support rails 500, the controller can accurately control the up-down movement of the calibration plate 200 according to actual needs, so as to achieve different distances between the calibration surface 210 on the calibration plate 200 and the TOF camera 300 corresponding to the position thereof.
[0063] Furthermore, in one embodiment, the material stacking device 20 includes an incoming material box 21 for placing the TOF camera 300 to be calibrated, a calibration failure box 22 for placing the TOF camera 300 that failed calibration, and a calibration completion box 23 for placing the TOF camera 300 that has completed calibration. In the actual calibration process, the TOF camera 300 to be calibrated can be automatically delivered to the incoming material box 21 by the AGV (Automated Guided Vehicle) trolley, and then the calibration device can take the TOF camera 300 to be calibrated out of the incoming material box 21 and calibrate it; then, the TOF camera 300 that failed calibration is placed in the calibration failure box 22, and the TOF camera 300 that has completed calibration is placed in the calibration completion box 23, so that it is convenient to perform subsequent operations on the calibrated TOF camera 300.
[0064] In order to further improve the automation level of this equipment, Figure 7 and Fig. 9The mechanical arm 30 is installed on the mounting partition 13 and is located between the material stacking device 20 and the guide rail 100. It is mainly used to place the TOF camera 300 to be calibrated on the support frame or remove it from the support frame. Here, the use of the mechanical arm 30 can avoid the shaking of the human hand, which is conducive to improving the accuracy of calibration.
[0065] For further information, see Figure 7 and Figure 8 In one embodiment, the calibration device further includes a jig assembly 600 disposed on the guide rail 100, the jig assembly 600 is electrically connected to the guide rail 100 through a wire, and a center slip ring 40 for placing the wire is provided at the center of the guide rail 100 on the mounting partition 13. Specifically, after the AGV automatically delivers the TOF camera 300 to be calibrated to the incoming material box 21, the robot arm 30 will automatically remove the TOF camera 300 to be calibrated from the incoming material box 21 and place it in the jig assembly 600. Here, the jig assembly 600 is connected to the guide rail 100 through a wire to provide electrical support for the TOF camera 300. However, when the guide rail 100 rotates with the TOF camera 300, it will also drive these wires to rotate accordingly. In order to avoid these wires from being entangled, a center slip ring 40 for placing these wires can be provided at the center of the guide rail 100 to solve the problem.
[0066] It should be specially noted here that after the TOF camera 300 is placed on the fixture assembly 600, the calibration device of the TOF camera will detect the TOF camera 300. First, it detects whether the TOF camera 300 and the fixture assembly 600 are well connected, for example, whether there is a poor contact problem; second, it detects whether the TOF camera 300 itself is intact, for example, whether the transmitting module can normally transmit light signals, whether the photosensitive receiving module can normally receive light signals, etc.; once any of the above problems exists, the TOF camera 300 will skip the subsequent normal measurement steps, and only move with the guide rail 100, and finally be placed in the calibration failure box 22.
[0067] Furthermore, in one embodiment, the calibration device further includes a locking cylinder 51 and an opening cylinder 52, and the locking cylinder 51 and the opening cylinder 52 are both arranged on the guide rail 100 and are respectively located on both sides of the robot arm 30. Specifically, when the TOF camera 300 is placed in the fixture assembly 600, the TOF camera 300 will rotate to the locking cylinder 51 along with the guide rail 100. The locking cylinder 51 is mainly used to tightly lock the TOF camera 300 to be calibrated with the fixture assembly 600 to ensure the parallelism of the TOF camera 300 to be calibrated, so as to avoid the problem of inaccurate calibration results caused by camera tilt; then, the TOF camera 300 will be rotated to each calibration position to measure the distance between it and different calibration plates 200. For example, each calibration distance can be set to 300mm, 45mm, 50mm, 60mm, 70mm, 80mm, 90mm, 100mm, 120mm, 180mm, 190mm, 200mm, 250mm, 260mm, 300mm, 300mm, 400mm, 500mm, 600mm, 700mm, 800mm, 90mm, 180mm, 190mm, 250mm, 260mm, 300mm, 400mm, 400mm, 500mm, 400mm, 400mm, 500mm, 600mm, 700mm, 800mm, 90mm, 180mm, 190mm, 250mm, 300mm, 400mm, 400mm, 400mm, 400mm, 400mm, 400mm, 500mm, 0mm, 600mm, 750mm, 900mm, 1050mm, etc. Of course, these calibration distances are only exemplary and are not limitations of the present invention. In other embodiments, the calibration distance can be set according to actual needs; after the TOF camera 300 has collected all the calibration distances, the TOF camera 300 will be rotated to open the cylinder 52, and the opening of the cylinder 52 will separate the TOF camera 300 from the fixture assembly 600, so that the robot arm 30 will take the calibrated TOF camera 300 out of the fixture assembly 600 and place it in the calibration completion box 23 in the subsequent operation. In addition, since the distance between the calibration plate 200 and the TOF camera 300 can be changed dynamically, after the TOF camera 300 rotates a circle, if more different calibration distances need to be collected, the calibration plate 200 can be moved, and the TOF camera 300 can also skip opening the cylinder 52 and rotate again with the guide rail 100 to collect different calibration distances again.
[0068] The present invention also provides a TOF camera calibration method, which uses the TOF camera calibration device as described above to complete the calibration of the TOF camera 300. Figure 6 , the calibration method of this TOF camera includes the following steps:
[0069] S100, installing a plurality of calibration plates 200, wherein the calibration surfaces 210 of the calibration plates 200 are parallel to the plane where the guide rails 100 are located;
[0070] S200, installing multiple TOF cameras 300 one by one on corresponding support frames, and the distance between each calibration surface 210 and the TOF camera 300 corresponding to the position thereof is different;
[0071] Specifically in the calibration equipment of TOF camera, such as Fig. 9 As shown, step S200 can be changed to using the robot arm 30 to take out the TOF camera 300 in the material stacking device 20 and place it on the support frame on the guide rail 100.
[0072] S300, the controller sends a first set of timing control signals to the guide rail 100 to control the guide rail 100 to carry the TOF camera 300 to move along the guide rail 100, and the TOF camera 300 is in a non-calibrated time period;
[0073] S400, when the TOF camera 300 moves to a preset calibration position, the guide rail 100 stops moving, and the TOF camera 300 is in a calibration time period;
[0074] S500. During the calibration period, the controller sends a second set of timing control signals to the TOF cameras 300 to control multiple TOF cameras 300 to work simultaneously or alternately to measure the distance between the TOF camera 300 and the corresponding calibration plate 200 and obtain the measured distance value.
[0075] Further, in one embodiment, the controller is connected to the guide rail 100 by wire or wirelessly, the first group of timing control signals is specifically a pulse signal, and step S300 includes the following sub-steps:
[0076] S310, the controller controls the guide rail 100 carrying the TOF camera 300 to perform step-by-step horizontal rotation around the central axis of the guide rail 100;
[0077] S320, when the pulse is at a high level, the guide rail 100 rotates in a preset direction (clockwise or counterclockwise), and the TOF camera 300 is in a non-calibrated time period;
[0078] S330, when the pulse is at a low level, the guide rail 100 stops rotating, and the TOF camera 300 is in a calibration period, and can measure the distance value between the TOF camera 300 and the corresponding calibration plate 200.
[0079] After the controller controls the guide rail 100 to rotate to the calibration position, that is, when the camera is in the calibration time period, the controller can send a second set of timing control signals to the TOF camera 300 to be calibrated to measure the distance value between the TOF camera 300 and the corresponding calibration plate 200. Specifically, the second set of timing control signals is a pulse signal; when the pulse signal is at a high level, the TOF camera 300 is turned on and is in a working state, and when the pulse signal is at a low level, the TOF camera 300 is turned off and is in a non-working state; and the voltage state of the second set of timing control signals is opposite to the voltage state of the first set of timing control signals, that is, when the first set of timing control signals is at a high level, the second set of timing control signals should be at a low level. In this way, through the two sets of timing control signals sent by the controller, the TOF camera 300 can be turned on only in the calibration time period, thereby not only avoiding the waste of resources caused by turning on the TOF camera 300 all the time, but also making the TOF camera 300 start measuring the distance value after the guide rail 100 stops rotating, which has the technical effect of improving the stability and accuracy of the calibration.
[0080] In one embodiment, the controller controls the TOF cameras 300 synchronously. For example, during the calibration time period, the controller controls all TOF cameras 300 to turn on, and during the non-calibration time period, the controller controls all TOF cameras 300 to turn off. In this way, after the guide rail 100 rotates one circle, all TOF cameras 300 can measure all distance values relative to different calibration plates 200, thereby greatly improving the calibration efficiency. Of course, in other embodiments, the controller can also control each TOF camera 300 separately, and the staff can set whether a TOF camera 300 is turned on or off according to specific needs.
[0081] In one embodiment, during the calibration time period, the controller controls one of the two adjacent TOF cameras 300 to turn on, and during the non-calibration time period, the controller controls all TOF cameras 300 to turn off. It can be understood that the TOF camera 300 converts the distance of the photographed object by calculating the time difference or phase difference between the emission and reflection of the light. Therefore, if all cameras are turned on, interference is likely to occur between adjacent cameras, that is, the TOF camera 300 may not only receive the light emitted by the camera and reflected back by the calibration plate 200, but also may receive the light emitted by the adjacent camera, which makes the measured distance value have a certain error. The design of the alternately turning on the camera (for example, one of the two adjacent cameras is selected to turn on) can calibrate half of the TOF cameras 300 after the guide rail 100 rotates one circle, and then calibrate the other half of the TOF cameras 300 when the guide rail 100 rotates the next circle. In this way, the multi-machine interference problem generated when calibrating multiple TOF cameras 300 can be solved, thereby further improving the stability and accuracy of the calibration.
[0082] Here, the controller may be a host computer, such as a computer, etc., which may be connected to the guide rail 100 and the TOF camera 300 by wired connection via USB, wires, etc., or wirelessly connected via a wireless network, etc., so as to control the guide rail 100 and the TOF camera 300. In one embodiment, after step S500, a step of obtaining the final camera calibration result is also included:
[0083] S600, transmitting the measured distance value measured in step S500 to the controller;
[0084] S700, the controller calculates and obtains a compensation correction value according to the measured distance value and the actual distance value between the TOF camera 300 and the corresponding calibration plate 200;
[0085] S800: Compensate the measured distance value according to the compensation correction value to obtain a camera calibration result.
[0086] In addition, in one embodiment, the calibration method of the TOF camera also includes calibrating the TOF camera 300 for swing error and fixed phase pattern noise. Specifically, due to the difference between the actual modulation waveform and the phase difference calculation model, different deviations will be generated at different distances, and the deviations at these different distances are swing errors (wigglingerror). Therefore, in order to improve the accuracy of the calibration, it is necessary to calibrate at different distances to obtain each wiggling deviation value, that is, the calibration process of the aforementioned measured distance value includes the swing error calibration (wiggling calibration). In addition, due to differences in design and production processes, each pixel of the sensor may be different during the manufacturing process, resulting in each pixel having an independent distance deviation, that is, each pixel has a different fixed delay, that is, fixed phase pattern noise (Fixed Phase Pattern Noise, FPPN), so in the calibration process of the TOF camera 300, it is also necessary to calibrate the fixed offset of each pixel, that is, perform FPPN calibration. Therefore, the calibration plate 200 should include a calibration surface 210 of a size that can fully cover the field of view of the TOF camera 300 to be calibrated, so as to facilitate FPPN calibration. The specific operation methods of these two calibrations can be based on common methods in the prior art, which will not be repeated here.
[0087] Finally, it should be noted that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can be stored in a non-volatile computer-readable storage medium, which may include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement the above functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the above content is a further detailed description of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions.
[0088] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent substitution or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A TOF camera calibration device, characterized in that: include: A guide rail, comprising a plurality of support frames arranged at intervals, wherein the support frames are used to support a TOF camera to be calibrated; The guide rail is elliptical or circular; A plurality of calibration plates, each of which is slidably mounted on a vertical support rail, each of which comprises at least one calibration surface, and the calibration plate can slide in an up-and-down direction on the corresponding support rail, so that the distance between each calibration surface and the TOF camera corresponding to the calibration surface is different; A mechanical arm, operating the TOF camera to be calibrated, and used to place the TOF camera to be calibrated on the support frame or remove it from the support frame; A controller, connected to both the guide rail and the TOF camera, configured to send a first set of timing control signals to control the guide rail to carry the TOF camera to move along the guide rail, and to send a second set of timing control signals to the TOF camera to control a plurality of the TOF cameras to work simultaneously or alternately to measure the distance between the TOF camera and the corresponding calibration plate; A fixture assembly is arranged on the guide rail, and the fixture assembly is electrically connected to the guide rail through a wire to provide electrical support for the TOF camera.
2. The TOF camera calibration device according to claim 1, characterized in that: The calibration device of the TOF camera also includes a locking cylinder and an opening cylinder. The locking cylinder is used to tightly lock the TOF camera to be calibrated with the fixture assembly to ensure the parallelism of the TOF camera to be calibrated, and the opening cylinder is used to separate the TOF camera to be calibrated from the fixture assembly.
3. A TOF camera calibration device, characterized in that: include: The TOF camera calibration device according to any one of claims 1 to 2; A frame, wherein the calibration device of the TOF camera is arranged inside the frame; A material stacking device is arranged on one side of the frame and is used for placing the TOF camera.
4. The TOF camera calibration device as claimed in claim 3, characterized in that: The rack includes a rack body and a mounting partition, the rack body is divided into an upper rack with an upper mounting cavity and a lower rack with a lower mounting cavity by the mounting partition, the calibration device of the TOF camera is arranged in the upper mounting cavity, the guide rail is fixed on the mounting partition, and the vertical supporting slide rail is installed on the inner wall surface of the upper mounting cavity; the controller is arranged in the lower mounting cavity; a center slip ring for arranging the wires is provided on the mounting partition at the center of the guide rail.
5. The TOF camera calibration device as claimed in claim 3, characterized in that: The material stacking device includes an incoming material box for placing the TOF cameras to be calibrated, a calibration failure box for placing the TOF cameras that failed calibration, and a calibration completion box for placing the TOF cameras that completed calibration.
6. The TOF camera calibration device according to claim 4, characterized in that: The mechanical arm is mounted on the mounting partition and is located between the material stacking device and the guide rail.
7. A TOF camera calibration method, characterized in that: The TOF camera calibration method uses the TOF camera calibration device according to any one of claims 3 to 6 to complete the calibration of the TOF camera, comprising the following steps: S100, taking out the TOF camera to be calibrated from the material stacking device and placing it on a support frame on the guide rail; S200, the controller controls the guide rail to carry the TOF camera to move along the guide rail; S300, when the TOF camera moves to a preset calibration position, the guide rail stops moving, and the controller controls the TOF camera to work so as to measure a measurement distance value between the TOF camera and a corresponding calibration plate; S400, the controller obtains the measured distance value, and calculates and obtains a compensation correction value according to the measured distance value and the actual distance value between the TOF camera and the corresponding calibration plate; S500: Compensate the measured distance value according to the compensation correction value to obtain a calibration result value of the TOF camera.
8. The TOF camera calibration method according to claim 7, characterized in that: The controller is connected to the guide rail by wire or wirelessly, and the controller sends a first set of timing control signals to the guide rail, wherein the first set of timing control signals is a pulse signal. When the pulse is at a high level, the guide rail carries the TOF camera to rotate in a preset direction, and the TOF camera is in a non-calibrated time period. When the pulse is at a low level, the guide rail stops rotating, and the TOF camera is in the calibration time period, and step S300 is performed. When the TOF camera is in the calibration time period, the controller sends a second set of timing control signals to the guide rail, and the second set of timing control signals is also a pulse signal. When the pulse is at a high level, the TOF camera is turned on and is in a working state, and when the pulse signal is at a low level, the TOF camera is turned off and is in a non-working state; And the voltage state of the second group of timing control signals is opposite to the voltage state of the first group of timing control signals.
9. The TOF camera calibration method according to claim 8, characterized in that: The controller performs synchronous control on the TOF cameras. In the calibration time period, the controller controls all the TOF cameras to turn on, and in the non-calibration time period, the controller controls all the TOF cameras to turn off; or, During the calibration time period, the controller controls one of the two adjacent TOF cameras to turn on, and during the non-calibration time period, the controller controls all the TOF cameras to turn off.
