WO2022205827A1 - Structured light image processing method, obstacle detection method, module and device - Google Patents

Structured light image processing method, obstacle detection method, module and device Download PDF

Info

Publication number
WO2022205827A1
WO2022205827A1 PCT/CN2021/122723 CN2021122723W WO2022205827A1 WO 2022205827 A1 WO2022205827 A1 WO 2022205827A1 CN 2021122723 W CN2021122723 W CN 2021122723W WO 2022205827 A1 WO2022205827 A1 WO 2022205827A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
structured light
target area
light image
optimized
Prior art date
Application number
PCT/CN2021/122723
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 WO2022205827A1 publication Critical patent/WO2022205827A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/30Noise filtering

Definitions

  • the invention relates to the technical field of image processing, in particular to a structured light image processing method, an obstacle detection method, a module and equipment.
  • structured light as an effective means of laser detection, has been widely used in object recognition, ranging and so on. Specifically, by emitting structured light with a specific shape (such as a line laser, a cross beam, etc.) to the area to be detected, it can be detected whether there is an obstacle in the area according to the structured light pattern in the captured image of the area to be detected , and the relevant information of obstacles can also be determined through the features of the structured light image.
  • a specific shape such as a line laser, a cross beam, etc.
  • the present invention provides a structured light image processing method, an obstacle detection method, a module and equipment, so as to reduce or even eliminate the interference of ambient light noise in the structured light image, thereby improving the reliability and accuracy of obstacle detection.
  • a structured light image processing method comprising:
  • the reference image is an image of the target area not irradiated by structured light
  • image filtering is performed on the structured light image to obtain an optimized structured light image.
  • the use of the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image includes:
  • ambient light filtering processing is performed on the to-be-processed structured light image to obtain the optimized structured light image.
  • the ambient light related information includes image parameter values of each pixel of the reference image, and correspondingly, performing ambient light filtering processing on the structured light image to be processed includes:
  • the optimized structured light image is obtained by subtracting the image parameter value of each pixel point of the structured light image to be processed by the corresponding image parameter value of each pixel point of the reference image; or,
  • the optimized structured light image is obtained by subtracting the image parameter value of the local area of the structured light image to be processed by the image parameter value of the corresponding local area of the reference image.
  • the method further includes:
  • an obstacle detection method comprising:
  • the reference image is an image when the target area is not illuminated by structured light
  • image filtering is performed on the structured light image to obtain an optimized structured light image
  • the obstacle information of the target area is determined.
  • the use of the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image includes:
  • ambient light filtering processing is performed on the structured light image to obtain the optimized structured light image.
  • the acquiring the structured light image of the target area includes:
  • the obtaining the reference image of the target area includes:
  • a reference image of the target area under the ambient light condition corresponding to the structured light image is acquired.
  • the ambient light related information includes image parameter values of each pixel of the reference image, and correspondingly, performing ambient light filtering processing on the structured light image includes:
  • the optimized structured light image is obtained by subtracting the image parameter value of each pixel point of the structured light image to be processed by the corresponding image parameter value of each pixel point of the reference image; or,
  • the optimized structured light image is obtained by subtracting the image parameter value of the local area of the structured light image to be processed by the image parameter value of the corresponding local area of the reference image.
  • the method further includes:
  • determining the obstacle information of the target area according to the optimized structured light image includes:
  • the obstacle information of the target area is determined.
  • a structured light module comprising:
  • an image acquisition unit configured to acquire a structured light image to be processed, and to acquire a reference image of a target area corresponding to the structured light image, wherein the reference image is an image when the target area is not irradiated by structured light;
  • the processing unit is configured to use the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image.
  • the processing unit is configured to:
  • ambient light filtering processing is performed on the to-be-processed structured light image to obtain the optimized structured light image.
  • an autonomous mobile device comprising:
  • a structured light module disposed on the main body of the device, configured to acquire a structured light image of the target area, and to acquire a reference image of the target area, wherein the reference image is when the target area is not irradiated by structured light Image;
  • the processing unit is configured to use the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image; and to determine obstacle information of the target area according to the optimized structured light image.
  • the processing unit is configured to:
  • ambient light filtering processing is performed on the structured light image to obtain the optimized structured light image.
  • the structured light module includes:
  • a light-emitting unit for projecting structured light to the target area
  • an image acquisition unit configured to acquire an image of the target area as the structured light image when the target area is illuminated by the structured light; and configured to obtain an image of the target area when the target area is not illuminated by the structure In the case of light irradiation, a reference image of the target area under ambient light conditions corresponding to the structured light image is acquired.
  • a reference image of a target area irradiated by unstructured light can be used to perform image filtering processing on the structured light image, so as to reduce or even eliminate the interference of ambient light, so that better image quality can be obtained.
  • using the optimized structured light image to detect obstacles in the target area can effectively improve the reliability and accuracy of obstacle detection.
  • Fig. 1 is a schematic flowchart of a method for processing a structured light image provided by an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a method for detecting an obstacle according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a method for processing a structured light image provided by another embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a structured light module according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a module of an autonomous mobile device according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of an implementation scenario of an obstacle detection method provided by an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of an obstacle detection scene of an autonomous mobile device according to an embodiment of the present invention.
  • FIG. 8 is the structured light image obtained in an embodiment of the present invention.
  • FIG. 9 is the reference image obtained in an embodiment of the present invention.
  • FIG. 10 is the optimized structured light image obtained in an embodiment of the present invention.
  • FIG. 11 is a schematic flowchart of an obstacle detection method provided by another embodiment of the present invention.
  • FIG. 12 is a schematic diagram of a device structure of an autonomous mobile device according to an embodiment of the present invention.
  • the "plurality" in the embodiments of the present invention refers to two or more.
  • the descriptions of the first, second, etc. appearing in the embodiments of the present invention are only used for illustration and distinguishing the description objects, and have no order, nor do they represent a special limitation on the number of devices in the embodiments of the present invention, and do not constitute a description of the present invention. any limitations of the examples.
  • FIG. 1 is a schematic flowchart of a method for processing a structured light image provided in an embodiment of the present invention.
  • the method can be applied to any structured light module.
  • the structured light module can be composed of a structured light emission unit and an image acquisition unit.
  • the method may include:
  • structured light refers to a laser beam projected onto the surface of an object that can form an optical pattern of a certain shape.
  • a planar laser beam projected onto the surface of an object will form a linear optical pattern, which can be called a line laser.
  • a type of structured light is not limited in the present invention. Any shape such as round, square, etc.
  • an image containing the optical pattern can be acquired by an image acquisition device such as a camera, a camera, etc., to be used to subsequently determine whether there is an obstacle in the projected target area according to the image, and to calculate the obstacle according to the image. relevant physical information.
  • the image containing the optical pattern is the structured light image to be processed.
  • the structured light image to be processed also includes optical noise caused by ambient light in the target area, and the ambient light may include, for example, sunlight, lights, etc. , light reflected from an object, etc.
  • the object recognition error will be caused by the interference of ambient light noise, resulting in low object recognition accuracy and reliability.
  • S120 Acquire a reference image of the target area corresponding to the structured light image, where the reference image is an image of the target area when the structured light is not irradiated.
  • the target area refers to the real physical area mapped by the structured light image, that is, the actual photographing area of the photographing device that photographed the structured light image.
  • the reference image is a physical area that is not structured light in this physical area.
  • the reference image can be used to obtain ambient light related information when the structured light image is captured, and the ambient light related information can be used to eliminate the interference of ambient light noise in the structured light image.
  • the ambient light related information can be used to eliminate the interference of ambient light noise in the structured light image.
  • the ambient light-related information corresponding to the reference image and the ambient light-related information corresponding to the structured light image can be equal or as close as possible, thereby The referenceability of the ambient light related information is improved.
  • a structured light image and a reference image of a similar time period can be obtained by controlling the time of structured light irradiation and image shooting, so that the shooting moment of the structured light image is the same as the reference image.
  • the time difference between the shooting moments is within 0.1s, so that the ambient light-related information of the structured light image and the reference image is basically the same.
  • the specific value of the above time difference is only exemplary, and in other embodiments of the present invention, the time difference can also be controlled to be smaller or larger.
  • the time difference can be determined according to the change of the actual ambient light and the actual accuracy requirement, which is not limited in the present invention.
  • Image filtering is to suppress the noise of the target image under the condition of preserving the details of the image as much as possible.
  • the quality of the processing effect will directly affect the effectiveness and reliability of the subsequent image analysis.
  • the image filtering process mainly removes the noise generated by the ambient light in the structured light image to obtain the optimized structured light image, and then in the subsequent object recognition process using this structured light image, the Minimize the error of object recognition caused by the interference of ambient light noise, and improve the accuracy and reliability of object recognition.
  • the described use of the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image may include:
  • S132 Perform ambient light filtering processing on the structured light image to be processed according to the ambient light related information to obtain the optimized structured light image.
  • the ambient light related information may include image parameters that can characterize ambient light characteristics, for example, may include any one or more of parameters such as brightness, grayscale, RGB value, saturation, hue, image intensity, etc., or It is a parameter obtained by combining various parameters according to preset weights.
  • the ambient light related information may include image parameter values of each pixel of the reference image, and correspondingly, performing ambient light filtering processing on the structured light image to be processed may include:
  • the optimized structured light image is obtained by subtracting the image parameter value of each pixel point of the structured light image to be processed by the corresponding image parameter value of each pixel point of the reference image; or,
  • the optimized structured light image is obtained by subtracting the image parameter value of the local area of the structured light image to be processed by the image parameter value of the corresponding local area of the reference image.
  • the image parameter value may be any one or more of parameter values such as brightness, grayscale, RGB value, saturation, hue, image intensity, etc., or may be parameters obtained by combining multiple parameters according to preset weights value of .
  • the image parameter value may include a brightness value
  • performing ambient light filtering processing on the structured light image to be processed may include: filtering the structured light image to be processed
  • the brightness value of each pixel point of the image is subtracted from the brightness value of each pixel point of the corresponding reference image, that is, the brightness value of the corresponding pixel point of the structured light image to be processed and the reference image are subtracted to obtain the optimized Structured light image.
  • the image parameter value may also be image intensity, RGB value, grayscale, saturation, hue, and other parameter values that can characterize image pixel characteristics. The implementer can select the type of image parameter value according to the actual application scenarios and requirements of the subsequent structured light image.
  • the brightness of the optical pattern has a great influence on the recognition accuracy, and the brightness value can be selected as the
  • the image parameter value is not limited in the present invention.
  • image filtering processing the ambient light noise in the structured light image can be suppressed or even eliminated, so that the optical pattern formed by the structured light irradiation in the image has higher definition and more obvious features.
  • FIG. 3 is a schematic flowchart of a method for processing a structured light image provided by another embodiment of the present invention. Specifically, as shown in FIG. 3, the method may include:
  • S320 Acquire a reference image of the target area corresponding to the structured light image, where the reference image is an image of the target area when the structured light is not irradiated.
  • S340 Perform image enhancement processing on the optimized structured light image to obtain a further optimized structured light image.
  • image enhancement is an enhancement of useful information in an image, which can be a distortion process, the purpose of which is to improve the visual effect of an image, and is purposeful for the application of a given image.
  • image enhancement can be a distortion process, the purpose of which is to improve the visual effect of an image, and is purposeful for the application of a given image.
  • Emphasize the overall or local characteristics of the image make the original unclear image clear or emphasize some interesting features, expand the difference between the features of different objects in the image, suppress the uninteresting features, and improve the image quality and richness.
  • the amount of information strengthen the effect of image interpretation and recognition, to meet the needs of some special analysis.
  • the optical pattern formed by the irradiation of structured light in the image can have higher definition and more obvious features.
  • image filtering is performed on the structured light image to reduce or even eliminate the interference of ambient light, so that an optimized structured light image with higher image quality can be obtained.
  • FIG. 2 is a schematic flowchart of a method for detecting an obstacle according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of an implementation scenario of an obstacle detection method provided by an embodiment of the present invention.
  • the method can be applied to an autonomous mobile device, and the autonomous mobile device can be any robot that can automatically move or Electronic devices or smart devices that work automatically.
  • the method may include:
  • S210 Acquire a structured light image of the target area.
  • structured light refers to a laser beam projected on the surface of an object that can form an optical pattern of a certain shape.
  • the laser emitters E and F both emit a planar line laser, and a planar laser
  • the beam projected on the obstacle will form a linear optical pattern, such as the linear pattern AB and the linear pattern CD as shown in Figure 6.
  • the beams emitted by the laser emitters E and F can be called line lasers, which belong to structured light.
  • the specific shape of the structured light beam and the shape of the optical pattern formed by it are not limited in the present invention.
  • the shape of the formed optical pattern may also be any shape such as a line, a cross, a triangle, a circle, and a square.
  • the target area may be the direction of the autonomous mobile device in which obstacles need to be detected, the photographable area of the image acquisition device of the autonomous mobile device, and the size of the photographable area depends on the image acquisition device the visible range (field of view, etc.).
  • the image acquisition device may be a camera, a camera, etc.
  • the image acquisition device may also be a corresponding non-visible light camera, such as an infrared camera.
  • FIG. 7 is a schematic diagram of an obstacle detection scene of an autonomous mobile device according to an embodiment of the present invention.
  • the visual range of the camera C of the autonomous mobile device is the ⁇ angle range in front of the camera, and the visual range can be regarded as a target area.
  • the target area is generally in the In the traveling direction of the device, the two structured light lasers A and B of the device can emit structured light into the visible range.
  • the camera C can obtain the structured light image by capturing an image within the time period when the target area is illuminated by the structured light.
  • an obstacle appears on the propagation path of the structured light (such as an obstacle in the traveling direction of the autonomous mobile device)
  • a corresponding optical pattern will be formed, and the structured light image of the target area captured by the camera C will contain
  • the optical pattern will be included. According to the optical pattern, the obstacle can be detected, and the distance, shape, size and other related information of the obstacle can also be analyzed.
  • the structured light image in addition to the optical pattern, also includes optical noise caused by ambient light in the target area, and the ambient light may include, for example, sunlight, lights, Light reflected from objects, etc.
  • FIG. 8 is the structured light image obtained in an embodiment of the present invention. As shown in Figure 8, in the structured light image, in addition to the optical pattern formed by the structured light irradiating the obstacle, there is also ambient light noise caused by the existence of various ambient lights.
  • Object recognition will cause recognition errors due to the interference of ambient light noise (for example, there may also be optical patterns generated by similar structured light irradiation in ambient light noise, or the optical patterns formed by structured light are covered by ambient light noise, etc., which will lead to subsequent recognition error), resulting in low recognition accuracy and reliability.
  • ambient light noise for example, there may also be optical patterns generated by similar structured light irradiation in ambient light noise, or the optical patterns formed by structured light are covered by ambient light noise, etc., which will lead to subsequent recognition error
  • S220 Acquire a reference image of the target area, where the reference image is an image of the target area when the target area is not irradiated by structured light.
  • the reference image is an image obtained by the photographing device photographing the target area when the target area is not illuminated by structured light.
  • the ambient light-related information corresponding to the reference image and the ambient light-related information corresponding to the structured light image can be equal or as close as possible, thereby The referenceability of the ambient light related information is improved.
  • a structured light image and a reference image of a similar time period can be obtained by controlling the time of structured light irradiation and image shooting, so that the shooting moment of the structured light image is the same as the reference image.
  • the time difference between the shooting moments is within 0.1s, so that the ambient light-related information of the structured light image and the reference image is basically the same.
  • the specific value of the above time difference is only exemplary, and in other embodiments of the present invention, the time difference can also be controlled to be smaller or larger.
  • the time difference can be determined according to the change of the actual ambient light and the actual accuracy requirement, which is not limited in the present invention.
  • FIG. 9 is the reference image obtained in an embodiment of the present invention. As shown in FIG. 9 , the reference image and the structured light image shown in FIG. 8 correspond to the same target area. In FIG. 9 , there is no linear pattern formed by structured light irradiation, and the ambient light information is related to the environment of the structured light image. The light information is the same.
  • image filtering is to suppress the noise of the target image under the condition of preserving the image details as much as possible, and the quality of its processing effect will directly affect the effectiveness and reliability of subsequent image analysis.
  • the image filtering process mainly removes the noise generated by the ambient light in the structured light image to obtain the optimized structured light image, and then in the subsequent object recognition process using this structured light image, the Minimize the error of object recognition caused by the interference of ambient light noise, and improve the accuracy and reliability of object recognition.
  • the use of the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image may include:
  • S231 Acquire ambient light related information from the reference image.
  • S232 Perform ambient light filtering processing on the structured light image according to the ambient light related information to obtain the optimized structured light image.
  • the ambient light related information may include image parameters that can characterize ambient light characteristics, for example, may include any one or more of parameters such as brightness, grayscale, RGB value, saturation, hue, image intensity, etc., or It is a parameter obtained by combining various parameters according to preset weights.
  • the ambient light related information may include image parameter values of each pixel of the reference image, and correspondingly, performing ambient light filtering processing on the structured light image may include:
  • the optimized structured light image is obtained by subtracting the image parameter value of each pixel point of the structured light image to be processed by the corresponding image parameter value of each pixel point of the reference image; or,
  • the optimized structured light image is obtained by subtracting the image parameter value of the local area of the structured light image to be processed by the image parameter value of the corresponding local area of the reference image.
  • the image parameter value may be any one or more of parameter values such as brightness, grayscale, RGB value, saturation, hue, image intensity, etc., or may be parameters obtained by combining multiple parameters according to preset weights value of .
  • the image parameter value may include a brightness value
  • performing ambient light filtering processing on the structured light image may include: value, subtract the corresponding brightness value of each pixel of the reference image, that is, subtract the brightness value of the corresponding pixel of the structured light image and the reference image, to obtain the optimized structured light image.
  • the image parameter value may also be image intensity, RGB value, grayscale, saturation, hue, and other parameter values that can characterize image pixel characteristics. The implementer can select the type of image parameter value according to the actual application scenarios and requirements of the subsequent structured light image.
  • the brightness of the optical pattern has a great influence on the recognition accuracy, and the brightness value can be selected as the
  • the image parameter value is not limited in the present invention.
  • image filtering processing the ambient light noise in the structured light image can be suppressed or even eliminated, so that the optical pattern formed by the structured light irradiation in the image has higher definition and more obvious features.
  • FIG. 10 is the optimized structured light image obtained in an embodiment of the present invention.
  • FIG. 10 is an optimized structured light image obtained after performing image filtering processing on the structured light image shown in FIG. 8 using the reference image shown in FIG. 9 .
  • the optimized structured light image only the optical pattern formed by the illumination of the structured light, without the interference of ambient light noise, can be used to identify obstacles more accurately and reliably and determine the relevant information of obstacles , so that the control system of the autonomous mobile device can take accurate obstacle avoidance or obstacle crossing actions according to the obstacle information.
  • S240 Determine obstacle information of the target area according to the optimized structured light image.
  • the obstacle information may include one or more of information such as whether there is an obstacle, the distance (position) of the obstacle, the size, shape, and category of the obstacle.
  • the acquiring the structured light image of the target area may include:
  • the obtaining the reference image of the target area includes:
  • a reference image of the target area under the ambient light condition corresponding to the structured light image is acquired.
  • the autonomous mobile device may have at least two structured light emitters and one camera.
  • the controller of the device can control the two structured light emitters to repeatedly emit light alternately, And there is a period of time when neither of the two transmitters emits light in the period of alternating light emission, and the shooting frequency of the camera is controlled cooperatively.
  • the specific process may be: controlling the first structured light emitter to emit light, taking a structured light image of the target area during the lighting process, and then controlling the first structured light emitter to turn off, and when the two structured light emitters do not emit light
  • the unstructured light image can be used as a reference image of the structured light image for performing image filtering processing on the structured light image.
  • control the second structured light emitter to emit light take a structured light image of the target area, then control the second structured light emitter to turn off, and take an unstructured light image as a reference image for the structured light image, and so on and so forth.
  • the structured light image and the corresponding reference image can be continuously photographed during the movement of the autonomous mobile device, so as to identify obstacles.
  • the acquisition time interval between the structured light image and the corresponding reference image can be shortened, and the ambient light information of the reference image and the ambient light information of the structured light image can be the same or as close as possible.
  • the above control process is only exemplary.
  • the specific light-emitting and shooting sequence and frequency settings can be set by the implementer according to the actual ambient light changes and/or obstacle recognition accuracy requirements It should be confirmed that the present invention is not limited thereto.
  • FIG. 11 is a schematic flowchart of an obstacle detection method provided by another embodiment of the present invention. As shown in Figure 11, the method may include:
  • S410 Acquire a structured light image of the target area.
  • S420 Acquire a reference image of the target area, where the reference image is an image of the target area when the structured light is not irradiated.
  • S440 Perform image enhancement processing on the optimized structured light image to obtain a further optimized structured light image.
  • S450 Determine obstacle information of the target area according to the further optimized structured light image.
  • the reference image of the target area without structured light irradiation can be used to perform image filtering processing on the structured light image, so as to reduce or even eliminate the interference of ambient light, whereby, an optimized structured light image with higher image quality can be obtained. Further, using the optimized structured light image to detect obstacles in the target area can effectively improve the reliability and accuracy of obstacle detection.
  • the present invention further provides a structured light module.
  • 4 is a schematic structural diagram of a structured light module according to an embodiment of the present invention. As shown in Figure 4, the module may include:
  • the image acquisition unit 101 can be configured to acquire a structured light image to be processed, and acquire a reference image of a target area corresponding to the structured light image, wherein the reference image is when the target area is not irradiated by structured light. image.
  • the processing unit 102 is configured to use the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image.
  • the processing unit 102 may be configured as:
  • ambient light filtering processing is performed on the to-be-processed structured light image to obtain the optimized structured light image.
  • the ambient light related information includes image parameter values of each pixel of the reference image, and correspondingly, performing ambient light filtering processing on the structured light image to be processed includes:
  • the optimized structured light image is obtained by subtracting the image parameter value of each pixel point of the structured light image to be processed by the corresponding image parameter value of each pixel point of the reference image; or,
  • the optimized structured light image is obtained by subtracting the image parameter value of the local area of the structured light image to be processed by the image parameter value of the corresponding local area of the reference image.
  • the processing unit 102 may be further configured as:
  • FIG. 5 is a schematic structural diagram of a module of an autonomous mobile device according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of a device structure of an autonomous mobile device according to an embodiment of the present invention.
  • the autonomous mobile device may include:
  • the structured light module 202 which can be arranged on the main body of the device 201, can be configured to obtain a structured light image of the target area and obtain a reference image of the target area, wherein the reference image is the target area that has not been Image when illuminated by structured light.
  • the processing unit 203 may be configured to perform image filtering processing on the structured light image by using the reference image to obtain an optimized structured light image; and determine the obstacle information of the target area according to the optimized structured light image .
  • the processing unit 203 may be configured as:
  • ambient light filtering processing is performed on the structured light image to obtain the optimized structured light image.
  • the structured light module 202 may include:
  • the light-emitting unit 2021 can be used to project structured light to the target area.
  • the image acquisition unit 2022 may be configured to acquire an image of the target area as the structured light image when the target area is illuminated by the structured light; and may also be configured to obtain an image of the target area when the target area is not illuminated by the structured light.
  • a reference image of the target area under ambient light conditions corresponding to the structured light image is acquired.
  • the acquiring the structured light image of the target area may include:
  • the obtaining the reference image of the target area includes:
  • a reference image of the target area under the ambient light condition corresponding to the structured light image is acquired.
  • the ambient light related information may include image parameter values of each pixel of the reference image, and correspondingly, performing ambient light filtering processing on the structured light image may include:
  • the optimized structured light image is obtained by subtracting the image parameter value of each pixel point of the structured light image to be processed by the corresponding image parameter value of each pixel point of the reference image; or,
  • the optimized structured light image is obtained by subtracting the image parameter value of the local area of the structured light image to be processed by the image parameter value of the corresponding local area of the reference image.
  • the processing unit described in the above embodiments may be, for example, but not limited to, a CPU, a GPU, an MCU, a processing chip implemented based on an FPGA or a CPLD, or a single-chip microcomputer.
  • These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
  • These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
  • Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.

