A dual data stream fusion object recognition method based on depth camera

The dual data streams of the depth image and the infrared intensity image are obtained through the depth camera, fused and processed using the K-means clustering method, which solves the failure problem of object recognition under extreme lighting conditions in the existing technology and achieves higher recognition accuracy. degree and robustness.

CN113658089BActive Publication Date: 2024-08-23NANKAI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111054812.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-09
Publication Date
2024-08-23
Estimated Expiration
2041-09-09

AI Technical Summary

Technical Problem

Existing technologies rely on neural networks in object recognition, which have large amounts of training data, complex structures, and perform poorly under extreme lighting conditions, especially in dark conditions.

Method used

The dual data streams of the depth image and the infrared intensity image are obtained through the depth camera, fused and processed, the reflected light intensity information is extracted, a reflected light intensity database is established, and the K-means clustering method is used for object recognition to improve robustness.

Benefits of technology

Reduces calculation time and improves object recognition accuracy. It is suitable for object recognition under various lighting conditions, especially under dark conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113658089B
    Figure CN113658089B
Patent Text Reader

Abstract

The present invention relates to the technical fields of optical imaging, optical information processing, and computer vision, and more specifically, to a static object recognition method under the fusion of a depth image and an infrared intensity image taken by a depth camera. The method requires the establishment of sample data sets to obtain intensity reference information of different materials at different positions, and the depth image and infrared intensity image of a scene are taken at the same time by a depth camera, and each is fused after being subjected to standard binarization processing. Finally, the K-means clustering method is used to distinguish the pixels belonging to different objects, and the depth information and infrared intensity information provided by the camera are used to determine the material type of the object, thereby achieving the purpose of object recognition with low computational complexity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to technical fields such as optical imaging, optical information processing and computer vision, and in particular to an object recognition method based on the fusion of two image data obtained by a depth camera based on the time-of-flight principle. Background Art

[0002] In computer vision technology, object recognition is the most basic task and one of the most widely used directions. In scenarios such as autonomous driving, warehouse monitoring, and medical image analysis, computer-assisted analysis of single-frame or continuous-frame image data is usually required. In existing technologies, this task often requires reliance on neural networks for image content recognition. The use of neural networks often means that a large amount of data is needed for network training, and because the network has many levels and a complex structure, it adds difficulty to the optimization and debugging process. At the same time, the imaging and recognition of a single data stream based on RGB images in the past often perform poorly or even fail under extreme conditions such as large changes in lighting, poor lighting conditions, or even darkness. Summary of the invention

[0003] Based on the above situation, the present invention provides a static object recognition method under the fusion of depth image and infrared intensity image taken by a depth camera. By using a depth camera to obtain a single frame image of dual data streams at the same time, namely, a depth image and an intensity image, and then processing and fusing them, and strengthening the application of the intensity data stream, the reflected light intensity information is extracted, aiming to reduce the calculation time and improve the accuracy of object recognition based on optical principles. At the same time, this method is also highly robust to ambient light and is suitable for object recognition under various lighting conditions such as darkness.

[0004] The optical principles covered by the present invention are as follows:

[0005] When the infrared transmitter of the depth camera detects an object, theoretically, both the material and the distance (depth) are factors affecting the reflection intensity, which can be simply described as:

[0006] I=f(d,m)

[0007] Where I represents the reflection intensity, d represents the distance (depth), and m represents the material properties. Therefore, under a certain monotonic relationship, the reflection intensity I and depth d obtained by detection can reversely determine the material characteristics of the detected object to assist in object recognition.

[0008] The scheme adopted by the present invention is as follows:

[0009] Step 1: Construct a reflected light intensity database, that is, obtain the infrared reflection intensity of each material to be identified at different spatial positions, referred to as the intensity database. The data set established for shooting to obtain the intensity database is called a sample data set. After shooting the scene image in the sample data set, the foreground and background need to be separated. At this time, the depth map and intensity map obtained by shooting need to be normalized, binarized and fused respectively, all pixels of the foreground object part need to be extracted, the corresponding intensity map features need to be analyzed, and the intensity database needs to be established.

[0010] The specific implementation is as follows:

