WO2024050902A1 - Itof camera, calibration method, and related device - Google Patents

Itof camera, calibration method, and related device Download PDF

Info

Publication number
WO2024050902A1
WO2024050902A1 PCT/CN2022/123163 CN2022123163W WO2024050902A1 WO 2024050902 A1 WO2024050902 A1 WO 2024050902A1 CN 2022123163 W CN2022123163 W CN 2022123163W WO 2024050902 A1 WO2024050902 A1 WO 2024050902A1
Authority
WO
WIPO (PCT)
Prior art keywords
distance
control
signal
calculate
error
Prior art date
Application number
PCT/CN2022/123163
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
Application filed by 奥比中光科技集团股份有限公司, 深圳奥芯微视科技有限公司 filed Critical 奥比中光科技集团股份有限公司
Publication of WO2024050902A1 publication Critical patent/WO2024050902A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S17/00Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
    • G01S17/88Lidar systems specially adapted for specific applications
    • G01S17/89Lidar systems specially adapted for specific applications for mapping or imaging
    • G01S17/8943D imaging with simultaneous measurement of time-of-flight at a 2D array of receiver pixels, e.g. time-of-flight cameras or flash lidar
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00
    • G01S7/497Means for monitoring or calibrating

Definitions

  • This application relates to the field of camera technology, and in particular to an ITOF camera, an intelligent terminal, a calibration method and a computer-readable storage medium.
  • the offset includes the electronic signal delay of the ITOF camera itself and the electronic signal delay of the printed circuit board (PCB) circuit.
  • the signal delays of different cameras and different PCBs are different, that is, The offset is different, so each camera needs to be calibrated separately.
  • the signal delay of electronic transmission changes, and the offset will also change, and the offset needs to be recalibrated.
  • ITOF cameras that have been used for a long time usually need to be returned to the factory for recalibration of offset, which increases the cost of after-sales maintenance.
  • the main purpose of this application is to provide an ITOF camera, a smart terminal, a calibration method and a computer-readable storage medium, aiming to solve the problem in the prior art that ITOF cameras need to be returned to the factory to recalibrate the offset after long-term use, which increases the cost of after-sales maintenance. .
  • the first aspect of the present application provides an ITOF camera, including an emitter, a collector, a light guide structure connecting the emitter and the collector, and a control and processor, wherein the emitter includes a first light source and a second light source.
  • the collector includes a measurement photosensitive unit and a reference photosensitive unit
  • the control and processor are used to control the first light source to emit a first optical signal to the target object, and control the measurement photosensitive unit to collect the first optical signal reflected by the target object and generate a first electrical signal, and process the first electrical signal to calculate the distance of the target object
  • the control and processor are also used to control the second light source to emit a second optical signal to the light guide structure, and control the reference photosensitive unit to collect the second light signal transmitted through the light guide structure.
  • optical signal and generate a second electrical signal, and process the second electrical signal to calculate the corresponding first optical transmission measurement distance, and calculate the error between the first optical transmission measurement distance and the actual optical transmission distance as the second global error;
  • control and The processor is also configured to correct the distance of the target object according to the second global error.
  • the emitter further includes: an optical diffusion sheet.
  • the optical diffusion sheet includes a microstructure area and a non-microstructure area, wherein the microstructure area is disposed on the transmission light path of the first light source for emitting light to the first light source.
  • the light beam is modulated to project a flood light beam to the target object;
  • the non-microstructure area is set between the microstructure area and the light guide structure to prevent the light beam emitted by the first light source from being incident into the light guide structure, and the light guide structure is an optical fiber or
  • the inner wall is a cavity with a realm.
  • a second aspect of this application provides an intelligent terminal, including a processor, a memory and an ITOF camera as described above, wherein: the processor is used to initiate a calibration signal to the ITOF camera; and the control and processor in the ITOF camera are used to control the emission of the second light source.
  • the second optical signal of the preset frequency is incident on the reference photosensitive unit through the light guide structure, and generates a third electrical signal; the control and processor are also used to calculate the corresponding second optical transmission measurement distance based on the third electrical signal, and calculate the third optical signal.
  • the distance error between the second optical transmission measurement distance and the actual optical transmission distance of the second optical signal is calculated, and the signal delay of the pre-stored second global error and the distance error is calculated, and the third step is performed based on the signal delay and the pre-stored first global error.
  • Global error calculation to correct the distance of the target object measured by the ITOF camera using the third global error.
  • a third aspect of the present application provides a calibration method, which includes: controlling a second light source to emit a second optical signal of a preset frequency through a light guide structure and incident on a reference photosensitive unit to generate a third electrical signal; and calculating a corresponding signal based on the third electrical signal.
  • the second optical transmission measurement distance calculate the distance error between the second optical transmission measurement distance and the actual optical transmission distance; calculate the pre-stored second global error and the distance error to perform signal delay; according to the signal delay and the pre-stored first global error
  • a third global error calculation is performed to correct the distance of the target object measured by the ITOF camera using the third global error.
  • a fourth aspect of the present application provides a computer-readable storage medium.
  • a calibration program is stored on the computer-readable storage medium.
  • the calibration program is executed by a processor, the steps of the above-mentioned calibration method are implemented.
  • control and processor can not only control the first light source to emit a first optical signal to the target object, and then reflect it to the measurement photosensitive unit for distance measurement, but also control the second light source to emit a second optical signal to the light guide.
  • the light guide structure is incident on the reference photosensitive unit for second global error calculation, and the distance of the target object is corrected according to the second global error. Therefore, the ITOF camera in this application can not only realize the ranging function, but also calibrate the global error of the ITOF camera in real time, without requiring the terminal manufacturer to perform global error calibration on the production line, which solves the problem that the product needs to be returned to the factory for re-installation after long-term use. Offset calibration is performed to ensure accuracy, thereby reducing after-sales maintenance costs.
  • Figure 1 is a system block diagram of an intelligent terminal according to the embodiment of the present application.
  • FIG. 2 is a system block diagram of the ITOF camera according to the embodiment of the present application.
  • Figure 3 is a schematic flow chart of the calibration method according to the embodiment of the present application.
  • Figure 4 is a schematic flow chart of a calibration method according to another embodiment of the present application.
  • Figure 5 is a schematic flow chart of a calibration method according to another embodiment of the present application.
  • the term “if” may be interpreted as “when” or “once” or “in response to determining” or “in response to detecting” depending on the context.
  • the phrase “if determined” or “if [the described condition or event] is detected” may be interpreted, depending on the context, to mean “once determined” or “in response to a determination” or “once the [described condition or event] is detected” event]” or “in response to detection of [the described condition or event]”.
  • FIG. 1 shows a system block diagram of a smart terminal, including a processor 20, a memory 30 and an ITOF camera 10 connected thereto.
  • ITOF technology is widely used in smart terminal devices such as mobile phones, tablets, sweeping robots, and mobile robots.
  • an ITOF camera is installed in a sweeping robot.
  • the ITOF camera collects three-dimensional information about the surrounding environment of the mobile robot and transmits the three-dimensional information to the processor in the sweeping robot.
  • the processor performs obstacle scene recognition, positioning perception and other processing based on the three-dimensional information. , based on the processing results, the robot is controlled to perform obstacle avoidance, path planning, etc.
  • the ITOF camera 10 includes a transmitter 100, a collector 200, and a control and processor 300.
  • the transmitter 100 is used to transmit modulated light signals toward multiple target points in the target scene
  • the collector 200 is used to collect the target.
  • the reflected light signal generates an electrical signal
  • the control and processor 300 is connected to the transmitter 100 and the collector 200 and controls the synchronous activation of the transmitter 100 and the collector 200, and processes the electrical signal output by the collector 200 to calculate the optical signal to and from the target.
  • the flight time of the point is further calculated to calculate the distance to the target point.
  • the principle block diagram shown in Figure 1 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the ITOF camera 10 to which the solution of the present application is applied.
  • the ITOF Camera 10 may include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
  • control and processor 300 may be the processor 20 in the smart terminal, that is, the processor 20, the transmitter 100 and the collector 200 implement the ranging and calibration functions, or the control and processor 300 may be a separate A single processor, the transmitter 100 and the collector 200 constitute the ITOF camera 10 of the present application.
  • ITOF cameras need to calibrate system errors before leaving the factory.
  • the main calibration contents include temperature drift, depth error (FPPN), distance measurement error (wiggling) and global error (offset).
  • offset is mainly caused by the electronic signal delay of the ITOF camera itself and the electronic signal delay of the printed circuit board (PCB) circuit.
  • PCB printed circuit board
  • Different cameras and different PCB test boards have different signal delays, that is, different offsets, so each camera needs to be calibrated separately.
  • the test board will produce additional offset delays.
  • this application provides an ITOF camera with a calibration system and a calibration method for installing the ITOF camera in an intelligent terminal device.
  • the offset of the ITOF camera can be calibrated in real time without the need for the terminal manufacturer to calibrate the camera in production.
  • this ITOF can solve the problem of the product needing to be returned to the factory for re-offset calibration to ensure accuracy after long-term use, thus reducing after-sales maintenance costs.
  • FIG. 2 shows an ITOF camera provided by the present application.
  • the ITOF camera 10 includes an emitter 100, a collector 200, a control and processor 300, and a light guide structure 400 connecting the emitter 100 and the collector 200.
  • the emitter 100 includes a first light source 101 and a second light source 102.
  • the collector 200 includes a reference photosensitive unit 201 and a measurement photosensitive unit 202.
  • the control and processor 300 is used to control the first light source 101 to emit a first light signal to the target object, and
  • the measurement photosensitive unit 202 is controlled to collect the first optical signal reflected by the target object and generate a first electrical signal, and process the first electrical signal to calculate the distance of the target object;
  • the control and processor 300 is also used to control the second light source 102 to emit a second
  • the optical signal is transmitted to the light guide structure 400, and the reference photosensitive unit 201 is controlled to collect the second optical signal transmitted through the light guide structure 400 and generate a second electrical signal, and process the second electrical signal to calculate the first light of the second optical signal. Transmit the measured distance, calculate the error between the first optical transmission measurement distance and the actual optical transmission distance as the second global error, and correct the distance of the target object according to the second global error, thereby realizing the ranging of the ITOF camera 10 function and offset calibration function.
  • the first light source 101 and the second light source 102 can be a light source such as a light emitting diode (LED), an edge emitting laser (EEL), a vertical cavity surface emitting laser (VCSEL), or a light source composed of multiple light sources.
  • the emitted light beam has the same modulation frequency and wavelength, and the emitted light beam can be visible light, infrared light, ultraviolet light, etc.
  • the first light source 101 is a light source array composed of multiple vertical cavity surface emitting lasers for emitting a spot pattern beam toward a target object.
  • the second light source 102 is a single point light source, which can be an LED, an EEL, or a VCSEL.
  • the second light source 102 is a single-point VCSEL, used to emit a spot beam with a very small divergence angle to be incident on the light guide structure.
  • the emitter 100 includes a light source array composed of a plurality of light sources, and is configured with zone control of the light source array to form a first light source 101 and a second light source 102, wherein the number of light sources in the first light source 101 is greater than that of the second light source.
  • the number of light sources in the light source 102, the field of view angle of the light beam emitted by the first light source 101 is greater than the field of view angle of the light beam emitted by the second light source 102.
  • the working modes of the first light source 101 and the second light source 102 can be adjusted according to actual applications, that is, the first light source 101 and the second light source 102 can work independently at different times, which is not limited here.
  • the emitter 100 further includes an optical diffusion sheet 500 .
  • the optical diffusion sheet 500 includes a microstructure area and a non-microstructure area, wherein the microstructure area is disposed in the transmission light direction of the first light source 101 . On the way, it is used to modulate the light beam emitted by the first light source 101 to project a flood light beam to the target object.
  • the non-microstructure area is correspondingly arranged between the microstructure area and the light guide structure to prevent the light beam emitted by the first light source 101 from being incident into the light guide structure.
  • the optical diffusion sheet may be a diffuser or a soft mirror.
  • the collector 200 includes an image sensor composed of a plurality of pixels, which may be a charge coupled device (CCD), a complementary metal oxide semiconductor (CMOS), an avalanche diode (AD), a single photon avalanche diode (SPAD)
  • the array size represents the resolution of the depth camera, such as 320x240, etc.
  • the image sensor 121 is also connected to a readout circuit composed of one or more of a signal amplifier, a time-to-digital converter (TDC), an analog-to-digital converter (ADC), and other devices (not shown in the figure). ).
  • the image sensor 121 includes at least one pixel, and each pixel includes a plurality of taps (for storing and reading or discharging charge signals generated by incident photons under the control of corresponding electrodes), such as including 3 taps. , used to read the charge signal data.
  • the image sensor in the collector 200 is divided into two areas, including the measurement photosensitive unit 202 and the reference photosensitive unit 201. For example, a row, a column or several pixels can be selected as the reference photosensitive unit 201, and the image sensor The remaining pixels are the measurement photosensitive units 202.
  • the reference photosensitive unit 201 corresponds to the light guide structure and is used to receive the second optical signal transmitted through the light guide structure and generate a second electrical signal for calibration.
  • the collector 200 also includes a receiving lens 600 and a filter 700.
  • the filter 700 is adapted to the measurement photosensitive unit 202.
  • the filter 700 can be attached to the measurement photosensitive unit 202.
  • the optical signal reflected back by the target object is incident on the measurement photosensitive unit 202 through the receiving lens 600 to generate a first electrical signal for distance measurement.
  • the filter 600 needs to select a narrow-band filter that matches the wavelength of the second light source. , used to suppress ambient light in other bands and avoid interference from ambient light.
  • the light guide structure 400 is an optical fiber or a cavity with an inner wall.
  • the light pipe may be a single-mode optical fiber, a multi-mode optical fiber, or a specular reflector.
  • control and processor 300 can be an independent dedicated circuit, such as a dedicated SOC chip, FPGA chip, ASIC chip, etc. composed of a CPU, memory, bus, etc., or it can also include a general processing circuit, such as the After the ITOF camera is integrated into the smart terminal, the processor in the smart terminal can serve as at least part of the control and processor 300 .
  • the two are described separately below, but this does not limit the scope of protection of the present application.
  • control and processor 300 processes the first electrical signal to calculate a phase delay of the reflected first optical signal relative to the emitted first optical signal. further according to the phase delay Calculate the distance D 1 corresponding to the target, that is: f 1 is the modulation frequency of the first optical signal, and C is the speed of light.
  • the ITOF camera provided in this application has a calibration system itself, and offset calibration needs to be performed before leaving the factory.
  • a real calibration plate is provided at a fixed distance D from the ITOF camera.
  • the control and processor 300 controls the first light source 101 to emit a first optical signal to the calibration plate at a preset distance.
  • the first optical signal reflected by the calibration plate is incident on the calibration plate.
  • the control and processor 300 is also used to process the first electrical signal to calculate the distance D measurement of the calibration plate.
  • the calculated distance D measurement is the measurement distance of the calibration plate. Due to the electronic signal delay As a result, there is a deviation between the measurement distance D of the calibration plate and the real distance D.
  • D error D measurement - D real .
  • D error is the offset value that needs to be calibrated during conventional offset calibration, that is, the data is stored in In the camera, as the pre-stored first global error, when actually measuring the target distance, the calibration offset value is used to correct the measurement value of the target object to obtain a more accurate measurement distance value of the target.
  • control and processor 300 processes the second electrical signal to calculate the phase delay of the second optical signal received by the reference photosensitive unit 201 relative to the emitted second optical signal. further according to the phase delay Calculate the flight distance d 2 corresponding to the second optical signal, that is: f 2 is the modulation frequency of the second optical signal.
  • control and processor 300 controls the second light source 102 to emit a second optical signal to the light guide structure 400.
  • the second optical signal transmitted through the light guide structure 400 is incident on the reference photosensitive unit 201 to generate a second electrical signal.
  • the control and processor 300 is also used to process the second electrical signal to calculate the corresponding first optical transmission measurement distance d measurement .
  • d error d measurement - d, where L 1 represents the distance from the second light source 102 to the light guide structure 400 , L 2 represents the length of the light guide structure 400 , and L 3 represents The distance between the light guide structure 400 and the reference photosensitive unit 201; d error is the offset value that needs to be calibrated during conventional offset calibration, that is, the data is stored in the camera as the pre-stored second global error.
  • the calibration offset value is used to correct the measurement value of the target object to obtain a more accurate measurement distance value of the target. It can be understood that when the ITOF camera measures distance, you can choose to use the first global error or the second global error to correct the distance value. And because the calibration system is set up inside the ITOF camera, in the application, the camera can be calibrated in real time. Calibrate the offset, or perform an offset calibration on the camera after using it for a period of time to reduce new errors caused by the aging of electronic components. In order to solve the different delay problems caused by different circuits used in terminals, this application proposes a calibrated ITOF camera, which also requires secondary calibration.
  • An intelligent terminal includes an ITOF camera 10, a processor 20 and a memory 30.
  • the PCB board in the terminal equipment will also bring additional optical signal delay error, that is, offset error.
  • the entire machine needs to be calibrated for offset.
  • the processor 20 starts the calibration signal to the ITOF camera 10, and the control and processor 300 in the ITOF camera 10 controls the second light source 102 to emit a second optical signal of a preset frequency through the light guide structure 400.
  • the offset value ⁇ D is used to calibrate the real-time global error, that is, the third global error is stored in the camera. When the target distance is actually measured, this value is used to correct the measurement value to obtain a more accurate measurement distance value of the target.
  • the control and processor 300 can not only control the first light source 101 to emit the first light signal to the target object, and then reflect it to the measurement photosensitive unit 202 for ranging, but also control the second light source 102 to emit the first light signal.
  • the second optical signal goes to the light guide structure 400 and is incident on the reference photosensitive unit 201 for global error calibration. Therefore, the ITOF camera in this application can not only achieve the ranging function, but also perform real-time calibration of the global error of the ITOF camera. Calibration does not require the terminal manufacturer to perform global error calibration on the production line, which solves the problem of the product needing to be returned to the factory for re-offset calibration to ensure accuracy after long-term use, thus reducing after-sales maintenance costs.
  • this application also provides a calibration method.
  • the global error of the ITOF camera 10 in the above embodiment is calibrated through the calibration method.
  • the calibration method is executed by the control and processor 300 in the ITOF camera or the smart terminal with the ITOF camera 10.
  • the calibration method includes the following steps:
  • step S301 the second light source 102 is controlled to emit a second optical signal of a preset frequency through the light guide structure 400 and incident on the reference photosensitive unit 201 to generate a third electrical signal.
  • Step S302 Calculate the corresponding second optical transmission measurement distance according to the third electrical signal.
  • control and processor 300, or the smart terminal with the ITOF camera 10 performs the following steps to obtain the pre-stored first global error, as shown in Figure 4, including:
  • step S401 the first light source 101 is controlled to emit a first optical signal to a calibration plate at a preset measurement distance.
  • the first optical signal reflected by the calibration plate is incident on the measurement photosensitive unit 202 to generate a first electrical signal.
  • Step S402 calculate the measurement distance of the calibration plate according to the first electrical signal, that is, the control and processor 300 processes the first electrical signal to calculate the phase delay of the reflected first optical signal relative to the emitted first optical signal. further according to the phase delay Calculate the distance D 1 corresponding to the target, that is: f 1 is the modulation frequency of the first optical signal.
  • Step S403 Calculate the error between the preset distance and the measured distance of the calibration plate, and store Derro as the pre-stored first global error .
  • control and processor 300, or the smart terminal with the ITOF camera 10 performs the following steps to obtain the pre-stored second global error, as shown in Figure 5, including:
  • Step S501 control the second light source 102 to emit a second optical signal to the light guide structure 400, and then enter the reference photosensitive unit 201 through the light guide structure 400 to generate a second electrical signal.
  • Step S502 calculate the corresponding first optical transmission measurement distance according to the second electrical signal, that is, the control and processor 300 processes the second electrical signal to calculate the relative distance between the second optical signal received by the reference photosensitive unit 201 and the second light emitted.
  • signal phase delay further according to the phase delay Calculate the flight distance d 2 corresponding to the second optical signal, that is: f 2 is the modulation frequency of the second optical signal.
  • L 1 represents the distance from the second light source 102 to the light guide structure 400
  • L 2 represents the length of the light guide structure 400
  • L 3 represents the distance from the light guide structure 400 to the reference photosensitive unit 201 .
  • the second light source 102 is controlled to emit a second optical signal of a preset frequency to the light guide structure 400, and is incident on the reference photosensitive unit 201 through the light guide structure 400 to generate a third electrical signal; according to the third electrical signal Calculate the corresponding second optical transmission measurement distance based on the signal, calculate the distance error between the second optical transmission measurement distance and the actual optical transmission distance; perform signal delay calculation using the pre-stored second global error and distance error; compare the signal delay and the pre-stored optical transmission distance.
  • the first global error is stored and the third global error is calculated to use the third global error to correct the distance measured by the ITOF camera.
  • the global error of the ITOF camera can be calibrated in real time through the above calibration method without Terminal manufacturers are required to perform global error calibration on the production line, which solves the problem of products needing to be returned to the factory for re-offset calibration to ensure accuracy after long-term use, thus reducing after-sales maintenance costs.
  • the memory 30 of the smart terminal stores a calibration program that can be run on the processor 20 .
  • the calibration program can be executed by the processor 20 to implement the steps of the above calibration method.
  • the following operation instructions are performed: control the second light source 102 to emit a second optical signal through the light guide structure 400 and enter the reference photosensitive unit 201 to generate a second electrical signal; process the second Calculate the corresponding second optical transmission measurement distance from the electrical signal; calculate the distance error between the second optical transmission measurement distance and the actual optical transmission distance; calculate the signal delay between the pre-stored second global error and the distance error; according to the signal delay and the pre-stored
  • the third global error is calculated using the first global error to correct the distance measured by the ITOF camera using the third global error.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • a calibration program is stored on the computer-readable storage medium.
  • the calibration program is executed by a processor, the steps of the above-mentioned calibration method are implemented.
  • sequence number of each step in the above embodiment does not mean the order of execution.
  • the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
  • Module completion means dividing the internal structure of the above device into different functional units or modules to complete all or part of the functions described above.
  • Each functional unit and module in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above-mentioned integrated unit can be hardware-based. It can also be implemented in the form of software functional units.
  • the specific names of each functional unit and module are only for the convenience of distinguishing each other and are not used to limit the scope of protection of the present application.
  • For the specific working processes of the units and modules in the above system please refer to the corresponding processes in the foregoing method embodiments, and will not be described again here.
  • the disclosed apparatus/terminal equipment and methods can be implemented in other ways.
  • the apparatus/terminal equipment embodiments described above are only illustrative.
  • the division of the above modules or units is only a logical function division. In actual implementation, it can be divided in other ways, such as multiple units or units. Components may be combined or may be integrated into another system, or some features may be ignored, or not implemented.
  • the above-mentioned integrated modules/units are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present application can implement all or part of the processes in the methods of the above embodiments by instructing relevant hardware through a computer program.
  • the above computer program can be stored in a computer-readable storage medium.
  • the computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of each of the above method embodiments can be implemented.
  • the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code, executable file or some intermediate form, etc.
  • the above-mentioned computer-readable media may include: any entity or device capable of carrying the above-mentioned computer program code, recording media, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random accessory Access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media, etc. It should be noted that the content contained in the above computer-readable storage media can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.

