CN114842213A - An obstacle contour detection method, device, terminal device and storage medium - Google Patents

An obstacle contour detection method, device, terminal device and storage medium Download PDF

Info

Publication number
CN114842213A
CN114842213A CN202210526559.2A CN202210526559A CN114842213A CN 114842213 A CN114842213 A CN 114842213A CN 202210526559 A CN202210526559 A CN 202210526559A CN 114842213 A CN114842213 A CN 114842213A
Authority
CN
China
Prior art keywords
image
actual
pixel
contour
open space
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.)
Pending
Application number
CN202210526559.2A
Other languages
Chinese (zh)
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.)
BDstar Intelligent and Connected Vehicle Technology Co Ltd
Original Assignee
BDstar Intelligent and Connected Vehicle Technology 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 BDstar Intelligent and Connected Vehicle Technology Co Ltd filed Critical BDstar Intelligent and Connected Vehicle Technology Co Ltd
Priority to CN202210526559.2A priority Critical patent/CN114842213A/en
Publication of CN114842213A publication Critical patent/CN114842213A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • G06T5/30Erosion or dilatation, e.g. thinning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/28Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/10Terrestrial scenes

Landscapes

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

Abstract

The embodiment of the invention discloses a method, a device, a terminal device and a storage medium for detecting an obstacle contour, wherein the method for detecting the obstacle contour comprises the steps of acquiring an actual image of an actual scene through a monocular camera, obtaining an actual aerial view through perspective transformation, calculating actual characteristic values of all pixel points in the actual aerial view, obtaining a binary image based on the aerial characteristic values and the actual characteristic values of all the pixel points of the aerial view, denoising abnormal points in the binary image to obtain a first image, and detecting the contour of an obstacle in the actual scene through the contour of the first image. The detection method can accurately identify the size and the appearance characteristics of the barrier, can remove the influence of illumination on image characteristic identification, can be applied to most barrier characteristic identification, and avoids using a large amount of algorithm training and testing, thereby reducing the production cost and the labor cost.

Description

一种障碍物轮廓检测方法、装置、终端设备和存储介质An obstacle contour detection method, device, terminal device and storage medium

技术领域technical field

本发明涉及障碍物检测领域,尤其涉及一种障碍物轮廓检测方法、装置、终端设备和存储介质。The present invention relates to the field of obstacle detection, and in particular, to a method, device, terminal device and storage medium for obstacle contour detection.

背景技术Background technique

现有技术中一般使用双目摄像头进行障碍物探测,并使用AI(ArtificialIntelligence,人工智能)识别算法进行运算。但双目摄像头构造复杂、制作成本高,且对计算能力要求高,若要使用AI识别算法需要预先进行训练,且对处理器存储和运算能力要求较高,在使用双目摄像头时,由于需要适应不同的光照、不同障碍物,对实际使用要求比较高,需要大量场景进行算法训练和测试,使用比较复杂。In the prior art, a binocular camera is generally used for obstacle detection, and an AI (Artificial Intelligence, artificial intelligence) recognition algorithm is used for calculation. However, the binocular camera is complex in structure, high in production cost, and requires high computing power. To use the AI recognition algorithm, it needs to be pre-trained, and requires high processor storage and computing power. When using a binocular camera, due to the need for Adapting to different lighting and different obstacles has high requirements for actual use, and requires a large number of scenarios for algorithm training and testing, which is more complicated to use.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请提供一种障碍物轮廓检测方法、装置、终端设备和存储介质。In view of this, the present application provides an obstacle contour detection method, device, terminal device and storage medium.

第一方面,本申请提出一种单目摄像头障碍物轮廓检测方法,所述方法包括:In a first aspect, the present application proposes a method for detecting the contour of an obstacle with a monocular camera, the method comprising:

通过单目摄像头获取实际场景的实际图像,并对所述实际图像进行透视变换得到实际鸟瞰图;Obtain an actual image of the actual scene through a monocular camera, and perform perspective transformation on the actual image to obtain an actual bird's-eye view;

计算所述实际鸟瞰图中各个像素点的实际特征值;Calculate the actual feature value of each pixel in the actual bird's-eye view;

基于空地鸟瞰图各个像素点的空地特征值和所述实际特征值进行异常点识别处理,得到包含有异常点的二值图像;Perform outlier identification processing based on the open space feature value of each pixel point of the open space bird's-eye view and the actual characteristic value, and obtain a binary image containing outliers;

对所述二值图像中的异常点进行去噪处理,得到第一图像;Denoising the abnormal points in the binary image to obtain a first image;

对所述第一图像进行轮廓检测,确定所述实际场景中的障碍物的轮廓。Perform contour detection on the first image to determine the contour of the obstacle in the actual scene.

在一些实施例中,所述对所述第一图像进行轮廓检测,确定所述实际场景中的障碍物的轮廓,包括:In some embodiments, the performing contour detection on the first image to determine the contour of the obstacle in the actual scene includes:

基于预设算法提取所述第一图像中的至少一个轮廓;extracting at least one contour in the first image based on a preset algorithm;

计算各个所述轮廓的中心点和最小斜矩形的边长度和面积;Calculate the center point of each of the contours and the side length and area of the smallest oblique rectangle;

若当前轮廓的所述中心点不在所述第一图像的边界处,则检测所述边长是否小于预设的边长阈值,以及所述面积是否小于预设的面积阈值;If the center point of the current contour is not at the boundary of the first image, detecting whether the side length is less than a preset side length threshold, and whether the area is less than a preset area threshold;

若所述边长小于所述边长阈值且所述面积小于所述面积阈值,则确定所述当前轮廓为干扰轮廓并丢弃,否则保留所述当前轮廓;If the side length is less than the side length threshold and the area is less than the area threshold, then the current contour is determined to be an interference contour and discarded, otherwise the current contour is retained;

若所述当前轮廓的所述中心点在所述第一图像的边界处,则保留所述当前轮廓;If the center point of the current contour is at the boundary of the first image, retaining the current contour;

将保留的轮廓作为障碍物的轮廓。Take the remaining contour as the contour of the obstacle.

在一些实施例中,所述通过单目摄像头获取实际场景的实际图像之前包括:In some embodiments, before acquiring the actual image of the actual scene through the monocular camera, it includes:

通过单目摄像头获取空地场景的空地图像,并测量所述空地场景的实际尺寸以确定所述空地场景的长宽比例;Obtain an open space image of the open space scene through a monocular camera, and measure the actual size of the open space scene to determine the aspect ratio of the open space scene;

基于所述长宽比例和待生成的所述空地场景的空地鸟瞰图的分辨率确定空地坐标;Determine the coordinates of the open space based on the aspect ratio and the resolution of the open space aerial view of the open space scene to be generated;

在所述空地场景的边界处设置角点,并确定所述角点在空地图像中对应的角点坐标;Setting a corner point at the boundary of the open space scene, and determining the corner point coordinates corresponding to the corner point in the open space image;

基于所述角点坐标和所述空地坐标计算透视变换矩阵的参数,以确定所述透视变换矩阵;Calculate the parameters of the perspective transformation matrix based on the corner coordinates and the open space coordinates to determine the perspective transformation matrix;

通过所述透视变换矩阵对所述空地图像进行透视变换,得到所述空地场景的空地鸟瞰图。Perspective transformation is performed on the open space image through the perspective transformation matrix to obtain an open space bird's-eye view of the open space scene.

在一些实施例中,相应鸟瞰图中各个像素点的特征值通过以下方式计算:In some embodiments, the eigenvalues of each pixel in the corresponding bird's-eye view are calculated in the following manner:

对相应鸟瞰图进行灰度处理得到灰度图像;Perform grayscale processing on the corresponding bird's-eye view to obtain a grayscale image;

基于所述灰度图像的所述各个像素点为中心计算对应的中心亮度和环境亮度;Calculate the corresponding center brightness and ambient brightness based on the respective pixel points of the grayscale image as the center;

根据所述各个像素点的所述中心亮度和所述环境亮度的比值作为对应像素点的特征值。According to the ratio of the central brightness of each pixel to the ambient brightness, the feature value of the corresponding pixel is taken.

在一些实施例中,所述基于空地鸟瞰图各个像素点的空地特征值和所述实际特征值进行异常点识别处理,包括:In some embodiments, the process of identifying outliers based on the open space feature values of each pixel point of the open space bird's eye view and the actual feature value includes:

将相同位置的像素点的所述空地特征值和所述实际特征值进行比较,得到对应的比值;Comparing the open space feature value and the actual feature value of the pixel point at the same position to obtain a corresponding ratio;

若所述比值小于等于预设的比值阈值,则确定所述像素点为所述异常点,否则确定所述像素点为正常点。If the ratio is less than or equal to a preset ratio threshold, the pixel point is determined to be the abnormal point; otherwise, the pixel point is determined to be a normal point.

在一些实施例中,所述对所述二值图像中的异常点进行去噪处理,得到第一图像,包括:In some embodiments, the performing denoising processing on the abnormal points in the binary image to obtain the first image includes:

对所述二值图像进行第一像素尺寸的膨胀处理以得到第二图像;Dilation processing of the first pixel size is performed on the binary image to obtain a second image;

对所述第二图像进行第二像素尺寸的腐蚀处理以得到第三图像;Erosion processing of the second pixel size is performed on the second image to obtain a third image;

对所述第三图像进行第三像素尺寸的膨胀处理以得到第四图像;Dilation processing of a third pixel size is performed on the third image to obtain a fourth image;

对所述第四图像进行第四像素尺寸的腐蚀处理以得到第一图像;Erosion processing of a fourth pixel size is performed on the fourth image to obtain a first image;

其中,所述第一像素尺寸、所述第二像素尺寸、所述第三像素尺寸和所述第四像素尺寸的关系如下:所述第一像素尺寸与所述第三像素尺寸之和等于所述第二像素尺寸与所述第四像素尺寸之和,所述第一像素尺寸小于第二像素尺寸小于所述第三像素尺寸。The relationship between the first pixel size, the second pixel size, the third pixel size and the fourth pixel size is as follows: the sum of the first pixel size and the third pixel size is equal to the The sum of the second pixel size and the fourth pixel size, the first pixel size is smaller than the second pixel size is smaller than the third pixel size.

在一些实施例中,所述腐蚀处理包括:In some embodiments, the etching process includes:

将预设的结构元素的中心点依次与所述二值图像中各个异常点重合,判断所述结构元素中的全部像素点是否均为异常点;The center point of the preset structural element is sequentially overlapped with each abnormal point in the binary image, and it is judged whether all the pixel points in the structural element are abnormal points;

若所述全部像素点均为所述异常点,则保留所述中心点对应的像素点;If all the pixel points are the abnormal points, keep the pixel points corresponding to the center point;

否则,将所述中心点对应的像素点修改为正常点。Otherwise, modify the pixel point corresponding to the center point to a normal point.

第二方面,本申请实施例还提供一种障碍物轮廓判断装置,包括:In a second aspect, an embodiment of the present application further provides a device for judging an obstacle contour, including:

鸟瞰图获取模块,通过单目摄像头获取实际场景的实际图像,并对所述实际图像进行透视变换得到实际鸟瞰图;The bird's-eye view acquisition module obtains the actual image of the actual scene through the monocular camera, and performs perspective transformation on the actual image to obtain the actual bird's-eye view;

特征值计算模块,计算所述实际鸟瞰图中各个像素点的实际特征值;an eigenvalue calculation module, which calculates the actual eigenvalues of each pixel in the actual bird's-eye view;

异常点识别模块,基于空地鸟瞰图各个像素点的空地特征值和所述实际特征值进行异常点识别处理,得到包含有异常点的二值图像;The outlier identification module performs outlier identification processing based on the open space characteristic value of each pixel point of the open space bird's eye view and the actual characteristic value, and obtains a binary image containing outliers;

去噪处理模块,对所述二值图像中的异常点进行去噪处理,得到第一图像;a denoising processing module, which performs denoising processing on the abnormal points in the binary image to obtain a first image;

轮廓确定模块,对所述第一图像进行轮廓检测,确定所述实际场景中的障碍物的轮廓。The contour determination module performs contour detection on the first image to determine the contour of the obstacle in the actual scene.

第三方面,本申请实施例还提供一种终端设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序在所述处理器上运行时执行上述任一项障碍物轮廓检测方法。In a third aspect, an embodiment of the present application further provides a terminal device, including a memory and a processor, wherein the memory stores a computer program, and the computer program executes any of the above obstacle contour detection when running on the processor method.

第四方面,本申请实施例还提供一种可读存储介质,其存储有计算机程序,所述计算机程序在处理器上运行时执行上述任一项障碍物轮廓检测方法。In a fourth aspect, an embodiment of the present application further provides a readable storage medium, which stores a computer program, and the computer program executes any one of the above-mentioned obstacle contour detection methods when running on a processor.

本申请的实施例具有如下有益效果:The embodiments of the present application have the following beneficial effects:

本申请实施例提供一种障碍物轮廓检测方法、装置、终端设备和存储介质,通过单目摄像头获取实际场景的实际图像,并对所述实际图像进行透视变换得到实际鸟瞰图,计算实际鸟瞰图中各个像素点的实际特征值,基于空地鸟瞰图各个像素点的空地特征值和实际特征值进行异常点识别处理,得到包含有异常点的二值图像,对二值图像中的异常点进行去噪处理得到第一图像,对第一图像进行轮廓检测,确定实际场景中的障碍物的轮廓。本申请的检测方法一方面可以更加准确的对识别的障碍物的尺寸、外形特征等进行判定,另一方面通过异常点进行去噪处理可以去除光照对图像特征识别的影响,可以应用于大多的障碍物特征识别,避免了使用大量的算法训练和测试,从而可以降低生产成本和人工成本。Embodiments of the present application provide a method, device, terminal device, and storage medium for detecting an obstacle contour, obtaining an actual image of an actual scene through a monocular camera, performing perspective transformation on the actual image to obtain an actual bird's-eye view, and calculating the actual bird's-eye view. The actual eigenvalues of each pixel in the open-air bird's-eye view are used to identify and process outliers based on the open-space eigenvalues and actual eigenvalues of each pixel in the aerial view of the open space, and a binary image containing outliers is obtained. The first image is obtained by noise processing, and contour detection is performed on the first image to determine the contour of the obstacle in the actual scene. On the one hand, the detection method of the present application can more accurately determine the size and shape features of the identified obstacles, and on the other hand, the denoising process of abnormal points can remove the influence of illumination on image feature recognition, and can be applied to most Obstacle feature recognition avoids the use of a large number of algorithm training and testing, which can reduce production costs and labor costs.

附图说明Description of drawings

为了更清楚地说明本发明的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对本发明保护范围的限定。在各个附图中,类似的构成部分采用类似的编号。In order to illustrate the technical solutions of the present invention more clearly, the accompanying drawings required in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention, and therefore should not be It is regarded as the limitation of the protection scope of the present invention. In the various figures, similar components are numbered similarly.

图1示出了本申请实施例提出的一种障碍物轮廓检测方法的流程示意图;FIG. 1 shows a schematic flowchart of an obstacle contour detection method proposed by an embodiment of the present application;

图2示出了本申请实施例提出的一种障碍物轮廓检测方法中生成空地鸟瞰图的流程示意图;2 shows a schematic flowchart of generating a bird's-eye view of an open space in an obstacle contour detection method proposed by an embodiment of the present application;

图3示出了本申请实施例提出的一种障碍物轮廓检测方法中计算特征值的流程示意图;FIG. 3 shows a schematic flowchart of calculating feature values in an obstacle contour detection method proposed by an embodiment of the present application;

图4示出了本申请实施例提出的一种障碍物轮廓检测方法中异常点识别处理的流程示意图;FIG. 4 shows a schematic flowchart of abnormal point identification processing in an obstacle contour detection method proposed by an embodiment of the present application;

图5示出了本申请实施例提出的一种障碍物轮廓检测方法中腐蚀处理的流程示意图;FIG. 5 shows a schematic flowchart of corrosion processing in an obstacle contour detection method proposed by an embodiment of the present application;

图6示出了本申请实施例提出的一种障碍物轮廓检测方法中障碍物轮廓确定的流程示意图;FIG. 6 shows a schematic flowchart of an obstacle contour determination in an obstacle contour detection method proposed by an embodiment of the present application;

图7示出了本申请实施例提出的一种障碍物轮廓检测方法中障碍物的示意图;FIG. 7 shows a schematic diagram of an obstacle in an obstacle contour detection method proposed by an embodiment of the present application;

图8示出了本申请实施例提供的一种障碍物轮廓判断装置的结构示意图。FIG. 8 shows a schematic structural diagram of an obstacle contour determination device provided by an embodiment of the present application.

主要元件符号说明:Description of main component symbols:

10-障碍物轮廓判断装置;11-鸟瞰图获取模块;12-特征值计算模块;13-异常点识别模块;14-去噪处理模块;15-轮廓确定模块。10-obstacle outline judgment device; 11-bird's-eye view acquisition module; 12-eigenvalue calculation module; 13-abnormal point identification module; 14-denoising processing module; 15-contour determination module.

具体实施方式Detailed ways

下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments.

通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The components of the embodiments of the invention generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Thus, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but is merely representative of selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present invention.

在下文中,可在本发明的各种实施例中使用的术语“包括”、“具有”及其同源词仅意在表示特定特征、数字、步骤、操作、元件、组件或前述项的组合,并且不应被理解为首先排除一个或更多个其它特征、数字、步骤、操作、元件、组件或前述项的组合的存在或增加一个或更多个特征、数字、步骤、操作、元件、组件或前述项的组合的可能性。Hereinafter, the terms "comprising", "having" and their cognates, which may be used in various embodiments of the present invention, are only intended to denote particular features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the presence of or adding one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing or the possibility of a combination of the foregoing.