[0011] First, the sample data set is photographed. During the shooting process, for different materials to be detected, the depth camera is used to collect depth maps and intensity maps from near to far according to the sampling principle of equidistant or approximately equidistant sampling; at the same time, the reflection conditions at different spatial positions in the same distance (depth) plane will also be different. It is necessary to collect the depth of each location in the same depth XY plane as much as possible, so as to refer to the difference in the reflected light effects at different lateral positions and reduce its impact on the material determination results.

[0012] The obtained depth image and intensity image are then binarized to distinguish foreground pixels from background pixels.

[0013] The pixels corresponding to environmental objects are useless pixels in object recognition. Therefore, it is necessary to remove noise points and other useless pixels from the depth map and intensity map of each set of data after binarization. There are two main methods:

[0014] (1) For large areas of useless pixels, such as background pixels, they can be directly filtered out using the frame coordinate threshold or depth grayscale threshold method;

[0015] (2) For subtle noise points, the denoising methods that can be used include but are not limited to median filtering, Gaussian filtering, and opening and closing operations composed of corrosion and dilation operations.

[0016] The depth map and intensity map can be fused after being denoised separately, and a bitwise AND operation can be used (that is, only when the grayscale values ​​of the (i, j) points corresponding to the two images are both 255, the grayscale value of the point is retained as 255, otherwise it is set to 0).

[0017] After obtaining the fused binary image, use it as a mask template to perform mask processing on the intensity image to obtain a mask image. By traversing all the pixels of the mask image, the effective average grayscale value can be obtained:

[0018]

[0019] (Non-zero pixels refer to pixels on the mask image that belong to the exposed part) The equivalent operation is: query the coordinates of all foreground object points (i x , j x ), perform initial grayscale value indexing on the corresponding original intensity image according to the coordinates, and also calculate the average grayscale value of all foreground pixels:

[0020]

[0021] Similarly, the grayscale standard deviation of all non-zero pixels can also be used as a grayscale value feature. In this way, the reflected light characteristics of different materials at different depths can be obtained from the intensity image, and the intensity database is established.

[0022] Step 2: To perform object recognition based on the established intensity database, data collection is first performed on the scene to be recognized. The collection result is called the test data set (as opposed to the sample data set). The depth camera is facing the scene directly, and the depth map and intensity map of a scene at a certain moment are collected simultaneously.

[0023] The specific shooting method is similar to that in step 1, except that the parallel placed sample materials are replaced with different target objects to be detected.

[0024] Step 3: The depth map and intensity map of the scene to be identified are subjected to image processing such as normalization, binarization, and denoising, and the processed depth map and intensity map are fused to obtain a binary image with noise-free pixels for object recognition, thereby completing the separation of foreground and background.

[0025] Different from the sample data set in which different objects in each image are of the same material, each object in a real object recognition scene may belong to a different material category. At the same time, the object recognition task objectively requires distinguishing each target object. Therefore, after obtaining the binary image, all pixels belonging to the foreground need to be classified into different classes (target objects). The K-means clustering method used in the present invention is used.

[0026] The specific implementation is as follows:

[0027] The depth map and intensity map are normalized, binarized and fused to obtain a binary image with noise-free pixels for object recognition, completing the separation of foreground and background, which is similar to step 1. Then, the K-means clustering method is used to classify all pixels belonging to the foreground into different classes (target objects).

[0028] After clustering, pixels that are close to each other in a two-dimensional image will be classified into the same category. In the present invention, pixels corresponding to the same object are close to each other and are naturally defined as pixels belonging to the same object, that is, each pixel of the image that is determined to be a foreground is labeled to belong to a different object. In actual operation, K-means clustering is implemented using the KMeans class in Python's Scikit-learn library.

[0029] Step 4: Map the pixels with the same class label to the intensity image, query the infrared intensity characteristics of each target object, that is, the gray value mean or gray value standard deviation of the corresponding pixel set in the intensity image, and compare it with the previously established intensity database with reference to the depth, find the interval where the intensity characteristics fall, determine the material type of the target object, and complete object recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a flowchart of using dual data streams for object recognition in the present invention.