Abstract

The present application discloses an ITOF camera, an intelligent terminal, a calibration method, and a computer readable storage medium. An ITOF camera 10 comprises an emitter 100, a collector 200, a light guide structure communicated with the emitter 100 and the collector 200, and a control and processing unit 300. The control and processing unit 300 is configured to control a first light source to emit a first optical signal and to control a measurement photosensitive unit to collect a reflected first optical signal to calculate the distance of a target object; the control and processing unit 300 is further configured to control a second light source to emit a second optical signal to the light guide structure, to control a reference photosensitive unit to collect the second optical signal transmitted by the light guide structure so as to calculate a corresponding first optical transmission measurement distance, to calculate an error between the first optical transmission measurement distance and an actual optical transmission distance as a second global error, and to correct the distance of the target object according to the second global error. Therefore, the ITOF camera in the present application can not only realize a distance measurement function, but also calibrate a global error of the ITOF camera in real time.

Description

ITOF相机、标定方法及相关设备ITOF cameras, calibration methods and related equipment
本申请要求于2022年9月5日提交中国专利局,申请号为202211077959.6,发明名称为“ITOF相机、标定方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application submitted to the China Patent Office on September 5, 2022, with the application number 202211077959.6 and the invention name "ITOF camera, calibration method and related equipment", the entire content of which is incorporated into this application by reference. middle.
技术领域Technical field
本申请涉及相机技术领域,尤其涉及的是一种ITOF相机、智能终端、标定方法及计算机可读存储介质。This application relates to the field of camera technology, and in particular to an ITOF camera, an intelligent terminal, a calibration method and a computer-readable storage medium.
背景技术Background technique
ITOF相机在出厂前需要对全局误差(offset)进行标定,offset包括ITOF相机本身的电子信号延迟,以及印制电路板(PCB)线路的电子信号延迟,不同相机、不同PCB的信号延迟不同,即offset不同,所以需要对每个相机进行单独的标定。然而,已经标定成功的ITOF相机在长期使用过程中,由于电子器件的老化,电子传输的信号延迟发生改变,offset也会发生改变,需要重新标定offset。目前,为了保证测量精度,通常需要将长期使用的ITOF相机返厂重新标定offset,增加售后维护的成本。ITOF cameras need to calibrate the global error (offset) before leaving the factory. The offset includes the electronic signal delay of the ITOF camera itself and the electronic signal delay of the printed circuit board (PCB) circuit. The signal delays of different cameras and different PCBs are different, that is, The offset is different, so each camera needs to be calibrated separately. However, during long-term use of an ITOF camera that has been successfully calibrated, due to the aging of electronic components, the signal delay of electronic transmission changes, and the offset will also change, and the offset needs to be recalibrated. Currently, in order to ensure measurement accuracy, ITOF cameras that have been used for a long time usually need to be returned to the factory for recalibration of offset, which increases the cost of after-sales maintenance.
因此,针对上述缺陷,现有技术还有待于改进和发展。Therefore, in view of the above-mentioned defects, the existing technology still needs to be improved and developed.
技术解决方案Technical solutions
本申请的主要目的在于提供一种ITOF相机、智能终端、标定方法及计算机可读存储介质,旨在解决现有技术中ITOF相机长期使用后需要返厂重新标定offset,增加售后维护的成本的问题。The main purpose of this application is to provide an ITOF camera, a smart terminal, a calibration method and a computer-readable storage medium, aiming to solve the problem in the prior art that ITOF cameras need to be returned to the factory to recalibrate the offset after long-term use, which increases the cost of after-sales maintenance. .
为了实现上述目的,本申请第一方面提供一种ITOF相机,包括发射器、采集器、连通发射器和采集器的导光结构及控制与处理器,其中;发射器包括第一光源和第二光源;采集器包括测量感光单元和参考感光单元;控制与处理器用于控制第一光源发射第一光信号至目标对象,并控制测量感光单元采集经目标对象反射的第一光信号并生成第一电信号,以及处理第一电信号计算目标对象的距离;控制与处理器还用于控制第二光源发射第二光信号至导光结构,并控制参考感光单元采集经导光结构传输的第二光信号并生成第二电信号,以及处理第二电信号计算出对应的第一光传输测量距离,并计算第一光传输测量距离和光传输实际距离的误差作为第二全局误差;所述控制与处理器还用于根据第二全局误差对目标对象的距离进行校正。In order to achieve the above purpose, the first aspect of the present application provides an ITOF camera, including an emitter, a collector, a light guide structure connecting the emitter and the collector, and a control and processor, wherein the emitter includes a first light source and a second light source. Light source; the collector includes a measurement photosensitive unit and a reference photosensitive unit; the control and processor are used to control the first light source to emit a first optical signal to the target object, and control the measurement photosensitive unit to collect the first optical signal reflected by the target object and generate a first electrical signal, and process the first electrical signal to calculate the distance of the target object; the control and processor are also used to control the second light source to emit a second optical signal to the light guide structure, and control the reference photosensitive unit to collect the second light signal transmitted through the light guide structure. optical signal and generate a second electrical signal, and process the second electrical signal to calculate the corresponding first optical transmission measurement distance, and calculate the error between the first optical transmission measurement distance and the actual optical transmission distance as the second global error; the control and The processor is also configured to correct the distance of the target object according to the second global error.
在一些实施例中,发射器还包括:光学扩散片,光学扩散片包括微结构区和非微结构区,其中,微结构区设置在第一光源的传输光路上,用于对第一光源发射的光束进行调制以向目标对象投射泛光光束;非微结构区设置在微结构区和导光结构之间,以避免第一光源发射的光束入射到导光结构中,导光结构为光纤或者内壁为境面的腔体。In some embodiments, the emitter further includes: an optical diffusion sheet. The optical diffusion sheet includes a microstructure area and a non-microstructure area, wherein the microstructure area is disposed on the transmission light path of the first light source for emitting light to the first light source. The light beam is modulated to project a flood light beam to the target object; the non-microstructure area is set between the microstructure area and the light guide structure to prevent the light beam emitted by the first light source from being incident into the light guide structure, and the light guide structure is an optical fiber or The inner wall is a cavity with a realm.
本申请第二方面提供一种智能终端,包括处理器、存储器及如上所述的ITOF相机,其中;处理器用于启动标定信号给ITOF相机;ITOF相机中的控制与处理器用于控制第二光源发射预设频率的第二光信号经过导光结构入射至参考感光单元,并生成第三电信号;控制与处理器还用于根据第三电信号计算出对应的第二光传输测量距离,计算第二光传输测量距离与第二光信号的光传输实际距离的距离误差,并计算预存储的第二全局误差与距离误差的信号延迟,以及根据信号延迟与预存储的第一全局误差进行第三全局误差计算,以利用第三全局误差对ITOF相机测量的目标对象的距离进行校正。A second aspect of this application provides an intelligent terminal, including a processor, a memory and an ITOF camera as described above, wherein: the processor is used to initiate a calibration signal to the ITOF camera; and the control and processor in the ITOF camera are used to control the emission of the second light source. The second optical signal of the preset frequency is incident on the reference photosensitive unit through the light guide structure, and generates a third electrical signal; the control and processor are also used to calculate the corresponding second optical transmission measurement distance based on the third electrical signal, and calculate the third optical signal. The distance error between the second optical transmission measurement distance and the actual optical transmission distance of the second optical signal is calculated, and the signal delay of the pre-stored second global error and the distance error is calculated, and the third step is performed based on the signal delay and the pre-stored first global error. Global error calculation to correct the distance of the target object measured by the ITOF camera using the third global error.
本申请第三方面提供一种标定方法,包括:控制第二光源发射预设频率的第二光信号经过导光结构入射至参考感光单元,生成第三电信号;根据第三电信号计算出对应的第二光传输测量距离;计算第二光传输测量距离与光传输实际距离的距离误差;计算预存储的第二全局误差与距离误差进行信号延迟;根据信号延迟与预存储的第一全局误差进行第三全局误差计算,以利用所述第三全局误差对所述ITOF相机测量的目标对象的距离进行校正。A third aspect of the present application provides a calibration method, which includes: controlling a second light source to emit a second optical signal of a preset frequency through a light guide structure and incident on a reference photosensitive unit to generate a third electrical signal; and calculating a corresponding signal based on the third electrical signal. The second optical transmission measurement distance; calculate the distance error between the second optical transmission measurement distance and the actual optical transmission distance; calculate the pre-stored second global error and the distance error to perform signal delay; according to the signal delay and the pre-stored first global error A third global error calculation is performed to correct the distance of the target object measured by the ITOF camera using the third global error.
本申请第四方面提供一种计算机可读存储介质,计算机可读存储介质上存储有标定程序,标定程序被处理器执行时实现上述标定方法的步骤。A fourth aspect of the present application provides a computer-readable storage medium. A calibration program is stored on the computer-readable storage medium. When the calibration program is executed by a processor, the steps of the above-mentioned calibration method are implemented.
有益效果beneficial effects
本实施例中,控制与处理器既可以控制第一光源发射第一光信号至目标对象,经目标对象反射至测量感光单元进行测距,又可以控制第二光源发射第二光信号至导光结构,经导光结构入射至参考感光单元进行第二全局误差计算,并根据第二全局误差对目标对象的距离进行校正。因此,本申请中ITOF相机既可以实现测距功能,又可以实时对ITOF相机的全局误差进行标定,而不需要终端生产商在产线进行全局误差标定,解决了产品长期使用后需要返厂重新进行offset校准来保证精度的问题,从而降低了售后维护成本。In this embodiment, the control and processor can not only control the first light source to emit a first optical signal to the target object, and then reflect it to the measurement photosensitive unit for distance measurement, but also control the second light source to emit a second optical signal to the light guide. The light guide structure is incident on the reference photosensitive unit for second global error calculation, and the distance of the target object is corrected according to the second global error. Therefore, the ITOF camera in this application can not only realize the ranging function, but also calibrate the global error of the ITOF camera in real time, without requiring the terminal manufacturer to perform global error calibration on the production line, which solves the problem that the product needs to be returned to the factory for re-installation after long-term use. Offset calibration is performed to ensure accuracy, thereby reducing after-sales maintenance costs.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the purpose of the present application. For some embodiments, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.
图1是本申请实施方案的智能终端的系统框图;Figure 1 is a system block diagram of an intelligent terminal according to the embodiment of the present application;
图2是本申请实施方案的ITOF相机的系统框图;Figure 2 is a system block diagram of the ITOF camera according to the embodiment of the present application;
图3是本申请实施方案的标定方法的流程示意图;Figure 3 is a schematic flow chart of the calibration method according to the embodiment of the present application;
图4是本申请另一实施方案的标定方法的流程示意图;Figure 4 is a schematic flow chart of a calibration method according to another embodiment of the present application;
图5是本申请又一实施方案的标定方法的流程示意图。Figure 5 is a schematic flow chart of a calibration method according to another embodiment of the present application.
本发明的实施方式Embodiments of the invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况下,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures and technologies are provided to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It will be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components but does not exclude one or more other features , the presence or addition of a whole, a step, an operation, an element, a component, and/or a collection thereof.
还应当理解,在本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the specification of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms unless the context clearly dictates otherwise.
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当…时”或“一旦”或“响应于确定”或“响应于检测到”。类似的,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述的条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be interpreted, depending on the context, to mean "once determined" or "in response to a determination" or "once the [described condition or event] is detected" event]” or “in response to detection of [the described condition or event]”.
下面结合本申请实施例的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described below with reference to the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
在下面的描述中阐述了很多具体细节以便于充分理解本申请,但是本申请还可以采用其它不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施例的限制。Many specific details are set forth in the following description to fully understand the present application. However, the present application can also be implemented in other ways different from those described here. Those skilled in the art can do so without violating the connotation of the present application. Similar generalizations are made, and therefore the present application is not limited to the specific embodiments disclosed below.
图1示出了智能终端的系统框图,包括处理器20、存储器30和与之连接的ITOF相机10。作为主流三维视觉感知技术之一,ITOF技术被大量应用在以手机、平板、扫地机器人、移动机器人等智能终端设备中。例如,在扫地机器人中设置ITOF相机,通过ITOF相机采集 移动机器人周围环境的三维信息,并将三维信息传输给扫地机器人中的处理器,处理器根据三维信息进行障碍物场景识别、定位感知等处理,根据处理结果控制机器人进行障碍物避障、路径规划等。其中,ITOF相机10包括发射器100、采集器200及控制与处理器300,发射器100用于朝向目标场景中的多个目标点发射具有经调制的光信号,采集器200用于采集被目标反射的光信号并生成电信号,控制与处理器300与发射器100和采集器200连接并控制发射器100和采集器200的同步激活,以及处理采集器200输出的电信号计算出光信号往返目标点的飞行时间,进一步计算出目标点的距离。本领域技术人员可以理解,图1中示出的原理框图仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的ITOF相机10的限定,具体地,ITOF相机10可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Figure 1 shows a system block diagram of a smart terminal, including a processor 20, a memory 30 and an ITOF camera 10 connected thereto. As one of the mainstream three-dimensional visual perception technologies, ITOF technology is widely used in smart terminal devices such as mobile phones, tablets, sweeping robots, and mobile robots. For example, an ITOF camera is installed in a sweeping robot. The ITOF camera collects three-dimensional information about the surrounding environment of the mobile robot and transmits the three-dimensional information to the processor in the sweeping robot. The processor performs obstacle scene recognition, positioning perception and other processing based on the three-dimensional information. , based on the processing results, the robot is controlled to perform obstacle avoidance, path planning, etc. Among them, the ITOF camera 10 includes a transmitter 100, a collector 200, and a control and processor 300. The transmitter 100 is used to transmit modulated light signals toward multiple target points in the target scene, and the collector 200 is used to collect the target. The reflected light signal generates an electrical signal, the control and processor 300 is connected to the transmitter 100 and the collector 200 and controls the synchronous activation of the transmitter 100 and the collector 200, and processes the electrical signal output by the collector 200 to calculate the optical signal to and from the target. The flight time of the point is further calculated to calculate the distance to the target point. Those skilled in the art can understand that the principle block diagram shown in Figure 1 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the ITOF camera 10 to which the solution of the present application is applied. Specifically, the ITOF Camera 10 may include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
需要说明的是,控制与处理器300可以是智能终端内的处理器20,即,处理器20与发射器100和采集器200实现测距与标定功能,或者控制与处理器300还可以是单独的一颗处理器,该单独的处理器与发射器100和采集器200构成本申请的ITOF相机10。It should be noted that the control and processor 300 may be the processor 20 in the smart terminal, that is, the processor 20, the transmitter 100 and the collector 200 implement the ranging and calibration functions, or the control and processor 300 may be a separate A single processor, the transmitter 100 and the collector 200 constitute the ITOF camera 10 of the present application.
目前,ITOF相机在出厂前需要对系统误差进行标定,主要标定的内容包括温漂、深度误差(FPPN)、距离测量误差(wiggling)和全局误差(offset)。其中,offset主要由ITOF相机本身的电子信号延迟,以及印制电路板(PCB)线路的电子信号延迟引起。不同的相机、不同的PCB测试板的信号延迟不同,即offset不同,所以需要对每个相机进行单独的标定。但是,已经标定成功的ITOF相机,匹配至不同的测试板后,测试板将产生额外的offset延迟。比如将ITOF相机组装至智能终端产品时,需要对整机进行一次重新的offset标定、校准,而该标定流程基本都是在终端成产商的产线上完成。这样增加了终端生产厂使用ITOF相机的开发成本,降低了使用体验,不利于ITOF相机的推广使用。而且,已经标定成功的ITOF相机在长期使用过程中,由于电子器件的老化,电子传输的信号延迟发生改变,offset也会发生改变,需要重新标定offset。目前,为了保证测量精度,通常需要将长期使用的ITOF相机返厂重新标定offset,增加售后维护的成本。Currently, ITOF cameras need to calibrate system errors before leaving the factory. The main calibration contents include temperature drift, depth error (FPPN), distance measurement error (wiggling) and global error (offset). Among them, offset is mainly caused by the electronic signal delay of the ITOF camera itself and the electronic signal delay of the printed circuit board (PCB) circuit. Different cameras and different PCB test boards have different signal delays, that is, different offsets, so each camera needs to be calibrated separately. However, after a successfully calibrated ITOF camera is matched to a different test board, the test board will produce additional offset delays. For example, when assembling an ITOF camera into a smart terminal product, the entire machine needs to be re-calibrated for offset, and this calibration process is basically completed on the production line of the terminal manufacturer. This increases the development costs for terminal manufacturers using ITOF cameras, reduces the user experience, and is not conducive to the promotion and use of ITOF cameras. Moreover, during long-term use of an ITOF camera that has been successfully calibrated, due to the aging of electronic components, the signal delay of electronic transmission changes, and the offset will also change, and the offset needs to be recalibrated. Currently, in order to ensure measurement accuracy, ITOF cameras that have been used for a long time usually need to be returned to the factory for recalibration of offset, which increases the cost of after-sales maintenance.
为解决上述问题,本申请提供了一种带标定系统的ITOF相机,以及将ITOF相机安装在智能终端设备中的标定方法,可以实时对ITOF相机的offset进行标定,而不需要终端生产商在产线进行offset标定,同时,这种ITOF可以解决产品长期使用后需要返厂重新进行offset校准来保证精度的问题,从而降低了售后维护成本。In order to solve the above problems, this application provides an ITOF camera with a calibration system and a calibration method for installing the ITOF camera in an intelligent terminal device. The offset of the ITOF camera can be calibrated in real time without the need for the terminal manufacturer to calibrate the camera in production. At the same time, this ITOF can solve the problem of the product needing to be returned to the factory for re-offset calibration to ensure accuracy after long-term use, thus reducing after-sales maintenance costs.
图2示出了本申请提供的一种ITOF相机,ITOF相机10包括发射器100、采集器200、控制与处理器300及连通发射器100和采集器200的导光结构400。发射器100包括第一光源101和第二光源102,采集器200包括参考感光单元201和测量感光单元202,控制与处 理器300用于控制第一光源101发射第一光信号至目标对象,并控制测量感光单元202采集经目标对象反射的第一光信号并生成第一电信号,以及处理第一电信号计算目标对象的距离;控制与处理器300还用于控制第二光源102发射第二光信号至导光结构400,并控制参考感光单元201采集经导光结构400传输的第二光信号并生成第二电信号,以及处理第二电信号计算所述第二光信号的第一光传输测量距离,并计算所述第一光传输测量距离和光传输实际距离的误差作为第二全局误差,并根据所述第二全局误差对目标对象的距离进行校正,从而实现ITOF相机10的测距功能和offset标定功能。Figure 2 shows an ITOF camera provided by the present application. The ITOF camera 10 includes an emitter 100, a collector 200, a control and processor 300, and a light guide structure 400 connecting the emitter 100 and the collector 200. The emitter 100 includes a first light source 101 and a second light source 102. The collector 200 includes a reference photosensitive unit 201 and a measurement photosensitive unit 202. The control and processor 300 is used to control the first light source 101 to emit a first light signal to the target object, and The measurement photosensitive unit 202 is controlled to collect the first optical signal reflected by the target object and generate a first electrical signal, and process the first electrical signal to calculate the distance of the target object; the control and processor 300 is also used to control the second light source 102 to emit a second The optical signal is transmitted to the light guide structure 400, and the reference photosensitive unit 201 is controlled to collect the second optical signal transmitted through the light guide structure 400 and generate a second electrical signal, and process the second electrical signal to calculate the first light of the second optical signal. Transmit the measured distance, calculate the error between the first optical transmission measurement distance and the actual optical transmission distance as the second global error, and correct the distance of the target object according to the second global error, thereby realizing the ranging of the ITOF camera 10 function and offset calibration function.
在一些实施例中,第一光源101和第二光源102可以是发光二极管(LED)、边发射激光器(EEL)、垂直腔面发射激光器(VCSEL)等光源,也可以是多个光源组成的光源阵列,发射出的光束具有相同的调制频率和波长,发射光束可以是可见光、红外光、紫外光等。在一个实施例中,第一光源101是由多个垂直腔面发射激光器组成的光源阵列,用于朝向目标对象发射斑点图案光束,第二光源102是单点光源,可以是LED、EEL、VCSEL中的任一种,优选地,第二光源102是单点VCSEL,用于发射发散角非常小的斑点光束入射至导光结构。在一个实施例中,发射器100包括由多个光源组成的光源阵列,并配置光源阵列分区调控以形成第一光源101和第二光源102,其中,第一光源101中光源的数量大于第二光源102中光源的数量,第一光源101发射光束的视场角大于第二光源102发射光束的视场角。需要说明的是,第一光源101和第二光源102的工作模式可根据实际应用进行调节,即第一光源101和第二光源102可以在不同时间独立工作,此处不做限定。In some embodiments, the first light source 101 and the second light source 102 can be a light source such as a light emitting diode (LED), an edge emitting laser (EEL), a vertical cavity surface emitting laser (VCSEL), or a light source composed of multiple light sources. Array, the emitted light beam has the same modulation frequency and wavelength, and the emitted light beam can be visible light, infrared light, ultraviolet light, etc. In one embodiment, the first light source 101 is a light source array composed of multiple vertical cavity surface emitting lasers for emitting a spot pattern beam toward a target object. The second light source 102 is a single point light source, which can be an LED, an EEL, or a VCSEL. Either one, preferably, the second light source 102 is a single-point VCSEL, used to emit a spot beam with a very small divergence angle to be incident on the light guide structure. In one embodiment, the emitter 100 includes a light source array composed of a plurality of light sources, and is configured with zone control of the light source array to form a first light source 101 and a second light source 102, wherein the number of light sources in the first light source 101 is greater than that of the second light source. The number of light sources in the light source 102, the field of view angle of the light beam emitted by the first light source 101 is greater than the field of view angle of the light beam emitted by the second light source 102. It should be noted that the working modes of the first light source 101 and the second light source 102 can be adjusted according to actual applications, that is, the first light source 101 and the second light source 102 can work independently at different times, which is not limited here.
在一些实施例中,如图2所示,发射器100还包括光学扩散片500,光学扩散片500包括微结构区和非微结构区,其中,微结构区设置在第一光源101的传输光路上,用于对第一光源101发射的光束进行调制以向目标对象投射泛光光束。非微结构区对应设置在微结构区和导光结构之间,以避免第一光源101发射的光束入射到导光结构中。具体地,光学扩散片可以是漫射体或者柔光镜。In some embodiments, as shown in FIG. 2 , the emitter 100 further includes an optical diffusion sheet 500 . The optical diffusion sheet 500 includes a microstructure area and a non-microstructure area, wherein the microstructure area is disposed in the transmission light direction of the first light source 101 . On the way, it is used to modulate the light beam emitted by the first light source 101 to project a flood light beam to the target object. The non-microstructure area is correspondingly arranged between the microstructure area and the light guide structure to prevent the light beam emitted by the first light source 101 from being incident into the light guide structure. Specifically, the optical diffusion sheet may be a diffuser or a soft mirror.
在一些实施例中,采集器200包括由多个像素组成的图像传感器,可以是电荷耦合元件(CCD)、互补金属氧化物半导体(CMOS)、雪崩二极管(AD)、单光子雪崩二极管(SPAD)等组成的图像传感器,阵列大小代表着该深度相机的分辨率,比如320x240等。一般地,与图像传感器121连接的还包括由信号放大器、时数转换器(TDC)、模数转换器(ADC)等器件中的一种或多种组成的读出电路(图中未示出)。一般地,图像传感器121包括至少一个像素,每个像素则包含多个抽头(tap,用于在相应电极的控制下存储并读取或者排出由入射光子产生的电荷信号),比如包括3个抽头,以用于读取电荷信号数据。In some embodiments, the collector 200 includes an image sensor composed of a plurality of pixels, which may be a charge coupled device (CCD), a complementary metal oxide semiconductor (CMOS), an avalanche diode (AD), a single photon avalanche diode (SPAD) The array size represents the resolution of the depth camera, such as 320x240, etc. Generally, the image sensor 121 is also connected to a readout circuit composed of one or more of a signal amplifier, a time-to-digital converter (TDC), an analog-to-digital converter (ADC), and other devices (not shown in the figure). ). Generally, the image sensor 121 includes at least one pixel, and each pixel includes a plurality of taps (for storing and reading or discharging charge signals generated by incident photons under the control of corresponding electrodes), such as including 3 taps. , used to read the charge signal data.
在一个实施例中,采集器200中的图像传感器被分成两个区域,包括测量感光单元202 和参考感光单元201,例如可以选择一行、一列或者几个像素作为参考感光单元201,而图像传感器中的其余像素则为测量感光单元202。其中,参考感光单元201与导光结构相对应,用于接收经导光结构传输的第二光信号生成第二电信号用于进行标定。在一些实施例中,采集器200还包括接收透镜600和滤光片700,优选地,滤光片700与测量感光单元202想适配,例如,滤光片700可附着在测量感光单元202的表面,被目标对象反射回的光信号通过接收透镜600入射至测量感光单元202以生成第一电信号用于进行测距,滤光片600需选择与第二光源波长相匹配的窄带滤光片,用于抑制其余波段的环境光,避免环境光的干扰。In one embodiment, the image sensor in the collector 200 is divided into two areas, including the measurement photosensitive unit 202 and the reference photosensitive unit 201. For example, a row, a column or several pixels can be selected as the reference photosensitive unit 201, and the image sensor The remaining pixels are the measurement photosensitive units 202. The reference photosensitive unit 201 corresponds to the light guide structure and is used to receive the second optical signal transmitted through the light guide structure and generate a second electrical signal for calibration. In some embodiments, the collector 200 also includes a receiving lens 600 and a filter 700. Preferably, the filter 700 is adapted to the measurement photosensitive unit 202. For example, the filter 700 can be attached to the measurement photosensitive unit 202. Surface, the optical signal reflected back by the target object is incident on the measurement photosensitive unit 202 through the receiving lens 600 to generate a first electrical signal for distance measurement. The filter 600 needs to select a narrow-band filter that matches the wavelength of the second light source. , used to suppress ambient light in other bands and avoid interference from ambient light.
在一些实施例中,导光结构400为光纤或者内壁为境面的腔体。具体地,导光管可以是单模光纤、多模光纤或镜面反射器。In some embodiments, the light guide structure 400 is an optical fiber or a cavity with an inner wall. Specifically, the light pipe may be a single-mode optical fiber, a multi-mode optical fiber, or a specular reflector.
在一些实施例中,控制与处理器300可以是独立的专用电路,比如包含CPU、存储器、总线等组成的专用SOC芯片、FPGA芯片、ASIC芯片等等,也可以包含通用处理电路,比如将该ITOF相机被集成到智能终端中去后,智能终端中的处理器可以作为该控制与处理器300的至少一部分。为了便于描述,下文中将二者分开来分别进行描述,但并不因此限制本申请的保护范围。In some embodiments, the control and processor 300 can be an independent dedicated circuit, such as a dedicated SOC chip, FPGA chip, ASIC chip, etc. composed of a CPU, memory, bus, etc., or it can also include a general processing circuit, such as the After the ITOF camera is integrated into the smart terminal, the processor in the smart terminal can serve as at least part of the control and processor 300 . For ease of description, the two are described separately below, but this does not limit the scope of protection of the present application.
在一个实施例中,控制与处理器300处理第一电信号以计算出反射的第一光信号相对于发射的第一光信号的相位延迟
Figure PCTCN2022123163-appb-000001
进一步根据相位延迟
Figure PCTCN2022123163-appb-000002
计算出目标对应的距离D 1,即:
Figure PCTCN2022123163-appb-000003
f 1为第一光信号的调制频率,C为光速。
In one embodiment, the control and processor 300 processes the first electrical signal to calculate a phase delay of the reflected first optical signal relative to the emitted first optical signal.
Figure PCTCN2022123163-appb-000001
further according to the phase delay
Figure PCTCN2022123163-appb-000002
Calculate the distance D 1 corresponding to the target, that is:
Figure PCTCN2022123163-appb-000003
f 1 is the modulation frequency of the first optical signal, and C is the speed of light.
本申请提供的ITOF相机本身具有标定系统,在出厂前,需要先进行offset标定。具体的,设置有离ITOF相机固定距离D 真实的标定板,控制与处理器300控制第一光源101向预设距离的标定板发射第一光信号,经标定板反射的第一光信号入射至测量感光单元202并生成第一电信号,控制与处理器300还用于处理第一电信号计算出标定板的距离D 测量,计算出的距离D 测量为标定板的测量距离,由于电子信号延迟导致标定板的测量距离D 测量与真实距离D 真实存在偏差,计算出的误差为:D error=D 测量-D 真实,D error即为常规offset标定时需要校准的offset值,即将该数据存储在相机中,作为预存储的第一全局误差,在实际测量目标距离时,利用该校准offset值对目标物的测量值进行修正得到目标更准确地测量距离值。 The ITOF camera provided in this application has a calibration system itself, and offset calibration needs to be performed before leaving the factory. Specifically, a real calibration plate is provided at a fixed distance D from the ITOF camera. The control and processor 300 controls the first light source 101 to emit a first optical signal to the calibration plate at a preset distance. The first optical signal reflected by the calibration plate is incident on the calibration plate. Measure the photosensitive unit 202 and generate a first electrical signal. The control and processor 300 is also used to process the first electrical signal to calculate the distance D measurement of the calibration plate. The calculated distance D measurement is the measurement distance of the calibration plate. Due to the electronic signal delay As a result, there is a deviation between the measurement distance D of the calibration plate and the real distance D. The calculated error is: D error = D measurement - D real . D error is the offset value that needs to be calibrated during conventional offset calibration, that is, the data is stored in In the camera, as the pre-stored first global error, when actually measuring the target distance, the calibration offset value is used to correct the measurement value of the target object to obtain a more accurate measurement distance value of the target.
在一些实施例中,控制与处理器300处理第二电信号以计算出参考感光单元201接收的第二光信号相对于发射的第二光信号的相位延迟
Figure PCTCN2022123163-appb-000004
进一步根据相位延迟
Figure PCTCN2022123163-appb-000005
计算出第二光信号对应的飞行距离d 2,即:
Figure PCTCN2022123163-appb-000006
f 2为第二光信号的调制频率。
In some embodiments, the control and processor 300 processes the second electrical signal to calculate the phase delay of the second optical signal received by the reference photosensitive unit 201 relative to the emitted second optical signal.
Figure PCTCN2022123163-appb-000004
further according to the phase delay
Figure PCTCN2022123163-appb-000005
Calculate the flight distance d 2 corresponding to the second optical signal, that is:
Figure PCTCN2022123163-appb-000006
f 2 is the modulation frequency of the second optical signal.
其次,在出厂前,控制与处理器300控制第二光源102发射第二光信号至导光结构400, 经导光结构400传输的第二光信号入射至参考感光单元201生成第二电信号,控制与处理器300还用于处理第二电信号计算出对应的第一光传输测量距离d 测量,由于电子信号延迟导致测量距离d 测量与光传输实际距离d(d=L 1+L 2+L 3)存在偏差,计算出的误差为:d error=d 测量-d,其中,L 1表示第二光源102到导光结构400的距离、L 2表示导光结构400的长度、L 3表示导光结构400到参考感光单元201的距离;d error即常规offset标定时需要校准的offset值,即将该数据存储在相机中,作为预存储的第二全局误差。在ITOF相机实际测量目标距离时,利用该校准offset值对目标物的测量值进行修正得到目标更准确地测量距离值。可以理解的是,当ITOF相机测距时,可选择用第一全局误差或第二全局误差对距离值进行校正,而正因为对ITOF相机内部设置标定系统,在应用中,可以实时对相机的offset进行标定,或者使用一段时间后,对相机进行一次offset标定,减少因电子器件老化带来的新的误差。而为了解决应用于终端中不同电路带来的不同延迟问题,本申请提出了一种带标定的ITOF相机,且还需要进行二次标定。 Secondly, before leaving the factory, the control and processor 300 controls the second light source 102 to emit a second optical signal to the light guide structure 400. The second optical signal transmitted through the light guide structure 400 is incident on the reference photosensitive unit 201 to generate a second electrical signal. The control and processor 300 is also used to process the second electrical signal to calculate the corresponding first optical transmission measurement distance d measurement . Due to the delay of the electronic signal, the measurement distance d measurement is different from the actual optical transmission distance d (d=L 1 + L 2 + There is a deviation in L 3 ), and the calculated error is: d error = d measurement - d, where L 1 represents the distance from the second light source 102 to the light guide structure 400 , L 2 represents the length of the light guide structure 400 , and L 3 represents The distance between the light guide structure 400 and the reference photosensitive unit 201; d error is the offset value that needs to be calibrated during conventional offset calibration, that is, the data is stored in the camera as the pre-stored second global error. When the ITOF camera actually measures the target distance, the calibration offset value is used to correct the measurement value of the target object to obtain a more accurate measurement distance value of the target. It can be understood that when the ITOF camera measures distance, you can choose to use the first global error or the second global error to correct the distance value. And because the calibration system is set up inside the ITOF camera, in the application, the camera can be calibrated in real time. Calibrate the offset, or perform an offset calibration on the camera after using it for a period of time to reduce new errors caused by the aging of electronic components. In order to solve the different delay problems caused by different circuits used in terminals, this application proposes a calibrated ITOF camera, which also requires secondary calibration.
本申请提供的一种智能终端,包括ITOF相机10、处理器20及存储器30。将ITOF相机10集成到智能终端后,终端设备中PCB板还会带来额外的光信号延迟误差,即offset误差,此时还需要对整机进行offset标定。此时由于ITOF相机10自带标定系统,则不需要额外的标定设备或者标定环境搭建,仅仅通过在线的软件、算法即可完成。具体的,在终端设备上,处理器20启动标定信号给到ITOF相机10,ITOF相机10中的控制与处理器300控制第二光源102发射预设频率的第二光信号经过导光结构400入射至参考感光单元201生成第三电信号,根据第三电信号计算出对应的第二光传输测量距离d′,将第二光传输测量距离d′与光传输实际距离d(d=L 1+L 2+L 3)进行距离误差计算:Δd=d′-d。此外,由于整机PCB板上电子电路导致额外的信号延迟,控制与处理器300还用于将预存储的第二全局误差d error与距离误差Δd进行信号延迟计算:Δdd=Δd-d error。为实现全局误差的标定,控制与处理器300还用于将预存储的第一全局误差D error与信号延迟Δdd进行全局误差计算:ΔD=D error+Δdd,作为第三全局误差,并存储最终的offset数值ΔD来标定实时的全局误差,即将第三全局误差存储在相机中,在实际测量目标距离时,利用该值对测量值进行修正得到目标更准确地测量距离值。 An intelligent terminal provided by this application includes an ITOF camera 10, a processor 20 and a memory 30. After the ITOF camera 10 is integrated into a smart terminal, the PCB board in the terminal equipment will also bring additional optical signal delay error, that is, offset error. At this time, the entire machine needs to be calibrated for offset. At this time, since the ITOF camera 10 comes with its own calibration system, no additional calibration equipment or calibration environment is required. It can be completed only through online software and algorithms. Specifically, on the terminal device, the processor 20 starts the calibration signal to the ITOF camera 10, and the control and processor 300 in the ITOF camera 10 controls the second light source 102 to emit a second optical signal of a preset frequency through the light guide structure 400. The reference photosensitive unit 201 generates a third electrical signal, calculates the corresponding second light transmission measurement distance d′ according to the third electrical signal, and compares the second light transmission measurement distance d′ with the actual light transmission distance d (d=L 1 + L 2 + L 3 ) to calculate the distance error: Δd=d′-d. In addition, due to the additional signal delay caused by the electronic circuit on the PCB of the whole machine, the control and processor 300 is also used to calculate the signal delay using the pre-stored second global error d error and the distance error Δd: Δdd=Δd-d error . In order to realize the calibration of the global error, the control and processor 300 is also used to calculate the global error using the pre-stored first global error D error and the signal delay Δdd: ΔD = D error + Δdd, as the third global error, and store the final The offset value ΔD is used to calibrate the real-time global error, that is, the third global error is stored in the camera. When the target distance is actually measured, this value is used to correct the measurement value to obtain a more accurate measurement distance value of the target.
综上,本实施例中,控制与处理器300既可以控制第一光源101发射第一光信号至目标对象,经目标对象反射至测量感光单元202进行测距,又可以控制第二光源102发射第二光信号至导光结构400,经导光结构400入射至参考感光单元201进行全局误差标定,因此,本申请中ITOF相机既可以实现测距功能,又可以实时对ITOF相机的全局误差进行标定,而 不需要终端生产商在产线进行全局误差标定,解决了产品长期使用后需要返厂重新进行offset校准来保证精度的问题,从而降低了售后维护成本。In summary, in this embodiment, the control and processor 300 can not only control the first light source 101 to emit the first light signal to the target object, and then reflect it to the measurement photosensitive unit 202 for ranging, but also control the second light source 102 to emit the first light signal. The second optical signal goes to the light guide structure 400 and is incident on the reference photosensitive unit 201 for global error calibration. Therefore, the ITOF camera in this application can not only achieve the ranging function, but also perform real-time calibration of the global error of the ITOF camera. Calibration does not require the terminal manufacturer to perform global error calibration on the production line, which solves the problem of the product needing to be returned to the factory for re-offset calibration to ensure accuracy after long-term use, thus reducing after-sales maintenance costs.
如图3所示,本申请还提供了一种标定方法,当上述ITOF相机集成在智能终端后,通过上述标定方法对上述实施例的ITOF相机10的全局误差进行标定。As shown in Figure 3, this application also provides a calibration method. When the ITOF camera is integrated into a smart terminal, the global error of the ITOF camera 10 in the above embodiment is calibrated through the calibration method.
标定方法由ITOF相机中的控制与处理器300、或带有ITOF相机10的智能终端执行,标定方法包括如下步骤:The calibration method is executed by the control and processor 300 in the ITOF camera or the smart terminal with the ITOF camera 10. The calibration method includes the following steps:
步骤S301,控制第二光源102发射预设频率的第二光信号经过导光结构400入射至参考感光单元201,生成第三电信号。In step S301, the second light source 102 is controlled to emit a second optical signal of a preset frequency through the light guide structure 400 and incident on the reference photosensitive unit 201 to generate a third electrical signal.
步骤S302,根据第三电信号计算出对应的第二光传输测量距离。Step S302: Calculate the corresponding second optical transmission measurement distance according to the third electrical signal.
步骤S303,计算第二光传输测量距离d′与光传输实际距离d的距离误差,计算出Δd=d′-d,其中,光传输实际距离d=L 1+L 2+L 3,其中,L 1表示第二光源102到导光结构400的距离、L 2表示导光结构400的长度、L 3表示导光结构400到参考感光单元201的距离。 Step S303, calculate the distance error between the second optical transmission measurement distance d′ and the actual optical transmission distance d, and calculate Δd=d′-d, where the actual optical transmission distance d=L 1 +L 2 +L 3 , where, L 1 represents the distance from the second light source 102 to the light guide structure 400 , L 2 represents the length of the light guide structure 400 , and L 3 represents the distance from the light guide structure 400 to the reference photosensitive unit 201 .
步骤S304,计算预存储的第二全局误差d error与距离误差Δd的信号延迟计,计算出Δdd=Δd-d errorStep S304: Calculate the signal delay meter of the pre-stored second global error d error and distance error Δd, and calculate Δdd=Δd-d error .
步骤S305,根据信号延迟Δdd与预存储的第一全局误差D error进行第三全局误差计算,计算出ΔD=D error+Δdd,以利用第三全局误差对ITOF相机测量的目标对象的距离进行校正。 Step S305, perform a third global error calculation based on the signal delay Δdd and the pre-stored first global error D error , and calculate ΔD = D error + Δdd to use the third global error to correct the distance of the target object measured by the ITOF camera. .
在一些实施例中,控制与处理器300、或带有ITOF相机10的智能终端执行通过以下步骤获得预存储的第一全局误差,如图4所示,包括:In some embodiments, the control and processor 300, or the smart terminal with the ITOF camera 10 performs the following steps to obtain the pre-stored first global error, as shown in Figure 4, including:
步骤S401,控制第一光源101向预设测量距离的标定板发射第一光信号,经标定板反射的第一光信号入射至测量感光单元202生成第一电信号。In step S401, the first light source 101 is controlled to emit a first optical signal to a calibration plate at a preset measurement distance. The first optical signal reflected by the calibration plate is incident on the measurement photosensitive unit 202 to generate a first electrical signal.
步骤S402,根据第一电信号计算出标定板的测量距离,即控制与处理器300处理第一电信号以计算出反射的第一光信号相对于发射的第一光信号的相位延迟
Figure PCTCN2022123163-appb-000007
进一步根据相位延迟
Figure PCTCN2022123163-appb-000008
计算出目标对应的距离D 1,即:
Figure PCTCN2022123163-appb-000009
f 1为第一光信号的调制频率。
Step S402, calculate the measurement distance of the calibration plate according to the first electrical signal, that is, the control and processor 300 processes the first electrical signal to calculate the phase delay of the reflected first optical signal relative to the emitted first optical signal.
Figure PCTCN2022123163-appb-000007
further according to the phase delay
Figure PCTCN2022123163-appb-000008
Calculate the distance D 1 corresponding to the target, that is:
Figure PCTCN2022123163-appb-000009
f 1 is the modulation frequency of the first optical signal.
步骤S403,计算出预设距离和标定板的测量距离的误差,作为预存储的第一全局误差存储D erroStep S403: Calculate the error between the preset distance and the measured distance of the calibration plate, and store Derro as the pre-stored first global error .
在一些实施例中,控制与处理器300、或带有ITOF相机10的智能终端执行通过以下步骤获得预存储的第二全局误差,如图5所示,包括:In some embodiments, the control and processor 300, or the smart terminal with the ITOF camera 10 performs the following steps to obtain the pre-stored second global error, as shown in Figure 5, including:
步骤S501,控制第二光源102发射第二光信号至导光结构400,经导光结构400入射 至参考感光单元201生成第二电信号。Step S501, control the second light source 102 to emit a second optical signal to the light guide structure 400, and then enter the reference photosensitive unit 201 through the light guide structure 400 to generate a second electrical signal.
步骤S502,根据第二电信号计算出对应的第一光传输测量距离,即控制与处理器300处理第二电信号以计算出参考感光单元201接收的第二光信号相对于发射的第二光信号的相位延迟
Figure PCTCN2022123163-appb-000010
进一步根据相位延迟
Figure PCTCN2022123163-appb-000011
计算出第二光信号对应的飞行距离d 2,即:
Figure PCTCN2022123163-appb-000012
f 2为第二光信号的调制频率。
Step S502, calculate the corresponding first optical transmission measurement distance according to the second electrical signal, that is, the control and processor 300 processes the second electrical signal to calculate the relative distance between the second optical signal received by the reference photosensitive unit 201 and the second light emitted. signal phase delay
Figure PCTCN2022123163-appb-000010
further according to the phase delay
Figure PCTCN2022123163-appb-000011
Calculate the flight distance d 2 corresponding to the second optical signal, that is:
Figure PCTCN2022123163-appb-000012
f 2 is the modulation frequency of the second optical signal.
步骤S503,计算出第一光传输测量距离和光传输实际距离的误差,作为预存储的第二全局误差存储d error,其中,光传输实际距离d(d=L 1+L 2+L 3),其中,L 1表示第二光源102到导光结构400的距离、L 2表示导光结构400的长度、L 3表示导光结构400到参考感光单元201的距离。 Step S503, calculate the error between the first optical transmission measurement distance and the actual optical transmission distance, and store d error as the pre-stored second global error, where the actual optical transmission distance d (d=L 1 +L 2 +L 3 ), Wherein, L 1 represents the distance from the second light source 102 to the light guide structure 400 , L 2 represents the length of the light guide structure 400 , and L 3 represents the distance from the light guide structure 400 to the reference photosensitive unit 201 .
综上,本标定方法中,控制第二光源102发射预设频率的第二光信号至导光结构400,经导光结构400入射至参考感光单元201,生成第三电信号;根据第三电信号计算出对应的第二光传输测量距离,将第二光传输测量距离与光传输实际距离进行距离误差计算;将预存储的第二全局误差与距离误差进行信号延迟计算;将信号延迟与预存储第一全局误差进行第三全局误差计算,以利用所述第三全局误差对所述ITOF相机测量的距离进行校正,因此,通过上述标定方法可以实时对ITOF相机的全局误差进行标定,而不需要终端生产商在产线进行全局误差标定,解决了产品长期使用后需要返厂重新进行offset校准来保证精度的问题,从而降低了售后维护成本。In summary, in this calibration method, the second light source 102 is controlled to emit a second optical signal of a preset frequency to the light guide structure 400, and is incident on the reference photosensitive unit 201 through the light guide structure 400 to generate a third electrical signal; according to the third electrical signal Calculate the corresponding second optical transmission measurement distance based on the signal, calculate the distance error between the second optical transmission measurement distance and the actual optical transmission distance; perform signal delay calculation using the pre-stored second global error and distance error; compare the signal delay and the pre-stored optical transmission distance. The first global error is stored and the third global error is calculated to use the third global error to correct the distance measured by the ITOF camera. Therefore, the global error of the ITOF camera can be calibrated in real time through the above calibration method without Terminal manufacturers are required to perform global error calibration on the production line, which solves the problem of products needing to be returned to the factory for re-offset calibration to ensure accuracy after long-term use, thus reducing after-sales maintenance costs.
基于上述实施例,智能终端的存储器30上存储有并可在处理器20上运行的标定程序,标定程序可以被处理器20执行时实现上述标定方法的步骤。Based on the above embodiments, the memory 30 of the smart terminal stores a calibration program that can be run on the processor 20 . The calibration program can be executed by the processor 20 to implement the steps of the above calibration method.
在一些实施例中,标定程序被处理器20执行时进行以下操作指令:控制第二光源102发射第二光信号经过导光结构400入射至参考感光单元201,生成第二电信号;处理第二电信号计算出对应的第二光传输测量距离;计算第二光传输测量距离与光传输实际距离的距离误差;计算预存储的第二全局误差与距离误差的信号延迟;根据信号延迟与预存储的第一全局误差进行第三全局误差计算,以利用第三全局误差对ITOF相机测量的距离进行校正。In some embodiments, when the calibration program is executed by the processor 20, the following operation instructions are performed: control the second light source 102 to emit a second optical signal through the light guide structure 400 and enter the reference photosensitive unit 201 to generate a second electrical signal; process the second Calculate the corresponding second optical transmission measurement distance from the electrical signal; calculate the distance error between the second optical transmission measurement distance and the actual optical transmission distance; calculate the signal delay between the pre-stored second global error and the distance error; according to the signal delay and the pre-stored The third global error is calculated using the first global error to correct the distance measured by the ITOF camera using the third global error.
本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有标定程序,标定程序被处理器执行时实现上述的标定方法的步骤。Embodiments of the present application also provide a computer-readable storage medium. A calibration program is stored on the computer-readable storage medium. When the calibration program is executed by a processor, the steps of the above-mentioned calibration method are implemented.
应理解,上述实施例中各步骤的序号大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence number of each step in the above embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能 单元、模块完成,即将上述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units and modules is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs. Module completion means dividing the internal structure of the above device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be hardware-based. It can also be implemented in the form of software functional units. In addition, the specific names of each functional unit and module are only for the convenience of distinguishing each other and are not used to limit the scope of protection of the present application. For the specific working processes of the units and modules in the above system, please refer to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, each embodiment is described with its own emphasis. For parts that are not detailed or documented in a certain embodiment, please refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各实例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟是以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,上述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以由另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。In the embodiments provided in this application, it should be understood that the disclosed apparatus/terminal equipment and methods can be implemented in other ways. For example, the apparatus/terminal equipment embodiments described above are only illustrative. For example, the division of the above modules or units is only a logical function division. In actual implementation, it can be divided in other ways, such as multiple units or units. Components may be combined or may be integrated into another system, or some features may be ignored, or not implemented.
上述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,上述计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,上述计算机程序包括计算机程序代码,上述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。上述计算机可读介质可以包括:能够携带上述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,上述计算机可读存储介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减。If the above-mentioned integrated modules/units are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present application can implement all or part of the processes in the methods of the above embodiments by instructing relevant hardware through a computer program. The above computer program can be stored in a computer-readable storage medium. The computer program can be stored in a computer-readable storage medium. When executed by the processor, the steps of each of the above method embodiments can be implemented. Wherein, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code, executable file or some intermediate form, etc. The above-mentioned computer-readable media may include: any entity or device capable of carrying the above-mentioned computer program code, recording media, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random accessory Access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media, etc. It should be noted that the content contained in the above computer-readable storage media can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解;其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不是相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请 的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present application, but not to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that they can still implement the above-mentioned implementations. The technical solutions described in the examples are modified, or some of the technical features are equivalently replaced; however, these modifications or substitutions do not mean that the essence of the corresponding technical solutions deviates from the spirit and scope of the technical solutions in the embodiments of this application, and they should all be included in this application. within the scope of protection applied for.