Abstract

A structured light image processing method, an obstacle detection method, a module and a device. The method comprises: acquiring a structured light image to be processed (S110); acquiring a reference image of a target area corresponding to the structured light image, the reference image being an image when the target area is not irradiated by structured light (S120); and carrying out image filtering processing on the structured light image by using the reference image to obtain an optimized structured light image (S130). The described method may reduce or even eliminate the interference of ambient light noise in a structured light image.

Description

结构光图像处理方法、障碍物检测方法、模组及设备Structured light image processing method, obstacle detection method, module and equipment 【技术领域】【Technical field】
本发明涉及图像处理技术领域,尤其涉及一种结构光图像处理方法、障碍物检测方法、模组及设备。The invention relates to the technical field of image processing, in particular to a structured light image processing method, an obstacle detection method, a module and equipment.
【背景技术】【Background technique】
随着激光技术的飞速发展,激光检测技术已逐渐应用于各领域。其中,结构光作为一种有效的激光检测手段,在物体识别、测距等方面得到广泛应用。具体的,通过发射具有特定形状的结构光(如线激光、十字光等)到待检测区域,根据拍摄到的待检测区域的图像中的结构光图案,就可以检测到此区域是否存在障碍物,还可以通过结构光图像的特征确定障碍物的相关信息。With the rapid development of laser technology, laser detection technology has been gradually applied in various fields. Among them, structured light, as an effective means of laser detection, has been widely used in object recognition, ranging and so on. Specifically, by emitting structured light with a specific shape (such as a line laser, a cross beam, etc.) to the area to be detected, it can be detected whether there is an obstacle in the area according to the structured light pattern in the captured image of the area to be detected , and the relevant information of obstacles can also be determined through the features of the structured light image.
但是,现有技术中,在利用结构光图像进行物体检测的实际实施环境中,往往存在各种干扰,导致障碍物检测的可靠性和准确度较低。However, in the prior art, in the actual implementation environment of object detection using structured light images, various disturbances often exist, resulting in low reliability and accuracy of obstacle detection.
【发明内容】[Content of the invention]
本发明提供一种结构光图像处理方法、障碍物检测方法、模组及设备,以减少甚至消除结构光图像中环境光噪声的干扰,进而提高障碍物检测的可靠性和准确度。The present invention provides a structured light image processing method, an obstacle detection method, a module and equipment, so as to reduce or even eliminate the interference of ambient light noise in the structured light image, thereby improving the reliability and accuracy of obstacle detection.
根据本发明的第一方面,提供了一种结构光图像处理方法,所述方法包括:According to a first aspect of the present invention, a structured light image processing method is provided, the method comprising:
获取待处理的结构光图像;Obtain the structured light image to be processed;
获取所述结构光图像对应的目标区域的参考图像,所述参考图像是所述目标区域未被结构光照射时的图像;acquiring a reference image of the target area corresponding to the structured light image, where the reference image is an image of the target area not irradiated by structured light;
利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像。Using the reference image, image filtering is performed on the structured light image to obtain an optimized structured light image.
在一种可能的实现方式中,所述利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化结构光图像包括:In a possible implementation manner, the use of the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image includes:
从所述参考图像中获取环境光相关信息;obtaining ambient light related information from the reference image;
根据所述环境光相关信息,对所述待处理的结构光图像进行环境光滤波处理,得到所述优化的结构光图像。According to the ambient light related information, ambient light filtering processing is performed on the to-be-processed structured light image to obtain the optimized structured light image.
在一种可能的实现方式中,所述环境光相关信息包括所述参考图像各像素点的图像参数值,对应的,所述对所述待处理的结构光图像进行环境光滤波处理包括:In a possible implementation manner, the ambient light related information includes image parameter values of each pixel of the reference image, and correspondingly, performing ambient light filtering processing on the structured light image to be processed includes:
将所述待处理的结构光图像各像素点的图像参数值,减去对应的所述参考图像各像素点的图像参数值,得到所述优化的结构光图像;或,The optimized structured light image is obtained by subtracting the image parameter value of each pixel point of the structured light image to be processed by the corresponding image parameter value of each pixel point of the reference image; or,
将所述待处理的结构光图像局部区域的图像参数值,减去对应的所述参考图像局部区域的图像参数值,得到所述优化的结构光图像。The optimized structured light image is obtained by subtracting the image parameter value of the local area of the structured light image to be processed by the image parameter value of the corresponding local area of the reference image.
在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:
对所述优化结构光图像进行图像增强处理,得到进一步优化的结构光图像。Perform image enhancement processing on the optimized structured light image to obtain a further optimized structured light image.
根据本发明的第二方面,提供了一种障碍物检测方法,所述方法包括:According to a second aspect of the present invention, an obstacle detection method is provided, the method comprising:
获取目标区域的结构光图像;Obtain a structured light image of the target area;
获取所述目标区域的参考图像,所述参考图像是所述目标区域未被结构光照射时的图像;acquiring a reference image of the target area, where the reference image is an image when the target area is not illuminated by structured light;
利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像;Using the reference image, image filtering is performed on the structured light image to obtain an optimized structured light image;
根据所述优化的结构光图像,确定所述目标区域的障碍物信息。According to the optimized structured light image, the obstacle information of the target area is determined.
在一种可能的实现方式中,所述利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像包括:In a possible implementation manner, the use of the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image includes:
从所述参考图像中获取环境光相关信息;obtaining ambient light related information from the reference image;
根据所述环境光相关信息,对所述结构光图像进行环境光滤波处理,得到所述优化的结构光图像。According to the ambient light related information, ambient light filtering processing is performed on the structured light image to obtain the optimized structured light image.
在一种可能的实现方式中,所述获取目标区域的结构光图像包括:In a possible implementation manner, the acquiring the structured light image of the target area includes:
向所述目标区域投射结构光;projecting structured light to the target area;
在所述目标区域被所述结构光照射的情况下,获取所述目标区域的图像,作为所述结构光图像;When the target area is illuminated by the structured light, acquiring an image of the target area as the structured light image;
对应的,所述获取所述目标区域的参考图像包括:Correspondingly, the obtaining the reference image of the target area includes:
在所述目标未被所述结构光照射的情况下,获取所述结构光图像对应的环境光条件下的所述目标区域的参考图像。When the target is not illuminated by the structured light, a reference image of the target area under the ambient light condition corresponding to the structured light image is acquired.
在一种可能的实现方式中,所述环境光相关信息包括所述参考图像各像素点的图像参数值,对应的,所述对所述结构光图像进行环境光滤波处理包括:In a possible implementation manner, the ambient light related information includes image parameter values of each pixel of the reference image, and correspondingly, performing ambient light filtering processing on the structured light image includes:
将所述待处理的结构光图像各像素点的图像参数值,减去对应的所述参考图像各像素点的图像参数值,得到所述优化的结构光图像;或,The optimized structured light image is obtained by subtracting the image parameter value of each pixel point of the structured light image to be processed by the corresponding image parameter value of each pixel point of the reference image; or,
将所述待处理的结构光图像局部区域的图像参数值,减去对应的所述参考图像局部区域的图像参数值,得到所述优化的结构光图像。The optimized structured light image is obtained by subtracting the image parameter value of the local area of the structured light image to be processed by the image parameter value of the corresponding local area of the reference image.
在一种可能的实现方式中,在所述利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像之后,所述方法还包括:In a possible implementation manner, after using the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image, the method further includes:
对所述优化的结构光图像进行图像增强处理,得到进一步优化的结构光图像;performing image enhancement processing on the optimized structured light image to obtain a further optimized structured light image;
对应的,所述根据所述优化的结构光图像,确定所述目标区域的障碍物信息包括:Correspondingly, determining the obstacle information of the target area according to the optimized structured light image includes:
根据所述进一步优化的结构光图像,确定所述目标区域的障碍物信息。According to the further optimized structured light image, the obstacle information of the target area is determined.
根据本发明的第三方面,提供了一种结构光模组,所述模组包括:According to a third aspect of the present invention, a structured light module is provided, the module comprising:
图像获取单元,被配置为获取待处理的结构光图像,以及获取所述结构光图像对应的目标区域的参考图像,其中,所述参考图像是所述目标区域未被结构光照射时的图像;an image acquisition unit, configured to acquire a structured light image to be processed, and to acquire a reference image of a target area corresponding to the structured light image, wherein the reference image is an image when the target area is not irradiated by structured light;
处理单元,被配置为利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像。The processing unit is configured to use the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image.
在一种可能的实现方式中,所述处理单元被配置为:In a possible implementation, the processing unit is configured to:
从所述参考图像中获取环境光相关信息;obtaining ambient light related information from the reference image;
根据所述环境光相关信息,对所述待处理的结构光图像进行环境光滤波处理,得到所述优化的结构光图像。According to the ambient light related information, ambient light filtering processing is performed on the to-be-processed structured light image to obtain the optimized structured light image.
根据本发明的第四方面,提供了一种自主移动设备,所述设备包括:According to a fourth aspect of the present invention, an autonomous mobile device is provided, the device comprising:
设备主体;device body;
结构光模块,设置在所述设备主体上,被配置为获取目标区域的结构光图像,以及获取所述目标区域的参考图像,其中,所述参考图像是所述目标区域未被结构光照射时的图像;A structured light module, disposed on the main body of the device, configured to acquire a structured light image of the target area, and to acquire a reference image of the target area, wherein the reference image is when the target area is not irradiated by structured light Image;
处理单元,被配置为利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像;根据所述优化的结构光图像,确定所述目标区域的障碍物信息。The processing unit is configured to use the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image; and to determine obstacle information of the target area according to the optimized structured light image.
在一种可能的实现方式中,所述处理单元被配置为:In a possible implementation, the processing unit is configured to:
从所述参考图像中获取环境光相关信息;obtaining ambient light related information from the reference image;
根据所述环境光相关信息,对所述结构光图像进行环境光滤波处理,得到所述优化的结构光图像。According to the ambient light related information, ambient light filtering processing is performed on the structured light image to obtain the optimized structured light image.
在一种可能的实现方式中,所述结构光模块包括:In a possible implementation, the structured light module includes:
发光单元,用于向所述目标区域投射结构光;a light-emitting unit for projecting structured light to the target area;
图像获取单元,被配置为在所述目标区域被所述结构光照射的情况下,获取所述目标区域的图像,作为所述结构光图像;还被配置为在所述目标未被所述结构光照射的情况下,获取所述结构光图像对应的环境光条件下的所述目标区域的参考图像。an image acquisition unit, configured to acquire an image of the target area as the structured light image when the target area is illuminated by the structured light; and configured to obtain an image of the target area when the target area is not illuminated by the structure In the case of light irradiation, a reference image of the target area under ambient light conditions corresponding to the structured light image is acquired.
根据本发明的各方面提供的实施方式,可以利用无结构光照射的目标区域的参考图像,对所述结构光图像进行图像滤波处理,减小甚至消除环境光的干扰,从而可以得到图像质量更高的优化的结构光图像。进一步的,利用所述优化的结构光图像,检测所述目标区域的障碍物,可以有效提高障碍物检测的可靠性和准确度。According to the embodiments provided by various aspects of the present invention, a reference image of a target area irradiated by unstructured light can be used to perform image filtering processing on the structured light image, so as to reduce or even eliminate the interference of ambient light, so that better image quality can be obtained. Highly optimized structured light images. Further, using the optimized structured light image to detect obstacles in the target area can effectively improve the reliability and accuracy of obstacle detection.
根据下面参考附图对示例性实施例的详细说明,本发明的其它特征及方面将变得清楚。Other features and aspects of the present invention will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.
【附图说明】【Description of drawings】
包含在说明书中并且构成说明书的一部分的附图与说明书一起示出了本发明的示例性实施例、特征和方面,并且用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features and aspects of the invention and together with the description, serve to explain the principles of the invention.
图1是本发明一种实施例提供的一种结构光图像处理方法的方法流程 示意图。Fig. 1 is a schematic flowchart of a method for processing a structured light image provided by an embodiment of the present invention.
图2是本发明一种实施例提供的一种障碍物检测方法的方法流程示意图。FIG. 2 is a schematic flowchart of a method for detecting an obstacle according to an embodiment of the present invention.
图3是本发明另一种实施例提供的一种结构光图像处理方法的方法流程示意图。FIG. 3 is a schematic flowchart of a method for processing a structured light image provided by another embodiment of the present invention.
图4是本发明一种实施例提供的一种结构光模组的模块结构示意图。FIG. 4 is a schematic structural diagram of a structured light module according to an embodiment of the present invention.
图5是本发明一种实施例提供的一种自主移动设备的模块结构示意图。FIG. 5 is a schematic structural diagram of a module of an autonomous mobile device according to an embodiment of the present invention.
图6是本发明一种实施例提供的一种障碍物检测方法的实施场景示意图。FIG. 6 is a schematic diagram of an implementation scenario of an obstacle detection method provided by an embodiment of the present invention.
图7是本发明一种实施例提供的一种自主移动设备的障碍物检测场景示意图。FIG. 7 is a schematic diagram of an obstacle detection scene of an autonomous mobile device according to an embodiment of the present invention.
图8是本发明一种实施例中得到的所述结构光图像。FIG. 8 is the structured light image obtained in an embodiment of the present invention.
图9是本发明一种实施例中获取到的所述参考图像。FIG. 9 is the reference image obtained in an embodiment of the present invention.
图10是本发明一种实施例中得到的所述优化的结构光图像。FIG. 10 is the optimized structured light image obtained in an embodiment of the present invention.
图11是本发明另一种实施例提供的一种障碍物检测方法的方法流程示意图。FIG. 11 is a schematic flowchart of an obstacle detection method provided by another embodiment of the present invention.
图12是本发明一种实施例提供的一种自主移动设备的设备结构示意图。FIG. 12 is a schematic diagram of a device structure of an autonomous mobile device according to an embodiment of the present invention.
【具体实施方式】【Detailed ways】
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.
应当理解,本发明的说明书和权利要求书中使用的术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that the terms "comprising" and "comprising" used in the description and claims of the present invention indicate the presence of the described features, integers, steps, operations, elements and/or components, but do not exclude one or more other The presence or addition of features, integers, steps, operations, elements, components and/or sets thereof.
还应当理解,在此本发明说明书中所使用的术语仅仅是出于描述特定 实施例的目的,而并不意在限定本发明。如在本发明说明书和权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。还应当进一步理解,在本发明说明书和权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the terminology used in this specification of the present invention is for the purpose of describing particular embodiments only and is not intended to limit the present invention. As used in the present specification and claims, the singular forms "a," "an," and "the" are intended to include the plural unless the context clearly dictates otherwise. It will be further understood that, as used in the present specification and claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items.
本发明实施例中出现的“多个”是指两个或两个以上。本发明实施例中出现的第一、第二等描述,仅作示意与区分描述对象之用,没有次序之分,也不表示本发明实施例中对设备个数的特别限定,不能构成对本发明实施例的任何限制。The "plurality" in the embodiments of the present invention refers to two or more. The descriptions of the first, second, etc. appearing in the embodiments of the present invention are only used for illustration and distinguishing the description objects, and have no order, nor do they represent a special limitation on the number of devices in the embodiments of the present invention, and do not constitute a description of the present invention. any limitations of the examples.
图1是本发明一种实施例中提供的一种结构光图像处理方法的方法流程示意图。所述方法可以应用于任意的结构光模组,通常结构光模组可以由结构光发射单元和图像获取单元组成,具体的,如图1所示,所述方法可以包括:FIG. 1 is a schematic flowchart of a method for processing a structured light image provided in an embodiment of the present invention. The method can be applied to any structured light module. Generally, the structured light module can be composed of a structured light emission unit and an image acquisition unit. Specifically, as shown in FIG. 1 , the method may include:
S110:获取待处理的结构光图像。S110: Acquire the structured light image to be processed.
其中,结构光是指投射到物体表面上可以形成一定形状的光学图案的激光束,比如,面状的激光束投射到物体表面上会形成线形的光学图案,这种光束可以称为线激光,属于结构光的一种。当然,具体的结构光光束的形状及其形成的光学图案的形状,本发明不作限定,在本发明其他一些实施例中,形成的所述光学图案的形状还可以是线形、十字形、三角形、圆形、方形等任意形状。通过结构光投射到某一区域形成的光学图案,可以获得该区域是否存在物体的信息、以及物体的距离、形状、尺寸等信息。Among them, structured light refers to a laser beam projected onto the surface of an object that can form an optical pattern of a certain shape. For example, a planar laser beam projected onto the surface of an object will form a linear optical pattern, which can be called a line laser. A type of structured light. Of course, the specific shape of the structured light beam and the shape of the optical pattern formed by the light beam are not limited in the present invention. Any shape such as round, square, etc. Through the optical pattern formed by projecting structured light onto a certain area, the information of whether there is an object in the area, as well as the distance, shape, size and other information of the object can be obtained.
本例中,可以通过摄像头、相机等图像获取设备获取包含所述光学图案的图像,以用于后续根据该图像确定被投射的目标区域是否存在障碍物,以及用于根据该图像推算出障碍物的相关物理信息。所述包含所述光学图案的图像,即为所述待处理的结构光图像。In this example, an image containing the optical pattern can be acquired by an image acquisition device such as a camera, a camera, etc., to be used to subsequently determine whether there is an obstacle in the projected target area according to the image, and to calculate the obstacle according to the image. relevant physical information. The image containing the optical pattern is the structured light image to be processed.
但是在本发明的一些实施场景中,由于待处理的结构光图像中,除了光学图案之外,还包含所述目标区域中环境光造成的光学噪声,所述环境光可以包括比如太阳光、灯光、物体反射的光等。这样在后续利用这种结构光图像进行物体识别过程中,会因为环境光噪声的干扰导致物体识别的 误差,导致物体识别的准确性和可靠性较低。However, in some implementation scenarios of the present invention, in addition to the optical pattern, the structured light image to be processed also includes optical noise caused by ambient light in the target area, and the ambient light may include, for example, sunlight, lights, etc. , light reflected from an object, etc. In this way, in the subsequent object recognition process using this structured light image, the object recognition error will be caused by the interference of ambient light noise, resulting in low object recognition accuracy and reliability.
S120:获取所述结构光图像对应的目标区域的参考图像,所述参考图像是所述目标区域未被结构光照射时的图像。S120: Acquire a reference image of the target area corresponding to the structured light image, where the reference image is an image of the target area when the structured light is not irradiated.
其中,所述目标区域是指所述结构光图像映射的真实物理区域,即拍摄所述结构光图像的拍摄设备的实际拍摄区域,对应的,所述参考图像是在该物理区域未被结构光照射时所述拍摄设备拍摄所述物理区域得到的图像。The target area refers to the real physical area mapped by the structured light image, that is, the actual photographing area of the photographing device that photographed the structured light image. Correspondingly, the reference image is a physical area that is not structured light in this physical area. When irradiating, the photographing device photographs the image obtained by the physical area.
本例中,利用所述参考图像,可以得到拍摄所述结构光图像时的环境光相关信息,利用所述环境光相关信息,可以消除所述结构光图像中环境光噪声的干扰。但是,在本发明的一些实施场景中,可能存在环境光变化较复杂或变化频率较高的情况。因此,进一步的,在本发明一些实施例中,可以通过控制结构光照射和图像拍摄的频率,使参考图像对应的环境光相关信息与结构光图像对应的环境光相关信息等同或尽量接近,从而提高所述环境光相关信息的可参考性。比如,在本发明一种实施例中,可以通过控制结构光照射和图像拍摄的时间,获取相近时间段的结构光图像和参考图像,使所述结构光图像的拍摄时刻与所述参考图像的拍摄时刻的时间差在0.1s以内,这样所述结构光图像与所述参考图像的环境光相关信息基本等同。当然,上述时间差的具体数值只是示例性的,在本发明其他实施例中,也可以将所述时间差控制到更小或更大。具体的,可以以实际环境光的变化情况和实际的精度需要,确定所述时间差,本发明对此不作限定。In this example, the reference image can be used to obtain ambient light related information when the structured light image is captured, and the ambient light related information can be used to eliminate the interference of ambient light noise in the structured light image. However, in some implementation scenarios of the present invention, there may be situations in which the ambient light changes more complexly or changes frequently. Therefore, further, in some embodiments of the present invention, by controlling the frequency of structured light irradiation and image shooting, the ambient light-related information corresponding to the reference image and the ambient light-related information corresponding to the structured light image can be equal or as close as possible, thereby The referenceability of the ambient light related information is improved. For example, in an embodiment of the present invention, a structured light image and a reference image of a similar time period can be obtained by controlling the time of structured light irradiation and image shooting, so that the shooting moment of the structured light image is the same as the reference image. The time difference between the shooting moments is within 0.1s, so that the ambient light-related information of the structured light image and the reference image is basically the same. Of course, the specific value of the above time difference is only exemplary, and in other embodiments of the present invention, the time difference can also be controlled to be smaller or larger. Specifically, the time difference can be determined according to the change of the actual ambient light and the actual accuracy requirement, which is not limited in the present invention.
S130:利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像。S130: Using the reference image, perform image filtering processing on the structured light image to obtain an optimized structured light image.
图像滤波是在尽量保留图像细节特征的条件下对目标图像的噪声进行抑制,其处理效果的好坏将直接影响到后续图像分析的有效性和可靠性。Image filtering is to suppress the noise of the target image under the condition of preserving the details of the image as much as possible. The quality of the processing effect will directly affect the effectiveness and reliability of the subsequent image analysis.
本例中,所述图像滤波处理主要是去除所述结构光图像中的环境光产生的噪声,得到所述优化的结构光图像,进而在后续利用这种结构光图像进行物体识别过程中,减小因为环境光噪声的干扰导致物体识别的误差,提高物体识别的准确性和可靠性。In this example, the image filtering process mainly removes the noise generated by the ambient light in the structured light image to obtain the optimized structured light image, and then in the subsequent object recognition process using this structured light image, the Minimize the error of object recognition caused by the interference of ambient light noise, and improve the accuracy and reliability of object recognition.
本发明一种实施例中,所述利用所述参考图像,对所述结构光图像进 行图像滤波处理,得到优化的结构光图像可以包括:In an embodiment of the present invention, the described use of the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image may include:
S131:从所述参考图像中获取环境光相关信息。S131: Acquire ambient light related information from the reference image.
S132:根据所述环境光相关信息,对所述待处理的结构光图像进行环境光滤波处理,得到所述优化的结构光图像。S132: Perform ambient light filtering processing on the structured light image to be processed according to the ambient light related information to obtain the optimized structured light image.
其中,所述环境光相关信息可以包括能够表征环境光特征的图像参数,比如可以包括亮度、灰度、RGB值、饱和度、色调、图像强度等参数中的任意一种或多种,也可以是多种参数按照预设权重组合得到的参数。Wherein, the ambient light related information may include image parameters that can characterize ambient light characteristics, for example, may include any one or more of parameters such as brightness, grayscale, RGB value, saturation, hue, image intensity, etc., or It is a parameter obtained by combining various parameters according to preset weights.
在本发明另一种实施例中,所述环境光相关信息可以包括参考图像各像素点的图像参数值,对应的,所述对所述待处理的结构光图像进行环境光滤波处理可以包括:In another embodiment of the present invention, the ambient light related information may include image parameter values of each pixel of the reference image, and correspondingly, performing ambient light filtering processing on the structured light image to be processed may include:
将所述待处理的结构光图像各像素点的图像参数值,减去对应的所述参考图像各像素点的图像参数值,得到所述优化的结构光图像;或,The optimized structured light image is obtained by subtracting the image parameter value of each pixel point of the structured light image to be processed by the corresponding image parameter value of each pixel point of the reference image; or,
将所述待处理的结构光图像局部区域的图像参数值,减去对应的所述参考图像局部区域的图像参数值,得到所述优化的结构光图像。The optimized structured light image is obtained by subtracting the image parameter value of the local area of the structured light image to be processed by the image parameter value of the corresponding local area of the reference image.
其中,所述图像参数值可以是亮度、灰度、RGB值、饱和度、色调、图像强度等参数数值中的任意一种或多种,也可以是多种参数按照预设权重组合得到的参数的数值。Wherein, the image parameter value may be any one or more of parameter values such as brightness, grayscale, RGB value, saturation, hue, image intensity, etc., or may be parameters obtained by combining multiple parameters according to preset weights value of .
比如,在本发明一些实施例中,所述图像参数值可以包括亮度值,对应的,所述对所述待处理的结构光图像进行环境光滤波处理可以包括:将所述待处理的结构光图像各像素点的亮度值,减去对应的所述参考图像各像素点的亮度值,即将待处理的结构光图像和参考图像的相对应的像素点的亮度值相减,得到所述优化的结构光图像。当然,在本发明其他实施例中,所述图像参数值还可以是图像强度(image intensity)、RGB值、灰度、饱和度、色调等其他可以表征图像像素特征的参数数值。实施人员可以根据后续结构光图像的实际应用场景和需求,选择图像参数值的类型,比如对于物体识别的应用需求,光学图案的亮度对识别准确度的影响较大,则可以选择亮度值作为所述图像参数值,本发明对此不作限定。通过图像滤波处理,可以抑制甚至消除结构光图像中的环境光噪声,从而使图像中结构光照射形成的光学图案的清晰度更高、特征更明显。For example, in some embodiments of the present invention, the image parameter value may include a brightness value, and correspondingly, performing ambient light filtering processing on the structured light image to be processed may include: filtering the structured light image to be processed The brightness value of each pixel point of the image is subtracted from the brightness value of each pixel point of the corresponding reference image, that is, the brightness value of the corresponding pixel point of the structured light image to be processed and the reference image are subtracted to obtain the optimized Structured light image. Of course, in other embodiments of the present invention, the image parameter value may also be image intensity, RGB value, grayscale, saturation, hue, and other parameter values that can characterize image pixel characteristics. The implementer can select the type of image parameter value according to the actual application scenarios and requirements of the subsequent structured light image. For example, for the application requirements of object recognition, the brightness of the optical pattern has a great influence on the recognition accuracy, and the brightness value can be selected as the The image parameter value is not limited in the present invention. Through image filtering processing, the ambient light noise in the structured light image can be suppressed or even eliminated, so that the optical pattern formed by the structured light irradiation in the image has higher definition and more obvious features.
图3是本发明另一种实施例提供的一种结构光图像处理方法的方法流程示意图。具体的,如图3所示,所述方法可以包括:FIG. 3 is a schematic flowchart of a method for processing a structured light image provided by another embodiment of the present invention. Specifically, as shown in FIG. 3, the method may include:
S310:获取待处理的结构光图像。S310: Acquire the structured light image to be processed.
S320:获取所述结构光图像对应的目标区域的参考图像,所述参考图像是所述目标区域未被结构光照射时的图像。S320: Acquire a reference image of the target area corresponding to the structured light image, where the reference image is an image of the target area when the structured light is not irradiated.
S330:利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像。S330: Using the reference image, perform image filtering processing on the structured light image to obtain an optimized structured light image.
S340:对所述优化的结构光图像进行图像增强处理,得到进一步优化的结构光图像。S340: Perform image enhancement processing on the optimized structured light image to obtain a further optimized structured light image.
其中,图像增强一种增强图像中的有用信息的的增强增强图像中的有用信息,它可以是一个失真的过程,其目的是要改善图像的视觉效果,针对给定图像的应用场合有目的地强调图像的整体或局部特性,将原来不清晰的图像变得清晰或强调某些感兴趣的特征,扩大图像中不同物体特征之间的差别,抑制不感兴趣的特征,使之改善图像质量、丰富信息量,加强图像判读和识别效果,满足某些特殊分析的需要。Among them, image enhancement is an enhancement of useful information in an image, which can be a distortion process, the purpose of which is to improve the visual effect of an image, and is purposeful for the application of a given image. Emphasize the overall or local characteristics of the image, make the original unclear image clear or emphasize some interesting features, expand the difference between the features of different objects in the image, suppress the uninteresting features, and improve the image quality and richness. The amount of information, strengthen the effect of image interpretation and recognition, to meet the needs of some special analysis.
本例中,通过对所述优化的结构光图像进行图像增强处理,可以使图像中结构光照射形成的光学图案的清晰度更高、特征更明显。In this example, by performing image enhancement processing on the optimized structured light image, the optical pattern formed by the irradiation of structured light in the image can have higher definition and more obvious features.
利用上述可以利用无结构光照射的目标区域的参考图像,对所述结构光图像进行图像滤波处理,减小甚至消除环境光的干扰,从而可以得到图像质量更高的优化的结构光图像。Using the above reference image of the target area that can be irradiated with unstructured light, image filtering is performed on the structured light image to reduce or even eliminate the interference of ambient light, so that an optimized structured light image with higher image quality can be obtained.
图2是本发明一种实施例提供的一种障碍物检测方法的方法流程示意图。图6是本发明一种实施例提供的一种障碍物检测方法的实施场景示意图。所述方法可以应用于自主移动设备,所述自主移动设备可以是扫地机器人、拖地机器人、扫拖机器人、送餐机器人、自动割草机、扫雪机、无人机等任意可以自动移动或自动工作的电子设备或智能设备。具体的,如图2所示,所述方法可以包括:FIG. 2 is a schematic flowchart of a method for detecting an obstacle according to an embodiment of the present invention. FIG. 6 is a schematic diagram of an implementation scenario of an obstacle detection method provided by an embodiment of the present invention. The method can be applied to an autonomous mobile device, and the autonomous mobile device can be any robot that can automatically move or Electronic devices or smart devices that work automatically. Specifically, as shown in FIG. 2, the method may include:
S210:获取目标区域的结构光图像。S210: Acquire a structured light image of the target area.
其中,结构光是指投射到物体表面上可以形成一定形状的光学图案的 激光束,比如,如图6所示,激光发射器E、F均发射的是面状的线激光,面状的激光束投射到障碍物上会形成线形的光学图案,如图6所示的线形图案AB和线性图案CD,所述激光发射器E、F发射的这种光束可以称为线激光,属于结构光的一种。当然,具体的结构光光束的形状及其形成的光学图案的形状,本发明不作限定。在本发明其他一些实施例中,形成的所述光学图案的形状还可以是线形、十字形、三角形、圆形、方形等任意形状。通过结构光投射到某一区域形成的光学图案,可以获得该区域是否存在物体的信息、以及物体的距离、形状、尺寸等信息。Among them, structured light refers to a laser beam projected on the surface of an object that can form an optical pattern of a certain shape. For example, as shown in Figure 6, the laser emitters E and F both emit a planar line laser, and a planar laser The beam projected on the obstacle will form a linear optical pattern, such as the linear pattern AB and the linear pattern CD as shown in Figure 6. The beams emitted by the laser emitters E and F can be called line lasers, which belong to structured light. A sort of. Of course, the specific shape of the structured light beam and the shape of the optical pattern formed by it are not limited in the present invention. In some other embodiments of the present invention, the shape of the formed optical pattern may also be any shape such as a line, a cross, a triangle, a circle, and a square. Through the optical pattern formed by projecting structured light onto a certain area, the information of whether there is an object in the area, as well as the distance, shape, size and other information of the object can be obtained.
其中,所述目标区域可以是所述自主移动设备的需要检测障碍物的方向上,所述自主移动设备的图像获取装置的可拍摄区域,所述可拍摄区域的大小取决于所述图像获取装置的可视范围(视场角等)。其中,所述图像获取装置可以是相机、摄像头等,对于结构光是非可见光发射器的情况,所述图像获取装置也可以是对应的非可见光摄像头,比如红外摄像头等。Wherein, the target area may be the direction of the autonomous mobile device in which obstacles need to be detected, the photographable area of the image acquisition device of the autonomous mobile device, and the size of the photographable area depends on the image acquisition device the visible range (field of view, etc.). Wherein, the image acquisition device may be a camera, a camera, etc. In the case where the structured light is a non-visible light emitter, the image acquisition device may also be a corresponding non-visible light camera, such as an infrared camera.
图7是本发明一种实施例提供的一种自主移动设备的障碍物检测场景示意图。如图7所示,自主移动设备的摄像头C的可视范围为所述摄像头前方θ角度范围,该可视范围即可以认为是一个目标区域,对于自主移动设备,所述目标区域一般是在所述设备的行进方向上,所述设备的两个结构光激光器A和B可以向所述可视范围内发射结构光。所述摄像头C在所述目标区域被所述结构光照射的时间段内拍摄图像,就可以得到所述结构光图像。如果所述结构光的传播路径上出现障碍物(比如自主移动设备行进方向上出现障碍物),就会形成相应的光学图案,所述摄像头C拍摄到的所述目标区域的结构光图像中就会包含所述光学图案,根据所述光学图案,即可以检测到该障碍物,还可以分析出该障碍物的距离、形状、尺寸等相关信息。FIG. 7 is a schematic diagram of an obstacle detection scene of an autonomous mobile device according to an embodiment of the present invention. As shown in FIG. 7 , the visual range of the camera C of the autonomous mobile device is the θ angle range in front of the camera, and the visual range can be regarded as a target area. For autonomous mobile devices, the target area is generally in the In the traveling direction of the device, the two structured light lasers A and B of the device can emit structured light into the visible range. The camera C can obtain the structured light image by capturing an image within the time period when the target area is illuminated by the structured light. If an obstacle appears on the propagation path of the structured light (such as an obstacle in the traveling direction of the autonomous mobile device), a corresponding optical pattern will be formed, and the structured light image of the target area captured by the camera C will contain The optical pattern will be included. According to the optical pattern, the obstacle can be detected, and the distance, shape, size and other related information of the obstacle can also be analyzed.
但是在本发明的一些实施场景中,由于所述结构光图像中,除了光学图案之外,还包含所述目标区域中环境光造成的光学噪声,所述环境光可以包括比如太阳光、灯光、物体反射的光等。比如,图8是本发明一种实施例中得到的所述结构光图像。如图8所示,所述结构光图像中除了结构光照射到障碍物形成的光学图案外,还存在因各种环境光的存在而产生的环境 光噪声,如果利用这种结构光图像进行障碍物识别,会因为环境光噪声的干扰导致识别误差(比如环境光噪声中可能也存在类似结构光照射产生的光学图案,或者结构光形成的光学图案被环境光噪声覆盖等情形,都会导致后续的识别误差),导致识别的准确性和可靠性较低。However, in some implementation scenarios of the present invention, in addition to the optical pattern, the structured light image also includes optical noise caused by ambient light in the target area, and the ambient light may include, for example, sunlight, lights, Light reflected from objects, etc. For example, FIG. 8 is the structured light image obtained in an embodiment of the present invention. As shown in Figure 8, in the structured light image, in addition to the optical pattern formed by the structured light irradiating the obstacle, there is also ambient light noise caused by the existence of various ambient lights. Object recognition will cause recognition errors due to the interference of ambient light noise (for example, there may also be optical patterns generated by similar structured light irradiation in ambient light noise, or the optical patterns formed by structured light are covered by ambient light noise, etc., which will lead to subsequent recognition error), resulting in low recognition accuracy and reliability.
S220:获取所述目标区域的参考图像,所述参考图像是所述目标区域未被结构光照射时的图像。S220: Acquire a reference image of the target area, where the reference image is an image of the target area when the target area is not irradiated by structured light.
其中,所述参考图像是在所述目标区域未被结构光照射时所述拍摄设备拍摄所述目标区域得到的图像。The reference image is an image obtained by the photographing device photographing the target area when the target area is not illuminated by structured light.
但是,在本发明的一些实施场景中,可能存在环境光变化较复杂或变化频率较高的情况。因此,进一步的,在本发明一些实施例中,可以通过控制结构光照射和图像拍摄的频率,使参考图像对应的环境光相关信息与结构光图像对应的环境光相关信息等同或尽量接近,从而提高所述环境光相关信息的可参考性。比如,在本发明一种实施例中,可以通过控制结构光照射和图像拍摄的时间,获取相近时间段的结构光图像和参考图像,使所述结构光图像的拍摄时刻与所述参考图像的拍摄时刻的时间差在0.1s以内,这样所述结构光图像与所述参考图像的环境光相关信息基本等同。当然,上述时间差的具体数值只是示例性的,在本发明其他实施例中,也可以将所述时间差控制到更小或更大。具体的,可以以实际环境光的变化情况和实际的精度需要,确定所述时间差,本发明对此不作限定。However, in some implementation scenarios of the present invention, there may be situations in which the ambient light changes more complexly or changes frequently. Therefore, further, in some embodiments of the present invention, by controlling the frequency of structured light irradiation and image shooting, the ambient light-related information corresponding to the reference image and the ambient light-related information corresponding to the structured light image can be equal or as close as possible, thereby The referenceability of the ambient light related information is improved. For example, in an embodiment of the present invention, a structured light image and a reference image of a similar time period can be obtained by controlling the time of structured light irradiation and image shooting, so that the shooting moment of the structured light image is the same as the reference image. The time difference between the shooting moments is within 0.1s, so that the ambient light-related information of the structured light image and the reference image is basically the same. Of course, the specific value of the above time difference is only exemplary, and in other embodiments of the present invention, the time difference can also be controlled to be smaller or larger. Specifically, the time difference can be determined according to the change of the actual ambient light and the actual accuracy requirement, which is not limited in the present invention.
图9是本发明一种实施例中获取到的所述参考图像。如图9所示,所述参考图像与图8所示的结构光图像对应同一个目标区域,图9中没有结构光照射形成的线状图案,而环境光信息与所述结构光图像的环境光信息相同。FIG. 9 is the reference image obtained in an embodiment of the present invention. As shown in FIG. 9 , the reference image and the structured light image shown in FIG. 8 correspond to the same target area. In FIG. 9 , there is no linear pattern formed by structured light irradiation, and the ambient light information is related to the environment of the structured light image. The light information is the same.
S230:利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像。S230: Using the reference image, perform image filtering processing on the structured light image to obtain an optimized structured light image.
其中,图像滤波是在尽量保留图像细节特征的条件下对目标图像的噪声进行抑制,其处理效果的好坏将直接影响到后续图像分析的有效性和可靠性。Among them, image filtering is to suppress the noise of the target image under the condition of preserving the image details as much as possible, and the quality of its processing effect will directly affect the effectiveness and reliability of subsequent image analysis.
本例中,所述图像滤波处理主要是去除所述结构光图像中的环境光产生的噪声,得到所述优化的结构光图像,进而在后续利用这种结构光图像 进行物体识别过程中,减小因为环境光噪声的干扰导致物体识别的误差,提高物体识别的准确性和可靠性。In this example, the image filtering process mainly removes the noise generated by the ambient light in the structured light image to obtain the optimized structured light image, and then in the subsequent object recognition process using this structured light image, the Minimize the error of object recognition caused by the interference of ambient light noise, and improve the accuracy and reliability of object recognition.
本发明一种实施例中,所述利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像可以包括:In an embodiment of the present invention, the use of the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image may include:
S231:从所述参考图像中获取环境光相关信息。S231: Acquire ambient light related information from the reference image.
S232:根据所述环境光相关信息,对所述结构光图像进行环境光滤波处理,得到所述优化的结构光图像。S232: Perform ambient light filtering processing on the structured light image according to the ambient light related information to obtain the optimized structured light image.
其中,所述环境光相关信息可以包括能够表征环境光特征的图像参数,比如可以包括亮度、灰度、RGB值、饱和度、色调、图像强度等参数中的任意一种或多种,也可以是多种参数按照预设权重组合得到的参数。Wherein, the ambient light related information may include image parameters that can characterize ambient light characteristics, for example, may include any one or more of parameters such as brightness, grayscale, RGB value, saturation, hue, image intensity, etc., or It is a parameter obtained by combining various parameters according to preset weights.
在本发明另一种实施例中,所述环境光相关信息可以包括参考图像各像素点的图像参数值,对应的,所述对所述结构光图像进行环境光滤波处理可以包括:In another embodiment of the present invention, the ambient light related information may include image parameter values of each pixel of the reference image, and correspondingly, performing ambient light filtering processing on the structured light image may include:
将所述待处理的结构光图像各像素点的图像参数值,减去对应的所述参考图像各像素点的图像参数值,得到所述优化的结构光图像;或,The optimized structured light image is obtained by subtracting the image parameter value of each pixel point of the structured light image to be processed by the corresponding image parameter value of each pixel point of the reference image; or,
将所述待处理的结构光图像局部区域的图像参数值,减去对应的所述参考图像局部区域的图像参数值,得到所述优化的结构光图像。The optimized structured light image is obtained by subtracting the image parameter value of the local area of the structured light image to be processed by the image parameter value of the corresponding local area of the reference image.
其中,所述图像参数值可以是亮度、灰度、RGB值、饱和度、色调、图像强度等参数数值中的任意一种或多种,也可以是多种参数按照预设权重组合得到的参数的数值。Wherein, the image parameter value may be any one or more of parameter values such as brightness, grayscale, RGB value, saturation, hue, image intensity, etc., or may be parameters obtained by combining multiple parameters according to preset weights value of .
比如,在本发明一些实施例中,所述图像参数值可以包括亮度值,对应的,所述对所述结构光图像进行环境光滤波处理可以包括:将所述结构光图像各像素点的亮度值,减去对应的所述参考图像各像素点的亮度值,即将结构光图像和参考图像的相对应的像素点的亮度值相减,得到所述优化的结构光图像。当然,在本发明其他实施例中,所述图像参数值还可以是图像强度(image intensity)、RGB值、灰度、饱和度、色调等其他可以表征图像像素特征的参数数值。实施人员可以根据后续结构光图像的实际应用场景和需求,选择图像参数值的类型,比如对于物体识别的应用需求,光学图案的亮度对识别准确度的影响较大,则可以选择亮度值作为所述图 像参数值,本发明对此不作限定。通过图像滤波处理,可以抑制甚至消除结构光图像中的环境光噪声,从而使图像中结构光照射形成的光学图案的清晰度更高、特征更明显。For example, in some embodiments of the present invention, the image parameter value may include a brightness value, and correspondingly, performing ambient light filtering processing on the structured light image may include: value, subtract the corresponding brightness value of each pixel of the reference image, that is, subtract the brightness value of the corresponding pixel of the structured light image and the reference image, to obtain the optimized structured light image. Of course, in other embodiments of the present invention, the image parameter value may also be image intensity, RGB value, grayscale, saturation, hue, and other parameter values that can characterize image pixel characteristics. The implementer can select the type of image parameter value according to the actual application scenarios and requirements of the subsequent structured light image. For example, for the application requirements of object recognition, the brightness of the optical pattern has a great influence on the recognition accuracy, and the brightness value can be selected as the The image parameter value is not limited in the present invention. Through image filtering processing, the ambient light noise in the structured light image can be suppressed or even eliminated, so that the optical pattern formed by the structured light irradiation in the image has higher definition and more obvious features.
图10是本发明一种实施例中得到的所述优化的结构光图像。图10是利用图9所示的参考图像,对图8所示的结构光图像进行图像滤波处理后,得到的优化的结构光图像。如图10所示,所述优化的结构光图像中只有结构光照射形成的光学图案,而没有环境光噪声的干扰,利用该图像可以更准确更可靠地识别障碍物以及确定障碍物的相关信息,以便自主移动设备的控制系统根据障碍物信息采取准确的避障或者越障动作。FIG. 10 is the optimized structured light image obtained in an embodiment of the present invention. FIG. 10 is an optimized structured light image obtained after performing image filtering processing on the structured light image shown in FIG. 8 using the reference image shown in FIG. 9 . As shown in Figure 10, in the optimized structured light image, only the optical pattern formed by the illumination of the structured light, without the interference of ambient light noise, can be used to identify obstacles more accurately and reliably and determine the relevant information of obstacles , so that the control system of the autonomous mobile device can take accurate obstacle avoidance or obstacle crossing actions according to the obstacle information.
S240:根据所述优化的结构光图像,确定所述目标区域的障碍物信息。S240: Determine obstacle information of the target area according to the optimized structured light image.
其中,所述障碍物信息可以包括是否存在障碍物、障碍物的距离(位置)、障碍物的尺寸、形状、类别等信息中的一种或多种。The obstacle information may include one or more of information such as whether there is an obstacle, the distance (position) of the obstacle, the size, shape, and category of the obstacle.
本发明另一种实施例中,所述获取所述目标区域的结构光图像可以包括:In another embodiment of the present invention, the acquiring the structured light image of the target area may include:
向所述目标区域投射结构光;projecting structured light to the target area;
在所述目标区域被所述结构光照射的情况下,获取所述目标区域的图像,作为所述结构光图像;When the target area is illuminated by the structured light, acquiring an image of the target area as the structured light image;
对应的,所述获取所述目标区域的参考图像包括:Correspondingly, the obtaining the reference image of the target area includes:
在所述目标未被所述结构光照射的情况下,获取所述结构光图像对应的环境光条件下的所述目标区域的参考图像。When the target is not illuminated by the structured light, a reference image of the target area under the ambient light condition corresponding to the structured light image is acquired.
进一步的,本发明一个实例中,所述自主移动设备可以具有至少2个结构光发射器和1个摄像头。为了使所述参考图像和所述结构光图像的环境光信息相同或差异较小,在所述设备移动过程中,所述设备的控制器可以控制所述2个结构光发射器反复交替发光,并且在交替发光的周期内存在2个发射器都不发光的时间段,并且协同控制摄像头的拍摄频率。具体的过程可以是:控制第一结构光发射器发光,在发光的过程中拍摄所述目标区域的结构光图像,然后控制第一结构光发射器关闭,在两个结构光发射器都不发光的情况下,拍摄所述目标区域的无结构光图像,所述无结构光图像即可以作为所述结构光图像的参考图像,用于对所述结构光图像进行图像 滤波处理。然后控制第二结构光发射器发光,拍摄所述目标区域的结构光图像,然后控制所述第二结构光发射器关闭,拍摄无结构光图像,作为该结构光图像的参考图像,如此循环交替进行,就可以在所述自主移动设备移动过程中不断拍摄结构光图像和对应的参考图像,用以识别障碍物。本例中,通过提高发光、拍摄频率,可以缩短结构光图像与对应的参考图像的获取时间间隔,可以使参考图像的环境光信息与结构光图像的环境光信息相同或者尽量接近。当然,上述的控制过程只是示例性的,在本发明其他实施例中,具体的发光和拍摄的顺序、频率的设定,可以由实施人员根据实际环境光变化情况和/或障碍物识别精度需求来确定,本发明对此不作限定。Further, in an example of the present invention, the autonomous mobile device may have at least two structured light emitters and one camera. In order to make the ambient light information of the reference image and the structured light image the same or have a small difference, during the moving process of the device, the controller of the device can control the two structured light emitters to repeatedly emit light alternately, And there is a period of time when neither of the two transmitters emits light in the period of alternating light emission, and the shooting frequency of the camera is controlled cooperatively. The specific process may be: controlling the first structured light emitter to emit light, taking a structured light image of the target area during the lighting process, and then controlling the first structured light emitter to turn off, and when the two structured light emitters do not emit light In the case of taking the unstructured light image of the target area, the unstructured light image can be used as a reference image of the structured light image for performing image filtering processing on the structured light image. Then control the second structured light emitter to emit light, take a structured light image of the target area, then control the second structured light emitter to turn off, and take an unstructured light image as a reference image for the structured light image, and so on and so forth. Then, the structured light image and the corresponding reference image can be continuously photographed during the movement of the autonomous mobile device, so as to identify obstacles. In this example, by increasing the frequency of light emission and shooting, the acquisition time interval between the structured light image and the corresponding reference image can be shortened, and the ambient light information of the reference image and the ambient light information of the structured light image can be the same or as close as possible. Of course, the above control process is only exemplary. In other embodiments of the present invention, the specific light-emitting and shooting sequence and frequency settings can be set by the implementer according to the actual ambient light changes and/or obstacle recognition accuracy requirements It should be confirmed that the present invention is not limited thereto.
图11是本发明另一种实施例提供的一种障碍物检测方法的方法流程示意图。如图11所示,所述方法可以包括:FIG. 11 is a schematic flowchart of an obstacle detection method provided by another embodiment of the present invention. As shown in Figure 11, the method may include:
S410:获取目标区域的结构光图像。S410: Acquire a structured light image of the target area.
S420:获取所述目标区域的参考图像,所述参考图像是所述目标区域未被结构光照射时的图像。S420: Acquire a reference image of the target area, where the reference image is an image of the target area when the structured light is not irradiated.
S430:利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像。S430: Using the reference image, perform image filtering processing on the structured light image to obtain an optimized structured light image.
S440:对所述优化的结构光图像进行图像增强处理,得到进一步优化的结构光图像。S440: Perform image enhancement processing on the optimized structured light image to obtain a further optimized structured light image.
S450:根据所述进一步优化的结构光图像,确定所述目标区域的障碍物信息。S450: Determine obstacle information of the target area according to the further optimized structured light image.
利用上述各实施例提供的一种障碍物检测方法的实施方式,可以利用无结构光照射的目标区域的参考图像,对所述结构光图像进行图像滤波处理,减小甚至消除环境光的干扰,从而可以得到图像质量更高的优化的结构光图像。进一步的,利用所述优化的结构光图像,检测所述目标区域的障碍物,可以有效提高障碍物检测的可靠性和准确度。Using the implementation of an obstacle detection method provided by the above embodiments, the reference image of the target area without structured light irradiation can be used to perform image filtering processing on the structured light image, so as to reduce or even eliminate the interference of ambient light, Thereby, an optimized structured light image with higher image quality can be obtained. Further, using the optimized structured light image to detect obstacles in the target area can effectively improve the reliability and accuracy of obstacle detection.
基于上述图1、图3对应的各实施例所述的结构光图像处理方法,本发明还提供一种结构光模组。图4是本发明一种实施例示出的一种结构光模组 的模块结构示意图。如图4所示,所述模组可以包括:Based on the structured light image processing methods described in the above embodiments corresponding to FIGS. 1 and 3 , the present invention further provides a structured light module. 4 is a schematic structural diagram of a structured light module according to an embodiment of the present invention. As shown in Figure 4, the module may include:
图像获取单元101,可以被配置为获取待处理的结构光图像,以及获取所述结构光图像对应的目标区域的参考图像,其中,所述参考图像是所述目标区域未被结构光照射时的图像。The image acquisition unit 101 can be configured to acquire a structured light image to be processed, and acquire a reference image of a target area corresponding to the structured light image, wherein the reference image is when the target area is not irradiated by structured light. image.
处理单元102,被配置为利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像。The processing unit 102 is configured to use the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image.
本发明一种实施例中,所述处理单元102可以被配置为:In an embodiment of the present invention, the processing unit 102 may be configured as:
从所述参考图像中获取环境光相关信息;obtaining ambient light related information from the reference image;
根据所述环境光相关信息,对所述待处理的结构光图像进行环境光滤波处理,得到所述优化的结构光图像。According to the ambient light related information, ambient light filtering processing is performed on the to-be-processed structured light image to obtain the optimized structured light image.
本发明一种实施例中,所述环境光相关信息包括所述参考图像各像素点的图像参数值,对应的,所述对所述待处理的结构光图像进行环境光滤波处理包括:In an embodiment of the present invention, the ambient light related information includes image parameter values of each pixel of the reference image, and correspondingly, performing ambient light filtering processing on the structured light image to be processed includes:
将所述待处理的结构光图像各像素点的图像参数值,减去对应的所述参考图像各像素点的图像参数值,得到所述优化的结构光图像;或,The optimized structured light image is obtained by subtracting the image parameter value of each pixel point of the structured light image to be processed by the corresponding image parameter value of each pixel point of the reference image; or,
将所述待处理的结构光图像局部区域的图像参数值,减去对应的所述参考图像局部区域的图像参数值,得到所述优化的结构光图像。本发明另一种实施例中,所述处理单元可以102进一步被配置为:The optimized structured light image is obtained by subtracting the image parameter value of the local area of the structured light image to be processed by the image parameter value of the corresponding local area of the reference image. In another embodiment of the present invention, the processing unit 102 may be further configured as:
对所述优化的结构光图像进行图像增强处理,得到进一步优化的结构光图像。Perform image enhancement processing on the optimized structured light image to obtain a further optimized structured light image.
对于上述结构光模组的各实施例中涉及到的与图1、图3所示实施方式中相同或相似的流程,具体的执行方式可以按照图1、图3对应的各实施例中所提供的执行方式执行,此处不作赘述。For the processes that are the same or similar to those in the embodiments shown in FIG. 1 and FIG. 3 involved in the above-mentioned embodiments of the structured light module, the specific implementation methods can be as provided in the respective embodiments corresponding to FIG. 1 and FIG. 3 . The execution method is executed, which will not be repeated here.
基于上述图2、图4、图6至图11对应的各实施例所述的障碍物检测方法,本发明还提供一种自主移动设备。图5是本发明一种实施例提供的一种自主移动设备的模块结构示意图。图12是本发明一种实施例提供的一种自主移动设备的设备结构示意图。具体的,如图5、图12所示,所述自主移动设备可以包括:Based on the obstacle detection method described in each of the embodiments corresponding to FIG. 2 , FIG. 4 , and FIG. 6 to FIG. 11 , the present invention further provides an autonomous mobile device. FIG. 5 is a schematic structural diagram of a module of an autonomous mobile device according to an embodiment of the present invention. FIG. 12 is a schematic diagram of a device structure of an autonomous mobile device according to an embodiment of the present invention. Specifically, as shown in FIG. 5 and FIG. 12 , the autonomous mobile device may include:
设备主体201。 Device body 201 .
结构光模块202,可以设置在所述设备主体201上,可以被配置为获取目标区域的结构光图像,以及获取所述目标区域的参考图像,其中,所述参考图像是所述目标区域未被结构光照射时的图像。The structured light module 202, which can be arranged on the main body of the device 201, can be configured to obtain a structured light image of the target area and obtain a reference image of the target area, wherein the reference image is the target area that has not been Image when illuminated by structured light.
处理单元203,可以被配置为利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像;根据所述优化的结构光图像,确定所述目标区域的障碍物信息。The processing unit 203 may be configured to perform image filtering processing on the structured light image by using the reference image to obtain an optimized structured light image; and determine the obstacle information of the target area according to the optimized structured light image .
本发明一种实施例中,所述处理单元203可以被配置为:In an embodiment of the present invention, the processing unit 203 may be configured as:
从所述参考图像中获取环境光相关信息;obtaining ambient light related information from the reference image;
根据所述环境光相关信息,对所述结构光图像进行环境光滤波处理,得到所述优化的结构光图像。According to the ambient light related information, ambient light filtering processing is performed on the structured light image to obtain the optimized structured light image.
本发明另一种实施例中,所述结构光模块202可以包括:In another embodiment of the present invention, the structured light module 202 may include:
发光单元2021,可以用于向所述目标区域投射结构光。The light-emitting unit 2021 can be used to project structured light to the target area.
图像获取单元2022,可以被配置为在所述目标区域被所述结构光照射的情况下,获取所述目标区域的图像,作为所述结构光图像;还可以被配置为在所述目标未被所述结构光照射的情况下,获取所述结构光图像对应的环境光条件下的所述目标区域的参考图像。The image acquisition unit 2022 may be configured to acquire an image of the target area as the structured light image when the target area is illuminated by the structured light; and may also be configured to obtain an image of the target area when the target area is not illuminated by the structured light. In the case of the structured light irradiation, a reference image of the target area under ambient light conditions corresponding to the structured light image is acquired.
本发明另一种实施例中,所述获取目标区域的结构光图像可以包括:In another embodiment of the present invention, the acquiring the structured light image of the target area may include:
向所述目标区域投射结构光;projecting structured light to the target area;
在所述目标区域被所述结构光照射的情况下,获取所述目标区域的图像,作为所述结构光图像;When the target area is illuminated by the structured light, acquiring an image of the target area as the structured light image;
对应的,所述获取所述目标区域的参考图像包括:Correspondingly, the obtaining the reference image of the target area includes:
在所述目标未被所述结构光照射的情况下,获取所述结构光图像对应的环境光条件下的所述目标区域的参考图像。When the target is not illuminated by the structured light, a reference image of the target area under the ambient light condition corresponding to the structured light image is acquired.
本发明又一种实施例中,所述环境光相关信息可以包括所述参考图像各像素点的图像参数值,对应的,所述对所述结构光图像进行环境光滤波处理可以包括:In another embodiment of the present invention, the ambient light related information may include image parameter values of each pixel of the reference image, and correspondingly, performing ambient light filtering processing on the structured light image may include:
将所述待处理的结构光图像各像素点的图像参数值,减去对应的所述参考图像各像素点的图像参数值,得到所述优化的结构光图像;或,The optimized structured light image is obtained by subtracting the image parameter value of each pixel point of the structured light image to be processed by the corresponding image parameter value of each pixel point of the reference image; or,
将所述待处理的结构光图像局部区域的图像参数值,减去对应的所述参考图像局部区域的图像参数值,得到所述优化的结构光图像。The optimized structured light image is obtained by subtracting the image parameter value of the local area of the structured light image to be processed by the image parameter value of the corresponding local area of the reference image.
对于上述结构光模组的各实施例中涉及到的与图2、图4至图11所示实施方式中相同或相似的流程,具体的执行方式可以按照图2、图4至图11对应的各实施例中所提供的执行方式执行,此处不作赘述。For the processes that are the same or similar to those in the embodiments shown in FIG. 2 and FIG. 4 to FIG. 11 involved in the above-mentioned embodiments of the structured light module, the specific execution methods may be as follows: The execution modes provided in the various embodiments are executed, and details are not described here.
上述各实施例中所述的处理单元例如可以是但不限于:CPU、GPU、MCU、基于FPGA或CPLD实现的处理芯片以或者单片机等。The processing unit described in the above embodiments may be, for example, but not limited to, a CPU, a GPU, an MCU, a processing chip implemented based on an FPGA or a CPLD, or a single-chip microcomputer.
这里参照根据本发明实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本发明的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams. These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.
附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述 模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.
以上已经描述了本发明的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Various embodiments of the present invention have been described above, and the foregoing descriptions are exemplary, not exhaustive, and not limiting of the disclosed embodiments. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (14)

  1. 一种结构光图像处理方法,其特征在于,所述方法包括:A structured light image processing method, characterized in that the method comprises:
    获取待处理的结构光图像;Obtain the structured light image to be processed;
    获取所述结构光图像对应的目标区域的参考图像,所述参考图像是所述目标区域未被结构光照射时的图像;acquiring a reference image of the target area corresponding to the structured light image, where the reference image is an image of the target area not irradiated by structured light;
    利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像。Using the reference image, image filtering is performed on the structured light image to obtain an optimized structured light image.
  2. 如权利要求1所述的方法,其特征在于,所述利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像包括:The method according to claim 1, wherein the using the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image comprises:
    从所述参考图像中获取环境光相关信息;obtaining ambient light related information from the reference image;
    根据所述环境光相关信息,对所述待处理的结构光图像进行环境光滤波处理,得到所述优化的结构光图像。According to the ambient light related information, ambient light filtering processing is performed on the to-be-processed structured light image to obtain the optimized structured light image.
  3. 如权利要求2所述的方法,其特征在于,所述环境光相关信息包括所述参考图像各像素点的图像参数值,对应的,所述对所述待处理的结构光图像进行环境光滤波处理包括:The method according to claim 2, wherein the ambient light related information includes image parameter values of each pixel of the reference image, and correspondingly, the ambient light filtering is performed on the structured light image to be processed. Processing includes:
    将所述待处理的结构光图像各像素点的图像参数值,减去对应的所述参考图像各像素点的图像参数值,得到所述优化的结构光图像;或,The optimized structured light image is obtained by subtracting the image parameter value of each pixel point of the structured light image to be processed by the corresponding image parameter value of each pixel point of the reference image; or,
    将所述待处理的结构光图像局部区域的图像参数值,减去对应的所述参考图像局部区域的图像参数值,得到所述优化的结构光图像。The optimized structured light image is obtained by subtracting the image parameter value of the local area of the structured light image to be processed by the image parameter value of the corresponding local area of the reference image.
  4. 如权利要求1或2所述的方法,其特征在于,所述方法还包括:The method of claim 1 or 2, wherein the method further comprises:
    对所述优化的结构光图像进行图像增强处理,得到进一步优化的结构光图像。Perform image enhancement processing on the optimized structured light image to obtain a further optimized structured light image.
  5. 一种障碍物检测方法,其特征在于,应用于自主移动设备,所述方法包括:An obstacle detection method, characterized in that, applied to an autonomous mobile device, the method comprising:
    获取目标区域的结构光图像;Obtain a structured light image of the target area;
    获取所述目标区域的参考图像,所述参考图像是所述目标区域未被结构光照射时的图像;acquiring a reference image of the target area, where the reference image is an image when the target area is not illuminated by structured light;
    利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像;Using the reference image, image filtering is performed on the structured light image to obtain an optimized structured light image;
    根据所述优化的结构光图像,确定所述目标区域的障碍物信息。According to the optimized structured light image, the obstacle information of the target area is determined.
  6. 如权利要求5所述的方法,其特征在于,所述利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像包括:The method according to claim 5, wherein, using the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image comprising:
    从所述参考图像中获取环境光相关信息;obtaining ambient light related information from the reference image;
    根据所述环境光相关信息,对所述结构光图像进行环境光滤波处理,得到所述优化的结构光图像。According to the ambient light related information, ambient light filtering processing is performed on the structured light image to obtain the optimized structured light image.
  7. 如权利要求5所述的方法,其特征在于,所述获取目标区域的结构光图像包括:The method of claim 5, wherein the acquiring the structured light image of the target area comprises:
    向所述目标区域投射结构光;projecting structured light to the target area;
    在所述目标区域被所述结构光照射的情况下,获取所述目标区域的图像,作为所述结构光图像;When the target area is illuminated by the structured light, acquiring an image of the target area as the structured light image;
    对应的,所述获取所述目标区域的参考图像包括:Correspondingly, the obtaining the reference image of the target area includes:
    在所述目标未被所述结构光照射的情况下,获取所述结构光图像对应的环境光条件下的所述目标区域的参考图像。When the target is not illuminated by the structured light, a reference image of the target area under the ambient light condition corresponding to the structured light image is acquired.
  8. 如权利要求6所述的方法,其特征在于,所述环境光相关信息包括所述参考图像各像素点的图像参数值,对应的,所述对所述结构光图像进行环境光滤波处理包括:The method according to claim 6, wherein the ambient light related information includes image parameter values of each pixel of the reference image, and correspondingly, performing ambient light filtering processing on the structured light image comprises:
    将所述待处理的结构光图像各像素点的图像参数值,减去对应的所述参考图像各像素点的图像参数值,得到所述优化的结构光图像;或,The optimized structured light image is obtained by subtracting the image parameter value of each pixel point of the structured light image to be processed by the corresponding image parameter value of each pixel point of the reference image; or,
    将所述待处理的结构光图像局部区域的图像参数值,减去对应的所述参考图像局部区域的图像参数值,得到所述优化的结构光图像。The optimized structured light image is obtained by subtracting the image parameter value of the local area of the structured light image to be processed by the image parameter value of the corresponding local area of the reference image.
  9. 如权利要求5至8中任意一项所述的方法,其特征在于,在所述利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像之后,所述方法还包括:The method according to any one of claims 5 to 8, wherein after the reference image is used to perform image filtering processing on the structured light image to obtain an optimized structured light image, the method Also includes:
    对所述优化的结构光图像进行图像增强处理,得到进一步优化的结构光图像;performing image enhancement processing on the optimized structured light image to obtain a further optimized structured light image;
    对应的,所述根据所述优化的结构光图像,确定所述目标区域的障碍物信息包括:Correspondingly, determining the obstacle information of the target area according to the optimized structured light image includes:
    根据所述进一步优化的结构光图像,确定所述目标区域的障碍物信息。According to the further optimized structured light image, the obstacle information of the target area is determined.
  10. 一种结构光模组,其特征在于,所述模组包括:A structured light module, characterized in that the module comprises:
    图像获取单元,被配置为获取待处理的结构光图像,以及获取所述结构光图像对应的目标区域的参考图像,其中,所述参考图像是所述目标区域未被结构光照射时的图像;an image acquisition unit, configured to acquire a structured light image to be processed, and to acquire a reference image of a target area corresponding to the structured light image, wherein the reference image is an image when the target area is not irradiated by structured light;
    处理单元,被配置为利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像。The processing unit is configured to use the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image.
  11. 如权利要求10所述的模组,其特征在于,所述处理单元被配置为:The module of claim 10, wherein the processing unit is configured to:
    从所述参考图像中获取环境光相关信息;obtaining ambient light related information from the reference image;
    根据所述环境光相关信息,对所述待处理的结构光图像进行环境光滤波处理,得到所述优化的结构光图像。According to the ambient light related information, ambient light filtering processing is performed on the to-be-processed structured light image to obtain the optimized structured light image.
  12. 一种自主移动设备,其特征在于,所述设备包括:An autonomous mobile device, characterized in that the device comprises:
    设备主体;device body;
    结构光模块,设置在所述设备主体上,被配置为获取目标区域的结构光图像,以及获取所述目标区域的参考图像,其中,所述参考图像是所述目标区域未被结构光照射时的图像;A structured light module, disposed on the main body of the device, configured to acquire a structured light image of the target area, and to acquire a reference image of the target area, wherein the reference image is when the target area is not irradiated by structured light Image;
    处理单元,被配置为利用所述参考图像,对所述结构光图像进行图像滤波处理,得到优化的结构光图像;根据所述优化的结构光图像,确定所述目标区域的障碍物信息。The processing unit is configured to use the reference image to perform image filtering processing on the structured light image to obtain an optimized structured light image; and to determine obstacle information of the target area according to the optimized structured light image.
  13. 如权利要求12所述的设备,其特征在于,所述处理单元被配置为:13. The apparatus of claim 12, wherein the processing unit is configured to:
    从所述参考图像中获取环境光相关信息;obtaining ambient light related information from the reference image;
    根据所述环境光相关信息,对所述结构光图像进行环境光滤波处理,得到所述优化的结构光图像。According to the ambient light related information, ambient light filtering processing is performed on the structured light image to obtain the optimized structured light image.
  14. 如权利要求12所述的设备,其特征在于,所述结构光模块包括:The device of claim 12, wherein the structured light module comprises:
    发光单元,用于向所述目标区域投射结构光;a light-emitting unit for projecting structured light to the target area;
    图像获取单元,被配置为在所述目标区域被所述结构光照射的情况下,获取所述目标区域的图像,作为所述结构光图像;还被配置为在所述目标未被所述结构光照射的情况下,获取所述结构光图像对应的环境光条件下的所述目标区域的参考图像。an image acquisition unit, configured to acquire an image of the target area as the structured light image when the target area is illuminated by the structured light; and configured to obtain an image of the target area when the target area is not illuminated by the structure In the case of light irradiation, a reference image of the target area under ambient light conditions corresponding to the structured light image is acquired.