[0031] Figure 2 is a conceptual diagram of a sample data collection scenario according to an embodiment.

[0032] Figure 3 is a conceptual diagram of a test data collection scenario according to an embodiment.

[0033] Figure 4 is a conceptual diagram of processing obtained sample data according to an embodiment.

[0034] Figure 5 is a conceptual diagram of processing obtained test data according to an embodiment.

[0035] Figure 6 The detection and data processing process for a certain sample material at a first depth in an embodiment is shown.

[0036] Figure 7 The detection and data processing process for a certain sample material at the second depth in the embodiment is shown.

[0037] Figure 8 The detection and data processing process and object recognition result for a certain test scene in the embodiment are shown. DETAILED DESCRIPTION

[0038] by Figure 6 , Figure 7 The processing and recognition process based on real data is taken as an example to illustrate the specific process and related details of dual data stream object recognition in the present invention.

[0039] Figure 6 and Figure 7 The detection and data processing process of a sample material at different depths is shown to build an intensity database. During the sample data set shooting process, due to the size limitation of the object to be detected, in order to ensure that all depths within the same depth XY plane are collected and the depth and intensity data are more representative, the material to be detected needs to be placed in the left, middle and right positions at the same time during the experiment. The specific operation process is as follows:

[0040] Step 1: Use a depth camera to capture a scene and obtain corresponding depth images (611, 711) and intensity images (621, 721).

[0041] Step 2: Process the depth data stream (601, 701) and the intensity data stream (602, 702) respectively. The original depth image is binarized by a fixed threshold to obtain a binarized depth image, such as 612, 712; the intensity image is binarized by Otsu to obtain a binarized intensity image, such as 622, 722.

[0042] Step 3: After binarization, it is often difficult to completely separate the foreground and background, and it is easy to carry some environmental pixels, which are useless for object recognition; and image noise often appears in real scene shooting, so it is necessary to remove useless pixels and noise. For large-area environmental pixels, by using the environmental position information and the position information in the frame, the pixel coordinate threshold method is used to filter them out. For subtle noise points, the opening operation is first used to remove them, and then the Gaussian filter is used to repair them. According to the principle of Gaussian filtering, this operation will destroy the binarization result, so binarization should be performed again after Gaussian filtering. In the case of holes in the picture, a closing operation is needed to bridge them. The denoising of the depth map is shown in 613 and 713, and the denoising of the intensity map is shown in 623 and 723.

[0043] Step 4: The processed depth map and intensity map are fused by bitwise AND operation to obtain the final binary image (631, 731). At this time, the grayscale value in the image is 255, that is, the white pixel is used as the foreground object point. The original intensity map is indexed by the initial grayscale value according to the coordinate value, so as to obtain the intensity value data characteristics of the material at different depths. In this way, data collection of different materials at different depths can obtain the required intensity database.

[0044] Figure 8 The following figure shows the detection and data processing process for a scene to be identified. The specific operation process is as follows:

[0045] Step 1: Use a depth camera to capture a scene and obtain a corresponding depth image (811) and intensity image (821).

[0046] Step 2: Process the depth data stream (801) and the intensity data stream (802) respectively. The original depth image is binarized by a fixed threshold to obtain a binarized depth image, such as 812; the intensity image is binarized by Otsu to obtain a binarized intensity image, such as 822.

[0047] Step 3: Similarly, first filter out the pixels by using the pixel coordinate threshold method, and then repair them by using the opening operation, Gaussian filter binarization, closing operation, etc. The denoising process of the depth map and the intensity map is shown in 813 and 823.

[0048] Step 4: The processed depth map and intensity map are fused by bitwise AND operation to obtain the final binary image (831). The fused binary image is used to distinguish different target objects using the K-means clustering algorithm, as shown in 831. After that, the material type is determined by the previously established intensity database, as shown in 841. The three target objects from left to right in the figure are compared with the previously established intensity database with reference to the depth. Objects 1 and 3 are identified as material A, and object 2 is identified as material B. The identification results are accurate. Thus, object recognition is completed.