Claims (10)

  1. 一种ITOF相机,其特征在于,包括发射器、采集器、连通所述发射器和所述采集器的导光结构及控制与处理器,其中;An ITOF camera, characterized in that it includes an emitter, a collector, a light guide structure connecting the emitter and the collector, and a control and processor, wherein;
    所述发射器包括第一光源和第二光源;The emitter includes a first light source and a second light source;
    所述采集器包括测量感光单元和参考感光单元;The collector includes a measurement photosensitive unit and a reference photosensitive unit;
    所述控制与处理器用于控制所述第一光源发射第一光信号至目标对象,并控制所述测量感光单元采集经所述目标对象反射的所述第一光信号并生成第一电信号,以及处理所述第一电信号计算所述目标对象的距离;The control and processor are used to control the first light source to emit a first optical signal to a target object, and control the measurement photosensitive unit to collect the first optical signal reflected by the target object and generate a first electrical signal, and processing the first electrical signal to calculate a distance of the target object;
    所述控制与处理器还用于控制所述第二光源发射第二光信号至所述导光结构,并控制所述参考感光单元采集经所述导光结构传输的所述第二光信号并生成第二电信号,以及处理所述第二电信号计算出对应的第一光传输测量距离,并计算所述第一光传输测量距离和光传输实际距离的误差作为第二全局误差;The control and processor are also used to control the second light source to emit a second optical signal to the light guide structure, and control the reference photosensitive unit to collect the second optical signal transmitted through the light guide structure and Generate a second electrical signal, process the second electrical signal to calculate the corresponding first optical transmission measurement distance, and calculate the error between the first optical transmission measurement distance and the actual optical transmission distance as the second global error;
    所述控制与处理器还用于根据所述第二全局误差对所述目标对象的距离进行校正。The control and processor are further configured to correct the distance of the target object according to the second global error.
  2. 根据权利要求1所述的ITOF相机,其特征在于,所述发射器还包括光学扩散片,所述光学扩散片包括微结构区和非微结构区,其中,所述微结构区设置在所述第一光源的传输光路上,用于对所述第一光源发射的光束进行调制以向所述目标对象投射泛光光束;所述非微结构区设置在所述微结构区和所述导光结构之间,以避免所述第一光源发射的光束入射到所述导光结构中。The ITOF camera according to claim 1, wherein the emitter further includes an optical diffusion sheet, the optical diffusion sheet includes a microstructure area and a non-microstructure area, wherein the microstructure area is disposed on the The transmission optical path of the first light source is used to modulate the light beam emitted by the first light source to project a flood light beam to the target object; the non-microstructure area is provided between the microstructure area and the light guide between structures to prevent the light beam emitted by the first light source from being incident into the light guide structure.
  3. 根据权利要求1所述的ITOF相机,其特征在于,所述导光结构为光纤或者内壁为境面的腔体。The ITOF camera according to claim 1, wherein the light guide structure is an optical fiber or a cavity with an inner wall.
  4. 根据权利要求1所述的ITOF相机,其特征在于,所述控制与处理器还用于处理所述第一电信号以计算出反射的所述第一光信号相对于发射的所述第一光信号的相位延迟;所述控制与处理器还用于根据所述相位延迟计算出所述目标对象的距离。The ITOF camera according to claim 1, wherein the control and processor are further configured to process the first electrical signal to calculate the reflected first optical signal relative to the emitted first light signal. The phase delay of the signal; the control and processor is also used to calculate the distance of the target object based on the phase delay.
  5. 根据权利要求1所述的ITOF相机,其特征在于,所述控制与处理器还用于控制所述第一光源向预设距离的标定板发射所述第一光信号,经所述标定板反射的所述第一光信号入射至所述测量感光单元生成所述第一电信号,处理所述第一电信号计算出标定板的测量距离,并计算所述预设距离和所述标定板的测量距离的误差作为第一全局误差。The ITOF camera according to claim 1, wherein the control and processor are further used to control the first light source to emit the first light signal to a calibration plate at a preset distance, and the first light signal is reflected by the calibration plate. The first optical signal is incident on the measurement photosensitive unit to generate the first electrical signal, the first electrical signal is processed to calculate the measurement distance of the calibration plate, and the preset distance and the distance of the calibration plate are calculated. The error in the measured distance is taken as the first global error.
  6. 一种智能终端,其特征在于,包括处理器、存储器及如权利要求1-5所述的ITOF相机,其中;An intelligent terminal, characterized by comprising a processor, a memory and an ITOF camera as claimed in claims 1-5, wherein;
    所述处理器用于启动标定信号给所述ITOF相机;The processor is used to initiate a calibration signal to the ITOF camera;
    所述控制与处理器用于控制所述第二光源发射预设频率的第二光信号经过所述导光结构入射至所述参考感光单元,并生成第三电信号;The control and processor are used to control the second light source to emit a second optical signal of a preset frequency through the light guide structure and incident on the reference photosensitive unit, and generate a third electrical signal;
    所述控制与处理器还用于根据所述第三电信号计算出对应的第二光传输测量距离,并计算所述第二光传输测量距离和光传输实际距离的距离误差,并计算所述预存储的第二全局误差与所述距离误差的信号延迟,以及根据所述信号延迟与预存储的第一全局误差进行第三全局误差计算,以利用所述第三全局误差对所述ITOF相机测量的目标对象的距离进行校正。The control and processor are further configured to calculate the corresponding second optical transmission measurement distance according to the third electrical signal, and calculate the distance error between the second optical transmission measurement distance and the actual optical transmission distance, and calculate the predetermined optical transmission distance. The stored second global error and the signal delay of the distance error, and performing a third global error calculation based on the signal delay and the pre-stored first global error to use the third global error to measure the ITOF camera The distance to the target object is corrected.
  7. 一种基于权利要求1-5任一项所述的ITOF相机的标定方法,所述标定方法应用于权利要求6所述的智能终端中,其特征在于,所述标定方法包括:A calibration method based on the ITOF camera according to any one of claims 1 to 5, the calibration method is applied to the smart terminal according to claim 6, characterized in that the calibration method includes:
    控制所述第二光源发射预设频率的第二光信号经过所述导光结构入射至所述参考感光单元,生成第三电信号;Controlling the second light source to emit a second optical signal of a preset frequency through the light guide structure and incident on the reference photosensitive unit to generate a third electrical signal;
    根据所述第三电信号计算出对应的第二光传输测量距离;Calculate the corresponding second optical transmission measurement distance according to the third electrical signal;
    计算所述第二光传输测量距离与光传输实际距离的距离误差;Calculate the distance error between the second optical transmission measurement distance and the actual optical transmission distance;
    计算预存储的第二全局误差与所述距离误差的信号延迟;Calculate the signal delay between the pre-stored second global error and the distance error;
    根据所述信号延迟与预存储的第一全局误差进行第三全局误差计算,以利用所述第三全局误差对所述ITOF相机测量的目标对象的距离进行校正。A third global error calculation is performed according to the signal delay and the pre-stored first global error, so as to use the third global error to correct the distance of the target object measured by the ITOF camera.
  8. 根据权利要求7所述的标定方法,其特征在于,所述标定方法还包括:The calibration method according to claim 7, characterized in that the calibration method further includes:
    控制所述第一光源向预设距离的标定板发射第一光信号,经所述标定板反射的所述第一光信号入射至所述测量感光单元生成第一电信号;Control the first light source to emit a first optical signal to a calibration plate at a preset distance, and the first optical signal reflected by the calibration plate is incident on the measurement photosensitive unit to generate a first electrical signal;
    根据所述第一电信号计算出标定板的测量距离;Calculate the measurement distance of the calibration plate according to the first electrical signal;
    计算所述预设距离和所述标定板的测量距离的误差,作为预存储的第一全局误差。The error between the preset distance and the measured distance of the calibration plate is calculated as a pre-stored first global error.
  9. 根据权利要求7所述的标定方法,其特征在于,所述标定方法还包括:The calibration method according to claim 7, characterized in that the calibration method further includes:
    控制所述第二光源发射第二光信号至所述导光结构,经所述导光结构入射至所述参考感光单元生成第二电信号;Controlling the second light source to emit a second optical signal to the light guide structure, and incident on the reference photosensitive unit through the light guide structure to generate a second electrical signal;
    根据所述第二电信号计算出对应的第一光传输测量距离;Calculate the corresponding first optical transmission measurement distance according to the second electrical signal;
    计算出所述第一光传输测量距离和光传输实际距离的误差,作为预存储的第二全局误差。The error between the first optical transmission measurement distance and the actual optical transmission distance is calculated as a pre-stored second global error.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有标定程序,所述标定程序被处理器执行时实现如权利要求7-9任一项所述的标定方法的步骤。A computer-readable storage medium, characterized in that a calibration program is stored on the computer-readable storage medium, and when the calibration program is executed by a processor, the calibration method according to any one of claims 7-9 is implemented. step.
