[go: up one dir, main page]

CN115578627B - A monocular image boundary recognition method, device, medium and curtain wall robot - Google Patents

A monocular image boundary recognition method, device, medium and curtain wall robot Download PDF

Info

Publication number
CN115578627B
CN115578627B CN202211152337.5A CN202211152337A CN115578627B CN 115578627 B CN115578627 B CN 115578627B CN 202211152337 A CN202211152337 A CN 202211152337A CN 115578627 B CN115578627 B CN 115578627B
Authority
CN
China
Prior art keywords
image
edge
search
pixels
boundary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211152337.5A
Other languages
Chinese (zh)
Other versions
CN115578627A (en
Inventor
黄俊生
张志忠
张飞扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Lingdu Intelligent Technology Development Co.,Ltd.
Original Assignee
Lingdu Guangdong Intelligent Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lingdu Guangdong Intelligent Technology Development Co Ltd filed Critical Lingdu Guangdong Intelligent Technology Development Co Ltd
Priority to CN202211152337.5A priority Critical patent/CN115578627B/en
Publication of CN115578627A publication Critical patent/CN115578627A/en
Application granted granted Critical
Publication of CN115578627B publication Critical patent/CN115578627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L1/00Cleaning windows
    • A47L1/02Power-driven machines or devices
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/38Machines, specially adapted for cleaning walls, ceilings, roofs, or the like
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
    • A47L11/4002Installations of electric equipment
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
    • A47L11/4002Installations of electric equipment
    • A47L11/4008Arrangements of switches, indicators or the like
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/48Extraction of image or video features by mapping characteristic values of the pattern into a parameter space, e.g. Hough transformation
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L2201/00Robotic cleaning machines, i.e. with automatic control of the travelling movement or the cleaning operation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a monocular image boundary identification method, S10, a first image containing curtain walls is obtained; s20, graying the first image to obtain a gray image; extracting a first edge map from the gray level image by using canny, extracting a second edge map from the first image by using a Laplacian operator, fusing the first edge map and the second edge map, and binarizing the fused first edge map and the second edge map to form a third edge map; s30, acquiring a horizontal line of the third edge map by using a search frame method, and acquiring a far-end roof edge and a near-end horizontal frame; s40, identifying vertical lines in the third edge graph to obtain far-end left and right boundaries and left and right side near-end vertical frames; s50, highlighting the far-end roof edge, the near-end horizontal border, the far-end left-right border, the left-right near-end vertical border and 4 vertical borders by using different color frames. The invention can provide visual auxiliary functions for operators, and avoid the situation that the operators collide with the frame or move out of the boundary due to distraction.

Description

一种单目图像边界识别方法、装置、介质及幕墙机器人A monocular image boundary recognition method, device, medium and curtain wall robot

技术领域technical field

本发明涉及机器人技术领域,具体来说,涉及一种单目图像边界识别方法、装置、介质及幕墙机器人。The present invention relates to the technical field of robots, in particular to a monocular image boundary recognition method, device, medium and curtain wall robot.

背景技术Background technique

在高层建筑的玻璃幕墙设计和安装过程中,在玻璃之间会安装不同类型的窗框等固定件,固定每块玻璃防止脱落。然而这些保证玻璃幕墙安全的边框固定件,却成为了清洁机器人清洗、吸附和行进的障碍,也成为了进行清洁机器人运行的挑战。幕墙机器人要解决幕墙边框影响运行的问题,首先就需要实现对幕墙边框的感知和识别。现有的幕墙清洁机器人识别玻璃幕墙边界方法包括地面观察、传感器反馈、摄像头目测等方法。During the design and installation of glass curtain walls in high-rise buildings, different types of window frames and other fixings are installed between the glasses to fix each piece of glass to prevent it from falling off. However, these frame fixtures that ensure the safety of the glass curtain wall have become obstacles to the cleaning, adsorption and travel of the cleaning robot, and have also become a challenge to the operation of the cleaning robot. To solve the problem that the curtain wall frame affects the operation, the curtain wall robot first needs to realize the perception and recognition of the curtain wall frame. Existing methods for curtain wall cleaning robots to identify glass curtain wall boundaries include methods such as ground observation, sensor feedback, and camera visual inspection.

大部分幕墙清洁机器人上安装了碰撞传感器,防止操作人员操作不当导致撞击幕墙边框等情况的出现。碰撞传感器一般部署在机器人的四边或四角位置,当机器人接近边框时,碰撞传感器首先撞击到边框并返回电信号,机器人接收到信号后停止动作以防撞击。然而碰撞传感器需要撞击才能返回信号,为了进一步提升操作人员的观测能力,部分幕墙清洁机器人装有摄像头,通过图像传输装置将实时画面传到地面操作人员的遥控器上。操作人员通过观察机器人摄像头的画面,判断机器人前进方向的边界情况,以此进行操作和调整。Most of the curtain wall cleaning robots are equipped with collision sensors to prevent the operator from colliding with the curtain wall frame due to improper operation. Collision sensors are generally deployed on the four sides or four corners of the robot. When the robot approaches the frame, the collision sensor first hits the frame and returns an electrical signal. After receiving the signal, the robot stops to prevent collision. However, the collision sensor needs to be hit to return the signal. In order to further improve the observation ability of the operator, some curtain wall cleaning robots are equipped with cameras, and the real-time images are transmitted to the remote control of the ground operator through the image transmission device. The operator observes the picture of the robot's camera and judges the boundary conditions of the robot's forward direction, so as to operate and adjust.

在学术界,已有学者研究应用于幕墙清洁机器人的图像识别算法,识别和提取幕墙上的窗框等边界,以此为机器人的自动运行提供感知数据。例如直接使用Sobel算子进行提取边界,融合边缘检测和霍夫变换算法判断是否到达边缘,以及HSI模型识别幕墙等。In academia, scholars have studied image recognition algorithms applied to curtain wall cleaning robots to identify and extract boundaries such as window frames on curtain walls, so as to provide perception data for the automatic operation of robots. For example, the Sobel operator is directly used to extract the boundary, the fusion of edge detection and Hough transform algorithm is used to judge whether the edge is reached, and the HSI model is used to identify the curtain wall, etc.

本文提供的背景描述用于总体上呈现本公开的上下文的目的。除非本文另外指示,在该章节中描述的资料不是该申请的权利要求的现有技术并且不要通过包括在该章节内来承认其成为现有技术。The background description provided herein is for the purpose of generally presenting the context of the disclosure. Unless otherwise indicated herein, the materials described in this section are not prior art to the claims in this application and are not admitted to be prior art by inclusion in this section.

发明内容Contents of the invention

针对相关技术中的上述技术问题,本发明提出一种单目图像边界识别方法,其包括如下步骤:Aiming at the above-mentioned technical problems in the related art, the present invention proposes a monocular image boundary recognition method, which includes the following steps:

S10、获取包含有幕墙的第一图像;S10. Obtain the first image including the curtain wall;

S20、对所述第一图像进行灰度化,获取灰度化后的灰度图像;对所述灰度图像使用canny算子提取第一边缘图,对第一图像进行拉普拉斯Laplacian算子提取第二边缘图,将所述第一边缘图、第二边缘图融合并二值化形成第三边缘图;S20. Grayscale the first image, and obtain a grayscale image after grayscale; use a canny operator to extract a first edge map on the grayscale image, and perform a Laplacian calculation on the first image Sub-extracting the second edge map, merging and binarizing the first edge map and the second edge map to form a third edge map;

S30、使用搜索框法获取所述第三边缘图的水平线,获取远端屋顶边沿和近端水平边框;其中搜索框法为设置一个矩形区域,如果区域内像素值为二值化后的高值的像素点数量大于阈值,则认为搜索到边界,以此获取边界的顶部和底部后在顶部和底部区域内向左右扩展,搜索左右端以获取屋顶的边沿;S30. Use the search box method to obtain the horizontal line of the third edge map, and obtain the far-end roof edge and the near-end horizontal border; wherein the search box method is to set a rectangular area, if the pixel value in the area is a high value after binarization If the number of pixels is greater than the threshold, it is considered that the boundary has been searched, so as to obtain the top and bottom of the boundary and then expand to the left and right in the top and bottom areas, and search the left and right ends to obtain the edge of the roof;

S40,识别所述第三边缘图中的垂直线以获取远端左右边界和左右侧近端垂直边框;S40, identifying the vertical lines in the third edge map to obtain the far left and right borders and the left and right proximal vertical borders;

S50、将所述远端屋顶边沿、近端水平边框、远端左右边界和左右侧近端垂直边框和4条垂直边界用不同颜色框高亮显示。S50. Highlight the far-end roof edge, the proximal horizontal border, the far left-right border, the left-right proximal vertical border, and the four vertical borders with boxes of different colors.

具体的,步骤S20还包括:Specifically, step S20 also includes:

S21、对灰度图使用Canny算子提取边缘图获取第一边缘图;S21. Using the Canny operator to extract the edge image from the grayscale image to obtain the first edge image;

S22、对所述第一图像使用高斯滤波,进行灰度化后使用Laplacian算子提取边缘图获取第二边缘图;S22. Using a Gaussian filter on the first image, after performing grayscale conversion, use a Laplacian operator to extract an edge map to obtain a second edge map;

S23、将第一边缘图和第二边缘图的像素各赋权重0.5,然后进行图像叠加;S23. Assign weights of 0.5 to the pixels of the first edge map and the second edge map, and then perform image superimposition;

S24、叠加后将灰度小于10的赋值为0,灰度大于10的赋值为255。S24. After the superimposition, assign a value of 0 to those whose grayscale is less than 10, and assign a value of 255 to those whose grayscale is greater than 10.

具体的,步骤S30包括:Specifically, step S30 includes:

S33、按照所述第三边缘图的设定区域从上往下或从下往上移动搜索框,移动后统计搜索框内像素值为二值化后的高值的像素数量,直至初次发现像素数量大于设定的阈值,获取顶部/底部高度值,以获取远端屋顶边沿;其中,对于搜索远端屋顶边沿,搜索框的宽度1-5像素、高度1像素,对于搜索近端水平边框,搜索框的宽度为50%图像宽、高度2像素;S33. Move the search box from top to bottom or from bottom to top according to the set area of the third edge map, and count the number of pixels in the search box whose pixel value is a high value after binarization until the pixel is found for the first time If the number is greater than the set threshold, obtain the top/bottom height value to obtain the far-end roof edge; among them, for searching the far-end roof edge, the width of the search box is 1-5 pixels, and the height is 1 pixel; for searching the near-end horizontal border, The search box has a width of 50% of the image width and a height of 2 pixels;

S34、继续移动搜索直至搜索框内像素值为255的像素数量小于设定的阈值,获取底部/顶部高度值,以获取远端屋顶边沿;S34. Continue to move and search until the number of pixels with a pixel value of 255 in the search box is less than the set threshold, and obtain the bottom/top height value to obtain the edge of the far-end roof;

S35、按顶部和底部继续扩展1-3像素,从中间点开始往两边开始移动,搜索左右端的宽度值。S35 , continue to expand 1-3 pixels according to the top and bottom, start moving from the middle point to both sides, and search for the width values of the left and right ends.

具体的,步骤S40具体包括使用垂直线搜索法识别所述第三边缘图中的垂直线以获取远端左右边界和近端垂直边框4条边界,其具体为:Specifically, step S40 specifically includes using the vertical line search method to identify the vertical lines in the third edge map to obtain the four boundaries of the far-end left and right boundaries and the near-end vertical border, which are specifically:

S41、将边缘图去除设定区域外的像素值,然后根据区域位置,将剩余像素平移到图像的中间;S41. Remove the pixel values outside the set area from the edge image, and then translate the remaining pixels to the middle of the image according to the position of the area;

S42、按照设定的方向从1°至90°或从90°至1°,以1°为步长进行循环,每次将原图旋转一定角度,并用二值法增强图像;S42. Cycle from 1° to 90° or from 90° to 1° according to the set direction, with a step size of 1°, rotate the original image by a certain angle each time, and enhance the image with a binary method;

S43、用腐蚀和膨胀,按照长30像素、高1像素的形状提取水平线,剔除非水平线的同时也剔除了长度小于30像素的水平线;S43. Using corrosion and dilation, extract horizontal lines according to the shape of 30 pixels long and 1 pixel high, and eliminate non-horizontal lines while also eliminating horizontal lines with a length less than 30 pixels;

S44、使用搜索框法按照设定从上往下或从下往上搜索边界;如果首次找到边界,则记录初次角度和顶部/底部高度;如果找到边界后又再次找不到,则记录末次角度和底部/顶部高度,并跳出循环;S44. Use the search box method to search the boundary from top to bottom or from bottom to top according to the setting; if the boundary is found for the first time, record the initial angle and top/bottom height; if the boundary is found and cannot be found again, record the last angle and bottom/top heights, and break out of the loop;

S45、初次和末次角度取平均值作为旋转角度;S45, taking the average value of the first and last angles as the rotation angle;

S46、按角度旋转后,顶部底部区域内从中点向两边搜索左右端;S46. After rotating according to the angle, search for the left and right ends from the midpoint to both sides in the top and bottom areas;

S47、获取边界区域后,反向旋转回初始状态,并平移回原位置。S47. After acquiring the boundary area, reversely rotate back to the initial state, and translate back to the original position.

第二方面,本发明的另一个实施例公开了一种单目图像边界识别装置,其包括如下单元:In the second aspect, another embodiment of the present invention discloses a monocular image boundary recognition device, which includes the following units:

幕墙获取单元、用于获取包含有幕墙的第一图像;a curtain wall acquiring unit, configured to acquire the first image containing the curtain wall;

边缘图像获取单元、用于对所述第一图像进行灰度化,获取灰度化后的灰度图像;对所述灰度图像使用canny算子提取第一边缘图,对第一图像进行拉普拉斯Laplacian算子提取第二边缘图,将所述第一边缘图、第二边缘图融合并二值化形成第三边缘图;An edge image acquisition unit, configured to grayscale the first image, and obtain a grayscale image after grayscale; use a canny operator to extract a first edge image on the grayscale image, and pull the first image The Placian Laplacian operator extracts the second edge map, and the first edge map and the second edge map are fused and binarized to form the third edge map;

水平线获取单元,用于使用搜索框法获取所述第三边缘图的水平线,获取远端屋顶边沿和近端水平边框;其中搜索框法为设置一个矩形区域,如果区域内像素值为二值化后的高值的像素点数量大于阈值,则认为搜索到边界,以此获取边界的顶部和底部后在顶部和底部区域内向左右扩展,搜索左右端以获取屋顶的边沿;The horizontal line acquisition unit is used to obtain the horizontal line of the third edge map by using the search box method, and obtain the far-end roof edge and the near-end horizontal border; wherein the search box method is to set a rectangular area, if the pixel value in the area is binarized If the number of pixels with the highest value is greater than the threshold, it is considered that the boundary has been searched, so as to obtain the top and bottom of the boundary, and then expand to the left and right in the top and bottom areas, and search the left and right ends to obtain the edge of the roof;

垂直线获取单元,用于识别所述第三边缘图中的垂直线以获取远端左右边界和左右侧近端垂直边框;a vertical line obtaining unit, configured to identify the vertical lines in the third edge map to obtain the far left and right borders and the left and right proximal vertical borders;

高亮显示单元,用于将所述远端屋顶边沿、近端水平边框、远端左右边界和左右侧近端垂直边框和4条垂直边界用不同颜色框高亮显示。The highlight display unit is configured to highlight the far roof edge, the near horizontal border, the far left and right borders, the left and right proximal vertical borders, and the four vertical borders with boxes of different colors.

具体的,边缘图像获取单元还包括:Specifically, the edge image acquisition unit also includes:

canny提取单元、用于对灰度图使用Canny算子提取边缘图获取第一边缘图;The canny extraction unit is used to extract the edge map using the Canny operator on the grayscale image to obtain the first edge map;

拉普拉斯提取单元、用于对所述第一图像使用高斯滤波,进行灰度化后使用Laplacian算子提取边缘图获取第二边缘图;A Laplacian extraction unit, configured to use Gaussian filtering on the first image, and use a Laplacian operator to extract an edge map after grayscale to obtain a second edge map;

图像叠加单元,用于将第一边缘图和第二边缘图的像素各赋权重0.5,然后进行图像叠加;An image superposition unit, which is used to assign a weight of 0.5 to the pixels of the first edge map and the second edge map, and then perform image superposition;

灰度赋值单元、用于叠加后将灰度小于10的赋值为0,灰度大于10的赋值为255。The gray value assignment unit is used to assign the gray value less than 10 to 0 and the gray value greater than 10 to 255 after superposition.

具体的,水平线获取单元,还包括:Specifically, the horizontal line acquisition unit also includes:

搜索框移动单元、用于按照所述第三边缘图的设定区域从上往下或从下往上移动搜索框,移动后统计搜索框内像素值为二值化后的高值的像素数量,直至初次发现像素数量大于设定的阈值,该高度即为顶部/底部高度值,以获取远端屋顶边沿;其中,对于搜索远端屋顶边沿,搜索框的宽度1-5像素、高度1像素,对于搜索近端水平边框,搜索框的宽度为50%图像宽、高度2像素。The search box moving unit is used to move the search box from top to bottom or from bottom to top according to the set area of the third edge map, and count the number of pixels in the search box whose pixel values are binarized high values after the movement , until the number of pixels is found to be greater than the set threshold for the first time, this height is the top/bottom height value to obtain the far-end roof edge; among them, for searching the far-end roof edge, the width of the search box is 1-5 pixels, and the height is 1 pixel , for the search proximal horizontal border, the search box has a width of 50% of the image width and a height of 2 pixels.

第一水平线获取单元、用于继续移动搜索直至搜索框内像素值为二值化后的高值的像素数量小于设定的阈值,该高度即为底部/顶部高度值;The first horizontal line acquisition unit is used to continue to move and search until the number of pixels in the search box whose pixel value is a binarized high value is less than a set threshold, and this height is the bottom/top height value;

左右端宽度值获取单元,用于按顶部和底部继续扩展1-3像素,从中间点开始往两边开始移动,搜索左右端的宽度值。The left and right end width value acquisition unit is used to expand 1-3 pixels according to the top and bottom, start to move from the middle point to both sides, and search for the width value of the left and right ends.

具体的,垂直线获取单元具体包括使用垂直线搜索法识别所述第三边缘图中的垂直线以获取远端左右边界和近端垂直边框4条边界,其具体为:Specifically, the vertical line acquisition unit specifically includes using the vertical line search method to identify the vertical line in the third edge map to obtain the four boundaries of the far-end left and right boundaries and the near-end vertical border, which are specifically:

第二像素去除单元、用于将边缘图去除设定区域外的像素值,然后根据区域位置,将剩余像素平移到图像的中间;The second pixel removal unit is used to remove the pixel values outside the set area from the edge map, and then translate the remaining pixels to the middle of the image according to the position of the area;

旋转单元、用于按照设定的方向从1°至90°或从90°至1°,以1°为步长进行循环,每次将原图旋转一定角度,并用二值法增强图像;The rotation unit is used to cycle from 1° to 90° or from 90° to 1° according to the set direction, with a step size of 1°, to rotate the original image by a certain angle each time, and to enhance the image with the binary method;

腐蚀膨胀单元,用于使用腐蚀和膨胀,按照长30像素、高1像素的形状提取水平线,剔除非水平线的同时也剔除了长度小于30像素的水平线;Erosion and expansion unit, used to use erosion and expansion to extract horizontal lines according to the shape of 30 pixels long and 1 pixel high, and eliminate non-horizontal lines and horizontal lines with a length less than 30 pixels;

边界获取单元、用于使用搜索框法按照设定从上往下或从下往上搜索边界;如果首次找到边界,则记录初次角度和顶部/底部高度;如果找到边界后又再次找不到,则记录末次角度和底部/顶部高度,并跳出循环;The boundary acquisition unit is used to use the search box method to search the boundary from top to bottom or from bottom to top according to the setting; if the boundary is found for the first time, record the initial angle and top/bottom height; if the boundary is found and cannot be found again, Then record the last angle and bottom/top height, and jump out of the loop;

旋转角度获取单元、用于将初次和末次角度取平均值作为旋转角度;The rotation angle acquisition unit is used to take the average value of the first and last angles as the rotation angle;

左右端搜索单元、用于按角度旋转后,顶部底部区域内从中点向两边搜索左右端;The left and right end search unit is used to search the left and right ends from the midpoint to both sides in the top and bottom area after rotating according to the angle;

反向旋转单元、用于获取边界区域后,反向旋转回初始状态,并平移回原位置。The reverse rotation unit is used to obtain the boundary area, reverse rotation back to the initial state, and translate back to the original position.

第三方面,本发明的另一个实施例公开了一种幕墙机器人,所述幕墙机器人具有单目相机、处理器、存储器,所述存储器上存储有指令,所述指令被处理器执行时,用以实现上述的单目图像边界识别方法。In the third aspect, another embodiment of the present invention discloses a curtain wall robot. The curtain wall robot has a monocular camera, a processor, and a memory. Instructions are stored in the memory. When the instructions are executed by the processor, the In order to realize the above-mentioned monocular image boundary recognition method.

第四方面,本发明的另一个实施例公开了一种非易失性存储介质,所述非易失性存储介质上存储有指令,所述指令被处理器执行时,用以实现上述的单目图像边界识别方法。In the fourth aspect, another embodiment of the present invention discloses a non-volatile storage medium, where instructions are stored on the non-volatile storage medium, and when the instructions are executed by a processor, they are used to implement the above-mentioned unit A method for image boundary recognition.

本发明使用搜索框法对噪声的影响不敏感,可以很好的适应噪声,本发明在识别幕墙的边框时,根据边框的不同形态,设置不同宽度的搜索框增加对不同边框的识别的准确性。进一步的,在识别幕墙的垂直边框时,本发明将图像进行旋转,并使用搜索框法识别旋转后的水平线,以此识别出最近/最远的左右垂直线,可以一定程度上去除水平线和斜线的干扰。本发明识别出2条水平线和4条垂直线,即最远端的屋顶边沿、最近端水平边框、最远端左右两边的边界、最近端垂直边框,最后在图像上突出显示这6条边界线。在机器人的边缘端自动识别最近的边框和最远的边界并用彩色框进行提示。本发明减少了操作人员观察边界所需的精力,避免了图像传输过程中边界特征模糊的问题,并且只识别和提示关键的边界。使用本发明能够为操作人员提供视觉上的辅助功能,辅助操作人员进行幕墙清洗,避免操作人员因注意力分散而撞上边框或者移出边界的情况。The present invention uses the search box method to be insensitive to the influence of noise, and can adapt to the noise well. When the present invention identifies the frame of the curtain wall, according to the different forms of the frame, search boxes of different widths are set to increase the accuracy of recognition of different frames . Further, when identifying the vertical frame of the curtain wall, the present invention rotates the image, and uses the search box method to identify the rotated horizontal line, thereby identifying the nearest/farthest left and right vertical lines, which can remove horizontal lines and oblique lines to a certain extent. line interference. The present invention recognizes 2 horizontal lines and 4 vertical lines, that is, the farthest roof edge, the nearest horizontal frame, the farthest left and right borders, and the nearest vertical frame, and finally these 6 boundary lines are highlighted on the image . Automatically identify the nearest border and the farthest border at the edge of the robot and use a colored box as a reminder. The invention reduces the effort required by operators to observe the boundary, avoids the problem of fuzzy boundary features during image transmission, and only recognizes and prompts key boundaries. The present invention can provide visual auxiliary functions for operators to assist the operators to clean the curtain wall and avoid the situation that the operators bump into the border or move out of the border due to distraction.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required in the embodiments. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1是本发明实施例提供的一种单目图像边界识别方法流程图;FIG. 1 is a flowchart of a monocular image boundary recognition method provided by an embodiment of the present invention;

图2是本发明实施例提供的单目相机获取的原始幕墙图像;Fig. 2 is the original curtain wall image acquired by the monocular camera provided by the embodiment of the present invention;

图3是本发明实施例提供的使用边缘算子得到的边缘图;FIG. 3 is an edge graph obtained by using an edge operator provided by an embodiment of the present invention;

图4是本发明实施例提供的提取的水平线示意图;Fig. 4 is a schematic diagram of an extracted horizontal line provided by an embodiment of the present invention;

图5是本发明实施例提供的左下区域处理过程图示意图;Fig. 5 is a schematic diagram of the processing process diagram of the lower left area provided by the embodiment of the present invention;

图6是本发明实施例提供的识别的边界高亮显示示意图;Fig. 6 is a schematic diagram of the highlighted boundary of recognition provided by the embodiment of the present invention;

图7是本发明实施例提供的一种单目图像边界识别装置示意图;Fig. 7 is a schematic diagram of a monocular image boundary recognition device provided by an embodiment of the present invention;

图8是本发明实施例提供的一种单目图像边界识别设备示意图。Fig. 8 is a schematic diagram of a monocular image boundary recognition device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention belong to the protection scope of the present invention.

实施例一Embodiment one

参考图1,本实施例公开了一种单目图像边界识别方法,其包括如下步骤:With reference to Fig. 1, the present embodiment discloses a kind of monocular image boundary recognition method, and it comprises the following steps:

S10、获取包含有幕墙的第一图像;S10. Obtain the first image including the curtain wall;

参考图2,本实施例的单目图像边界识别方法应用于幕墙机器人,所述幕墙机器人配置有一单目相机。在幕墙机器人执行清洁幕墙时,由搭载在幕墙机器人上的单目相机拍摄照片或视频,以形成所述第一图像。所述第一图像中包含有幕墙。Referring to FIG. 2 , the monocular image boundary recognition method of this embodiment is applied to a curtain wall robot, and the curtain wall robot is equipped with a monocular camera. When the curtain wall robot cleans the curtain wall, the monocular camera mounted on the curtain wall robot takes photos or videos to form the first image. The first image includes a curtain wall.

S20、对所述第一图像进行灰度化,获取灰度化后的灰度图像;对所述灰度图像使用canny算子提取第一边缘图,对第一图像进行拉普拉斯Laplacian算子提取第二边缘图,将所述第一边缘图、第二边缘图融合并二值化形成第三边缘图;S20. Grayscale the first image, and obtain a grayscale image after grayscale; use a canny operator to extract a first edge map on the grayscale image, and perform a Laplacian calculation on the first image Sub-extracting the second edge map, merging and binarizing the first edge map and the second edge map to form a third edge map;

本实施例根据机器人视角的幕墙图像的特征,融合Canny算子和Laplacian算子实现更适合的边缘获取算法。Canny算子与Laplacian算子融合的边缘图,清晰的边界会比较粗,不清晰的会比较细。其中,清晰的是比较近或者像边界这样变化比较大的。结合本实施例中的旋转提取线段的方法,可以用较大步长快速提取关键边缘线,也可以用较小步长比较慢但比较全面的提取边缘线,提取策略比较灵活。In this embodiment, according to the characteristics of the curtain wall image from the perspective of the robot, the Canny operator and the Laplacian operator are fused to implement a more suitable edge acquisition algorithm. In the edge map fused by the Canny operator and the Laplacian operator, the clear boundary will be thicker, and the unclear boundary will be thinner. Among them, the ones that are clear are those that are relatively close or that change greatly like the boundary. Combining the method of extracting line segments by rotation in this embodiment, the key edge line can be extracted quickly with a larger step size, or the edge line can be extracted more slowly but comprehensively with a smaller step size, and the extraction strategy is more flexible.

参考图3,本步骤的原理是利用两种算子的不同特性来提升边缘识别精度,降低噪声。Canny算子边缘清晰且噪声较低,但识别不完整;Laplacian算子边缘信息较多,但也有较多噪声。因此本实施例设置两种算子的参数,各赋0.5权重后进行叠加,利用两种算子互补来尽可能的完整获取边缘。Referring to Figure 3, the principle of this step is to use the different characteristics of the two operators to improve the edge recognition accuracy and reduce noise. The Canny operator has clear edges and low noise, but the recognition is incomplete; the Laplacian operator has more edge information, but also has more noise. Therefore, in this embodiment, the parameters of the two operators are set, each of which is assigned a weight of 0.5 and then superimposed, and the two operators are complementary to obtain the edge as completely as possible.

具体的步骤S20还包括:Concrete step S20 also includes:

S21、对灰度图使用Canny算子提取边缘图获取第一边缘图;S21. Using the Canny operator to extract the edge image from the grayscale image to obtain the first edge image;

S22、对所述第一图像使用高斯滤波,进行灰度化后使用Laplacian算子提取边缘图获取第二边缘图;S22. Using a Gaussian filter on the first image, after performing grayscale conversion, use a Laplacian operator to extract an edge map to obtain a second edge map;

S23、将第一边缘图和第二边缘图的像素各赋权重0.5,然后进行图像叠加;S23. Assign weights of 0.5 to the pixels of the first edge map and the second edge map, and then perform image superimposition;

S24、叠加后将灰度小于10的赋值为0,灰度大于10的赋值为255。S24. After the superimposition, assign a value of 0 to those whose grayscale is less than 10, and assign a value of 255 to those whose grayscale is greater than 10.

本实施叠加后将灰度小于10的赋值为0,灰度大于10的赋值为255,通过二值化的方法增强边缘图。After the implementation of superimposition, the value of grayscale less than 10 is assigned as 0, and the value of grayscale greater than 10 is assigned as 255, and the edge map is enhanced by binarization method.

S30、使用搜索框法获取所述第三边缘图的水平线,获取远端屋顶边沿和近端水平边框;其中搜索框法为设置一个矩形区域,如果区域内像素值为二值化后的高值的像素点数量大于阈值,则认为搜索到边界,以此获取边界的顶部和底部后在顶部和底部区域内向左右扩展,搜索左右端以获取屋顶的边沿;S30. Use the search box method to obtain the horizontal line of the third edge map, and obtain the far-end roof edge and the near-end horizontal border; wherein the search box method is to set a rectangular area, if the pixel value in the area is a high value after binarization If the number of pixels is greater than the threshold, it is considered that the boundary has been searched, so as to obtain the top and bottom of the boundary and then expand to the left and right in the top and bottom areas, and search the left and right ends to obtain the edge of the roof;

在步骤S20对第三边缘图进行灰度二值化后,其中255代表的是边缘点,而0代表的是非边缘点。本实施例以二值化后的最高值255代表边缘点,以最低值0代表非边缘点为例进行说明,本领域技术人员可以采用其他的像素值来区分边缘点和非边缘点,本实施例不在赘述。After performing grayscale binarization on the third edge image in step S20, 255 represents edge points, and 0 represents non-edge points. In this embodiment, the highest value 255 after binarization represents the edge point, and the lowest value 0 represents the non-edge point as an example. Those skilled in the art can use other pixel values to distinguish the edge point from the non-edge point. In this implementation Examples are not repeated here.

对于水平线其一般位于一条边缘点上,因此,本实施例当搜索到足够的边缘点时,说明在该搜索区域存在一条直线。因此,本实施例使用区域内像素值为255的像素点数量大于阈值,来判断是否搜索到边界,在本实施例中幕墙的边框的边界一般为水平线。For the horizontal line, it is generally located on an edge point. Therefore, in this embodiment, when enough edge points are searched, it means that there is a straight line in the search area. Therefore, this embodiment uses the number of pixels with a pixel value of 255 in the area greater than the threshold to determine whether the boundary is found. In this embodiment, the border of the frame of the curtain wall is generally a horizontal line.

本步骤是用搜索框法识别远端屋顶边沿和近端水平边框2条边界。This step is to use the search box method to identify the two boundaries of the far-end roof edge and the near-end horizontal frame.

搜索框法的原理是设置一个矩形区域,如果区域内像素值为二值化后的高值的像素点数量大于阈值,则认为搜索到边界,以此获取边界的顶部和底部。然后在顶部和底部区域内向左右扩展,搜索左右端。本实施例的方法与单个像素搜索相比,搜索效率高速度快,并且能去除噪声。The principle of the search box method is to set a rectangular area. If the number of pixels with a high value after binarization in the area is greater than the threshold, it is considered that the boundary has been searched, so as to obtain the top and bottom of the boundary. It then expands left and right within the top and bottom areas, searching for the left and right ends. Compared with single pixel search, the method of this embodiment has high search efficiency and fast speed, and can remove noise.

具体的步骤S30包括:Concrete step S30 comprises:

S33、按照所述第三边缘图的设定区域从上往下或从下往上移动搜索框,移动后统计搜索框内像素值为255的像素数量,直至初次发现像素数量大于设定的阈值,该高度即为顶部/底部高度值,以获取远端屋顶边沿;其中,对于搜索远端屋顶边沿,搜索框的宽度1-5像素、高度1像素,对于搜索近端水平边框,搜索框的宽度为50%图像宽、高度2像素;S33. Move the search box from top to bottom or from bottom to top according to the set area of the third edge map, count the number of pixels with a pixel value of 255 in the search box after the movement, until the number of pixels is found to be greater than the set threshold for the first time , the height is the top/bottom height value to get the far roof edge; where, for searching the far roof edge, the search box has a width of 1-5 pixels and a height of 1 pixel, and for searching the near horizontal border, the search box has The width is 50% of the image width and the height is 2 pixels;

按照所述第三边缘图的设定区域从上往下或从下往上移动搜索框,移动后统计搜索框内像素值为255的像素数量,直至初次发现像素数量大于设定的阈值,该高度即为顶部/底部高度值,以获取远端屋顶边沿;其中,对于搜索远端屋顶边沿,由于第三边缘图中比较远的边缘会很细很窄,因此搜索框的宽度1-5像素、高度1像素,用较细较短的搜索框增加搜索到边缘的几率;对于搜索近端水平边框,由于第三边缘图中越近越明显的边缘会越长越粗,因此用宽度50%图像宽、高度2像素来剔除不是水平边框的障碍物;Move the search box from top to bottom or from bottom to top according to the set area of the third edge map, count the number of pixels with a pixel value of 255 in the search box after the movement, until the number of pixels is found to be greater than the set threshold for the first time, the The height is the top/bottom height value to obtain the far roof edge; among them, for searching the far roof edge, since the far edge in the third edge map will be very thin and narrow, the width of the search box is 1-5 pixels , with a height of 1 pixel, use a thinner and shorter search box to increase the probability of finding the edge; for searching the near-end horizontal border, since the closer and more obvious edges in the third edge image will be longer and thicker, use a width of 50% The width and height of the image are 2 pixels to remove obstacles that are not horizontal borders;

S34、继续移动搜索直至搜索框内像素值为255的像素数量小于设定的阈值,该高度即为底部/顶部高度值;S34. Continue to move and search until the number of pixels with a pixel value of 255 in the search box is less than the set threshold, and this height is the bottom/top height value;

S35、按顶部和底部继续扩展1-3像素,从中间点开始往两边开始移动,搜索左右端的宽度值;S35, continue to expand 1-3 pixels according to the top and bottom, start moving from the middle point to both sides, and search for the width value of the left and right ends;

本实施例从顶部和底部继续扩展1-3像素,可以减小边缘线突出/凹陷1个像素,或者比较小的翻滚角造成边缘线上下偏移造成的影响。In this embodiment, extending 1-3 pixels from the top and the bottom can reduce the edge line protruding/recessing by 1 pixel, or the impact caused by the edge line shifting up and down caused by a relatively small roll angle.

具体的,本实施例的水平线相当于高度和宽度都不固定的矩形,因此是通过S33和S34获得水平线的顶端和低端的Y值,通过S35获得左右的X值,即矩形的四个边。Specifically, the horizontal line in this embodiment is equivalent to a rectangle whose height and width are not fixed, so the Y values of the top and bottom ends of the horizontal line are obtained through S33 and S34, and the left and right X values are obtained through S35, that is, the four sides of the rectangle .

以搜索近端水平边框为例。Take the example of searching for a proximal horizontal border.

S33搜索框从图像底部开始向上移动,首次发现像素数量大于阈值,此时搜索框所在的高度就是水平线的底部Y底;S33 The search box moves upward from the bottom of the image, and it is found that the number of pixels is greater than the threshold for the first time. At this time, the height of the search box is the bottom Y bottom of the horizontal line;

S34搜索框继续向上移动,在水平线内部时搜索框的像素值会一直大于阈值。当发现搜索框的像素值小于阈值,代表搜索框到达水平线的顶部YS34 The search box continues to move upward, and the pixel value of the search box will always be greater than the threshold when it is inside the horizontal line. When the pixel value of the search box is found to be less than the threshold, it means that the search box has reached the top Y top of the horizontal line;

S35搜索框从中间向左搜索,在水平线内部时搜索框的像素会一直大于阈值。当发现搜索框的像素小于阈值,代表搜索框到达水平线的左端XS35 The search box searches from the middle to the left, and when it is inside the horizontal line, the pixels of the search box will always be greater than the threshold. When it is found that the pixels of the search box are smaller than the threshold, it means that the search box has reached the left end X of the horizontal line:

搜索到水平线的左端X,搜索框重新从中间开始向右移动,当发现搜索框的像素小于阈值,代表搜索框到达水平线的右端XWhen the search reaches the left end of the horizontal line X left , the search box starts to move from the middle to the right again. When the pixel of the search box is found to be smaller than the threshold, it means that the search box reaches the right end X right of the horizontal line;

因此,该水平线的矩形四个顶角坐标分别为(X,Y)、(X,Y)、(X,Y)、(X,Y)。Therefore, the coordinates of the four apex corners of the rectangle of the horizontal line are (X left , Y top ), (X right , Y top ), (X left , Y bottom ), (X right , Y bottom ).

参考图4、远端屋顶边沿是聚焦在图像中点上下各5%的区域,从上往下按3像素宽度、1像素高度、1像素阈值的搜索框来获取边界的顶部和底部,并获取左右端后返回屋顶边沿的上下高度值和左右宽度值。Referring to Figure 4, the edge of the far roof is focused on the upper and lower 5% of the midpoint of the image. From top to bottom, press the search box with a width of 3 pixels, a height of 1 pixel, and a threshold of 1 pixel to obtain the top and bottom of the boundary, and obtain After the left and right ends, return the top and bottom height values and left and right width values of the roof edge.

近端水平边框是聚焦在图像从屋顶边沿底部到图像底部、左右各裁剪25%的区域,从下往上按屋顶边沿宽度、2像素高度、40%搜索框像素阈值的搜索框进行搜索,返回顶部底部扩展2像素的矩形框。The near-end horizontal frame focuses on the area from the bottom of the roof edge to the bottom of the image, and crops 25% of the left and right. Search from bottom to top according to the search box with the roof edge width, 2 pixel height, and 40% search box pixel threshold, and return A rectangular box with a 2px extension at the top and bottom.

为了去除第三边缘图像中的噪声的影响,步骤S30还包括:In order to remove the influence of noise in the third edge image, step S30 also includes:

S31、去除所述第三边缘图设定区域以外的像素值;S31. Remove pixel values outside the set area of the third edge map;

S32、用腐蚀和膨胀,按照长30像素、高1像素的形状提取水平线,以获取去除噪声后的边缘图;S32. Using erosion and dilation, extract horizontal lines according to the shape of 30 pixels long and 1 pixel high, so as to obtain an edge map after noise removal;

具体的,在步骤S31中,则将第三边缘图替换为去除噪声后的边缘图。Specifically, in step S31, the third edge map is replaced with the edge map after noise removal.

本剔除非水平线的同时也剔除了长度小于30像素的水平线;While eliminating non-horizontal lines, horizontal lines with a length less than 30 pixels are also eliminated;

S40,识别所述第三边缘图中的垂直线以获取远端左右边界和左右侧近端垂直边框;S40, identifying the vertical lines in the third edge map to obtain the far left and right borders and the left and right proximal vertical borders;

本步骤是用垂直线搜索法识别远端左右边界和左右侧近端垂直边框4条边界。This step is to use the vertical line search method to identify the four borders of the far left and right borders and the left and right proximal vertical borders.

参考图5、垂直线搜索法是根据机器人左右两端的垂直线投影在图像上会呈现一定角度的原理,聚焦目标区域后逐步按指定方向旋转图像,使用搜索框法识别旋转后的水平线,以此识别出最近/最远的左右垂直线。本方法可以一定程度上去除水平线和斜线的干扰。具体步骤如下:Referring to Figure 5, the vertical line search method is based on the principle that the vertical lines projected on the left and right ends of the robot will present a certain angle on the image. After focusing on the target area, gradually rotate the image in the specified direction, and use the search box method to identify the rotated horizontal line. The nearest/farthest left and right vertical lines are identified. This method can remove the interference of horizontal lines and oblique lines to a certain extent. Specific steps are as follows:

S41、将边缘图去除设定区域外的像素值,然后根据区域位置,将剩余像素平移到图像的中间;S41. Remove the pixel values outside the set area from the edge image, and then translate the remaining pixels to the middle of the image according to the position of the area;

S42、按照设定的方向从1°至90°或从90°至1°,以1°为步长进行循环,每次将原图旋转一定角度,并用二值法增强图像;S42. Cycle from 1° to 90° or from 90° to 1° according to the set direction, with a step size of 1°, rotate the original image by a certain angle each time, and enhance the image with a binary method;

本实施例以1°为步长进行循环,兼顾了精度和运算时间。在降低步长时,例如降为0.5°,能够增加初次和末次角度的精度,从而提升旋转角度的精度,但是会增加运算时间;增加步长时,例如增至3°,能够降低运算时间,并且剔除搜索到较远较不明显边框的几率,但是同时也容易出现搜索不到近端边框,并且旋转角度的精度较低。In this embodiment, the cycle is performed with a step size of 1°, taking into account both precision and operation time. When the step size is reduced, for example, to 0.5°, the accuracy of the first and last angles can be increased, thereby improving the accuracy of the rotation angle, but the calculation time will be increased; when the step size is increased, for example, to 3°, the calculation time can be reduced, And eliminate the probability of searching for a farther and less obvious frame, but at the same time it is also prone to not being able to search for a near-end frame, and the accuracy of the rotation angle is low.

S43、用腐蚀和膨胀,按照长30像素、高1像素的形状提取水平线,剔除非水平线的同时也剔除了长度小于30像素的水平线;S43. Using corrosion and dilation, extract horizontal lines according to the shape of 30 pixels long and 1 pixel high, and eliminate non-horizontal lines while also eliminating horizontal lines with a length less than 30 pixels;

S44、使用搜索框法按照设定从上往下或从下往上搜索边界。如果首次找到边界,则记录初次角度和顶部/底部高度。如果找到边界后又再次找不到,则记录末次角度和底部/顶部高度,并跳出循环;S44. Use the search box method to search the boundary from top to bottom or from bottom to top according to the setting. If the boundary is found for the first time, record the initial angle and top/bottom height. If the boundary is found and it is not found again, record the last angle and bottom/top height, and jump out of the loop;

S45、初次和末次角度取平均值作为旋转角度;S45, taking the average value of the first and last angles as the rotation angle;

S46、按角度旋转后,顶部底部区域内从中点向两边搜索左右端;S46. After rotating according to the angle, search for the left and right ends from the midpoint to both sides in the top and bottom areas;

S47、获取边界区域后,反向旋转回初始状态,并平移回原位置。S47. After acquiring the boundary area, reversely rotate back to the initial state, and translate back to the original position.

右侧远端边界和右侧近端边框是提取图像右下角,从屋顶边沿左侧到图像右边界宽、从屋顶边沿顶部到图像底部的区域。右侧远端边界的图像从1°至90°逆时针旋转,从上往下用搜索框法进行识别;右侧近端边框的图像从90°至1°逆时针旋转,从下往上用搜索框法进行识别。The right far border and right near border are the regions that extract the lower right corner of the image, from the left side of the roof edge to the width of the right border of the image, and from the top of the roof edge to the bottom of the image. The image of the far border on the right is rotated counterclockwise from 1° to 90°, and is identified by the search box method from top to bottom; the image of the proximal border on the right is rotated counterclockwise from 90° to 1°, and identified by the The search box method is used for identification.

左侧远端边界和左侧近端边框是提取图像左下角,从图像左边界到屋顶边沿右侧宽、从屋顶边沿顶部到图像底部的区域。左侧远端边界的图像从1°至90°顺时针旋转,从上往下用搜索框法进行识别;左侧近端边框的图像从90°至1°顺时针旋转,从下往上用搜索框法进行识别。The left far border and left near border are to extract the lower left corner of the image, from the left border of the image to the wide right side of the roof edge, and from the top of the roof edge to the bottom of the image. The image of the far border on the left is rotated clockwise from 1° to 90°, and is identified by the search box method from top to bottom; the image of the proximal border on the left is rotated clockwise from 90° to 1°, and identified by the The search box method is used for identification.

S50、将所述远端屋顶边沿、近端水平边框、远端左右边界和左右侧近端垂直边框和4条垂直边界用不同颜色框高亮显示。S50. Highlight the far-end roof edge, the proximal horizontal border, the far left-right border, the left-right proximal vertical border, and the four vertical borders with boxes of different colors.

参考图6、本步骤是将2条水平和4条垂直边界用不同颜色框高亮显示,用以提醒操作人员。Referring to Figure 6, this step is to highlight 2 horizontal and 4 vertical borders with different color boxes to remind the operator.

本实施例使用搜索框法对噪声的影响不敏感,可以很好的适应噪声,本实施例在识别幕墙的边框时,根据边框的不同形态,设置不同宽度的搜索框增加对不同边框的识别的准确性。进一步的,在识别幕墙的垂直边框时,本实施例将图像进行旋转,并使用搜索框法识别旋转后的水平线,以此识别出最近/最远的左右垂直线,可以一定程度上去除水平线和斜线的干扰。本实施例识别出2条水平线和4条垂直线,即最远端的屋顶边沿、最近端水平边框、最远端左右两边的边界、最近端垂直边框,最后在图像上突出显示这6条边界线。在机器人的边缘端自动识别最近的边框和最远的边界并用彩色框进行提示。本发明减少了操作人员观察边界所需的精力,避免了图像传输过程中边界特征模糊的问题,并且只识别和提示关键的边界。使用本发明能够为操作人员提供视觉上的辅助功能,辅助操作人员进行幕墙清洗,避免操作人员因注意力分散而撞上边框或者移出边界的情况。In this embodiment, the search box method is not sensitive to the influence of noise, and can adapt to noise well. In this embodiment, when identifying the frame of the curtain wall, according to the different shapes of the frame, search boxes of different widths are set to increase the recognition efficiency of different frames. accuracy. Further, when identifying the vertical frame of the curtain wall, this embodiment rotates the image, and uses the search box method to identify the rotated horizontal line, so as to identify the nearest/farthest left and right vertical lines, which can remove horizontal lines and Interference with slashes. This embodiment recognizes 2 horizontal lines and 4 vertical lines, that is, the farthest edge of the roof, the closest horizontal border, the farthest left and right borders, and the closest vertical border, and finally these 6 borders are highlighted on the image Wire. Automatically identify the nearest border and the farthest border at the edge of the robot and use a colored box as a reminder. The invention reduces the effort required by operators to observe the boundary, avoids the problem of fuzzy boundary features during image transmission, and only recognizes and prompts key boundaries. The present invention can provide visual auxiliary functions for operators to assist the operators to clean the curtain wall and avoid the situation that the operators bump into the border or move out of the border due to distraction.

进一步的,本实施例的单目图像边界识别方法,对于远端和近端水平边框,使用不同的搜索框的大小,可以更好的适应远端的边缘很细和很窄,以及近端的边缘很长和很粗,提高对于边缘的识别的准确性。此外,对于边框其在图像中均是一个相对比较细的边缘,例如相对于路面上的车道线来说,本实施例用于幕墙的边框是很细的,本实施例通过使用不同的搜索框的大小可以更好的适应幕墙的边框识别。进而,对于幕墙边框识别的方法需要运行在机器人上,其对于功耗和性能有要求,本申请通过搜索框以及旋转法(即本实施例中步骤S4)可以很好的减少功耗并取得相对较好的性能。Further, the monocular image boundary recognition method of this embodiment uses different search box sizes for the far-end and near-end horizontal borders, which can better adapt to the thin and narrow edges at the far end and the narrow borders at the near end. The edges are long and thick, which improves the accuracy of edge recognition. In addition, the frame is a relatively thin edge in the image. For example, compared to the lane line on the road, the frame used for the curtain wall in this embodiment is very thin. This embodiment uses different search boxes The size of can be better adapted to the border recognition of the curtain wall. Furthermore, the method for identifying the frame of the curtain wall needs to run on the robot, which has requirements for power consumption and performance. This application can reduce power consumption and achieve relative better performance.

实施例二Embodiment two

参考图7,本实施例公开了一种单目图像边界识别装置,其包括如下单元:Referring to Fig. 7, the present embodiment discloses a monocular image boundary recognition device, which includes the following units:

幕墙获取单元、用于获取包含有幕墙的第一图像;a curtain wall acquiring unit, configured to acquire the first image containing the curtain wall;

参考图2,本实施例的单目图像边界识别方法应用于幕墙机器人,所述幕墙机器人配置有一单目相机。在幕墙机器人执行清洁幕墙时,由搭载在幕墙机器人上的单目相机拍摄照片或视频,以形成所述第一图像。所述第一图像中包含有幕墙。Referring to FIG. 2 , the monocular image boundary recognition method of this embodiment is applied to a curtain wall robot, and the curtain wall robot is equipped with a monocular camera. When the curtain wall robot cleans the curtain wall, the monocular camera mounted on the curtain wall robot takes photos or videos to form the first image. The first image includes a curtain wall.

边缘图像获取单元、用于对所述第一图像进行灰度化,获取灰度化后的灰度图像;对所述灰度图像使用canny算子提取第一边缘图,对第一图像进行拉普拉斯Laplacian算子提取第二边缘图,将所述第一边缘图、第二边缘图融合并二值化形成第三边缘图;An edge image acquisition unit, configured to grayscale the first image, and obtain a grayscale image after grayscale; use a canny operator to extract a first edge image on the grayscale image, and pull the first image The Placian Laplacian operator extracts the second edge map, and the first edge map and the second edge map are fused and binarized to form the third edge map;

本实施例根据机器人视角的幕墙图像的特征,融合Canny算子和Laplacian算子实现更适合的边缘获取算法。In this embodiment, according to the characteristics of the curtain wall image from the perspective of the robot, the Canny operator and the Laplacian operator are fused to implement a more suitable edge acquisition algorithm.

参考图3,本实施例的边缘图像获取单元的原理是利用两种算子的不同特性来提升边缘识别精度,降低噪声。Canny算子边缘清晰且噪声较低,但识别不完整;Laplacian算子边缘信息较多,但也有较多噪声。因此本实施例设置两种算子的参数,各赋0.5权重后进行叠加,利用两种算子互补来尽可能的完整获取边缘。Referring to FIG. 3 , the principle of the edge image acquisition unit in this embodiment is to use different characteristics of the two operators to improve edge recognition accuracy and reduce noise. The Canny operator has clear edges and low noise, but the recognition is incomplete; the Laplacian operator has more edge information, but also has more noise. Therefore, in this embodiment, the parameters of the two operators are set, each of which is assigned a weight of 0.5 and then superimposed, and the two operators are complementary to obtain the edge as completely as possible.

具体的边缘图像获取单元还包括:The specific edge image acquisition unit also includes:

canny提取单元、用于对灰度图使用Canny算子提取边缘图获取第一边缘图;The canny extraction unit is used to extract the edge map using the Canny operator on the grayscale image to obtain the first edge map;

拉普拉斯提取单元、用于对所述第一图像使用高斯滤波,进行灰度化后使用Laplacian算子提取边缘图获取第二边缘图;A Laplacian extraction unit, configured to use Gaussian filtering on the first image, and use a Laplacian operator to extract an edge map after grayscale to obtain a second edge map;

图像叠加单元,用于将第一边缘图和第二边缘图的像素各赋权重0.5,然后进行图像叠加;An image superposition unit, which is used to assign a weight of 0.5 to the pixels of the first edge map and the second edge map, and then perform image superposition;

灰度赋值单元、用于叠加后将灰度小于10的赋值为0,灰度大于10的赋值为255。The gray value assignment unit is used to assign the gray value less than 10 to 0 and the gray value greater than 10 to 255 after superposition.

本实施叠加后将灰度小于10的赋值为0,灰度大于10的赋值为255,通过二值化的方法增强边缘图。After the implementation of superimposition, the value of grayscale less than 10 is assigned as 0, and the value of grayscale greater than 10 is assigned as 255, and the edge map is enhanced by binarization method.

水平线获取单元,用于使用搜索框法获取所述第三边缘图的水平线,获取远端屋顶边沿和近端水平边框;其中搜索框法为设置一个矩形区域,如果区域内像素值为二值化后的高值的像素点数量大于阈值,则认为搜索到边界,以此获取边界的顶部和底部后在顶部和底部区域内向左右扩展,搜索左右端以获取屋顶的边沿;The horizontal line acquisition unit is used to obtain the horizontal line of the third edge map by using the search box method, and obtain the far-end roof edge and the near-end horizontal border; wherein the search box method is to set a rectangular area, if the pixel value in the area is binarized If the number of pixels with the highest value is greater than the threshold, it is considered that the boundary has been searched, so as to obtain the top and bottom of the boundary, and then expand to the left and right in the top and bottom areas, and search the left and right ends to obtain the edge of the roof;

本实施例是用搜索框法识别远端屋顶边沿和近端水平边框2条边界。In this embodiment, the search box method is used to identify the two boundaries of the far-end roof edge and the near-end horizontal frame.

搜索框法的原理是设置一个矩形区域,如果区域内像素值为二值化后的高值的像素点数量大于阈值,则认为搜索到边界,以此获取边界的顶部和底部。然后在顶部和底部区域内向左右扩展,搜索左右端。本实施例的方法与单个像素搜索相比,搜索效率高速度快,并且能去除噪声。The principle of the search box method is to set a rectangular area. If the number of pixels with a high value after binarization in the area is greater than the threshold, it is considered that the boundary has been searched, so as to obtain the top and bottom of the boundary. It then expands left and right within the top and bottom areas, searching for the left and right ends. Compared with single pixel search, the method of this embodiment has high search efficiency and fast speed, and can remove noise.

具体的水平线获取单元还包括:The specific horizontal line acquisition unit also includes:

搜索框移动单元、用于按照所述第三边缘图的设定区域从上往下或从下往上移动搜索框,移动后统计搜索框内像素值为255的像素数量,直至初次发现像素数量大于设定的阈值,该高度即为顶部/底部高度值,以获取远端屋顶边沿;其中,对于搜索远端屋顶边沿,搜索框的宽度1-5像素、高度1像素,对于搜索近端水平边框,搜索框的宽度为50%图像宽、高度2像素;The search box moving unit is used to move the search box from top to bottom or from bottom to top according to the set area of the third edge map, and count the number of pixels with a pixel value of 255 in the search box after the movement until the number of pixels is found for the first time Greater than the set threshold, the height is the top/bottom height value to obtain the far-end roof edge; among them, for searching the far-end roof edge, the width of the search box is 1-5 pixels, and the height is 1 pixel; for searching the near-end level Border, the width of the search box is 50% of the image width, and the height is 2 pixels;

第一水平线获取单元、用于继续移动搜索直至搜索框内像素值为255的像素数量小于设定的阈值,该高度即为底部/顶部高度值;The first horizontal line acquisition unit is used to continue to move and search until the number of pixels with a pixel value of 255 in the search box is less than the set threshold, and this height is the bottom/top height value;

左右端宽度值获取单元,用于按顶部和底部继续扩展1-3像素,从中间点开始往两边开始移动,搜索左右端的宽度值;Left and right end width value acquisition unit, used to continue to expand 1-3 pixels according to the top and bottom, start moving from the middle point to both sides, and search for the width value of the left and right ends;

参考图4、远端屋顶边沿是聚焦在图像中点上下各5%的区域,从上往下按3像素宽度、1像素高度、1像素阈值的搜索框来获取边界的顶部和底部,并获取左右端后返回屋顶边沿的上下高度值和左右宽度值。Referring to Figure 4, the edge of the far roof is focused on the upper and lower 5% of the midpoint of the image. From top to bottom, press the search box with a width of 3 pixels, a height of 1 pixel, and a threshold of 1 pixel to obtain the top and bottom of the boundary, and obtain After the left and right ends, return the top and bottom height values and left and right width values of the roof edge.

近端水平边框是聚焦在图像从屋顶边沿底部到图像底部、左右各裁剪25%的区域,从下往上按屋顶边沿宽度、2像素高度、40%搜索框像素阈值的搜索框进行搜索,返回顶部底部扩展2像素的矩形框。The near-end horizontal frame focuses on the area from the bottom of the roof edge to the bottom of the image, and crops 25% of the left and right. Search from bottom to top according to the search box with the roof edge width, 2 pixel height, and 40% search box pixel threshold, and return A rectangular box with a top and bottom extension of 2 pixels.

为了去除第三边缘图像中的噪声的影响,水平线获取单元还包括:In order to remove the influence of noise in the third edge image, the horizontal line acquisition unit also includes:

像素值去除单元、用于去除所述第三边缘图设定区域以外的像素值;a pixel value removal unit, configured to remove pixel values outside the set area of the third edge map;

噪声去除单元、用于用腐蚀和膨胀,按照长30像素、高1像素的形状提取水平线,以获取去除噪声后的边缘图;The noise removal unit is used to use erosion and dilation to extract horizontal lines according to the shape of 30 pixels long and 1 pixel high, so as to obtain the edge map after noise removal;

具体的,在搜索框移动单元中,则将第三边缘图替换为去除噪声后的边缘图。Specifically, in the search box moving unit, the third edge map is replaced with the edge map after noise removal.

本剔除非水平线的同时也剔除了长度小于30像素的水平线;While eliminating non-horizontal lines, horizontal lines with a length less than 30 pixels are also eliminated;

垂直线获取单元,用于识别所述第三边缘图中的垂直线以获取远端左右边界和左右侧近端垂直边框;a vertical line obtaining unit, configured to identify the vertical lines in the third edge map to obtain the far left and right borders and the left and right proximal vertical borders;

本步骤是用垂直线搜索法识别远端左右边界和左右侧近端垂直边框4条边界。This step is to use the vertical line search method to identify the four borders of the far left and right borders and the left and right proximal vertical borders.

参考图5、垂直线搜索法是根据机器人左右两端的垂直线投影在图像上会呈现一定角度的原理,聚焦目标区域后逐步按指定方向旋转图像,使用搜索框法识别旋转后的水平线,以此识别出最近/最远的左右垂直线。本方法可以一定程度上去除水平线和斜线的干扰。具体步骤如下:Referring to Figure 5, the vertical line search method is based on the principle that the vertical lines projected on the left and right ends of the robot will present a certain angle on the image. After focusing on the target area, the image is gradually rotated in the specified direction, and the search box method is used to identify the rotated horizontal line. The nearest/farthest left and right vertical lines are identified. This method can remove the interference of horizontal lines and oblique lines to a certain extent. Specific steps are as follows:

第二像素去除单元、用于将边缘图去除设定区域外的像素值,然后根据区域位置,将剩余像素平移到图像的中间;The second pixel removal unit is used to remove the pixel values outside the set area from the edge map, and then translate the remaining pixels to the middle of the image according to the position of the area;

旋转单元、用于按照设定的方向从1°至90°或从90°至1°,以1°为步长进行循环,每次将原图旋转一定角度,并用二值法增强图像;The rotation unit is used to cycle from 1° to 90° or from 90° to 1° according to the set direction, with a step size of 1°, to rotate the original image by a certain angle each time, and to enhance the image with the binary method;

腐蚀膨胀单元,用于使用腐蚀和膨胀,按照长30像素、高1像素的形状提取水平线,剔除非水平线的同时也剔除了长度小于30像素的水平线;Erosion and expansion unit, used to use erosion and expansion to extract horizontal lines according to the shape of 30 pixels long and 1 pixel high, and eliminate non-horizontal lines and horizontal lines with a length less than 30 pixels;

边界获取单元、用于使用搜索框法按照设定从上往下或从下往上搜索边界;如果首次找到边界,则记录初次角度和顶部/底部高度;如果找到边界后又再次找不到,则记录末次角度和底部/顶部高度,并跳出循环;The boundary acquisition unit is used to use the search box method to search the boundary from top to bottom or from bottom to top according to the setting; if the boundary is found for the first time, record the initial angle and top/bottom height; if the boundary is found and cannot be found again, Then record the last angle and bottom/top height, and jump out of the loop;

旋转角度获取单元、用于将初次和末次角度取平均值作为旋转角度;The rotation angle acquisition unit is used to take the average value of the first and last angles as the rotation angle;

左右端搜索单元、用于按角度旋转后,顶部底部区域内从中点向两边搜索左右端;The left and right end search unit is used to search the left and right ends from the midpoint to both sides in the top and bottom area after rotating according to the angle;

反向旋转单元、用于获取边界区域后,反向旋转回初始状态,并平移回原位置。The reverse rotation unit is used to obtain the boundary area, reverse rotation back to the initial state, and translate back to the original position.

右侧远端边界和右侧近端边框是提取图像右下角,从屋顶边沿左侧到图像右边界宽、从屋顶边沿顶部到图像底部的区域。右侧远端边界的图像从1°至90°逆时针旋转,从上往下用搜索框法进行识别;右侧近端边框的图像从90°至1°逆时针旋转,从下往上用搜索框法进行识别。The right far border and right near border are the regions that extract the lower right corner of the image, from the left side of the roof edge to the width of the right border of the image, and from the top of the roof edge to the bottom of the image. The image of the far border on the right is rotated counterclockwise from 1° to 90°, and is identified by the search box method from top to bottom; the image of the proximal border on the right is rotated counterclockwise from 90° to 1°, and identified by the The search box method is used for identification.

左侧远端边界和左侧近端边框是提取图像左下角,从图像左边界到屋顶边沿右侧宽、从屋顶边沿顶部到图像底部的区域。左侧远端边界的图像从1°至90°顺时针旋转,从上往下用搜索框法进行识别;左侧近端边框的图像从90°至1°顺时针旋转,从下往上用搜索框法进行识别。The left far border and left near border are to extract the lower left corner of the image, from the left border of the image to the wide right side of the roof edge, and from the top of the roof edge to the bottom of the image. The image of the far border on the left is rotated clockwise from 1° to 90°, and is identified by the search box method from top to bottom; the image of the proximal border on the left is rotated clockwise from 90° to 1°, and identified by the The search box method is used for identification.

S50、将所述远端屋顶边沿、近端水平边框、远端左右边界和左右侧近端垂直边框和4条垂直边界用不同颜色框高亮显示。S50. Highlight the far-end roof edge, the proximal horizontal border, the far left-right border, the left-right proximal vertical border, and the four vertical borders with boxes of different colors.

参考图6、本步骤是将2条水平和4条垂直边界用不同颜色框高亮显示,用以提醒操作人员。Referring to Figure 6, this step is to highlight 2 horizontal and 4 vertical borders with different color boxes to remind the operator.

本实施例使用搜索框法对噪声的影响不敏感,可以很好的适应噪声,本实施例在识别幕墙的边框时,根据边框的不同形态,设置不同宽度的搜索框增加对不同边框的识别的准确性。进一步的,在识别幕墙的垂直边框时,本实施例将图像进行旋转,并使用搜索框法识别旋转后的水平线,以此识别出最近/最远的左右垂直线,可以一定程度上去除水平线和斜线的干扰。本实施例识别出2条水平线和4条垂直线,即最远端的屋顶边沿、最近端水平边框、最远端左右两边的边界、最近端垂直边框,最后在图像上突出显示这6条边界线。在机器人的边缘端自动识别最近的边框和最远的边界并用彩色框进行提示。本发明减少了操作人员观察边界所需的精力,避免了图像传输过程中边界特征模糊的问题,并且只识别和提示关键的边界。使用本发明能够为操作人员提供视觉上的辅助功能,辅助操作人员进行幕墙清洗,避免操作人员因注意力分散而撞上边框或者移出边界的情况。In this embodiment, the search box method is not sensitive to the influence of noise, and can adapt to noise well. In this embodiment, when identifying the frame of the curtain wall, according to the different shapes of the frame, search boxes of different widths are set to increase the recognition efficiency of different frames. accuracy. Further, when identifying the vertical frame of the curtain wall, this embodiment rotates the image, and uses the search box method to identify the rotated horizontal line, so as to identify the nearest/farthest left and right vertical lines, which can remove horizontal lines and Interference with slashes. This embodiment recognizes 2 horizontal lines and 4 vertical lines, that is, the farthest edge of the roof, the closest horizontal border, the farthest left and right borders, and the closest vertical border, and finally these 6 borders are highlighted on the image Wire. Automatically identify the nearest border and the farthest border at the edge of the robot and use a colored box as a reminder. The invention reduces the effort required by operators to observe the boundary, avoids the problem of fuzzy boundary features during image transmission, and only recognizes and prompts key boundaries. The present invention can provide visual auxiliary functions for operators to assist the operators to clean the curtain wall and avoid the situation that the operators bump into the border or move out of the border due to distraction.

实施例三Embodiment Three

参考图8,图8是本实施例的一种单目图像边界识别设备的结构示意图。该实施例的单目图像边界识别设备20包括处理器21、存储器22以及存储在所述存储器22中并可在所述处理器21上运行的计算机程序。所述处理器21执行所述计算机程序时实现上述方法实施例中的步骤。或者,所述处理器21执行所述计算机程序时实现上述各装置实施例中各模块/单元的功能。Referring to FIG. 8 , FIG. 8 is a schematic structural diagram of a monocular image boundary recognition device in this embodiment. The monocular image boundary recognition device 20 of this embodiment includes a processor 21 , a memory 22 and a computer program stored in the memory 22 and operable on the processor 21 . The steps in the foregoing method embodiments are implemented when the processor 21 executes the computer program. Alternatively, when the processor 21 executes the computer program, it realizes the functions of the modules/units in the above device embodiments.

示例性的,所述计算机程序可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器22中,并由所述处理器21执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在所述单目图像边界识别设备20中的执行过程。例如,所述计算机程序可以被分割成实施例二中的各个模块,各模块具体功能请参考上述实施例所述的装置的工作过程,在此不再赘述。Exemplarily, the computer program can be divided into one or more modules/units, and the one or more modules/units are stored in the memory 22 and executed by the processor 21 to complete this invention. The one or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program in the monocular image boundary recognition device 20 . For example, the computer program can be divided into various modules in Embodiment 2. For the specific functions of each module, please refer to the working process of the device described in the above embodiment, which will not be repeated here.

所述单目图像边界识别设备20可包括,但不仅限于,处理器21、存储器22。本领域技术人员可以理解,所述示意图仅仅是单目图像边界识别设备20的示例,并不构成对单目图像边界识别设备20的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述单目图像边界识别设备20还可以包括输入输出设备、网络接入设备、总线等。The monocular image boundary recognition device 20 may include, but not limited to, a processor 21 and a memory 22 . Those skilled in the art can understand that the schematic diagram is only an example of the monocular image boundary recognition device 20, and does not constitute a limitation to the monocular image boundary recognition device 20, and may include more or less components than those shown in the illustration, or Combining certain components, or different components, for example, the monocular image boundary recognition device 20 may also include an input and output device, a network access device, a bus, and the like.

所述处理器21可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器21是所述单目图像边界识别设备20的控制中心,利用各种接口和线路连接整个单目图像边界识别设备20的各个部分。The processor 21 can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. General-purpose processor can be microprocessor or this processor also can be any conventional processor etc., described processor 21 is the control center of described monocular image boundary recognition device 20, utilizes various interfaces and lines to connect whole monocular Various parts of the target image boundary recognition device 20.

所述存储器22可用于存储所述计算机程序和/或模块,所述处理器21通过运行或执行存储在所述存储器22内的计算机程序和/或模块,以及调用存储在存储器22内的数据,实现所述单目图像边界识别设备20的各种功能。所述存储器22可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器22可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 22 can be used to store the computer programs and/or modules, and the processor 21 runs or executes the computer programs and/or modules stored in the memory 22, and calls the data stored in the memory 22, Various functions of the monocular image boundary recognition device 20 are realized. The memory 22 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.) and the like; the storage data area may store Stores data (such as audio data, phonebook, etc.) created according to the use of the mobile phone, etc. In addition, the memory 22 can include high-speed random access memory, and can also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.