此外,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。Furthermore, the terms "first", "second", "third", etc. are only used to differentiate the description and should not be construed as indicating or implying relative importance.

除非另有限定,否则在这里使用的所有术语(包括技术术语和科学术语)具有与本发明的各种实施例所属领域普通技术人员通常理解的含义相同的含义。所述术语(诸如在一般使用的词典中限定的术语)将被解释为具有与在相关技术领域中的语境含义相同的含义并且将不被解释为具有理想化的含义或过于正式的含义,除非在本发明的各种实施例中被清楚地限定。Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of this invention belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having the same meaning as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized or overly formal meaning, unless explicitly defined in the various embodiments of the present invention.

实施例1Example 1

本申请的一个实施例,如图1所示,本申请提供的一种单目摄像头障碍物轮廓检测方法,包括步骤S110~S150:An embodiment of the present application, as shown in FIG. 1 , provides a method for detecting the contour of an obstacle with a monocular camera, including steps S110-S150:

S110:通过单目摄像头获取实际场景的实际图像,并对所述实际图像进行透视变换得到实际鸟瞰图。S110: Acquire an actual image of the actual scene through a monocular camera, and perform perspective transformation on the actual image to obtain an actual bird's-eye view.

本实施例中,将通过按照物体成像投影规律进行变换,将物体重新投影到新的成像平面,换言之,对单目摄像头视角获得的照片进行透视变换得到空地场景的俯视平面图,即鸟瞰图,以便于以统一的基准对目标特征进行检测,从而实现对障碍物的检测。In this embodiment, the object is re-projected to a new imaging plane by transforming according to the imaging projection law of the object. In other words, the perspective transformation is performed on the photo obtained from the perspective of the monocular camera to obtain the top plan view of the open space scene, that is, the bird's-eye view, so as to It is used to detect the target features with a unified benchmark, so as to realize the detection of obstacles.

其中,如图2所示,在步骤S100之前还包括步骤S210~S250:Wherein, as shown in FIG. 2 , steps S210 to S250 are further included before step S100:

S210:通过单目摄像头获取空地场景的空地图像,并测量所述空地场景的实际尺寸以确定所述空地场景的长宽比例。S210: Acquire an open space image of the open space scene by using a monocular camera, and measure the actual size of the open space scene to determine the aspect ratio of the open space scene.

在本实施例中,通过单目摄像头获取空地场景的空地图像,并测量空地场景的实际尺寸,通过测量空地场景的实际尺寸确定其实际场地的长宽比例。In this embodiment, the open space image of the open space scene is obtained through a monocular camera, the actual size of the open space scene is measured, and the length-width ratio of the actual site is determined by measuring the actual size of the open space scene.

S220:基于所述长宽比例和待生成的所述空地场景的空地鸟瞰图的分辨率确定空地坐标。S220: Determine the coordinates of the open space based on the aspect ratio and the resolution of the open space bird's-eye view of the open space scene to be generated.

通过空地场景的长宽比例和待生成的空地鸟瞰图的最大分辨率,可以计算空地场景在最大分辨率时的长度和宽度,从而可以确定空地场景对应的空地坐标。According to the aspect ratio of the open space scene and the maximum resolution of the open space aerial view to be generated, the length and width of the open space scene at the maximum resolution can be calculated, so that the open space coordinates corresponding to the open space scene can be determined.