PCT/CN2022/123163 2022-09-05 2022-09-30 Itof camera, calibration method, and related device WO2024050902A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211077959.6 2022-09-05
CN202211077959.6A CN115469331A (en) 2022-09-05 2022-09-05 ITOF camera, calibration method and related equipment

Publications (1)

Publication Number Publication Date
WO2024050902A1 true WO2024050902A1 (en) 2024-03-14

Family

ID=84368300

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/123163 WO2024050902A1 (en) 2022-09-05 2022-09-30 Itof camera, calibration method, and related device

Country Status (2)

Country Link
CN (1) CN115469331A (en)
WO (1) WO2024050902A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116645413A (en) * 2023-06-02 2023-08-25 湖州丽天智能科技有限公司 Photovoltaic cell panel position identification method and system and photovoltaic robot

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180106891A1 (en) * 2016-10-19 2018-04-19 Infineon Technologies Ag 3di sensor depth calibration concept using difference frequency approach
CN109143252A (en) * 2018-08-08 2019-01-04 合肥泰禾光电科技股份有限公司 The method and device of TOF depth camera range calibration
CN111427048A (en) * 2020-02-25 2020-07-17 深圳奥比中光科技有限公司 ToF depth measuring device, method for controlling ToF depth measuring device and electronic equipment
CN112596065A (en) * 2019-09-17 2021-04-02 三星电子株式会社 Time-of-flight sensor and method of calibrating errors therein
CN113487678A (en) * 2021-06-11 2021-10-08 奥比中光科技集团股份有限公司 Camera calibration method, system and processing circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180106891A1 (en) * 2016-10-19 2018-04-19 Infineon Technologies Ag 3di sensor depth calibration concept using difference frequency approach
CN109143252A (en) * 2018-08-08 2019-01-04 合肥泰禾光电科技股份有限公司 The method and device of TOF depth camera range calibration
CN112596065A (en) * 2019-09-17 2021-04-02 三星电子株式会社 Time-of-flight sensor and method of calibrating errors therein
CN111427048A (en) * 2020-02-25 2020-07-17 深圳奥比中光科技有限公司 ToF depth measuring device, method for controlling ToF depth measuring device and electronic equipment
CN113487678A (en) * 2021-06-11 2021-10-08 奥比中光科技集团股份有限公司 Camera calibration method, system and processing circuit

