Control method, control device and high-altitude mechanical equipment for glass installation
By acquiring color and depth images from high-altitude mechanical equipment and combining them with normal vector image recognition of glass and frame edges, and calculating relative pose, automatic glass installation was achieved. This solved the problem of high labor costs in high-altitude glass curtain wall installation and improved the accuracy and automation of installation.
Patent Information
- Application Number
- CN202211643555.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-20
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-12-20
AI Technical Summary
In the current technology, the installation of high-altitude glass curtain walls is labor-intensive and difficult to automate efficiently.
By acquiring color and depth images of the target object, and using an RGBD camera to determine the normal vector image, the edge regions of the glass and frame are identified by combining the color, depth, and normal vector images, and the relative pose between them is calculated to control the position of the glass installed on the frame.
It reduced labor costs, improved the accuracy of glass installation, and achieved a higher degree of automation in high-altitude glass curtain wall operations.
Smart Images

Figure CN116205777B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of high-altitude machinery technology, and more specifically to a control method, control device, and high-altitude machinery equipment for glass installation. Background Technology
[0002] The emergence of aerial work platforms has significantly improved the efficiency and safety of high-altitude operations, gradually replacing traditional methods. High-altitude curtain wall glass installation is one specific application of these platforms. Currently, the installation of high-altitude glass curtain walls typically requires workers to visually determine the frame's position and then use aerial work platforms to place the glass into the frame, resulting in high labor costs. Summary of the Invention
[0003] The purpose of this invention is to provide a control method, control device, processor, high-altitude mechanical equipment, and storage medium for glass installation, in order to solve the problem of high labor costs in the prior art.
[0004] To achieve the above objectives, a first aspect of the present invention provides a control method for glass mounting, wherein the edge of the glass has a non-transparent portion, the method comprising:
[0005] Obtain a color image of the target object and a depth image corresponding to the color image. The target object includes glass and a frame.
[0006] Determine the normal vector image based on the depth image;
[0007] The edge region of the glass is determined based on the color image, depth image, and normal vector image.
[0008] Determine the edge regions of the frame based on the depth image;
[0009] The relative pose between the glass and the frame is determined based on the edge regions of the glass and the frame.
[0010] The glass is installed in the frame position based on its relative pose.
[0011] In this embodiment of the invention, determining the edge region of the glass based on a color image, a depth image, and a normal vector image includes: selecting a first pixel from the pixels of the color image whose color pixel value is within a preset color pixel value range; selecting a second pixel from the pixels of the depth image whose depth value is within a preset depth value range; selecting a third pixel from the normal vector image whose normal vector is within a preset normal vector range; and determining the pixels whose pixel coordinates coincide among the first, second, and third pixels to obtain the edge region of the glass.
[0012] In this embodiment of the invention, determining the edge region of the frame based on the depth image includes: performing initial segmentation of the color image based on the color pixel values of the pixels in the color image using a particle swarm optimization algorithm to determine the initial edge region of the frame; obtaining the depth information and normal vector information corresponding to the initial edge region based on the depth image and the normal vector image, respectively; and performing fine segmentation of the initial edge region based on the depth information and the normal vector information to determine the target edge region of the frame.
[0013] In this embodiment of the invention, determining the relative pose between the glass and the frame based on the edge region of the glass and the edge region of the frame includes: determining the outer edge of the glass and the corner points of the glass based on the edge region of the glass, a color image, a depth image, and a normal vector image; determining the inner edge of the frame and the corner points of the frame based on the edge region of the frame, a color image, and a depth image; and determining the relative pose between the glass and the frame based on the outer edge of the glass, the corner points of the glass, the inner edge of the frame, and the corner points of the frame.
[0014] In this embodiment of the invention, determining the outer edge and corner points of the glass based on the edge region of the glass, a color image, a depth image, and a normal vector image includes: determining the feature information of the pixel points corresponding to the edge region of the glass in the color image, the depth image, and the normal vector image, wherein the feature information includes color information, depth information, and normal vector information; inputting the feature information into an image contour recognition model to recognize the contour of the glass; and determining the outer edge and corner points of the glass based on the contour of the glass.
[0015] In this embodiment of the invention, determining the inner edge and corner points of the frame based on the edge region of the frame, the color image, and the depth image includes: determining the color pixel value and depth value of the pixel points corresponding to the edge region of the frame in the color image and the depth image, respectively; determining the first initial edge of the frame in the color image and the second initial edge of the frame in the depth image based on the color pixel value and the depth value, respectively, using a first edge detection algorithm; merging the first initial edge and the second initial edge based on a second edge detection algorithm to obtain the target edge of the frame; and determining the inner edge and corner points of the frame based on the target edge of the frame.
[0016] In this embodiment of the invention, determining the feature information of the pixels corresponding to the edge region of the glass in the color image, depth image, and normal vector image respectively includes: determining the three-dimensional coordinates of the pixels corresponding to the edge region of the glass; performing three-dimensional plane fitting based on the three-dimensional coordinates of the pixels corresponding to the edge region of the glass to obtain the three-dimensional plane corresponding to the edge region of the glass; back-projecting the three-dimensional plane corresponding to the edge region of the glass onto the color image, depth image, and normal vector image respectively to obtain the color image ROI region, depth image ROI region, and normal vector image ROI region corresponding to the edge region of the glass respectively; and obtaining feature information based on the color image ROI region, depth image ROI region, and normal vector image ROI region.
[0017] In this embodiment of the invention, determining the color pixel value and depth value of the pixels corresponding to the edge region of the frame in the color image and the depth image respectively includes: determining the three-dimensional coordinates of the pixels corresponding to the edge region of the frame; performing three-dimensional plane fitting based on the three-dimensional coordinates of the pixels corresponding to the edge region of the frame to obtain the three-dimensional plane corresponding to the edge region of the frame; back-projecting the three-dimensional plane corresponding to the edge region of the frame onto the color image and the depth image respectively to obtain the ROI region of the color image and the ROI region of the depth image corresponding to the edge region of the frame respectively; and obtaining the color pixel value and depth value based on the ROI region of the color image and the ROI region of the depth image.
[0018] A second aspect of the present invention provides a processor configured to execute the control method for glass mounting described above.
[0019] A third aspect of the present invention provides a control device for glass mounting, wherein the edge of the glass has a non-transparent portion, and the control device includes:
[0020] The image acquisition module is used to acquire a color image of the target object and a depth image corresponding to the color image, wherein the target object includes glass and a frame;
[0021] The normal vector image determination module is used to determine the normal vector image based on the depth image.
[0022] The glass edge region determination module is used to determine the edge region of the glass based on the color image, depth image, and normal vector image.
[0023] The frame edge region determination module is used to determine the edge region of the frame based on the depth image;
[0024] The relative pose determination module is used to determine the relative pose between the glass and the frame based on the edge regions of the glass and the frame.
[0025] The control module is used to control the position of the glass installed onto the frame based on the relative pose.
[0026] A fourth aspect of the present invention provides a high-altitude mechanical device, comprising: an adsorption device for adsorbing glass; an RGBD camera disposed on the high-altitude mechanical device for acquiring a color image of a target object and a depth image corresponding to the color image; and a processor according to the above or a control device according to the above for glass installation.
[0027] A fifth aspect of the present invention provides a machine-readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the control method for glass mounting described above.
[0028] The above technical solution acquires color images and corresponding depth images of the target object (including glass and frame), determines normal vector images based on the depth images, and then determines the edge regions of the glass and the frame based on the color, depth, and normal vector images. Based on the depth images, the relative poses between the glass and frame are determined, and the glass is then installed onto the frame according to these relative poses. In this solution, because the glass edges have non-transparent portions, a depth image of the glass can be acquired, solving the problem of missing depth images for transparent materials like glass. The edge regions of the glass can then be determined based on the color, depth, and normal vector images, using pixel color, depth, and normal vector information as prior information for glass edge region segmentation. The relative poses of the glass and frame edge regions are then determined, and the glass installation is completed based on these relative poses. This eliminates the need for construction personnel, significantly reducing labor costs, improving installation accuracy, and automating high-altitude glass curtain wall operations.
[0029] Other features and advantages of the embodiments of the present invention will be described in detail in the following detailed description section. Attached Figure Description
[0030] The accompanying drawings are provided to further illustrate embodiments of the present invention and form part of the specification. They are used together with the following detailed description to explain the embodiments of the present invention, but do not constitute a limitation thereof. In the drawings:
[0031] Figure 1 The schematic diagram illustrates a flow chart of a control method for glass mounting according to an embodiment of the present invention;
[0032] Figure 2 This schematic diagram illustrates the structure of a hardware system for glass mounting according to an embodiment of the present invention;
[0033] Figure 3 The schematic diagram illustrates a flow chart of a control method for glass mounting according to another embodiment of the present invention;
[0034] Figure 4 The diagram schematically illustrates a structural block diagram of a control device for glass mounting according to an embodiment of the present invention. Detailed Implementation
[0035] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit the scope of the present invention.
[0036] Figure 1 The diagram illustrates a flow chart of a control method for glass mounting according to an embodiment of the present invention. Figure 1 As shown, in this embodiment of the invention, a control method for glass mounting is provided, wherein the edge of the glass has a non-transparent portion. Taking the application of this method to a processor as an example, the method may include the following steps:
[0037] Step S102: Obtain a color image of the target object and a depth image corresponding to the color image, wherein the target object includes glass and a frame.
[0038] Step S104: Determine the normal vector image based on the depth image.
[0039] Step S106: Determine the edge region of the glass based on the color image, depth image, and normal vector image.
[0040] Step S108: Determine the edge region of the frame based on the depth image.
[0041] Step S110: Determine the relative pose between the glass and the frame based on the edge region of the glass and the edge region of the frame.
[0042] Step S112: Control the position of the glass installation onto the frame according to the relative pose.
[0043] The target object is the object for which image acquisition is required, and can include glass and frames. The edges of the glass have opaque parts, which could be a pasted opaque frame or sprayed opaque paint, etc. The color image can include the color information of the pixels of the target object (including glass and frames). The depth image can include the depth information of the pixels of the target object (including glass and frames). The normal vector image is an image including the normal vectors of each pixel, which can be determined based on the depth image. Relative pose can include relative position and relative orientation, etc.
[0044] Specifically, the processor can acquire a color image of the target object and a corresponding depth image through an image acquisition device such as an RGBD camera (or RGBD sensor). Alternatively, it can acquire a color image of the target object through an RGB camera and a depth image of the target object through a depth camera. The image acquisition device can be mounted on a high-altitude mechanical device (e.g., a high-altitude suction cup truck). This allows the processor to determine a normal vector image from the depth image. Specifically, the processor can determine the three-dimensional coordinates of a pixel based on its pixel coordinates and the depth value corresponding to those coordinates. Then, it can determine the normal vector corresponding to the pixel based on its three-dimensional coordinates and the three-dimensional coordinates of its neighboring pixels. Finally, it can obtain a normal vector image based on the normal vectors corresponding to all pixels. Furthermore, the edge region of the glass can be determined based on the color image, depth image, and normal vector image. That is, the edge region of the glass is segmented based on the color information, depth information, and normal vector of the pixels. Then, the edge region of the frame can be determined based on the depth image. Thus, the relative pose between the glass and the frame can be determined based on the edge regions of the glass and the frame. For example, the corner points of the glass can be determined based on the edge regions of the glass, and the corner points of the frame can be determined based on the edge regions of the frame. Thus, the relative pose between the glass and the frame can be determined based on the corner points of the glass and the corner points of the frame. The position of the glass installed on the frame can be controlled based on the relative pose. For example, the adsorption device can be controlled to adsorb the glass and move it to the position of the frame to install the glass into the frame.
[0045] The aforementioned control method for glass installation acquires a color image and a corresponding depth image of the target object (including glass and frame), determines a normal vector image based on the depth image, and then determines the edge region of the glass and the edge region of the frame based on the color image, depth image, and normal vector image. Based on the depth image, the relative pose between the glass and the frame is determined, and the glass is then installed onto the frame according to the relative pose. In this technical solution, because the glass edge has a non-transparent portion, a depth image of the glass can be acquired, solving the problem of missing depth images for transparent materials such as glass. The edge region of the glass can then be determined based on the color image, depth image, and normal vector image. This involves using the color information, depth information, and normal vector information of pixels as prior information to segment the glass edge region, and determining the relative pose between the glass edge region and the frame edge region. The glass installation is then completed based on the relative pose. This method eliminates the need for construction personnel, significantly reducing labor costs, improving the accuracy of glass installation, and achieving automation of high-altitude glass curtain wall operations.
[0046] In one embodiment, determining the edge region of the glass based on a color image, a depth image, and a normal vector image includes: selecting a first pixel from the pixels of the color image whose color pixel value is within a preset color pixel value range; selecting a second pixel from the pixels of the depth image whose depth value is within a preset depth value range; selecting a third pixel from the normal vector image whose normal vector is within a preset normal vector range; and determining the pixels whose pixel coordinates coincide among the first, second, and third pixels to obtain the edge region of the glass.
[0047] It can be understood that the preset color pixel value range is a pre-determined threshold range of color pixel values for the non-transparent portion of the glass edge. For example, if the color of the non-transparent portion is black, then the preset color pixel value range is the range of black color pixel values. The preset depth value range is a pre-determined threshold range of depth pixel values corresponding to the distance between the glass and the image acquisition device. The preset normal vector range is a pre-determined threshold range of the normal vector of the glass plane, for example, the normal vector direction is perpendicular to the optical center direction. The first pixel is the set of pixels in the color image whose color pixel values are within the preset color pixel value range. The second pixel is the set of pixels in the depth image whose depth values are within the preset depth value range. The third pixel is the set of pixels in the normal vector image whose normal vectors are within the preset normal vector range.
[0048] Specifically, the processor can select a first pixel whose color pixel value is within a preset color pixel value range from the pixels in the color image based on the color information of the pixels in the color image; select a second pixel whose depth value is within a preset depth value range from the pixels in the depth image based on the depth value information of the pixels in the depth image; and select a third pixel whose normal vector is within a preset normal vector range from the pixels in the normal vector image based on the normal vector information of the pixels in the normal vector image. In this way, the pixels whose pixel coordinates coincide among the first, second, and third pixels can be determined, thereby obtaining the edge region of the glass.
[0049] In this embodiment, the glass edge region segmentation based on the fusion of multi-source information (including color information, depth information and normal vector information) can effectively solve the serious problem of missing depth images of transparent objects (such as glass), thereby laying the foundation for subsequent accurate detection of the relative pose of the glass and the frame.
[0050] In one embodiment, determining the edge region of a frame based on a depth image includes: performing initial segmentation of a color image based on the color pixel values of pixels in the color image using a particle swarm optimization algorithm to determine the initial edge region of the frame; obtaining depth information and normal vector information corresponding to the initial edge region based on the depth image and normal vector image, respectively; and performing fine segmentation of the initial edge region based on the depth information and normal vector information to determine the target edge region of the frame.
[0051] Understandably, glass region segmentation can be performed based on a significant amount of prior information. However, since the frame (e.g., an aluminum alloy frame) is typically located behind the glass, factors such as significant differences in color information due to different lighting conditions and substantial background clutter in complex environments greatly increase the difficulty of segmenting and extracting the frame edge regions. Currently, traditional image segmentation algorithms suffer from oversegmentation and undersegmentation. This invention employs an image segmentation technique based on Particle Swarm Optimization (PSO) and RGBD data fusion. It can be understood that the initial edge region of the frame is a coarse frame edge region obtained after preliminary segmentation. The target edge region of the frame is a more precise frame edge region.
[0052] Specifically, firstly, a color image (e.g., an RGB image) is used as input to the particle swarm optimization algorithm. Several segmentation thresholds (e.g., different RGB color value ranges) are selected as candidate segmentation thresholds. The global optimization capability of the particle swarm optimization algorithm is used to obtain the optimal particle in the frame edge region of the RGB image, thus completing the initial segmentation of the frame region and the background region based on color pixel values (i.e., RGB), to obtain the initial edge region of the frame. Further, considering that color images are easily affected by uneven lighting and complex background textures and colors, which can lead to incorrect segmentation of the frame region, this embodiment of the invention, based on the initial RGB-based segmentation, integrates a depth image (i.e., a depth image) and a normal vector image to solve the missegmentation problem. Specifically, the optimal particle obtained based on the particle swarm optimization algorithm (i.e., the initial edge region) is used as the initial particle for depth image segmentation and normal vector image segmentation. Based on the depth information (e.g., depth continuity) corresponding to the initial edge region in the depth image and the normal vector information (e.g., normal vector consistency, shape similarity) corresponding to the initial edge region in the normal vector image, the optimal particle in the depth image is used as the initial particle for depth image segmentation and normal vector image segmentation. The initial edge region can be finely segmented based on features (such as depth continuity, normal vector consistency, and shape similarity) in the depth image and normal vector image to determine the target edge region of the frame. Specifically, a new image segmentation optimization objective function can be constructed based on the features of the initial edge region in the depth image and normal vector image (such as depth continuity, normal vector consistency, and shape similarity). The optimal segmentation threshold based on the depth image and normal vector image is determined by using the Lagrange multiplier method. That is, the initial edge region is finely segmented based on the depth information and normal vector information corresponding to the initial edge region to determine the target edge region of the frame, thereby completing the fusion segmentation of the frame edge region based on the color image, depth image, and normal vector image.
[0053] In this embodiment, a fusion clustering technique combining color images, depth images, and normal vector images is employed. This effectively avoids the local optima and segmentation errors caused by complex backgrounds and noise in traditional PSO algorithms based on color images. In complex background noise conditions, this embodiment can accurately segment even distant small frame edges, laying the foundation for accurate detection of the relative pose of the glass and frame based on the segmentation results.
[0054] In one embodiment, determining the relative pose between the glass and the frame based on the edge regions of the glass and the frame includes: determining the outer edge of the glass and the corner points of the glass based on the edge regions of the glass, a color image, a depth image, and a normal vector image; determining the inner edge of the frame and the corner points of the frame based on the edge regions of the frame, the color image, and the depth image; and determining the relative pose between the glass and the frame based on the outer edge of the glass, the corner points of the glass, the inner edge of the frame, and the corner points of the frame.
[0055] Specifically, after determining the edge region of the glass, the processor can also determine the outer edge and corner points of the glass based on the edge region, color image, depth image, and normal vector image. For example, the color image, depth image, and normal vector image corresponding to the edge region of the glass can be input into a preset model corresponding to the glass to identify the outer edge and corner points of the glass through the preset model. Similarly, after determining the edge region of the frame, the processor can also determine the inner edge and corner points of the frame based on the edge region, color image, and depth image of the frame. For example, the color image and depth image corresponding to the edge region of the frame can be input into a preset model corresponding to the frame to identify the inner edge and corner points of the frame through the preset model. Then, the relative pose between the glass and the frame can be determined based on the outer edge, corner points of the glass, inner edge, and corner points of the frame. For example, based on the extracted precise 3D corner point coordinates and 3D edges of the glass and frame, a 3D point-line matching algorithm is used to calculate the relative pose between the outer edge with the glass 3D corner point as the origin and the inner edge with the frame 3D corner point as the origin, including: the distance between the two 3D corner points (d X ,d Y The relative pose information (α, β, γ) is then transmitted to the control system of the aerial suction cup vehicle for automatic installation.
[0056] In this embodiment, the outer edge and corner points of the glass are further determined based on the edge region of the glass and the three images mentioned above, and the inner edge and corner points of the frame are further determined based on the edge region of the frame and the three images mentioned above. This allows for the accurate determination of the relative pose between the glass and the frame based on the outer edge and corner points of the glass and the inner edge and corner points of the frame, thereby further improving the accuracy of the relative pose.
[0057] In one embodiment, determining the outer edge and corner points of the glass based on the glass's edge region, color image, depth image, and normal vector image includes: determining the feature information of the pixels corresponding to the glass's edge region in the color image, depth image, and normal vector image, respectively, wherein the feature information includes color information, depth information, and normal vector information; inputting the feature information into an image contour recognition model to recognize the glass's contour; and determining the glass's outer edge and corner points based on the glass's contour.
[0058] Understandably, the image contour recognition model is a pre-trained algorithm model that can recognize the contours of glass, specifically a random forest algorithm model.
[0059] Specifically, the processor can first determine the feature information of the pixels corresponding to the edge region of the glass in the color image, depth image, and normal vector image, respectively. The feature information can include color information, depth information, and normal vector information. For example, color information can include brightness gradient, color gradient, texture gradient, etc., depth information can include depth gradient, etc., and normal vector information can include convex direction gradient and concave direction gradient, etc. The above feature information is then input into the image contour recognition model, that is, each pixel is classified and identified as whether it is an image contour, and those pixels with image contours are retained to obtain the contour of the glass. Based on the contour of the glass, the position information of the outer edge and corner points of the glass can be further determined.
[0060] In this embodiment, the glass contour is identified based on the feature information of the color image, depth image and normal vector image. This can eliminate the noisy edges present in traditional contour extraction algorithms based on color images, that is, eliminate the redundancy of the contour edges, and the recognition speed is faster, so as to obtain accurate outer edges and corners of the glass.
[0061] In one embodiment, determining the inner edge and corner points of the frame based on the frame's edge region, a color image, and a depth image includes: determining the color pixel value and depth value of the pixel points corresponding to the frame's edge region in the color image and the depth image, respectively; determining a first initial edge of the frame in the color image and a second initial edge of the frame in the depth image based on the color pixel value and depth value, respectively, using a first edge detection algorithm; merging the first initial edge and the second initial edge based on a second edge detection algorithm to obtain the target edge of the frame; and determining the inner edge and corner points of the frame based on the target edge of the frame.
[0062] It can be understood that the first edge detection algorithm and the second edge detection algorithm are two different edge detection algorithms. The first edge detection algorithm is an algorithm for initially determining the initial edges of the frame. That is, the input of the first edge detection algorithm is the color pixel value and depth value corresponding to the edge region of the frame, and the output is the first initial edge corresponding to the color image and the second initial edge corresponding to the depth image. For example, it can be the Hough algorithm. The second edge detection algorithm is an algorithm for determining the final frame edges by merging multiple initial edges. That is, the input of the second edge detection algorithm is multiple initial edges (which may include the first initial edge and the second initial edge mentioned above), and the output is the finally determined frame edge (i.e., the target edge). For example, it can be the Markov chain algorithm.
[0063] Specifically, the processor can determine the color pixel values and depth values of the pixels corresponding to the edge regions of the frame in the color image and depth image, respectively. Based on a first edge detection algorithm, it identifies and determines the first initial edge of the frame in the color image and the second initial edge of the frame in the depth image based on the color pixel values and depth values. That is, the color pixel values and depth values are used as input to the first edge detection algorithm (e.g., the Hough algorithm) to obtain the output of the first edge detection algorithm, namely the first initial edge and the second initial edge. Then, the first initial edge and the second initial edge can be merged based on a second edge detection algorithm to obtain the target edge of the frame. That is, the first initial edge and the second initial edge are used as input to the second edge detection algorithm (e.g., the Markov chain algorithm) to obtain the output of the second edge detection algorithm, namely the target edge of the frame. Finally, the inner edges and corner points of the frame can be determined based on the target edge of the frame, which will not be elaborated here.
[0064] In this embodiment, the determination of the target edge of the frame is divided into two stages. In the first stage, the pixel values of the RGB image and the depth values of the Depth image are used as inputs to the first edge detection algorithm to extract the line pixel points corresponding to the first and second initial edges, respectively. In the second stage, the initial edges detected in each domain are analyzed simultaneously in the image domain and the depth domain. When a line at a similar position can be found simultaneously in the RGB and Depth images, it can be merged by the second edge detection algorithm to detect the line segments that are actually located on the frame edge, remove inaccurate edge segments, improve the accuracy of the frame edge, and lay the foundation for the subsequent determination of the inner edge and corner points of the frame.
[0065] In one embodiment, determining the feature information of the pixels corresponding to the edge region of the glass in the color image, depth image, and normal vector image includes: determining the three-dimensional coordinates of the pixels corresponding to the edge region of the glass; performing three-dimensional plane fitting based on the three-dimensional coordinates of the pixels corresponding to the edge region of the glass to obtain the three-dimensional plane corresponding to the edge region of the glass; back-projecting the three-dimensional plane corresponding to the edge region of the glass onto the color image, depth image, and normal vector image respectively to obtain the color image ROI region, depth image ROI region, and normal vector image ROI region corresponding to the edge region of the glass respectively; and obtaining feature information based on the color image ROI region, depth image ROI region, and normal vector image ROI region.
[0066] It can be understood that the ROI (region of interest) is the region of interest. In this embodiment, it corresponds to the more accurate glass edge region (i.e., glass ROI region) obtained after denoising the edge region of the glass. The ROI region of the color image is the ROI region in the color image, the ROI region of the depth image is the ROI region in the color image, and the ROI region of the normal vector image is the ROI region in the normal vector image.
[0067] Specifically, the processor can determine the three-dimensional coordinates of the pixels corresponding to the edge region of the glass. For example, it can determine the three-dimensional coordinates of the pixels corresponding to the edge region of the glass based on the pixel coordinates and the depth values corresponding to the pixel coordinates in the depth image corresponding to the edge region of the glass. Based on the three-dimensional coordinates of the pixels corresponding to the edge region of the glass, a three-dimensional plane fitting is performed to obtain the three-dimensional plane corresponding to the edge region of the glass, i.e., three-dimensional plane modeling is performed. Then, the three-dimensional plane corresponding to the edge region of the glass is back-projected onto the color image, the depth image, and the normal vector image, respectively, to obtain the ROI regions of the color image, the ROI regions of the depth image, and the ROI regions of the normal vector image corresponding to the edge region of the glass. That is, the process of converting three-dimensional information into two-dimensional information, so that feature information can be obtained from the ROI regions of the color image, the ROI regions of the depth image, and the ROI regions of the normal vector image.
[0068] In this embodiment, the edge region of the glass is first transformed into a three-dimensional plane, and then the three-dimensional plane is back-projected onto the corresponding ROI region in each image. Based on the ROI region corresponding to each image, the feature information of the precise pixel points of the edge region of the glass in each image is obtained. This precise pixel feature information is then input into the image contour recognition model to identify the contour of the glass (i.e., the glass ROI region). In turn, the position of the outer edge and corner points of the glass can be determined based on the contour of the glass (i.e., the glass ROI region). This reduces the computational load of the image contour recognition model and also achieves noise reduction processing of the glass edge region, resulting in a more accurate glass edge region.
[0069] In one embodiment, determining the color pixel value and depth value of the pixels corresponding to the edge region of the frame in the color image and the depth image, respectively, includes: determining the three-dimensional coordinates of the pixels corresponding to the edge region of the frame; performing three-dimensional plane fitting based on the three-dimensional coordinates of the pixels corresponding to the edge region of the frame to obtain the three-dimensional plane corresponding to the edge region of the frame; back-projecting the three-dimensional plane corresponding to the edge region of the frame onto the color image and the depth image, respectively, to obtain the color image ROI region and the depth image ROI region corresponding to the edge region of the frame, respectively; and obtaining the color pixel value and depth value based on the color image ROI region and the depth image ROI region.
[0070] It can be understood that the ROI region is the region of interest. In this embodiment, it corresponds to the more accurate frame edge region (i.e., frame ROI region) obtained after denoising the frame edge region. The ROI region of the color image is the ROI region in the color image, and the ROI region of the depth image is the ROI region in the color image.
[0071] Specifically, the processor can determine the three-dimensional coordinates of the pixels corresponding to the edge regions of the frame. For example, it can determine the three-dimensional coordinates of the pixels corresponding to the edge regions of the frame based on the pixel coordinates and the depth values corresponding to the pixel coordinates in the depth image. Based on the three-dimensional coordinates of the pixels corresponding to the edge regions of the glass, a three-dimensional plane fitting is performed to obtain the three-dimensional plane corresponding to the edge regions of the frame, i.e., three-dimensional plane modeling is performed. Then, the three-dimensional plane corresponding to the edge regions of the frame is back-projected onto the color image and the depth image, respectively, to obtain the color image ROI region and the depth image ROI region corresponding to the edge regions of the frame, i.e., the process of converting three-dimensional information into two-dimensional information. Thus, the color pixel value and depth value corresponding to the ROI region of the frame can be obtained based on the color image ROI region, the depth image ROI region, and the normal vector image ROI region.
[0072] In this embodiment, the edge region of the frame is first transformed into a three-dimensional plane, and then the three-dimensional plane is back-projected onto the corresponding ROI region in the color image and depth image. Based on the ROI region corresponding to each image, the precise color pixel value and depth value of the edge region of the frame in each image are obtained. This allows the precise color pixel value and depth value of the pixel to be used to determine the inner edge and corner of the frame. This reduces the computational load of the subsequent first edge detection algorithm and second edge detection algorithm, while also achieving noise reduction processing of the frame edge region, resulting in a more accurate frame edge region.
[0073] This invention addresses the need for automation and intelligence in high-altitude glass curtain wall operations. Multiple RGBD cameras can be installed on the adsorption device of the high-altitude work machinery to acquire color images, depth images, and 3D point cloud data of the glass and aluminum alloy frame. Based on multimodal data fusion technology, the 3D point cloud data is fitted to the 3D plane of the glass and aluminum alloy frame. Then, the color images, depth images, and normal vector images are fused to accurately extract the edges and corners of the glass and aluminum alloy frame. Finally, based on 3D spatial point-line matching technology, the precise 3D spatial pose of the glass relative to the aluminum alloy frame is measured, thereby achieving fully automated assisted installation of high-altitude glass curtain walls.
[0074] The hardware system of this invention embodiment can be as follows: Figure 2As shown: First, RGBD cameras (which may include structured light cameras, TOF cameras, or LiDAR sensors, etc.) are installed at the four vertices of the front support of the suction cup trolley. The edge computing unit can collect data from each camera and perform real-time pose estimation. The wireless router then transmits the calculated pose information to the suction cup trolley's control system (i.e., the processor), ultimately achieving fully automated glass curtain wall installation using the high-altitude suction cup trolley.
[0075] The software system solution of this invention embodiment can be as follows: Figure 3 As shown, the specific steps may include the following:
[0076] S1. RGBD Data Preprocessing: This mainly involves acquiring the original RGB images (i.e., color images) and Depth images (i.e., depth images), calculating the derived 3D coordinates, and generating the corresponding Normal (normal vector) image. Specifically, the 3D coordinates (X, Y, Z) of the target can be obtained from the Depth image.
[0077]
[0078] Among them, f x f y c is the focal length of the RGBD camera. x c y The principal points of the RGBD camera are intrinsic parameters that can be obtained from the camera's factory settings or calibration. (u, v) are the pixel coordinates of the depth image, and d is the depth pixel value corresponding to pixel (u, v) in the depth image. The normal vector image is obtained by fitting a plane to the 8-neighborhood 3D points (X, Y, Z) of each pixel in the depth image and then calculating the normal vector of the fitted plane.
[0079] S2. Glass Edge Region Segmentation: Accurate segmentation of the glass edge region is achieved based on the information fusion technology of Depth+Normal+Color. This utilizes prior information such as the relatively constant distance between the glass and the camera (taking a non-transparent frame as an example), the frame color is usually black, and the normal vector of the glass plane is mostly perpendicular to the optical center direction, to ultimately achieve accurate segmentation of the glass edge region.
[0080]
[0081] Where, d giass and d frameThe depth values of the glass edge and frame edge from the camera's optical center are: Color_glass is the RGB pixel value of the glass edge, [C1, C2] is the preset threshold range of black color pixel values, and Normal-glass represents the normal vector value of the glass edge, with [N1, N2] being the preset threshold range of normal vectors perpendicular to the optical center.
[0082] By using glass edge region segmentation technology based on multi-source information fusion, the serious problem of missing depth images of transparent objects (such as glass) can be effectively solved. The edge region of the glass can be accurately segmented, thus laying the foundation for subsequent accurate detection of glass edges and corners.
[0083] S3. Frame Edge Region Segmentation: Glass region segmentation can rely on a significant amount of prior information. However, since the frame (e.g., an aluminum alloy frame) is mostly located behind the glass, factors such as large differences in color information caused by different lighting conditions and significant background clutter in complex environments greatly increase the difficulty of segmenting and extracting the frame edge region. Currently, traditional image segmentation algorithms all suffer from oversegmentation and undersegmentation problems. This invention employs an image segmentation technique based on Particle Swarm Optimization (PSO) and RGBD data fusion. First, based on the RGB image as input, several segmentation thresholds (i.e., different RGB color value ranges) are selected as candidate segmentation thresholds. The global optimization capability of the particle swarm optimization algorithm is used to obtain the optimal particles in the frame edge region of the RGB image to complete the initial segmentation of the frame region and the background region based on RGB. Considering that color images are easily affected by uneven lighting and complex background texture colors, which can easily lead to incorrect segmentation of the frame region, this invention integrates the Depth image to solve the problem of missegmentation based on the initial segmentation based on RGB. Specifically, the optimal particles obtained in RGB are used as the initial particles for segmentation of the Depth image. A new image segmentation optimization objective function is constructed based on the characteristics of the frame region in the Depth image (such as depth continuity, normal vector consistency, shape similarity, etc.). The optimal segmentation threshold based on the Depth image is determined by the Lagrange multiplier method, and finally the fused segmentation based on the RGBD image is completed. This invention employs a fusion clustering technique for RGB and Depth images, effectively avoiding the local optima and segmentation errors caused by complex backgrounds and noise in traditional RGB-based PSO algorithms. Even in complex background noise conditions, it can accurately segment distant small frame edges, laying the foundation for subsequent accurate extraction of frame edges and corners based on this segmentation result.
[0084] S4. Determine the 3D fitting plane for the glass and frame: Based on the segmented glass and frame edge regions, denoise and cluster their corresponding 3D point clouds, and fit their respective virtual 3D planes using their respective 3D interior point sets. For example, the RANSAC 3D point cloud plane fitting algorithm can be used.
[0085] S5. Extraction of glass outer edge and corner points: The three-dimensional region determined by the three-dimensional interior points in the plane fitted by S4 is back-projected into the RGB image to obtain a rough glass ROI region. The outline of the glass region is extracted in this ROI region, and its minimum bounding rectangle is calculated. Based on the minimum bounding rectangle, the outer edge and corner points of the glass region are accurately extracted.
[0086] Due to the fluctuation errors and edge effects present in depth images from low-cost RGBD cameras, it is impossible to accurately extract contour edges directly from the depth image. Current mainstream edge detection algorithms, such as the Canny edge algorithm, are based on image gradient edge principles for contour edge extraction, resulting in significant redundancy in the extracted contour edges. This not only slows down the algorithm but also greatly hinders subsequent accurate extraction of glass edges. This invention employs an image contour edge extraction technique based on Structured Forest. To obtain clearer and more detailed contour features, the depth image information acquired by the 3D sensor is fully utilized. The specific process is as follows: 1. Input of RGBD image fusion information: For each pixel, its color information (brightness gradient, color gradient, and texture gradient) can be calculated based on the RGB image. Then, its 3D coordinates and normal vector information are obtained based on the depth image, thus obtaining the contour information of each pixel in three directions: depth gradient, convex gradient, and concave gradient. 2. Training the Structured Random Forest: Using the BSD500 standard RGB dataset and the NYU depth dataset, the structured random forest is trained according to the feature extraction method in step 1. The core is to map the structured label of a given node to a set of discrete labels. 3. Classification using the Random Forest Algorithm: The random forest algorithm is used to classify RGBD image information, that is, to classify each pixel as representing an image contour, retaining those pixels that represent image contours, thus obtaining the image contour. In other words, firstly, multiple feature information such as RGB pixel values, gradients, and corresponding depth values of the depth image are used as input. Then, the structured random forest algorithm is trained using the BSD500 standard RGB dataset and the NYU depth dataset. The core is to map the structured label of a given node to a set of discrete labels. Finally, the random forest algorithm is used to classify RGBD image information to obtain image contours. The advantage of this technique is that it can use the depth values of the depth image to remove noisy edges from traditional RGB-based contour extraction algorithms, obtaining accurate outer edges and corners of glass.
[0087] S6. Extraction of Inner Edges and Corners of the Frame: The 3D region defined by the 3D inner points in the virtual plane of the frame fitted in S4 is back-projected onto the RGB image, thus obtaining a rough ROI region of the aluminum alloy frame. Within this ROI region, the inner edges and corners of the aluminum alloy frame are precisely extracted. In actual operation, the frame is located in a relatively complex background, and its color may vary, with information loss due to occlusion by glass or robotic arms. If traditional edge detection techniques based on RGB images are used, problems such as high noise and mixed line segments will occur. Therefore, how to accurately and quickly detect the inner edges of the frame in complex backgrounds is also a technical challenge.
[0088] This invention employs Markov Chain-Based Edge Segment Detection (MCMLSD) technology. Since traditional RGB-based MCMLSD technology relies on color pixel values, it is highly susceptible to lighting and complex backgrounds, leading to numerous false edge detections. Therefore, this invention uses both RGB pixel values and depth values from the depth image as input. In the first stage, a global probabilistic Hough method is used to extract line pixels from both the RGB and depth images using the traditional Hough method. In the second stage, each detected line is analyzed simultaneously in both the image and depth domains to locate line segments that generate peaks in the Hough map. If a line can be found at similar positions in both the RGB and depth images, the point sequence on this line segment is modeled as a Markov chain and a probability-optimal label. A standard dynamic programming algorithm is used for precise calculation, thereby eliminating lines detected due to color inconsistencies and detecting the true line segments located on the frame edges. Ultimately, this invention enables rapid and accurate extraction of frame edge information in complex backgrounds.
[0089] S7. Spatial 3D Pose Estimation of Glass Relative to Frame: Based on the precise 3D corner coordinates and 3D edges of the glass and frame extracted in S5 and S6, the relative pose between the outer edge of the glass with its 3D corner as the origin and the inner edge of the frame with its 3D corner as the origin can be calculated using a 3D point-line matching algorithm. This includes the distance between the two 3D corners (d...). X ,d Y ,d Z The relative pose information is then transmitted to the control system of the aerial suction cup vehicle for automatic installation. This includes the rotation angle (α, β, γ) of the glass plane around the camera's coordinate axes.
[0090] In this embodiment of the invention, a multi-source information fusion method based on Depth+Normal+Color is provided to achieve accurate segmentation of the glass edge region. While most areas of glass cannot be imaged with depth, curtain wall glass typically has non-transparent parts at the edges, such as black plastic frames. RGBD cameras can image these with depth. Therefore, prior information such as the relatively constant distance between the glass and the camera, the often black color of the plastic frame, and the fact that the normal vector of the glass plane is often perpendicular to the optical center direction can be used to achieve accurate segmentation of the glass edge region. Furthermore, this embodiment of the invention provides an image segmentation method based on Particle Swarm Optimization (PSO) and RGBD data fusion. Due to significant differences in color information caused by different lighting conditions and numerous background clutters in complex environments, the segmentation and extraction of aluminum alloy frame regions are greatly increased. Currently, traditional image segmentation algorithms suffer from oversegmentation and missegmentation. The image segmentation method provided by this invention effectively solves these problems. Secondly, this embodiment of the invention provides an image contour edge extraction method based on Structured Forest. This solves the problem of excessive redundancy in contour edges, a common issue in current mainstream edge detection algorithms, and effectively addresses the problem of accurate glass edge extraction. Finally, this invention provides a Markov chain-based edge segment detection (MCMLSD) method. This method combines the advantages of Markov chains and traditional Hough transform-based probabilistic algorithms, enabling fast and accurate extraction of edge information from aluminum alloy frames in complex backgrounds.
[0091] This invention provides a processor configured to execute the control method for glass mounting according to the above embodiments.
[0092] Figure 4 A schematic block diagram of a control device for glass mounting according to an embodiment of the present invention is shown. Figure 4 As shown, in one embodiment, a control device 400 for glass mounting is provided, wherein the edge of the glass has a non-transparent portion. The control device 400 for glass mounting may include an image acquisition module 410, a normal vector image determination module 420, a glass edge region determination module 430, a frame edge region determination module 440, a relative pose determination module 450, and a control module 460, wherein:
[0093] Image acquisition module 410 is used to acquire a color image of a target object and a depth image corresponding to the color image, wherein the target object includes glass and a frame.
[0094] The normal vector image determination module 420 is used to determine the normal vector image based on the depth image.
[0095] The glass edge region determination module 430 is used to determine the edge region of the glass based on the color image, the depth image, and the normal vector image.
[0096] The frame edge region determination module 440 is used to determine the edge region of the frame based on the depth image.
[0097] The relative pose determination module 450 is used to determine the relative pose between the glass and the frame based on the edge region of the glass and the edge region of the frame.
[0098] The control module 460 is used to control the position of the glass installation onto the frame based on the relative pose.
[0099] The aforementioned control device for glass installation acquires a color image and a corresponding depth image of the target object (including glass and frame), determines a normal vector image based on the depth image, and then determines the edge region of the glass and the edge region of the frame based on the color image, depth image, and normal vector image. Based on the depth image, the relative pose between the glass and the frame is determined, and the glass is then installed onto the frame according to the relative pose. In this technical solution, because the glass edge has a non-transparent portion, a depth image of the glass can be acquired, solving the problem of missing depth images for transparent materials such as glass. The edge region of the glass can then be determined based on the color image, depth image, and normal vector image. This involves using the color information, depth information, and normal vector information of pixels as prior information to segment the glass edge region, and determining the relative pose between the glass edge region and the frame edge region. The glass installation is then completed based on the relative pose. This eliminates the need for construction personnel, significantly reducing labor costs, improving the accuracy of glass installation, and achieving automation of high-altitude glass curtain wall operations.
[0100] In one embodiment, the glass edge region determination module 430 is further configured to: filter out a first pixel whose color pixel value is within a preset color pixel value range from the pixels of the color image; filter out a second pixel whose depth value is within a preset depth value range from the pixels of the depth image; filter out a third pixel whose normal vector is within a preset normal vector range from the normal vector image; and determine the pixels whose pixel coordinates coincide among the first pixel, the second pixel, and the third pixel to obtain the edge region of the glass.
[0101] In one embodiment, the frame edge region determination module 440 is further configured to: perform initial segmentation of the color image based on the color pixel values of the pixels in the color image according to the particle swarm optimization algorithm to determine the initial edge region of the frame; obtain the depth information and normal vector information corresponding to the initial edge region according to the depth image and normal vector image respectively; and perform fine segmentation of the initial edge region according to the depth information and normal vector information to determine the target edge region of the frame.
[0102] In one embodiment, the relative pose determination module 450 is further configured to: determine the outer edge of the glass and the corner points of the glass based on the edge region of the glass, the color image, the depth image, and the normal vector image; determine the inner edge of the frame and the corner points of the frame based on the edge region of the frame, the color image, and the depth image; and determine the relative pose between the glass and the frame based on the outer edge of the glass, the corner points of the glass, the inner edge of the frame, and the corner points of the frame.
[0103] In one embodiment, the relative pose determination module 450 is further configured to: determine the feature information of the pixels corresponding to the edge region of the glass in the color image, the depth image, and the normal vector image, respectively, wherein the feature information includes color information, depth information, and normal vector information; input the feature information into the image contour recognition model to recognize the contour of the glass; and determine the outer edge and corner points of the glass based on the contour of the glass.
[0104] In one embodiment, the relative pose determination module 450 is further configured to: determine the color pixel value and depth value of the pixel points corresponding to the edge region of the frame in the color image and the depth image, respectively; determine the first initial edge of the frame in the color image and the second initial edge of the frame in the depth image based on the color pixel value and the depth value, respectively, according to the first edge detection algorithm; merge the first initial edge and the second initial edge based on the second edge detection algorithm to obtain the target edge of the frame; and determine the inner edge of the frame and the corner points of the frame based on the target edge of the frame.
[0105] In one embodiment, the relative pose determination module 450 is further configured to: determine the three-dimensional coordinates of the pixels corresponding to the edge region of the glass; perform three-dimensional plane fitting based on the three-dimensional coordinates of the pixels corresponding to the edge region of the glass to obtain the three-dimensional plane corresponding to the edge region of the glass; back-project the three-dimensional plane corresponding to the edge region of the glass onto the color image, the depth image, and the normal vector image respectively to obtain the color image ROI region, the depth image ROI region, and the normal vector image ROI region corresponding to the edge region of the glass respectively; and obtain feature information based on the color image ROI region, the depth image ROI region, and the normal vector image ROI region.
[0106] In one embodiment, the relative pose determination module 450 is further configured to: determine the three-dimensional coordinates of the pixels corresponding to the edge region of the frame; perform three-dimensional plane fitting based on the three-dimensional coordinates of the pixels corresponding to the edge region of the frame to obtain the three-dimensional plane corresponding to the edge region of the frame; back-project the three-dimensional plane corresponding to the edge region of the frame onto the color image and the depth image respectively to obtain the color image ROI region and the depth image ROI region corresponding to the edge region of the frame respectively; and obtain the color pixel value and the depth value based on the color image ROI region and the depth image ROI region.
[0107] This invention provides a high-altitude mechanical device, comprising: an adsorption device for adsorbing glass; an RGBD camera, mounted on the high-altitude mechanical device, for acquiring a color image of a target object and a depth image corresponding to the color image; and a processor according to the above embodiments or a control device for glass installation according to the above embodiments.
[0108] Understandably, the high-altitude mechanical equipment can be a high-altitude suction cup vehicle, etc. The suction device is used to adsorb glass, and the RGBD camera is used to collect color and depth images of the target object. Specifically, it can be installed on the high-altitude mechanical equipment. Furthermore, the angle between the glass adsorbed by the RGBD camera and the suction device is usually within a set angle range, such as including an angle range of 90 degrees.
[0109] This invention also provides a machine-readable storage medium storing a program or instructions that, when executed by a processor, implement the control method for glass mounting according to the above embodiments.
[0110] In summary, the technical solutions provided by the embodiments of the present invention have the following advantages:
[0111] 1) The RGBD camera used is relatively inexpensive, which improves the practicality of the method.
[0112] 2) The RGBD camera used can simultaneously acquire RGB images and depth images, and can obtain accurate three-dimensional position information of the glass and frame, thereby avoiding the shortcomings of existing technologies that require laser rangefinders to obtain three-dimensional distances, and further improving the applicability of the method.
[0113] 3) Based on the information fusion technology of RGB image and Depth image, the precise edges of glass and frame are extracted by using RGB image, and then the precise three-dimensional spatial information of edge and corner points is obtained by using Depth image, which improves the accuracy of the method.
[0114] 4) This method fully utilizes the real-time capability (30fps) of the RGBD camera. It is fast and simple to calculate and can provide the glass curtain wall with real-time position and pose information for the high-speed suction cup trolley, ensuring the real-time performance of the fully automatic installation of the glass curtain wall by the suction cup trolley. This greatly improves the installation efficiency of the glass curtain wall and has broad application prospects.
[0115] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0116] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. 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 program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0117] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0118] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0119] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0120] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0121] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0122] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0123] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A control method for a glass installation, characterized in that, The glass has a non-transparent portion at its edge to enable the acquisition of a depth image of the glass, and the method includes: Acquire a color image of the target object and a depth image corresponding to the color image, wherein the target object includes the glass and the frame; Determine the normal vector image based on the depth image; The edge region of the glass is determined based on the color image, the depth image, and the normal vector image. The edge region of the frame is determined based on the depth image; The relative pose between the glass and the frame is determined based on the edge regions of the glass and the frame. The relative pose is used to control the position of the glass installed onto the frame; The step of determining the edge region of the glass based on the color image, the depth image, and the normal vector image includes: The first pixel whose color pixel value is within a preset color pixel value range is selected from the pixels of the color image; Select a second pixel whose depth value is within a preset depth value range from the pixels of the depth image; The third pixel point whose normal vector falls within a preset normal vector range is selected from the normal vector image; The pixel points whose pixel coordinates coincide among the first pixel point, the second pixel point, and the third pixel point are determined to obtain the edge region of the glass.
2. The control method according to claim 1, characterized by, Determining the edge region of the frame based on the depth image includes: Based on the particle swarm optimization algorithm, the color image is initially segmented according to the color pixel values of the pixels in the color image to determine the initial edge region of the frame; Based on the depth image and the normal vector image, obtain the depth information and the normal vector information corresponding to the initial edge region, respectively. The initial edge region is finely segmented based on the depth information and the normal vector information to determine the target edge region of the frame.
3. The control method according to claim 1, characterized by, Determining the relative pose between the glass and the frame based on the edge region of the glass and the edge region of the frame includes: The outer edge and corner points of the glass are determined based on the edge region of the glass, the color image, the depth image, and the normal vector image. The inner edge and corner points of the frame are determined based on the edge region of the frame, the color image, and the depth image. The relative pose between the glass and the frame is determined based on the outer edge of the glass, the corner points of the glass, the inner edge of the frame, and the corner points of the frame.
4. The control method according to claim 3, characterized by, Determining the outer edge and corner points of the glass based on the edge region of the glass, the color image, the depth image, and the normal vector image includes: The feature information of the pixel points corresponding to the edge region of the glass in the color image, the depth image and the normal vector image are determined respectively, wherein the feature information includes color information, depth information and normal vector information; The feature information is input into the image contour recognition model to identify the contour of the glass; The outer edge and corner points of the glass are determined based on the glass's outline.
5. The control method according to claim 3, characterized by, Determining the inner edge and corner points of the frame based on the edge region of the frame, the color image, and the depth image includes: Determine the color pixel value and depth value of the pixel point corresponding to the edge region of the frame in the color image and the depth image, respectively; Based on the first edge detection algorithm, the first initial edge of the frame in the color image and the second initial edge of the frame in the depth image are determined according to the color pixel value and the depth value, respectively. Based on the second edge detection algorithm, the first initial edge and the second initial edge are merged to obtain the target edge of the frame; The inner edge and corner points of the frame are determined based on the target edge of the frame.
6. The control method according to claim 4, characterized in that, The step of determining the feature information of the pixel points corresponding to the edge region of the glass in the color image, the depth image, and the normal vector image, respectively, includes: Determine the three-dimensional coordinates of the pixels corresponding to the edge region of the glass; Based on the three-dimensional coordinates of the pixels corresponding to the edge region of the glass, a three-dimensional plane fitting is performed to obtain the three-dimensional plane corresponding to the edge region of the glass. The three-dimensional plane corresponding to the edge region of the glass is back-projected onto the color image, the depth image, and the normal vector image, respectively, to obtain the color image ROI region, the depth image ROI region, and the normal vector image ROI region corresponding to the edge region of the glass, respectively. The feature information is obtained based on the ROI region of the color image, the ROI region of the depth image, and the ROI region of the normal vector image.
7. The control method according to claim 5, characterized in that, Determining the color pixel value and depth value of the pixel point corresponding to the edge region of the frame in the color image and the depth image, respectively, includes: Determine the three-dimensional coordinates of the pixels corresponding to the edge regions of the frame; Based on the three-dimensional coordinates of the pixels corresponding to the edge region of the frame, a three-dimensional plane fitting is performed to obtain the three-dimensional plane corresponding to the edge region of the frame. The three-dimensional planes corresponding to the edge regions of the frame are back-projected onto the color image and the depth image, respectively, to obtain the ROI regions of the color image and the ROI regions of the depth image corresponding to the edge regions of the frame, respectively. The color pixel value and the depth value are obtained based on the ROI region of the color image and the ROI region of the depth image.
8. A processor, characterized in that, It is configured to perform the control method for glass mounting according to any one of claims 1 to 7.
9. A control device for glass mounting, characterized in that, The glass has a non-transparent portion at its edge to allow for the acquisition of a depth image of the glass, and the control device includes: An image acquisition module is used to acquire a color image of a target object and a depth image corresponding to the color image, wherein the target object includes glass and a frame; A normal vector image determination module is used to determine a normal vector image based on the depth image; A glass edge region determination module is used to determine the edge region of the glass based on the color image, the depth image, and the normal vector image. A frame edge region determination module is used to determine the edge region of the frame based on the depth image; A relative pose determination module is used to determine the relative pose between the glass and the frame based on the edge region of the glass and the edge region of the frame. The control module is used to control the position of the glass installed in the frame according to the relative pose; The glass edge region determination module is further used for: The first pixel whose color pixel value is within a preset color pixel value range is selected from the pixels of the color image; Select a second pixel whose depth value is within a preset depth value range from the pixels of the depth image; The third pixel point whose normal vector falls within a preset normal vector range is selected from the normal vector image; The pixel points whose pixel coordinates coincide among the first pixel point, the second pixel point, and the third pixel point are determined to obtain the edge region of the glass.
10. A high-altitude mechanical device, characterized in that, include: Adsorption device, used to adsorb glass; An RGBD camera, mounted on the high-altitude mechanical equipment, is used to acquire color images of the target object and depth images corresponding to the color images; as well as The processor according to claim 8 or the control device for glass mounting according to claim 9.
11. A machine-readable storage medium on which a program or instructions are stored, characterized in that, When the program or the instructions are executed by the processor, they implement the control method for glass mounting according to any one of claims 1 to 7.
Citation Information
Patent Citations
Device and method for mounting optical glass under vision guide
CN101840736A
Rectangular Table Detection Using Hybrid RGB and Depth Camera Sensors
US20090290758A1