其中,所述单目图像边界识别设备20集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器21执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。Wherein, if the integrated modules/units of the monocular image boundary recognition device 20 are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention realizes all or part of the processes in the methods of the above embodiments, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor 21, the steps of the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-OnlyMemory), Random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, computer-readable media Excludes electrical carrier signals and telecommunication signals.

需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本发明提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。It should be noted that the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physically separated. A unit can be located in one place, or it can be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that they have a communication connection, which can be specifically implemented as one or more communication buses or signal lines. It can be understood and implemented by those skilled in the art without creative effort.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the scope of the present invention. within the scope of protection.

Claims (10)

1.一种单目图像边界识别方法,其包括如下步骤:1. A monocular image boundary recognition method, comprising the steps of: S10、获取包含有幕墙的第一图像;S10. Obtain the first image including the curtain wall; S20、对所述第一图像进行灰度化,获取灰度化后的灰度图像;对所述灰度图像使用canny算子提取第一边缘图,对第一图像进行拉普拉斯Laplacian算子提取第二边缘图,将所述第一边缘图、第二边缘图融合并二值化形成第三边缘图;S20. Grayscale the first image, and obtain a grayscale image after grayscale; use a canny operator to extract a first edge map on the grayscale image, and perform a Laplacian calculation on the first image Sub-extracting the second edge map, merging and binarizing the first edge map and the second edge map to form a third edge map; S30、使用搜索框法获取所述第三边缘图的水平线,获取远端屋顶边沿和近端水平边框;其中搜索框法为设置一个矩形区域,如果区域内像素值为二值化后的高值的像素点数量大于阈值,则认为搜索到边界,以此获取边界的顶部和底部后在顶部和底部区域内向左右扩展搜索以获取所述顶部和底部的左端和右端,进而获取屋顶的边沿,其中边界为水平线;S30. Use the search box method to obtain the horizontal line of the third edge map, and obtain the far-end roof edge and the near-end horizontal border; wherein the search box method is to set a rectangular area, if the pixel value in the area is a high value after binarization If the number of pixels is greater than the threshold, it is considered that the boundary has been searched, so as to obtain the top and bottom of the boundary, and then expand the search to the left and right in the top and bottom areas to obtain the left and right ends of the top and bottom, and then obtain the edge of the roof, where The border is a horizontal line; S40,识别所述第三边缘图中的垂直线以获取远端左右边界和左右侧近端垂直边框。S40. Identify vertical lines in the third edge map to obtain far left and right borders and left and right proximal vertical borders. 2.根据权利要求1所述的方法,所述方法还包括:2. The method of claim 1, further comprising: S50、将所述远端屋顶边沿、近端水平边框、远端左右边界和左右侧近端垂直边框和4条垂直边界用不同颜色框高亮显示。S50. Highlight the far-end roof edge, the proximal horizontal border, the far left-right border, the left-right proximal vertical border, and the four vertical borders with boxes of different colors. 3.根据权利要求1所述的方法,步骤S20还包括:3. The method according to claim 1, step S20 further comprising: S21、对灰度图使用Canny算子提取边缘图获取第一边缘图;S21. Using the Canny operator to extract the edge image from the grayscale image to obtain the first edge image; S22、对所述第一图像使用高斯滤波,进行灰度化后使用Laplacian算子提取边缘图获取第二边缘图;S22. Using a Gaussian filter on the first image, after performing grayscale conversion, use a Laplacian operator to extract an edge map to obtain a second edge map; S23、将第一边缘图和第二边缘图的像素加权融合,然后进行图像叠加获取第三边缘图。S23. Weighted fusion of pixels of the first edge image and the second edge image, and then perform image superimposition to obtain a third edge image. 4.根据权利要求1所述的方法,步骤S30包括:4. The method according to claim 1, step S30 comprising: S33、按照所述第三边缘图的设定区域从上往下或从下往上移动搜索框,移动后统计搜索框内像素值为二值化后的高值的像素数量,直至初次发现像素数量大于设定的阈值,获取顶部/底部高度值,以获取远端屋顶边沿;其中,对于搜索远端屋顶边沿,搜索框的宽度3-5像素、高度1像素,对于搜索近端水平边框,搜索框的宽度为50%图像宽、高度2像素;S33. Move the search box from top to bottom or from bottom to top according to the set area of the third edge map, and count the number of pixels in the search box whose pixel value is a high value after binarization until the pixel is found for the first time If the number is greater than the set threshold, obtain the top/bottom height value to obtain the far-end roof edge; among them, for searching the far-end roof edge, the width of the search box is 3-5 pixels, and the height is 1 pixel; for the search for the near-end horizontal border, The search box has a width of 50% of the image width and a height of 2 pixels; S34、继续移动搜索直至搜索框内像素值为二值化后的高值的像素数量小于设定的阈值,获取底部/顶部高度值,以获取远端屋顶边沿;S34. Continue to move and search until the number of pixels in the search frame whose pixel value is a binarized high value is less than the set threshold, and obtain the height value of the bottom/top to obtain the edge of the far-end roof; S35、按顶部和底部继续扩展1-3像素,从中间点开始往两边开始移动,搜索左右端的宽度值。S35 , continue to expand 1-3 pixels according to the top and bottom, start moving from the middle point to both sides, and search for the width values of the left and right ends. 5.根据权利要求1所述的方法,步骤S40具体包括使用垂直线搜索法识别所述第三边缘图中的垂直线以获取远端左右边界和近端垂直边框4条边界,其具体为:5. The method according to claim 1, step S40 specifically includes using a vertical line search method to identify the vertical line in the third edge figure to obtain the far-end left and right boundaries and the near-end vertical border 4 boundaries, which are specifically: S41、将边缘图去除设定区域外的像素值,然后根据区域位置,将剩余像素平移到图像的中间;S41. Remove the pixel values outside the set area from the edge image, and then translate the remaining pixels to the middle of the image according to the position of the area; S42、按照设定的方向从1°至90°或从90°至1°,以预设度数为步长进行循环,每次将原图旋转一定角度,并用二值法增强图像;S42. According to the set direction from 1° to 90° or from 90° to 1°, cycle with the preset degree as the step size, rotate the original image by a certain angle each time, and enhance the image with a binary method; S43、用腐蚀和膨胀,按照长30像素、高1像素的形状提取水平线,剔除非水平线的同时也剔除了长度小于30像素的水平线;S43. Using corrosion and dilation, extract horizontal lines according to the shape of 30 pixels long and 1 pixel high, and eliminate non-horizontal lines while also eliminating horizontal lines with a length less than 30 pixels; S44、使用搜索框法按照设定从上往下或从下往上搜索边界;如果首次找到边界,则记录初次角度和顶部/底部高度;如果找到边界后又再次找不到,则记录末次角度和底部/顶部高度,并跳出循环;S44. Use the search box method to search the boundary from top to bottom or from bottom to top according to the setting; if the boundary is found for the first time, record the initial angle and top/bottom height; if the boundary is found and cannot be found again, record the last angle and bottom/top heights, and break out of the loop; S45、初次和末次角度取平均值作为旋转角度;S45, taking the average value of the first and last angles as the rotation angle; S46、按旋转角度旋转后,顶部底部区域内从中点向两边搜索左右端;S46. After rotating according to the rotation angle, search for the left and right ends from the midpoint to both sides in the top and bottom areas; S47、获取边界区域后,反向旋转回初始状态,并平移回原位置。S47. After acquiring the boundary area, reversely rotate back to the initial state, and translate back to the original position. 6.一种单目图像边界识别装置,其包括如下单元:6. A monocular image boundary recognition device, which comprises the following units: 幕墙获取单元、用于获取包含有幕墙的第一图像;a curtain wall acquiring unit, configured to acquire the first image containing the curtain wall; 边缘图像获取单元、用于对所述第一图像进行灰度化,获取灰度化后的灰度图像;对所述灰度图像使用canny算子提取第一边缘图,对第一图像进行拉普拉斯Laplacian算子提取第二边缘图,将所述第一边缘图、第二边缘图融合并二值化形成第三边缘图;An edge image acquisition unit, configured to grayscale the first image, and obtain a grayscale image after grayscale; use a canny operator to extract a first edge image on the grayscale image, and pull the first image The Placian Laplacian operator extracts the second edge map, and the first edge map and the second edge map are fused and binarized to form the third edge map; 水平线获取单元,用于使用搜索框法获取所述第三边缘图的水平线,获取远端屋顶边沿和近端水平边框;其中搜索框法为设置一个矩形区域,如果区域内像素值为二值化后的高值的像素点数量大于阈值,则认为搜索到边界,以此获取边界的顶部和底部后在顶部和底部区域内向左右扩展,搜索左右端以获取屋顶的边沿;The horizontal line acquisition unit is used to obtain the horizontal line of the third edge map by using the search box method, and obtain the far-end roof edge and the near-end horizontal border; wherein the search box method is to set a rectangular area, if the pixel value in the area is binarized If the number of pixels with the highest value is greater than the threshold, it is considered that the boundary has been searched, so as to obtain the top and bottom of the boundary, and then expand to the left and right in the top and bottom areas, and search the left and right ends to obtain the edge of the roof; 垂直线获取单元,用于识别所述第三边缘图中的垂直线以获取远端左右边界和左右侧近端垂直边框。A vertical line acquiring unit, configured to identify the vertical lines in the third edge map to acquire the far left and right borders and the left and right proximal vertical borders. 7.根据权利要求6所述的装置,水平线获取单元,还包括:7. The device according to claim 6, the horizontal line acquisition unit, further comprising: 搜索框移动单元,用于按照所述第三边缘图的设定区域从上往下或从下往上移动搜索框,移动后统计搜索框内像素值为二值化后的高值的像素数量,直至初次发现像素数量大于设定的阈值,获取顶部/底部高度值,以获取远端屋顶边沿;其中,对于搜索远端屋顶边沿,搜索框的宽度3-5像素、高度1像素;搜索近端水平边框,则宽度50%图像宽、高度2像素;The search box moving unit is used to move the search box from top to bottom or from bottom to top according to the set area of the third edge map, and count the number of pixels in the search box whose pixel values are binarized high values after the movement , until the number of pixels is found to be greater than the set threshold for the first time, the top/bottom height value is obtained to obtain the far-end roof edge; among them, for searching the far-end roof edge, the width of the search box is 3-5 pixels, and the height is 1 pixel; End horizontal border, then the width is 50% of the image width and the height is 2 pixels; 第一水平线获取单元,用于继续移动搜索直至搜索框内像素值为二值化后的高值的像素数量小于设定的阈值,获取底部/顶部高度值;The first horizontal line acquisition unit is used to continue to move and search until the number of pixels in the search box whose pixel value is a binarized high value is less than the set threshold, and acquire the bottom/top height value; 左右端宽度值获取单元,用于按顶部和底部继续扩展1-3像素,从中间点开始往两边开始移动,搜索左右端的宽度值。The left and right end width value acquisition unit is used to expand 1-3 pixels according to the top and bottom, start to move from the middle point to both sides, and search for the width value of the left and right ends. 8.根据权利要求6所述的装置,垂直线获取单元具体包括使用垂直线搜索法识别所述第三边缘图中的垂直线以获取远端左右边界和近端垂直边框4条边界,其具体为:8. The device according to claim 6, the vertical line acquisition unit specifically includes using a vertical line search method to identify the vertical line in the third edge map to obtain the far-end left and right boundaries and the near-end vertical frame 4 boundaries, which specifically for: 第二像素去除单元,用于将边缘图去除设定区域外的像素值,然后根据区域位置,将剩余像素平移到图像的中间;The second pixel removal unit is used to remove the pixel values outside the set area from the edge map, and then translate the remaining pixels to the middle of the image according to the position of the area; 旋转单元,用于按照设定的方向从1°至90°或从90°至1°,以预设度数为步长进行循环,每次将原图旋转一定角度,并用二值法增强图像;The rotation unit is used to cycle from 1° to 90° or from 90° to 1° according to the set direction, with the preset degree as the step size, rotate the original image by a certain angle each time, and use the binary method to enhance the image; 腐蚀膨胀单元,用于使用腐蚀和膨胀,按照长30像素、高1像素的形状提取水平线,剔除非水平线的同时也剔除了长度小于30像素的水平线;Erosion and expansion unit, used to use erosion and expansion to extract horizontal lines according to the shape of 30 pixels long and 1 pixel high, and eliminate non-horizontal lines and horizontal lines with a length less than 30 pixels; 边界获取单元,用于使用搜索框法按照设定从上往下或从下往上搜索边界;如果首次找到边界,则记录初次角度和顶部/底部高度;如果找到边界后又再次找不到,则记录末次角度和底部/顶部高度,并跳出循环;The boundary acquisition unit is used to use the search box method to search the boundary from top to bottom or from bottom to top according to the setting; if the boundary is found for the first time, record the initial angle and top/bottom height; if the boundary is found and cannot be found again, Then record the last angle and bottom/top height, and jump out of the loop; 旋转角度获取单元,用于将初次和末次角度取平均值作为旋转角度;The rotation angle acquisition unit is used to take the average value of the first and last angles as the rotation angle; 左右端搜索单元,用于按角度旋转后,顶部底部区域内从中点向两边搜索左右端;The left and right end search unit is used to search the left and right ends from the midpoint to both sides in the top and bottom area after rotating according to the angle; 反向旋转单元,用于获取边界区域后,反向旋转回初始状态,并平移回原位置。The reverse rotation unit is used to reversely rotate back to the initial state and translate back to the original position after obtaining the boundary area. 9.一种幕墙机器人,所述幕墙机器人具有单目相机、处理器、存储器,所述存储器上存储有指令,所述指令被处理器执行时,用以实现如权利要求1-5中任一项所述的单目图像边界识别方法。9. A curtain wall robot, the curtain wall robot has a monocular camera, a processor, and a memory, and instructions are stored on the memory, and when the instructions are executed by the processor, in order to realize any one of claims 1-5 The monocular image boundary recognition method described in the item. 10.一种非易失性存储介质,所述非易失性存储介质上存储有指令,所述指令被处理器执行时,用以实现如权利要求1-5中任一项所述的单目图像边界识别方法。10. A non-volatile storage medium, wherein instructions are stored on the non-volatile storage medium, and when the instructions are executed by a processor, they are used to implement the unit according to any one of claims 1-5. A method for image boundary recognition.
CN202211152337.5A 2022-09-21 2022-09-21 A monocular image boundary recognition method, device, medium and curtain wall robot Active CN115578627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211152337.5A CN115578627B (en) 2022-09-21 2022-09-21 A monocular image boundary recognition method, device, medium and curtain wall robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211152337.5A CN115578627B (en) 2022-09-21 2022-09-21 A monocular image boundary recognition method, device, medium and curtain wall robot