示范性的,若测量得到空地场景的实际长宽比例为m:n,获得待生成的空地鸟瞰图最大分辨率的长度为L,宽度为W,可以计算空场地在最大分辨率时的长度L’和宽度W’。通过实际长宽比例m:n和空地图像的长度L和宽度W可以确定空地场景透视变换后获得的空地坐标,上述空地坐标包括:(0,0),(0,L’),(W’,0),(W’,L’)。其中,当W*m/n<L时,则得到长度L’和宽度W’分别为L’=W*m/n,W’=W;否则,得到长度L’和宽度W’分别为L’=L,W’=L*n/m。Exemplarily, if the actual length-to-width ratio of the open space scene is m:n by measurement, and the length L and the width of the bird's-eye view of the open space to be generated at the maximum resolution are obtained as L and the width as W, the length L of the open space at the maximum resolution can be calculated. ' and width W'. The open space coordinates obtained after the perspective transformation of the open space scene can be determined by the actual aspect ratio m:n and the length L and width W of the open space image. The above open space coordinates include: (0, 0), (0, L'), (W' , 0), (W', L'). Wherein, when W*m/n<L, the length L' and width W' are obtained as L'=W*m/n, W'=W; otherwise, the length L' and width W' are obtained as L respectively '=L, W'=L*n/m.

在本实施例中,通过单目摄像头获取图像的成本更低,且在进行实际使用时,并不需要大量场景进行算法训练和测试,可以降低工作人员的工作量。In this embodiment, the cost of acquiring images through the monocular camera is lower, and in actual use, algorithm training and testing in a large number of scenarios are not required, which can reduce the workload of the staff.

S230:在所述空地场景的边界处设置角点,并确定所述角点在空地图像中对应的角点坐标。S230: Set a corner point at the boundary of the open space scene, and determine the corner point coordinates corresponding to the corner point in the open space image.

可以理解,角点为极值点,即在图像中某些方面属性特别突出的点。在本实施例中,可以在空地场景的边界处设置多个角点,也可以以两条线的交叉处为角点,还可以以位于相邻的两个主要方向不同的事物上的点为角点。通过预设的检测算法可以确定在空地图像中对应的角点的坐标,其中,上述检测算法包括但不限于Harris角点算法、Shi-Tomas角点算法等检测算法。It can be understood that the corner points are extreme points, that is, points with particularly prominent properties in some aspects of the image. In this embodiment, multiple corner points may be set at the boundary of the open space scene, or the intersection of two lines may be used as the corner point, or the point located on two adjacent things with different main directions may be used as the corner point. corner. The coordinates of the corresponding corner points in the open-air image can be determined through a preset detection algorithm, wherein the above detection algorithms include but are not limited to detection algorithms such as Harris corner algorithm and Shi-Tomas corner algorithm.

示范性的,可以在空地场景的边界处设置至少四个角点,如在边界处放置尺寸为2cm*2cm的纯黑块,则该纯黑块可以为图像中的角点。通过Harris角点算法自动识别到四个角点坐标分别为(x1,y1),(x2,y1),(x1,y2),(x2,y2),其中x表示长度方向,y表示宽度方向。Exemplarily, at least four corner points may be set at the boundary of the open space scene. For example, if a pure black block with a size of 2cm*2cm is placed at the boundary, the pure black block may be a corner point in the image. The coordinates of the four corner points are automatically identified by the Harris corner point algorithm as (x1, y1), (x2, y1), (x1, y2), (x2, y2), where x represents the length direction and y represents the width direction.

S240:基于所述角点坐标和所述空地坐标计算透视变换矩阵的参数,以确定所述透视变换矩阵。S240: Calculate parameters of a perspective transformation matrix based on the corner coordinates and the open space coordinates to determine the perspective transformation matrix.

透视变换是将二维的图片投影到一个三维视平面上,然后再转换到二维坐标下,也称为投影映射。Perspective transformation is to project a two-dimensional picture onto a three-dimensional view plane, and then convert it to two-dimensional coordinates, also known as projection mapping.

具体地,透视变换矩阵如下:Specifically, the perspective transformation matrix is as follows:

Figure BDA0003644608450000091
Figure BDA0003644608450000091

其中,X、Y和Z代表透视变换后的三维坐标,x和y代表透视变换前的二维坐标。通过上述透视变换矩阵公式可以得到:Among them, X, Y and Z represent the three-dimensional coordinates after perspective transformation, and x and y represent the two-dimensional coordinates before perspective transformation. Through the above perspective transformation matrix formula, we can get:

Figure BDA0003644608450000092
Figure BDA0003644608450000092

因为(X,Y,Z)为三维坐标,因此需要将获得的三维坐标转换到二维坐标(x’,y’,1)中,从而得到如下公式:Because (X, Y, Z) are three-dimensional coordinates, it is necessary to convert the obtained three-dimensional coordinates into two-dimensional coordinates (x', y', 1), so as to obtain the following formula:

Figure BDA0003644608450000093
Figure BDA0003644608450000093

因此,x’和y’是二维透视变换的最终计算结果,其中c3=1。将上述空场地坐标和角坐标作为透视变换前后的坐标点带入上述公式,即将(0,0),(0,L’),(W’,0),(W’,L’)和(x1,y1),(x2,y1),(x1,y2),(x2,y2)作为4组(x,y),(x’,y’)带入上述公式,计算得到透视变换矩阵的参数a1,a2,a3,b1,b2,b3和c1。Therefore, x' and y' are the final calculation results of the two-dimensional perspective transformation, where c3=1. Take the above empty field coordinates and corner coordinates as the coordinate points before and after perspective transformation into the above formula, namely (0, 0), (0, L'), (W', 0), (W', L') and ( x1, y1), (x2, y1), (x1, y2), (x2, y2) are brought into the above formula as 4 groups (x, y), (x', y'), and the parameters of the perspective transformation matrix are calculated. a1, a2, a3, b1, b2, b3 and c1.

S250:通过所述透视变换矩阵对所述空地图像进行透视变换,得到所述空地场景的空地鸟瞰图。S250: Perform perspective transformation on the open space image by using the perspective transformation matrix to obtain an open space bird's-eye view of the open space scene.

通过上述透视变换公式,可以将通过单目摄像头获取到的图像的任何一点(x,y)带入,计算得到透视变换后的坐标点(x’,y’)。换言之,将采集到的空地图像通过上述透视变换矩阵进行透视变换得到空地场景的空地鸟瞰图。Through the above perspective transformation formula, any point (x, y) of the image obtained by the monocular camera can be brought in, and the coordinate point (x', y') after perspective transformation can be calculated. In other words, the collected image of the open space is subjected to perspective transformation through the above perspective transformation matrix to obtain a bird's-eye view of the open space of the open space scene.

通过按照物体成像投影规律进行变换,将物体重新投影到新的成像平面,换言之,对单目摄像头视角获得的照片进行透视变换得到空地场景的俯视平面图,即鸟瞰图,以便于以统一的基准对目标特征进行检测,即对障碍物进行检测。By transforming according to the imaging projection law of the object, the object is re-projected to a new imaging plane. In other words, the perspective transformation of the photo obtained from the perspective of the monocular camera is performed to obtain the top plan view of the open space scene, that is, the bird's-eye view, so as to use a unified reference to compare The target feature is detected, that is, the obstacle is detected.

对于上述步骤S110,示范性地,在获取空地场景的空地图像后,保持单目摄像头的安装位置不变,通过该单目摄像头获取实际场景的实际图像,并通过上述的透视变换矩阵对实际图像进行透视变换处理,得到实际场景的俯视平面图,即实际鸟瞰图。For the above step S110, exemplarily, after obtaining the open space image of the open space scene, keep the installation position of the monocular camera unchanged, obtain the actual image of the actual scene through the monocular camera, and use the above perspective transformation matrix to transform the actual image. Perspective transformation processing is performed to obtain the top plan view of the actual scene, that is, the actual bird's-eye view.

S120:计算所述实际鸟瞰图中各个像素点的实际特征值。S120: Calculate the actual feature value of each pixel in the actual bird's-eye view.

可以理解,在获取实际鸟瞰图后,通过计算确定实际场景对应的实际鸟瞰图中各个像素点的实际特征值。其中,上述实际特征值和空地场景对应的空地鸟瞰图的各个像素点的空地特征值均可以采用相同的计算方式计算。其中,如图3所示,实际场景和空地场景的相应鸟瞰图中各个像素点的特征值均可以通过以下子步骤计算:It can be understood that, after obtaining the actual bird's-eye view, the actual feature values of each pixel in the actual bird's-eye view corresponding to the actual scene are determined by calculation. The above-mentioned actual feature values and the open space characteristic values of each pixel of the open space bird's-eye view corresponding to the open space scene can be calculated by the same calculation method. Among them, as shown in Figure 3, the eigenvalues of each pixel in the corresponding bird's-eye view of the actual scene and the open space scene can be calculated by the following sub-steps:

子步骤S121:对相应鸟瞰图进行灰度处理得到灰度图像。Sub-step S121: Perform grayscale processing on the corresponding bird's-eye view to obtain a grayscale image.

可以理解的是,在经过透视变换后得到空地场景和实际场景对应的鸟瞰图,将鸟瞰图经过灰度处理转换为灰度图像,其中,灰度图像中各个像素点对应的灰度值的取值范围为0-255,对相应的鸟瞰图进行灰度化处理的方法包括:分量法、最大值法、平均值法和加权平均法。It can be understood that after the perspective transformation, the bird's-eye view corresponding to the open space scene and the actual scene is obtained, and the bird's-eye view is converted into a grayscale image through grayscale processing. The value ranges from 0 to 255, and the grayscale processing methods for the corresponding bird's-eye view include: component method, maximum value method, average method and weighted average method.

子步骤S122:基于所述灰度图像的所述各个像素点为中心计算对应的中心亮度和环境亮度。Sub-step S122: Calculate the corresponding center brightness and ambient brightness based on the pixels of the grayscale image as the center.

在得到灰度图像后,以灰度图像中的各个像素点为中心,取该像素点周围第一范围的像素点作为该像素点的核心区域,并计算每个像素点的核心区域的平均亮度为该像素点的中心亮度,即以该像素点为核心,取其核心区域内所有像素点的灰度值的平均值。取周围第二范围的像素点作为该像素点的环境区域,并计算每个像素点的环境区域的平均亮度为该像素点的环境亮度,即计算每个像素点周围环境区域内所有灰度值的平均值。其中,第一范围的像素点小于第二范围的像素点。After obtaining the grayscale image, take each pixel in the grayscale image as the center, take the pixels in the first range around the pixel as the core area of the pixel, and calculate the average brightness of the core area of each pixel is the central brightness of the pixel, that is, the pixel is taken as the core, and the average value of the gray values of all the pixels in the core area is taken. Take the surrounding second range of pixels as the environmental area of the pixel, and calculate the average brightness of the environmental area of each pixel as the environmental brightness of the pixel, that is, calculate all the gray values in the environmental area around each pixel average of. Wherein, the pixel points of the first range are smaller than the pixel points of the second range.

示范性的,当像素点(30,30)为核心点,核心区域的范围值为3*3时,则该像素点的中心亮度为像素点(29,29),(29,30),(29,31),(30,29),(30,30),(30,31),(31,29),(31,30),(31,31)一共9个点的图像灰度值的平均值。环境区域的范围值为9*9时,则计算周围环境区域内一共81个像素点的灰度值的平均值为该像素点的环境亮度。Exemplarily, when the pixel point (30, 30) is the core point and the range value of the core area is 3*3, then the central brightness of the pixel point is the pixel point (29, 29), (29, 30), ( 29, 31), (30, 29), (30, 30), (30, 31), (31, 29), (31, 30), (31, 31) a total of 9 points of image gray value average value. When the range value of the environment area is 9*9, the average value of the gray values of a total of 81 pixels in the surrounding environment area is calculated as the ambient brightness of the pixel.

子步骤S123:根据所述各个像素点的所述中心亮度和所述环境亮度的比值作为对应像素点的特征值。Sub-step S123: Use the ratio of the central brightness of each pixel to the ambient brightness as the feature value of the corresponding pixel.

在得到各个像素点的中心亮度和环境亮度后,计算每个像素点对应的中心亮度和环境亮度的比值作为每个像素点的特征值。其中,灰度图像中特征值的数量等于图像中像素点的数量。在计算得到空地场景对应的空地鸟瞰图中各个像素点对应的空地特征值后,可以将各个像素点的空地特征值预先存储至内存中。通过各个像素点的中心亮度与环境亮度进行比较后,可以去除光照环境变化对障碍物识别的干扰。After the central brightness and ambient brightness of each pixel are obtained, the ratio of the central brightness and ambient brightness corresponding to each pixel is calculated as the feature value of each pixel. Among them, the number of feature values in the grayscale image is equal to the number of pixels in the image. After calculating the open space feature values corresponding to each pixel point in the open space bird's eye view corresponding to the open space scene, the open space characteristic value of each pixel point may be stored in the memory in advance. By comparing the central brightness of each pixel with the ambient brightness, the interference of the illumination environment change on the obstacle recognition can be removed.

S130:基于空地鸟瞰图各个像素点的空地特征值和所述实际特征值进行异常点识别处理,得到包含有异常点的二值图像。S130: Perform outlier identification processing based on the open space feature values of each pixel point of the open space bird's eye view and the actual feature value, to obtain a binary image including outliers.

可以理解,当实际场景中不存在障碍物时,即使整体光照亮度发生变化,但各个像素点的核心区域和周围的环境区域亮度的比值不会发生明显变化。当实际场景中存在障碍物时,会导致核心区域和环境区域的特征发生变化,障碍物内的各个像素点和周围环境的亮度比值发生明显变化。通过空地鸟瞰图中各个像素点的空地特征值和实际鸟瞰图中各个像素点的实际特征值进行比较,可以确定实际鸟瞰图中的异常点,即场地上存在障碍物时的像素点。如图4所示,步骤S130包括以下子步骤:It can be understood that when there is no obstacle in the actual scene, even if the overall illumination brightness changes, the ratio of the brightness between the core area of each pixel and the surrounding environment area will not change significantly. When there are obstacles in the actual scene, the characteristics of the core area and the environment area will change, and the brightness ratio of each pixel in the obstacle and the surrounding environment will change significantly. By comparing the eigenvalues of each pixel in the aerial view of the open space with the actual eigenvalues of each pixel in the actual aerial view, the abnormal points in the actual aerial view, that is, the pixels when there are obstacles on the site, can be determined. As shown in Figure 4, step S130 includes the following sub-steps:

子步骤S131:将相同位置的像素点的所述空地特征值和所述实际特征值进行比较,得到对应的比值。Sub-step S131: Compare the open space feature value and the actual feature value of the pixel points at the same position to obtain a corresponding ratio.

在空地场景和实际场景中对应的鸟瞰图中像素点的数量相同,且空地鸟瞰图中各个像素点与实际鸟瞰图中各个像素点的位置一一对应。将各个像素点在实际鸟瞰图中对应的实际特征值与在空地鸟瞰图中对应的空地特征值进行比较,可以得到各个像素点对应的特征值的比值。The number of pixels in the corresponding bird's-eye view in the open-space scene and the actual scene is the same, and each pixel in the open-space bird's-eye view corresponds to the position of each pixel in the actual bird's eye view one-to-one. By comparing the actual feature values of each pixel in the actual bird's-eye view with the corresponding open-space feature values in the open-space bird's-eye view, the ratio of the feature values corresponding to each pixel can be obtained.

子步骤S132:判断所述比值是否小于等于预设的比值阈值。Sub-step S132: Determine whether the ratio is less than or equal to a preset ratio threshold.

根据实际情况预先设置的比值阈值,判断上述各个像素点对应的比值是否小于等于预设的比值阈值,若像素点计算得到的比值小于等于预设的比值阈值,则执行子步骤S133,否则执行子步骤S134。According to the preset ratio threshold according to the actual situation, it is judged whether the ratio corresponding to each pixel point is less than or equal to the preset ratio threshold, if the ratio calculated by the pixel point is less than or equal to the preset ratio threshold, then execute sub-step S133, otherwise, execute sub-step S133 Step S134.

子步骤S133:确定所述像素点为所述异常点。Sub-step S133: Determine the pixel point as the abnormal point.

子步骤S134:确定所述像素点为正常点。Sub-step S134: Determine that the pixel point is a normal point.

若像素点计算得到的比值大于预设的比值阈值,则认为该像素点匹配,即该像素点为正常点。若像素点的特征值小于等于预设的比值阈值,则确定该像素点不匹配,将标记该像素点为异常点。例如,当预设的比值阈值为80%时,计算某一像素点的实际特征值与空地特征值的比值为70%,此时比值小于比值阈值,则确定该像素点为异常点。If the ratio calculated by the pixel point is greater than the preset ratio threshold, it is considered that the pixel point matches, that is, the pixel point is a normal point. If the feature value of the pixel is less than or equal to the preset ratio threshold, it is determined that the pixel does not match, and the pixel is marked as an abnormal point. For example, when the preset ratio threshold is 80%, the ratio of the actual feature value of a certain pixel to the feature value of the open space is calculated to be 70%. At this time, the ratio is less than the ratio threshold, and the pixel is determined to be an abnormal point.

在确定上述实际鸟瞰图中每个像素点是否为异常点后,即将图像中各个异常点进行标记后,可以得到包含有异常点二值图像。例如,每个像素点的标记结果可以用0和1表示,对所述实际鸟瞰图进行标记得到包含异常点的二值图像,可以将该二值图像进行存储。其中,1代表异常点,0代表正常点,此时用黑色表示0,白色表示1。After determining whether each pixel in the above-mentioned actual bird's-eye view is an abnormal point, that is, after marking each abnormal point in the image, a binary image containing abnormal points can be obtained. For example, the labeling result of each pixel point can be represented by 0 and 1, and the actual bird's-eye view is marked to obtain a binary image containing abnormal points, and the binary image can be stored. Among them, 1 represents abnormal points, 0 represents normal points, at this time, black represents 0, and white represents 1.

S140:对所述二值图像中的异常点进行去噪处理,得到第一图像。S140: Perform denoising processing on abnormal points in the binary image to obtain a first image.

可以理解,在得到二值图像后,每个像素点对应的判定结果为正常点或为异常点。当在实际场景中存在障碍物时,可以识别出显著的异常点,即中心亮度和环境亮度发生明显变化的像素点,但因为二值图像本身存在噪声,则将会出现大量离散的异常点,这些异常点需要进一步筛选,才能判定是否为障碍物对应的像素点。则再本实施例中将对上述二值图像中的标记为异常点的像素点进行去噪处理,即进行膨胀处理和腐蚀处理,以得到第一图像。其中,对上述二值图像中的异常点通过以下方式进行去噪处理:It can be understood that after the binary image is obtained, the determination result corresponding to each pixel point is a normal point or an abnormal point. When there are obstacles in the actual scene, significant abnormal points can be identified, that is, the pixels whose center brightness and ambient brightness change significantly, but because of the noise in the binary image itself, there will be a large number of discrete abnormal points. These abnormal points need to be further screened to determine whether they are pixels corresponding to obstacles. Then, in this embodiment, the pixel points marked as abnormal points in the binary image are subjected to denoising processing, that is, dilation processing and erosion processing, to obtain the first image. Among them, the abnormal points in the above binary image are denoised by the following methods:

首选对二值图像进行第一像素尺寸的膨胀处理得到第二图像,可以扩大图像的连通区域,可以防止噪声将实际障碍物淹没;再对第二图像进行第二像素尺寸的腐蚀处理得到第三图像,可以清除第二图像中的部分像素点,去除掉部分干扰噪声;然后对第三图像进行第三像素尺寸的膨胀处理得到第四图像,可以再次扩大第三图像中的连通区域;最后对第四图像进行第四像素尺寸的腐蚀处理得到第一图像,可以恢复二值图像特征点,避免腐蚀处理和膨胀处理将特征点尺寸改变。其中,上述各个像素尺寸之间的关系如下:第一像素尺寸与第三像素尺寸之和等于第二像素尺寸与第四像素尺寸之和,第一像素尺寸小于第二像素尺寸小于第三像素尺寸。It is preferred to perform the expansion processing of the first pixel size on the binary image to obtain the second image, which can expand the connected area of the image and prevent the noise from submerging the actual obstacles; and then perform the corrosion processing on the second image with the second pixel size to obtain the third image. image, some pixels in the second image can be removed, and some interference noises can be removed; then the third image can be expanded by the third pixel size to obtain a fourth image, and the connected areas in the third image can be expanded again; The fourth image is subjected to corrosion processing with a fourth pixel size to obtain the first image, which can restore the feature points of the binary image, and avoid the feature point size being changed by the corrosion processing and the expansion processing. The relationship between the above pixel sizes is as follows: the sum of the first pixel size and the third pixel size is equal to the sum of the second pixel size and the fourth pixel size, and the first pixel size is smaller than the second pixel size and smaller than the third pixel size .

示范性的,当第一像素尺寸为n1,第二像素尺寸为m1,第三像素尺寸为n2,第四像素尺寸为m2时,m1>n1,n2>m1,m2=n1+n2-m1,即n1+n2=m2+m2。Exemplarily, when the first pixel size is n1, the second pixel size is m1, the third pixel size is n2, and the fourth pixel size is m2, m1>n1, n2>m1, m2=n1+n2−m1, That is, n1+n2=m2+m2.

在本实施例中,膨胀处理和腐蚀处理的尺寸相同,通过上述四步去噪处理,不仅可以去除噪声干扰,还可以保留二值图像的尺寸特征。In this embodiment, the size of the expansion processing and the erosion processing are the same. Through the above-mentioned four-step denoising processing, not only the noise interference can be removed, but also the size characteristics of the binary image can be preserved.

其中,如图5所示,图像腐蚀处理包括以下子步骤:Among them, as shown in Figure 5, the image erosion processing includes the following sub-steps:

子步骤S141:将预设的结构元素的中心点依次与所述二值图像中各个异常点重合。Sub-step S141: The center point of the preset structural element is sequentially overlapped with each abnormal point in the binary image.

在本实施例中,首先定义用于腐蚀操作的模板矩阵,换言之,预先设置用于腐蚀处理的结构元素为第一结构元素,即用于控制运算的结构,将该第一结构元素的中心点依次放置于上述二值图像中被标记为异常点的各个像素点中。In this embodiment, a template matrix for the etching operation is first defined, in other words, the structural element used for the etching process is preset as the first structural element, that is, the structure used for the control operation, the center point of the first structural element is They are placed in each pixel in the above binary image marked as outliers in sequence.

子步骤S142:判断所述结构元素中的全部像素点是否均为异常点。Sub-step S142: Determine whether all the pixels in the structural element are abnormal points.

若全部像素点均为异常点,则保留中心点对应的像素点。否则,则执行步骤S143。If all the pixels are abnormal points, the pixels corresponding to the center point are retained. Otherwise, step S143 is executed.

子步骤S143:若所述结构元素中的全部像素点不全为异常点,将所述中心点对应的像素点修改为正常点。Sub-step S143: If all the pixels in the structural element are not all abnormal points, modify the pixels corresponding to the center point to normal points.

判断该第一结构元素中所包括的全部像素点是都均为异常点,若上述第一结构元素内所有元素覆盖的图像像素点均为异常点,则保留第一结构元素中心点对应的像素点,否则删除第一结构元素中心点对应的像素点,即将该中心点对应的像素点由异常点修改为正常点。通过将第一结构元素的中心点依次与二值图像的每个像素点重合,从而判断是否有需要删除的像素点,可以将图像中的主要区域缩小,从而去除由噪声引起的较小的连通域。It is judged that all the pixels included in the first structural element are abnormal points. If the image pixels covered by all the elements in the first structural element are abnormal points, the pixels corresponding to the center point of the first structural element are reserved. Otherwise, delete the pixel point corresponding to the center point of the first structural element, that is, modify the pixel point corresponding to the center point from an abnormal point to a normal point. By sequentially overlapping the center point of the first structural element with each pixel point of the binary image, it is determined whether there is a pixel point that needs to be deleted, the main area in the image can be reduced, and the small connectivity caused by noise can be removed. area.

示范性的,每个像素点的判定结果用0和1表示,0表示正常点,1表示异常点。可以定义第一结构元素的尺寸为3*3像素,形状为矩形结构,将该3*3像素的第一结构元素的中心点依次放到二值图像中的每一个元素为1的像素点中。若此时第一结构元素内所有元素覆盖的像素点的结果均为1,则保留第一结构元素中心点对应的像素点,即保持该像素点的判定结果标记为1;否则将该中心点对应的像素点的判定结果由1修改为0。Exemplarily, the determination result of each pixel is represented by 0 and 1, where 0 represents a normal point and 1 represents an abnormal point. It can be defined that the size of the first structural element is 3*3 pixels and the shape is a rectangular structure, and the center point of the first structural element of 3*3 pixels is sequentially placed in the pixel point where each element is 1 in the binary image. . If the result of the pixels covered by all elements in the first structural element is 1 at this time, the pixel corresponding to the center point of the first structural element is reserved, that is, the determination result of the pixel is kept as 1; otherwise, the center point is reserved. The judgment result of the corresponding pixel is changed from 1 to 0.

图像膨胀处理包括以下步骤:The image dilation process includes the following steps:

首先定义用于膨胀操作的模板矩阵,换言之,预先设置用于膨胀处理的结构元素为第二结构元素,即用于控制运算的结构。例如,可以定义第二结构元素的尺寸为3*3像素,形状为矩形结构。将第二结构元素的中心点依次与二值图像的每一个标记为异常点的像素点重合,判断所有被第二结构元素覆盖的像素点是否均为异常点,若其中存在正常点,则将正常点修改为异常点,从而完成膨胀动作。通过上述膨胀处理,可以扩充每一个区域的面积,从而填充由噪声引起的空洞。First, a template matrix for dilation operation is defined, in other words, the structural element used for dilation processing is preset as the second structural element, that is, the structure used for control operation. For example, the size of the second structural element can be defined as 3*3 pixels, and the shape is a rectangular structure. The center point of the second structural element is coincident with each pixel point marked as an abnormal point in the binary image in turn, and it is judged whether all the pixel points covered by the second structural element are abnormal points. The normal point is modified into an abnormal point to complete the expansion action. Through the above-described expansion processing, the area of each region can be expanded, thereby filling the voids caused by noise.

S150:对所述第一图像进行轮廓检测,确定所述实际场景中的障碍物的轮廓。S150: Perform contour detection on the first image to determine the contour of the obstacle in the actual scene.

在得到包括多个连通区域的第一图像后,通过轮廓检测处理可以识别出各个连通区域的形状特征。其中,图像轮廓指的是图像的边界,即目标图像的外部特征。如图6所示,步骤S150包括以下子步骤:After the first image including a plurality of connected regions is obtained, the shape features of each connected region can be identified through the contour detection process. Among them, the image contour refers to the boundary of the image, that is, the external features of the target image. As shown in Figure 6, step S150 includes the following sub-steps:

子步骤S151:基于预设算法提取所述第一图像中的至少一个轮廓。Sub-step S151: Extract at least one contour in the first image based on a preset algorithm.

在本实施例中,通过预设的算法从上述去噪处理后的第一图像中获取图像轮廓,其中,预设的算法可以为Satoshi Suzuki算法,每个图像可能存在多个轮廓,每个轮廓为多个点构成。In this embodiment, the image contour is obtained from the first image after denoising processing by a preset algorithm, wherein the preset algorithm may be the Satoshi Suzuki algorithm, and each image may have multiple contours, and each contour may have multiple contours. composed of multiple points.

子步骤S152:计算各个所述轮廓的中心点和最小斜矩形的边长度和面积。Sub-step S152: Calculate the center point of each of the contours and the side length and area of the smallest oblique rectangle.

可以理解的是,确定上述各个轮廓对应的中心点和最小斜矩形,通过Python、OpenCV等可以计算各个轮廓对应的最小斜矩形的边长和面积。如图7所示,图中灰色部分为疑似障碍物,首先确定障碍物最小轮廓尺寸,换言之,首先确定障碍物的最小分辨率,如图7中方框部分,方框内为识别到4个障碍物时的效果,各个轮廓的中心点为图中方框内白点标记处。其中,各个轮廓的中心点坐标和像素尺寸按比例可以转换为实际尺寸大小。It can be understood that the center point and the smallest oblique rectangle corresponding to each of the above contours are determined, and the side length and area of the smallest oblique rectangle corresponding to each contour can be calculated through Python, OpenCV, etc. As shown in Figure 7, the gray part in the figure is a suspected obstacle. First, determine the minimum outline size of the obstacle. In other words, first determine the minimum resolution of the obstacle, as shown in the box in Figure 7, in which 4 obstacles have been identified. The center point of each outline is the white point mark in the box in the figure. Among them, the coordinates of the center point and the pixel size of each contour can be converted to the actual size in proportion.

子步骤S153:判断当前轮廓的所述中心点是否在所述第一图像的边界处。Sub-step S153: Determine whether the center point of the current contour is at the boundary of the first image.

判断每个轮廓的中心点是否在第一图像的边界处,若当前轮廓的中心点不在所述第一图像的边界处,则执行子步骤S154,否则,将执行子步骤S156,保留当前轮廓作为存疑轮廓,用于与相邻单目摄像头获取的边界图像进行合并。Determine whether the center point of each contour is at the border of the first image, if the center point of the current contour is not at the border of the first image, then execute sub-step S154, otherwise, execute sub-step S156, keep the current contour as Suspicious contours are used to merge with boundary images acquired by adjacent monocular cameras.

S154:检测所述边长是否小于预设的边长阈值,以及所述面积是否小于预设的面积阈值。S154: Detect whether the side length is less than a preset side length threshold, and whether the area is less than a preset area threshold.

若所述边长小于所述边长阈值且所述面积小于所述面积阈值,则执行子步骤S155,否则执行子步骤S156。If the side length is less than the side length threshold and the area is less than the area threshold, execute sub-step S155, otherwise execute sub-step S156.

子步骤S155:确定所述当前轮廓为干扰轮廓并丢弃。Sub-step S155: determine that the current contour is an interference contour and discard it.

子步骤S156:保留所述当前轮廓。Sub-step S156: Retain the current contour.

若当前轮廓的边长小于预设的边长阈值且面积小于预设的面积阈值,则确定当前轮廓为干扰轮廓,将丢弃该轮廓。否则,则确定该轮廓可以比较准确的体现障碍物的特征,即为障碍物轮廓。If the side length of the current contour is less than the preset side length threshold and the area is less than the preset area threshold, it is determined that the current contour is an interference contour, and the contour is discarded. Otherwise, it is determined that the contour can reflect the characteristics of the obstacle more accurately, that is, the contour of the obstacle.

示范性的,预设的边长阈值尺寸为5像素,预设的面积阈值尺寸为30像素,若当前轮廓对应的各边长尺寸小于5像素且面积小于30像素时,则认为该当前轮廓为干扰轮廓。Exemplarily, the preset side length threshold size is 5 pixels, and the preset area threshold size is 30 pixels. If the size of each side corresponding to the current contour is less than 5 pixels and the area is less than 30 pixels, it is considered that the current contour is Interfere with contours.

子步骤S157:将保留的轮廓作为障碍物的轮廓。Sub-step S157: take the remaining contour as the contour of the obstacle.

将上述保留的各个轮廓并输出,输出的轮廓可以比较准确的体现障碍物的特征,即可以将上述保留的轮廓作为障碍物的轮廓。The above-mentioned reserved contours are outputted, and the outputted contour can more accurately reflect the characteristics of the obstacle, that is, the above-mentioned reserved contour can be used as the contour of the obstacle.

本实施例中,通过透视变换处理能够排除单目摄像头的安装角度的影响,且在统一的俯视平面图上进行计算,可以更加准确的对识别的障碍物的尺寸、外形特征等内容进行判定,也可以去除不同光照对图像特征的识别影响,可以应用于大多的障碍物特征识别,避免了使用大量的预先的算法训练和测试,从而可以降低生产成本和人工成本。In this embodiment, the influence of the installation angle of the monocular camera can be excluded through the perspective transformation process, and the calculation is performed on a unified top plan view, so that the size and shape features of the identified obstacles can be more accurately determined. It can remove the influence of different lighting on the recognition of image features, and can be applied to most obstacle feature recognition, avoiding the use of a large number of pre-algorithm training and testing, thereby reducing production costs and labor costs.

基于上述实施例的障碍物轮廓检测方法,图8示出了本申请实施例提供的一种障碍物轮廓判断装置10的结构示意图。Based on the obstacle contour detection method of the foregoing embodiment, FIG. 8 shows a schematic structural diagram of an obstacle contour judgment apparatus 10 provided by an embodiment of the present application.

该障碍物轮廓判断装置10包括:The obstacle contour judging device 10 includes:

鸟瞰图获取模块11,通过单目摄像头获取实际场景的实际图像,并对所述实际图像进行透视变换得到实际鸟瞰图;The bird's-eye view obtaining module 11 obtains the actual image of the actual scene through the monocular camera, and performs perspective transformation on the actual image to obtain the actual bird's-eye view;

特征值计算模块12,计算所述实际鸟瞰图中各个像素点的实际特征值;The eigenvalue calculation module 12 calculates the actual eigenvalues of each pixel in the actual bird's-eye view;

异常点识别模块13,基于空地鸟瞰图各个像素点的空地特征值和所述实际特征值进行异常点识别处理,得到包含有异常点的二值图像;The outlier identification module 13 performs outlier identification processing based on the open space characteristic value of each pixel point of the open space bird's eye view and the actual characteristic value, and obtains a binary image containing outliers;

去噪处理模块14,对所述二值图像中的异常点进行去噪处理,得到第一图像;The denoising processing module 14 performs denoising processing on the abnormal points in the binary image to obtain a first image;

轮廓确定模块15,对所述第一图像进行进行轮廓检测,确定所述实际场景中的障碍物的轮廓。The contour determination module 15 performs contour detection on the first image to determine the contour of the obstacle in the actual scene.

本实施例提供一种障碍物轮廓判断装置10通过鸟瞰图获取模块11、特征值计算模块12、异常点识别模块13、去噪处理模块14和轮廓确定模块15的配合使用,用于执行上述实施例所述的障碍物轮廓检测方法,上述实施例所涉及的实施方案以及有益效果在本实施例中同样适用,在此不再赘述。The present embodiment provides an obstacle contour determination device 10, which is used to implement the above implementation through the cooperative use of a bird's-eye view acquisition module 11, a feature value calculation module 12, an abnormal point identification module 13, a denoising processing module 14, and a contour determination module 15. For the obstacle contour detection method described in the example, the implementation and beneficial effects involved in the above-mentioned embodiment are also applicable in this embodiment, and are not repeated here.

此外,本申请还提出一种终端设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序在所述处理器上运行时执行上述实施例所述障碍物轮廓检测方法。In addition, the present application also provides a terminal device, including a memory and a processor, wherein the memory stores a computer program, and the computer program executes the obstacle contour detection method described in the foregoing embodiments when running on the processor.

本实施例还提供了一种计算机存储介质,用于储存上述终端设备中使用的计算机程序。This embodiment also provides a computer storage medium for storing the computer program used in the above-mentioned terminal device.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和结构图显示了根据本发明的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,结构图和/或流程图中的每个方框、以及结构图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may also be implemented in other manners. The apparatus embodiments described above are only schematic, for example, the flowcharts and structural diagrams in the accompanying drawings show the possible implementation architectures and functions of the apparatuses, methods and computer program products according to various embodiments of the present invention and operation. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart diagrams, can be implemented using dedicated hardware-based systems that perform the specified functions or actions. be implemented, or may be implemented in a combination of special purpose hardware and computer instructions.

另外,在本发明各个实施例中的各功能模块或单元可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或更多个模块集成形成一个独立的部分。In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是智能手机、个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention.

Claims (10)

1.一种障碍物轮廓检测方法,其特征在于,包括:1. an obstacle contour detection method, is characterized in that, comprises: 通过单目摄像头获取实际场景的实际图像,并对所述实际图像进行透视变换得到实际鸟瞰图;Obtain an actual image of the actual scene through a monocular camera, and perform perspective transformation on the actual image to obtain an actual bird's-eye view; 计算所述实际鸟瞰图中各个像素点的实际特征值;Calculate the actual feature value of each pixel in the actual bird's-eye view; 基于空地鸟瞰图各个像素点的空地特征值和所述实际特征值进行异常点识别处理,得到包含有异常点的二值图像;Perform outlier identification processing based on the open space feature value of each pixel point of the open space bird's-eye view and the actual characteristic value, and obtain a binary image containing outliers; 对所述二值图像中的异常点进行去噪处理,得到第一图像;Denoising the abnormal points in the binary image to obtain a first image; 对所述第一图像进行轮廓检测,确定所述实际场景中的障碍物的轮廓。Perform contour detection on the first image to determine the contour of the obstacle in the actual scene. 2.根据权利要求1所述的障碍物轮廓检测方法,其特征在于,所述对所述第一图像进行轮廓检测,确定所述实际场景中的障碍物的轮廓,包括:2. The obstacle contour detection method according to claim 1, wherein the performing contour detection on the first image to determine the contour of the obstacle in the actual scene comprises: 基于预设算法提取所述第一图像中的至少一个轮廓;extracting at least one contour in the first image based on a preset algorithm; 计算各个所述轮廓的中心点和最小斜矩形的边长度和面积;Calculate the center point of each of the contours and the side length and area of the smallest oblique rectangle; 若当前轮廓的所述中心点不在所述第一图像的边界处,则检测所述边长是否小于预设的边长阈值,以及所述面积是否小于预设的面积阈值;If the center point of the current contour is not at the boundary of the first image, detecting whether the side length is less than a preset side length threshold, and whether the area is less than a preset area threshold; 若所述边长小于所述边长阈值且所述面积小于所述面积阈值,则确定所述当前轮廓为干扰轮廓并丢弃,否则保留所述当前轮廓;If the side length is less than the side length threshold and the area is less than the area threshold, then the current contour is determined to be an interference contour and discarded, otherwise the current contour is retained; 若所述当前轮廓的所述中心点在所述第一图像的边界处,则保留所述当前轮廓;If the center point of the current contour is at the boundary of the first image, retaining the current contour; 将保留的轮廓作为障碍物的轮廓。Take the remaining contour as the contour of the obstacle. 3.根据权利要求1或2所述的障碍物轮廓检测方法,其特征在于,所述通过单目摄像头获取实际场景的实际图像之前包括:3. The obstacle contour detection method according to claim 1 or 2, characterized in that, before obtaining the actual image of the actual scene by the monocular camera, the method comprises: 通过单目摄像头获取空地场景的空地图像,并测量所述空地场景的实际尺寸以确定所述空地场景的长宽比例;Obtain an open space image of the open space scene through a monocular camera, and measure the actual size of the open space scene to determine the aspect ratio of the open space scene; 基于所述长宽比例和待生成的所述空地场景的空地鸟瞰图的分辨率确定空地坐标;Determine the coordinates of the open space based on the aspect ratio and the resolution of the open space aerial view of the open space scene to be generated; 在所述空地场景的边界处设置角点,并确定所述角点在空地图像中对应的角点坐标;Setting a corner point at the boundary of the open space scene, and determining the corner point coordinates corresponding to the corner point in the open space image; 基于所述角点坐标和所述空地坐标计算透视变换矩阵的参数,以确定所述透视变换矩阵;Calculate the parameters of the perspective transformation matrix based on the corner coordinates and the open space coordinates to determine the perspective transformation matrix; 通过所述透视变换矩阵对所述空地图像进行透视变换,得到所述空地场景的空地鸟瞰图。Perspective transformation is performed on the open space image through the perspective transformation matrix to obtain an open space bird's-eye view of the open space scene. 4.根据权利要求1所述的障碍物轮廓检测方法,其特征在于,相应鸟瞰图中各个像素点的特征值通过以下方式计算:4. obstacle contour detection method according to claim 1 is characterized in that, the eigenvalue of each pixel point in the corresponding bird's-eye view is calculated by the following manner: 对相应鸟瞰图进行灰度处理得到灰度图像;Perform grayscale processing on the corresponding bird's-eye view to obtain a grayscale image; 基于所述灰度图像的所述各个像素点为中心计算对应的中心亮度和环境亮度;Calculate the corresponding center brightness and ambient brightness based on the respective pixel points of the grayscale image as the center; 根据所述各个像素点的所述中心亮度和所述环境亮度的比值作为对应像素点的特征值。According to the ratio of the central brightness of each pixel to the ambient brightness, the feature value of the corresponding pixel is taken. 5.根据权利要求4所述的障碍物轮廓检测方法,其特征在于,所述基于空地鸟瞰图各个像素点的空地特征值和所述实际特征值进行异常点识别处理,包括:5. The obstacle contour detection method according to claim 4, characterized in that, carrying out outlier identification processing based on the open space feature value of each pixel point of the open space bird's eye view and the actual feature value, comprising: 将相同位置的像素点的所述空地特征值和所述实际特征值进行比较,得到对应的比值;Comparing the open space feature value and the actual feature value of the pixel point at the same position to obtain a corresponding ratio; 若所述比值小于等于预设的比值阈值,则确定所述像素点为所述异常点,否则确定所述像素点为正常点。If the ratio is less than or equal to a preset ratio threshold, the pixel point is determined to be the abnormal point; otherwise, the pixel point is determined to be a normal point. 6.根据权利要求1所述的障碍物轮廓检测方法,其特征在于,所述对所述二值图像中的异常点进行去噪处理,得到第一图像,包括:6 . The obstacle contour detection method according to claim 1 , wherein, performing denoising processing on the abnormal points in the binary image to obtain the first image, comprising: 6 . 对所述二值图像进行第一像素尺寸的膨胀处理以得到第二图像;Dilation processing of the first pixel size is performed on the binary image to obtain a second image; 对所述第二图像进行第二像素尺寸的腐蚀处理以得到第三图像;Erosion processing of the second pixel size is performed on the second image to obtain a third image; 对所述第三图像进行第三像素尺寸的膨胀处理以得到第四图像;Dilation processing of a third pixel size is performed on the third image to obtain a fourth image; 对所述第四图像进行第四像素尺寸的腐蚀处理以得到第一图像;Erosion processing of a fourth pixel size is performed on the fourth image to obtain a first image; 其中,所述第一像素尺寸、所述第二像素尺寸、所述第三像素尺寸和所述第四像素尺寸的关系如下:所述第一像素尺寸与所述第三像素尺寸之和等于所述第二像素尺寸与所述第四像素尺寸之和,所述第一像素尺寸小于第二像素尺寸小于所述第三像素尺寸。The relationship between the first pixel size, the second pixel size, the third pixel size and the fourth pixel size is as follows: the sum of the first pixel size and the third pixel size is equal to the The sum of the second pixel size and the fourth pixel size, the first pixel size is smaller than the second pixel size is smaller than the third pixel size. 7.根据权利要求6所述的障碍物轮廓检测方法,其特征在于,所述腐蚀处理包括:7. The obstacle contour detection method according to claim 6, wherein the corrosion processing comprises: 将预设的结构元素的中心点依次与所述二值图像中各个异常点重合,判断所述结构元素中的全部像素点是否均为异常点;The center point of the preset structural element is sequentially overlapped with each abnormal point in the binary image, and it is judged whether all the pixel points in the structural element are abnormal points; 若所述全部像素点均为所述异常点,则保留所述中心点对应的像素点;If all the pixel points are the abnormal points, keep the pixel points corresponding to the center point; 否则,将所述中心点对应的像素点修改为正常点。Otherwise, modify the pixel point corresponding to the center point to a normal point. 8.一种障碍物轮廓判断装置,其特征在于,包括:8. A device for judging the contour of an obstacle, comprising: 鸟瞰图获取模块,通过单目摄像头获取实际场景的实际图像,并对所述实际图像进行透视变换得到实际鸟瞰图;The bird's-eye view acquisition module obtains the actual image of the actual scene through the monocular camera, and performs perspective transformation on the actual image to obtain the actual bird's-eye view; 特征值计算模块,计算所述实际鸟瞰图中各个像素点的实际特征值;an eigenvalue calculation module, which calculates the actual eigenvalues of each pixel in the actual bird's-eye view; 异常点识别模块,基于空地鸟瞰图各个像素点的空地特征值和所述实际特征值进行异常点识别处理,得到包含有异常点的二值图像;The outlier identification module performs outlier identification processing based on the open space characteristic value of each pixel point of the open space bird's eye view and the actual characteristic value, and obtains a binary image containing outliers; 去噪处理模块,对所述二值图像中的异常点进行去噪处理,得到第一图像;a denoising processing module, which performs denoising processing on the abnormal points in the binary image to obtain a first image; 轮廓确定模块,对所述第一图像进行轮廓检测,确定所述实际场景中的障碍物的轮廓。The contour determination module performs contour detection on the first image to determine the contour of the obstacle in the actual scene. 9.一种终端设备,其特征在于,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序在所述处理器上运行时执行权利要求1至7任一项所述的障碍物轮廓检测方法。9. A terminal device, characterized by comprising a memory and a processor, wherein the memory stores a computer program, and the computer program executes the obstacle according to any one of claims 1 to 7 when the computer program runs on the processor Object contour detection method. 10.一种可读存储介质,其特征在于,其存储有计算机程序,所述计算机程序在处理器上运行时执行权利要求1至7任一项所述的障碍物轮廓检测方法。10 . A readable storage medium, characterized in that it stores a computer program, and the computer program executes the obstacle contour detection method according to any one of claims 1 to 7 when the computer program runs on a processor.
CN202210526559.2A 2022-05-16 2022-05-16 An obstacle contour detection method, device, terminal device and storage medium Pending CN114842213A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210526559.2A CN114842213A (en) 2022-05-16 2022-05-16 An obstacle contour detection method, device, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210526559.2A CN114842213A (en) 2022-05-16 2022-05-16 An obstacle contour detection method, device, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN114842213A true CN114842213A (en) 2022-08-02

Family

ID=82571116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210526559.2A Pending CN114842213A (en) 2022-05-16 2022-05-16 An obstacle contour detection method, device, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN114842213A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117152151A (en) * 2023-10-31 2023-12-01 新东鑫(江苏)机械科技有限公司 Motor shell quality detection method based on machine vision
CN117911792A (en) * 2024-03-15 2024-04-19 垣矽技术(青岛)有限公司 Pin detecting system for voltage reference source chip production

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117152151A (en) * 2023-10-31 2023-12-01 新东鑫(江苏)机械科技有限公司 Motor shell quality detection method based on machine vision
CN117152151B (en) * 2023-10-31 2024-02-02 新东鑫(江苏)机械科技有限公司 Motor shell quality detection method based on machine vision
CN117911792A (en) * 2024-03-15 2024-04-19 垣矽技术(青岛)有限公司 Pin detecting system for voltage reference source chip production
CN117911792B (en) * 2024-03-15 2024-06-04 垣矽技术(青岛)有限公司 Pin detecting system for voltage reference source chip production

Similar Documents

Publication Publication Date Title
Feng et al. Local background enclosure for RGB-D salient object detection
US10839521B2 (en) Image processing apparatus, image processing method, and computer-readable storage medium
CN109272489B (en) Infrared weak and small target detection method based on background suppression and multi-scale local entropy
US9665803B2 (en) Image processing apparatus and image processing method
CN107220931B (en) A High Dynamic Range Image Reconstruction Method Based on Gray Level Mapping
CN110717489A (en) Method and device for identifying character area of OSD (on screen display) and storage medium
US10614736B2 (en) Foreground and background detection method
WO2017084094A1 (en) Apparatus, method, and image processing device for smoke detection
CN107404628B (en) Image processing apparatus and method, and monitoring system
JP7272024B2 (en) Object tracking device, monitoring system and object tracking method
KR20150079638A (en) Image processing method and apparatus for elimination of depth artifacts
KR102476022B1 (en) Face detection method and apparatus thereof
US20160379078A1 (en) Apparatus for and method of processing image based on object region
JP2008192131A (en) System and method for performing feature level segmentation
CN108986152A (en) A kind of foreign matter detecting method and device based on difference image
CN107220962B (en) An image detection method and device for tunnel cracks
CN114842213A (en) An obstacle contour detection method, device, terminal device and storage medium
CN115797300A (en) Edge detection method and device based on adaptive gradient threshold canny operator
JP2012048484A (en) Image processing apparatus, image processing method, and program
JP2020149641A (en) Object tracking device and object tracking method
JP2017032335A (en) Information processing device, information processing method, and program
CN111028170A (en) Image processing method, image processing apparatus, electronic device, and readable storage medium
WO2021056501A1 (en) Feature point extraction method, movable platform and storage medium
JP2019036030A (en) Object detection device, object detection method and object detection program
CN114638891A (en) Target detection positioning method and system based on image and point cloud fusion

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
CB02 Change of applicant information

Country or region after: China

Address after: 401120 Building 2, No. 81, Tonggui Avenue, Yufengshan Town, Yubei District, Chongqing

Applicant after: Beidou Zhilian Technology Co.,Ltd.

Address before: No. 3 Tonggui Avenue, Yufengshan Town, Yubei District, Chongqing City

Applicant before: Beidou Xingtong Zhilian Technology Co.,Ltd.

Country or region before: China

CB02 Change of applicant information