PCT/CN2021/122723 2021-03-29 2021-10-09 Structured light image processing method, obstacle detection method, module and device WO2022205827A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110334818.7 2021-03-29
CN202110334818.7A CN113221910A (en) 2021-03-29 2021-03-29 Structured light image processing method, obstacle detection method, module and equipment

Publications (1)

Publication Number Publication Date
WO2022205827A1 true WO2022205827A1 (en) 2022-10-06

Family

ID=77084353

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/122723 WO2022205827A1 (en) 2021-03-29 2021-10-09 Structured light image processing method, obstacle detection method, module and device

Country Status (2)

Country Link
CN (1) CN113221910A (en)
WO (1) WO2022205827A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113221910A (en) * 2021-03-29 2021-08-06 追创科技(苏州)有限公司 Structured light image processing method, obstacle detection method, module and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9002511B1 (en) * 2005-10-21 2015-04-07 Irobot Corporation Methods and systems for obstacle detection using structured light
US20160314363A1 (en) * 2015-04-24 2016-10-27 Electronics And Telecommunications Research Institute Obstacle detection apparatus and method
CN110376606A (en) * 2019-07-26 2019-10-25 信利光电股份有限公司 Structure light processing method and structure optical mode group
CN111562567A (en) * 2020-05-11 2020-08-21 北京驭光科技发展有限公司 Obstacle detection system of mobile device, mobile device and sweeping robot
CN113221910A (en) * 2021-03-29 2021-08-06 追创科技(苏州)有限公司 Structured light image processing method, obstacle detection method, module and equipment
CN113221635A (en) * 2021-03-29 2021-08-06 追创科技(苏州)有限公司 Structured light module and autonomous mobile device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889803B (en) * 2019-01-10 2022-03-29 奥比中光科技集团股份有限公司 Structured light image acquisition method and device
CN110930323B (en) * 2019-11-07 2023-09-12 华为技术有限公司 Method and device for removing reflection of image

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9002511B1 (en) * 2005-10-21 2015-04-07 Irobot Corporation Methods and systems for obstacle detection using structured light
US20160314363A1 (en) * 2015-04-24 2016-10-27 Electronics And Telecommunications Research Institute Obstacle detection apparatus and method
CN110376606A (en) * 2019-07-26 2019-10-25 信利光电股份有限公司 Structure light processing method and structure optical mode group
CN111562567A (en) * 2020-05-11 2020-08-21 北京驭光科技发展有限公司 Obstacle detection system of mobile device, mobile device and sweeping robot
CN113221910A (en) * 2021-03-29 2021-08-06 追创科技(苏州)有限公司 Structured light image processing method, obstacle detection method, module and equipment
CN113221635A (en) * 2021-03-29 2021-08-06 追创科技(苏州)有限公司 Structured light module and autonomous mobile device