Publications (2)

Publication Number Publication Date
CN115578627A CN115578627A (en) 2023-01-06
CN115578627B true CN115578627B (en) 2023-05-09

Family

ID=84582040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211152337.5A Active CN115578627B (en) 2022-09-21 2022-09-21 A monocular image boundary recognition method, device, medium and curtain wall robot

Country Status (1)

Country Link
CN (1) CN115578627B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246544A (en) * 2008-01-24 2008-08-20 电子科技大学中山学院 Iris positioning method based on boundary point search and SUSAN edge detection
CN102402289A (en) * 2011-11-22 2012-04-04 华南理工大学 Gesture mouse recognition method based on machine vision
CN103034833A (en) * 2011-09-29 2013-04-10 无锡爱丁阁信息科技有限公司 Bar code positioning method and bar code detection device
CN103530878A (en) * 2013-10-12 2014-01-22 北京工业大学 Edge extraction method based on fusion strategy
CN112215893A (en) * 2020-10-28 2021-01-12 安徽农业大学 Method, device, equipment and ranging system for determining two-dimensional center coordinate point of target
CN114877814A (en) * 2022-04-14 2022-08-09 南京理工大学 Pantograph state detection device and method based on image processing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246544A (en) * 2008-01-24 2008-08-20 电子科技大学中山学院 Iris positioning method based on boundary point search and SUSAN edge detection
CN103034833A (en) * 2011-09-29 2013-04-10 无锡爱丁阁信息科技有限公司 Bar code positioning method and bar code detection device
CN102402289A (en) * 2011-11-22 2012-04-04 华南理工大学 Gesture mouse recognition method based on machine vision
CN103530878A (en) * 2013-10-12 2014-01-22 北京工业大学 Edge extraction method based on fusion strategy
CN112215893A (en) * 2020-10-28 2021-01-12 安徽农业大学 Method, device, equipment and ranging system for determining two-dimensional center coordinate point of target
CN114877814A (en) * 2022-04-14 2022-08-09 南京理工大学 Pantograph state detection device and method based on image processing

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
田炳香 ; 郑榜贵 ; 吴晴 ; .高速公路车道线检测与跟踪算法研究.现代电子技术.2008,(第09期),全文. *
蒋境伟.玻璃幕墙清洗机器人控制系统的设计.《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》.2020,全文. *
陈涵深 ; 姚明海 ; 陈志浩 ; 杨圳 ; .基于多帧叠加和窗口搜索的快速车道检测.计算机科学.2018,(第10期),全文. *