Also Published As

Publication number Publication date
CN115469331A (en) 2022-12-13

Similar Documents

Publication Publication Date Title
JP6633197B2 (en) Photodetector and electronic equipment
US9971024B2 (en) Lidar scanner calibration
CN109143252B (en) Method and device for distance calibration of TOF depth camera
US20180343381A1 (en) Distance image acquisition apparatus and application thereof
CN110609293A (en) Distance detection system and method based on flight time
US8785898B2 (en) Device and method for detecting liquid level of molten silicon using laser reflected from curved mirror
CN108267749A (en) Calibrate the photodetector of flight time optical system
CN108845332B (en) Depth information measuring method and device based on TOF module
WO2022095247A1 (en) Distance measurement error calibration system and calibration method for laser radar
WO2020038058A1 (en) Calibration method, calibration controller, and calibration system
WO2024050902A1 (en) Itof camera, calibration method, and related device
US9329025B2 (en) Measuring device
US20190369214A1 (en) Laser positioning apparatus and laser positioning method
US20230305150A1 (en) Adaptive search method for light spot positions, time of flight distance measurement system, and distance measurement method
WO2022011974A1 (en) Distance measurement system and method, and computer-readable storage medium
CN112394365B (en) Speckle tracking method, ranging module, electronic device and readable storage medium
WO2021208582A1 (en) Calibration apparatus, calibration system, electronic device and calibration method
CN113325391A (en) Wide-angle TOF module and application thereof
EP3945283B1 (en) Surveying instrument
CN101672726A (en) Spatial light communication terminal communication detector locating test device and method
CN111983630B (en) Single photon ranging system, method, terminal equipment and storage medium
CN109901137B (en) Calibration method and calibration equipment of wide-angle TOF module
WO2019157632A1 (en) Ranging system, automation device and ranging method
CN115616593B (en) Laser radar, calibration method and method for improving laser radar measurement precision
WO2022257558A1 (en) Time-of-flight module, terminal and depth detection method

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: 22957869

Country of ref document: EP

Kind code of ref document: A1