[0049] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, and the accompanying drawings are used to provide a further understanding of the present invention. However, the protection scope of the present invention is not limited to the disclosed embodiments, and is intended to cover a variety of variations and equivalent arrangements included within the spirit and scope of the appended claims, such as using a data stream different from the present invention for fusion, using a different fusion algorithm, a denoising algorithm, using a depth camera device with different principles, etc. Therefore, any changes that belong to the technical concept of the present invention and are only obvious changes to the technical solution should fall within the protection scope of the present invention.

Claims

1. An object recognition method based on data fusion acquired by a depth camera, characterized in that: The depth image and intensity image data obtained by the depth camera are used simultaneously, and the two are fused to perform object recognition; the preparatory work before recognition is to build a sample data set to extract the intensity database, and the recognition needs to determine the type of object based on the data in the intensity database; The steps are as follows: Step 1: For each material to be identified, obtain its infrared reflection intensity at different spatial positions as a reflected light intensity database, which is called an intensity database; the data set established for shooting to obtain the intensity database is called a sample data set; Step 2: Object recognition is performed on the basis of the established intensity database. First, data collection is performed on the scene to be identified. The depth camera is facing the scene directly, and the depth map and intensity map are collected at a certain moment; Step 3: The depth map and intensity map of the scene to be identified are normalized, binarized and fused respectively to obtain a binary image with noise-free pixels for object recognition, complete the separation of foreground and background, and then use the K-means clustering method to classify all pixels belonging to the foreground into different classes to complete the distinction between pixels belonging to different objects; Step 4: Mapping pixels with the same type of label to the intensity image, querying the infrared intensity characteristics of each target object, and comparing with the previously established intensity database with reference to the depth, finding the interval where the intensity characteristics fall, and determining the material type of the target object, that is, completing object recognition; Step 1 specifically includes: when shooting the sample data set, for different materials to be detected, according to the principle of equidistant or approximately equidistant sampling, using the depth camera to collect depth maps and intensity maps from near to far; at the same time, it is necessary to consider that the reflection conditions at different spatial positions in the same distance plane will also be different, and try to ensure that the depths of various locations in the same depth XY plane are collected as much as possible, so as to refer to the differences in the reflected light effects at different lateral positions to reduce their impact on the material determination results; Then, the depth image and intensity image are binarized to distinguish foreground pixels from background pixels. Since the depth or intensity image obtained from the real scene shooting is inevitably noisy, and the pixels corresponding to the environmental objects are useless pixels in the object recognition work, it is necessary to remove the noise points and other useless pixels from the depth image and intensity image of each set of data. The depth image and the intensity image can be fused after denoising respectively. The method includes bitwise AND operation, that is, only when the grayscale values ​​of the (i, j) points corresponding to the two images are both 255, the grayscale value of the point is retained as 255, otherwise it is set to 0. After obtaining the binary image, it is used as a mask template to mask the intensity image to obtain a mask image. All pixels of the mask image are traversed to find the effective average grayscale value: Or query the coordinates (ix, jx) of all foreground object points, perform initial grayscale value indexing on the corresponding intensity map original image according to the coordinates, and also calculate the average grayscale value of all foreground pixels: Similarly, the grayscale standard deviation of all non-zero pixels can also be used as a grayscale value feature; thus, the reflected light characteristics of different materials at different depths can be obtained from the intensity image, and the intensity database is established; The step 3 specifically includes: the depth map and intensity map fusion method includes a bitwise AND operation; the K-means clustering used is an iterative algorithm. After clustering, pixels that are close to each other in the two-dimensional image will be divided into the same category. The pixels corresponding to the same object are close to each other and are naturally defined as pixels belonging to the same object, that is, each pixel of the image that is determined to be a foreground is labeled to belong to a different object; in actual operation, the image algorithm for classifying foreground objects includes a K-means clustering algorithm; the specific implementation method of K-means clustering is the KMeans class in the Scikit-learn library of Python.

2. The object recognition method based on depth camera acquired data fusion according to claim 1, characterized in that: The detection principle of the depth camera used adopts the time-of-flight principle.

3. The object recognition method based on depth camera acquired data fusion according to claim 1, characterized in that: The denoising algorithm is a median filter, a Gaussian filter, or an opening operation and a closing operation formed by a combination of corrosion and expansion operations.