Also Published As

Publication number Publication date
CN115578627A (en) 2023-01-06

Similar Documents

Publication Publication Date Title
US11030469B2 (en) System and method for detection of free parking space for a vehicle
US8184859B2 (en) Road marking recognition apparatus and method
CN109784344A (en) An image non-target filtering method for ground plane identification recognition
WO2011078264A1 (en) Image processing apparatus, image processing method, computer program, and mobile body
KR102052833B1 (en) Apparatus and method for vehicle speed detection using image tracking
WO2023019793A1 (en) Determination method, cleaning robot, and computer storage medium
JP2008158958A (en) Road surface determination method and road surface determination device
US10318824B2 (en) Algorithm to extend detecting range for AVM stop line detection
KR19990013317A (en) Facial image processing device
US20160180158A1 (en) Vehicle vision system with pedestrian detection
EP4524674A1 (en) Obstacle avoidance method and apparatus based on binocular vision, and robot and medium
JP2010123012A (en) Wheel stop detection device and rearward image display apparatus
JP2015148887A (en) Image processing device, object recognition device, moving body instrument control system and object recognition program
WO2014079058A1 (en) Method and system for processing video image
CN115327572A (en) A method for detecting obstacles in front of a vehicle
JP6130325B2 (en) Road environment recognition device
CN115578627B (en) A monocular image boundary recognition method, device, medium and curtain wall robot
JP5434277B2 (en) Driving support device and driving support method
JP2013142972A (en) Travel path recognition device
US9811744B2 (en) Fast and robust stop line detector
CN119625685A (en) Obstacle detection method, device, storage medium and electronic device
JP2021051381A (en) Attached matter detection device and attached matter detection method
JPH07105487A (en) Drive lane recognition device
JP5900021B2 (en) Pop-up detection device
JPH05313736A (en) Obstacle recognizing device for moving vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: No. 88 Yonglong Avenue, Huangpu District, Guangzhou City, Guangdong Province

Patentee after: Guangdong Lingdu Intelligent Technology Development Co.,Ltd.

Country or region after: China

Address before: No. 601, 6th Floor, Building A3, No. 2399 Kaichuang Avenue, Huangpu District, Guangzhou City, Guangdong Province (for office use only)

Patentee before: Lingdu (Guangdong) Intelligent Technology Development Co.,Ltd.

Country or region before: China

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20230106

Assignee: Guangzhou Lingdu Robot Co.,Ltd.

Assignor: Guangdong Lingdu Intelligent Technology Development Co.,Ltd.

Contract record no.: X2024980023811

Denomination of invention: A monocular image boundary recognition method, device, medium, and curtain wall robot

Granted publication date: 20230509

License type: Common License

Record date: 20241111

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A monocular image boundary recognition method, device, medium, and curtain wall robot

Granted publication date: 20230509

Pledgee: Bank of China Limited Guangzhou Development Zone Branch

Pledgor: Guangdong Lingdu Intelligent Technology Development Co.,Ltd.

Registration number: Y2025980009696