Also Published As

Publication number Publication date
CN113221910A (en) 2021-08-06

Similar Documents

Publication Publication Date Title
WO2022205810A1 (en) Structured light module and autonomous moving device
JP7082715B2 (en) Detection of machining errors in laser machining systems using deep convolutional neural networks
US9964406B2 (en) Single-camera system for measuring a vehicle distance and measurement method thereof
US10156437B2 (en) Control method of a depth camera
US11328407B2 (en) Method for inspecting mounting state of component, printed circuit board inspection apparatus, and computer readable recording medium
Zhang et al. A robust surface coding method for optically challenging objects using structured light
WO2020066637A1 (en) Depth acquisition device, depth acquisition method, and program
CN108846837B (en) Object surface defect detection method and device
US10489925B2 (en) 3D sensing technology based on multiple structured illumination
WO2022205827A1 (en) Structured light image processing method, obstacle detection method, module and device
JP2018506046A (en) Method for detecting defects on the tire surface
US9714829B2 (en) Information processing apparatus, assembly apparatus, information processing method, and storage medium that generate a measurement pattern having different amounts of irradiation light depending on imaging regions
JP2014067193A (en) Image processing apparatus and image processing method
JP2017161965A (en) Face image processing apparatus
JP2017227474A (en) Lighting device and image inspection device
CN111344553B (en) Method and system for detecting defects of curved object
JP2018159640A (en) System and method for monitoring tunnel face surface
CN109661683B (en) Structured light projection method, depth detection method and structured light projection device based on image content
JP2020051991A (en) Depth acquisition device, depth acquisition method, and program
US20220137196A1 (en) Object detection apparatus
KR101637977B1 (en) Feature point detecting method of welding joint using laser vision system
KR20240023447A (en) Monitoring the scan volume of a 3d scanner
JP7424800B2 (en) Control device, control method, and control system
JPS6298204A (en) Recognizing method for object
JPH0429036A (en) Method and device for deciding cohesion pattern

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21934464

Country of ref document: EP

Kind code of ref document: A1