[go: up one dir, main page]

CN116414112A - Control method of self-mobile device, self-mobile device and storage medium - Google Patents

Control method of self-mobile device, self-mobile device and storage medium Download PDF

Info

Publication number
CN116414112A
CN116414112A CN202111658963.7A CN202111658963A CN116414112A CN 116414112 A CN116414112 A CN 116414112A CN 202111658963 A CN202111658963 A CN 202111658963A CN 116414112 A CN116414112 A CN 116414112A
Authority
CN
China
Prior art keywords
detected
contour
reflection
self
point
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
CN202111658963.7A
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.)
Ecovacs Robotics Suzhou Co Ltd
Original Assignee
Ecovacs Robotics Suzhou 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 Ecovacs Robotics Suzhou Co Ltd filed Critical Ecovacs Robotics Suzhou Co Ltd
Priority to CN202111658963.7A priority Critical patent/CN116414112A/en
Publication of CN116414112A publication Critical patent/CN116414112A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0231Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
    • G05D1/0242Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using non-visible light signals, e.g. IR or UV signals
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0214Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory in accordance with safety or protection criteria, e.g. avoiding hazardous areas
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0221Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving a learning process
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0231Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
    • G05D1/0246Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using a video camera in combination with image processing means
    • G05D1/0251Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using a video camera in combination with image processing means extracting 3D information from a plurality of images taken from different locations, e.g. stereo vision
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0259Control of position or course in two dimensions specially adapted to land vehicles using magnetic or electromagnetic means
    • G05D1/0263Control of position or course in two dimensions specially adapted to land vehicles using magnetic or electromagnetic means using magnetic strips
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0276Control of position or course in two dimensions specially adapted to land vehicles using signals provided by a source external to the vehicle
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0276Control of position or course in two dimensions specially adapted to land vehicles using signals provided by a source external to the vehicle
    • G05D1/028Control of position or course in two dimensions specially adapted to land vehicles using signals provided by a source external to the vehicle using a RF signal

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Electromagnetism (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

本申请实施例提供一种自移动设备的控制方法、自移动设备及存储介质,在本申请实施例中,对环境图像进行轮廓提取,并对提取到的待检测轮廓的内部区域进行倒影检测,进而自动、准确、快速地基于视觉技术识别水面区域。进一步的,基于包含倒影的待检测轮廓在地理场景下的实际位置信息,控制自移动设备避开在行进过程中避开地理场景下的水面区域,减少了自移动设备涉水损坏的概率。进一步地,无需布置物理边界即可帮助自移动设备识别水面区域的方式,该方式无需耗费时间和精力,成本较低。

Figure 202111658963

An embodiment of the present application provides a control method of a self-moving device, a self-moving device and a storage medium. In the embodiment of the present application, contour extraction is performed on an environmental image, and reflection detection is performed on an inner region of the extracted contour to be detected. Then automatically, accurately and quickly identify water surface areas based on vision technology. Further, based on the actual position information of the contour to be detected including the reflection in the geographical scene, the self-mobile device is controlled to avoid the water surface area under the geographical scene during the traveling process, thereby reducing the probability of the self-mobile device being damaged by wading. Furthermore, there is no need to arrange physical boundaries to help the self-mobile device identify the water surface area, and this method does not need to consume time and energy, and the cost is low.

Figure 202111658963

Description

自移动设备的控制方法、自移动设备及存储介质Self-moving device control method, self-moving device and storage medium

技术领域technical field

本申请涉及人工智能技术领域,尤其涉及一种自移动设备的控制方法、自移动设备及存储介质。The present application relates to the technical field of artificial intelligence, and in particular to a control method of a self-moving device, a self-moving device and a storage medium.

背景技术Background technique

随着计算机技术、传感器技术以及人工智能技术等不断的发展,涌现出越来越多的提供不同服务的户外机器人,户外机器人例如为智能割草机、智能巡检机器人、智能消杀机器人、智能搬运机器人以及智能户外清洁机器人。相对于室内机器人,户外机器人的工作区域环境较为复杂,会存在泳池、池塘等较危险的区域,这就要求户外机器人在工作过程中能够规避这些危险区域,防止作业任务被异常中断。With the continuous development of computer technology, sensor technology and artificial intelligence technology, more and more outdoor robots that provide different services have emerged, such as smart lawn mowers, smart inspection robots, smart killing robots, smart Handling robots and intelligent outdoor cleaning robots. Compared with indoor robots, the working area environment of outdoor robots is more complicated, and there will be more dangerous areas such as swimming pools and ponds. This requires outdoor robots to avoid these dangerous areas during work and prevent abnormal interruption of tasks.

现有技术中,预先在危险区域四周铺设磁条、金属线、磁钉等以形成危险区域的物理边界,户外机器人检测到危险区域的物理边界时,确认前方出现危险区域,并执行规避危险区域的动作。该方法需要提前铺设物理边界线,如此增加了工作强度,降低了工作效率。且由于户外环境的复杂性,工作区域中可能会随时出现积水区域,但是由于未提前布置物理边界,户外机器人无法识别出积水区域,致使户外机器人涉水损坏。In the existing technology, magnetic strips, metal wires, magnetic nails, etc. are laid around the dangerous area in advance to form the physical boundary of the dangerous area. When the outdoor robot detects the physical boundary of the dangerous area, it confirms that there is a dangerous area ahead and executes avoiding the dangerous area. Actions. This method needs to lay physical boundary lines in advance, which increases work intensity and reduces work efficiency. And due to the complexity of the outdoor environment, water accumulation areas may appear in the working area at any time, but because the physical boundary is not arranged in advance, the outdoor robot cannot recognize the water accumulation area, resulting in damage to the outdoor robot.

发明内容Contents of the invention

本申请的多个方面提供一种自移动设备的控制方法、自移动设备及存储介质,其既不需要铺设物理边界线,又能避开行进过程中的水面区域,进而减少自移动设备涉水损坏的概率。Various aspects of the present application provide a control method of self-moving equipment, self-moving equipment and storage media, which do not need to lay physical boundary lines, and can avoid water surface areas during travel, thereby reducing self-mobile equipment wading probability of damage.

本申请实施例提供一种自移动设备的控制方法,自移动设备具有图像采集装置,该方法包括:获取图像采集装置所采集的环境图像,环境图像为自移动设备行进方向上的图像;对环境图像进行轮廓提取,得到至少一个待检测轮廓;对待检测轮廓的内部区域进行倒影检测,以判断待检测轮廓内是否存在倒影;当待检测轮廓内存在倒影时,获取存在倒影的待检测轮廓在地理场景下的实际位置信息,以能根据实际位置信息控制自移动设备行进,以避开地理场景下的水面区域。An embodiment of the present application provides a control method of self-mobile equipment, which has an image acquisition device, and the method includes: acquiring an environmental image collected by the image acquisition device, and the environmental image is an image in the direction of travel of the self-mobile equipment; Extract the contour of the image to obtain at least one contour to be detected; perform reflection detection on the inner area of the contour to be detected to determine whether there is a reflection in the contour to be detected; when there is a reflection in the contour to be detected, obtain the contour to be detected that has a reflection The actual location information in the scene can control the movement of the self-mobile device according to the actual location information, so as to avoid the water surface area in the geographical scene.

本申请实施例还提供一种自移动设备,包括:车架、行走装置、图像采集装置、存储器和处理器,其中,行走装置设置于车架上,用于带动自移动设备行走;图像采集装置设置于车架上;存储器,用于存储计算机程序;处理器耦合至存储器,以用于执行上述自移动设备的控制方法。The embodiment of the present application also provides a self-moving device, including: a vehicle frame, a walking device, an image acquisition device, a memory, and a processor, wherein the walking device is arranged on the vehicle frame to drive the self-moving device to walk; the image acquisition device It is arranged on the vehicle frame; the memory is used to store computer programs; the processor is coupled to the memory to execute the above-mentioned control method of self-moving equipment.

本申请实施例还提供一种存储介质,存储介质存储有计算机程序,当计算机程序被处理器执行时,致使处理器实现上述自移动设备的控制方法。An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is executed by a processor, the processor is caused to implement the above method for controlling the mobile device.

在本申请实施例中,对环境图像进行轮廓提取,并对提取到的待检测轮廓的内部区域进行倒影检测,进而自动、准确、快速地基于视觉技术识别存在倒影的所述待检测轮廓在地理场景下的实际位置信息。进一步的,基于包含倒影的待检测轮廓在地理场景下的实际位置信息,控制自移动设备避开在行进过程中避开地理场景下的水面区域,减少了自移动设备涉水损坏的概率。进一步地,无需布置物理边界即可帮助自移动设备识别水面区域的方式,该方式无需耗费时间和精力,成本较低。In the embodiment of the present application, the contour is extracted from the environment image, and the reflection detection is performed on the inner area of the extracted contour to be detected, and then the contour to be detected with reflection is automatically, accurately and quickly identified in the geographical area based on vision technology. The actual location information in the scene. Further, based on the actual position information of the contour to be detected including the reflection in the geographical scene, the self-mobile device is controlled to avoid the water surface area under the geographical scene during the traveling process, thereby reducing the probability of the self-mobile device being damaged by wading. Furthermore, there is no need to arrange physical boundaries to help the self-mobile device identify the water surface area, and this method does not need to consume time and energy, and the cost is low.

附图说明Description of drawings

此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:

图1为本申请一示例性实施例提供的一种应用场景示意图;FIG. 1 is a schematic diagram of an application scenario provided by an exemplary embodiment of the present application;

图2为本申请一示例性实施例提供的一种自移动设备的控制方法的流程示意图;FIG. 2 is a schematic flow chart of a control method of a self-mobile device provided in an exemplary embodiment of the present application;

图3为示例性的路径规划示意图;FIG. 3 is an exemplary schematic diagram of path planning;

图4为本申请一示例性实施例提供的关键轮廓点与移动距离的几何关系图;FIG. 4 is a geometric relationship diagram between key contour points and moving distances provided by an exemplary embodiment of the present application;

图5为示例性的环境图像中地平线示意图;FIG. 5 is a schematic diagram of a horizon in an exemplary environment image;

图6为示例性的小孔成像模型;Fig. 6 is an exemplary pinhole imaging model;

图7为示例性的环境图像;Fig. 7 is an exemplary environment image;

图8为本申请一示例性实施例提供的一种自移动设备的结构示意图。Fig. 8 is a schematic structural diagram of a mobile device provided by an exemplary embodiment of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments of the present application and corresponding drawings. Apparently, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

本申请实施例提供一种自移动设备的控制方法、自移动设备及介质,在本申请实施例中,对环境图像进行轮廓提取,并对提取到的待检测轮廓的内部区域进行倒影检测,进而自动、准确、快速地基于视觉技术识别水面区域。进一步的,基于包含倒影的待检测轮廓在地理场景下的实际位置信息,控制自移动设备避开在行进过程中避开地理场景下的水面区域,减少了自移动设备涉水损坏的概率。进一步地,无需布置物理边界即可帮助自移动设备识别水面区域的方式,该方式无需耗费时间和精力,成本较低。An embodiment of the present application provides a control method of a self-moving device, a self-moving device, and a medium. In the embodiment of the present application, contour extraction is performed on an environment image, and reflection detection is performed on the inner area of the extracted contour to be detected, and then Automatically, accurately and quickly identify water surface areas based on vision technology. Further, based on the actual position information of the contour to be detected including the reflection in the geographical scene, the self-mobile device is controlled to avoid the water surface area under the geographical scene during the traveling process, thereby reducing the probability of the self-mobile device being damaged by wading. Furthermore, there is no need to arrange physical boundaries to help the self-mobile device identify the water surface area, and this method does not need to consume time and energy, and the cost is low.

以下结合附图,详细说明本申请各实施例提供的技术方案。The technical solutions provided by various embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.

图1为本申请一示例性实施例提供的一种应用场景示意图。图1所示的应用场景为智能割草机在户外执行割草作业。由于户外环境的复杂性,户外环境中除了存在石头、树木、需要割的草等物体,还会存在池塘、泳池、积水坑、水沟等危险区域。于是,智能割草机在割草作业中需要准确识别前方区域是否为积水区域,以降低涉水损坏的概率。Fig. 1 is a schematic diagram of an application scenario provided by an exemplary embodiment of the present application. The application scenario shown in Figure 1 is that the smart lawnmower performs mowing work outdoors. Due to the complexity of the outdoor environment, in addition to objects such as stones, trees, and grass that need to be mowed, there are also dangerous areas such as ponds, swimming pools, puddles, and ditches in the outdoor environment. Therefore, the smart lawn mower needs to accurately identify whether the area ahead is a water-logged area during mowing operations, so as to reduce the probability of wading damage.

值得注意的是,图1所示的智能割草机在户外执行割草作业仅仅是一种示意性的应用场景,本申请实施例提供的自移动设备的控制方法可以适用于室内场景和户外场景,例如智能巡检机器人在户外或室内执行巡检任务、智能消杀机器人在户外或室内执行消杀任务、智能搬运机器人在户外或室内执行搬运任务以及智能户外清洁机器人在户外或室内执行清洁任务,当然,本申请实施例并不限制应用场景。It is worth noting that the smart lawnmower shown in Figure 1 performing mowing operations outdoors is only a schematic application scenario, and the control method from the mobile device provided by the embodiment of the present application can be applied to indoor and outdoor scenarios , such as intelligent inspection robots performing inspection tasks outdoors or indoors, intelligent killing robots performing killing tasks outdoors or indoors, intelligent handling robots performing handling tasks outdoors or indoors, and intelligent outdoor cleaning robots performing cleaning tasks outdoors or indoors Of course, the embodiment of the present application does not limit the application scenario.

以下结合附图,详细说明本申请各实施例提供的技术方案。The technical solutions provided by various embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.

图2为本申请一示例性实施例提供的一种自移动设备的控制方法的流程示意图。参见图2,该方法可以包括以下步骤:Fig. 2 is a schematic flowchart of a method for controlling an autonomous mobile device provided by an exemplary embodiment of the present application. Referring to Figure 2, the method may include the following steps:

201、获取图像采集装置所采集的环境图像,环境图像为自移动设备行进方向上的图像。201. Acquire an environment image collected by an image acquisition device, where the environment image is an image in a traveling direction of the mobile device.

202、对环境图像进行轮廓提取,得到至少一个待检测轮廓。202. Perform contour extraction on the environment image to obtain at least one contour to be detected.

203、对待检测轮廓的内部区域进行倒影检测,以判断待检测轮廓内是否存在倒影,若是,执行步骤204,若否,结束,也即当所有的待检测轮廓内均不存在倒影时,说明自移动设备的行进方向上不存在水面区域,那么移动设备可以在行进方向上继续行进。203. Perform reflection detection on the inner area of the contour to be detected to determine whether there is a reflection in the contour to be detected. If yes, perform step 204. If not, end. If there is no water surface area in the traveling direction of the mobile device, then the mobile device can continue traveling in the traveling direction.

204、获取存在倒影的待检测轮廓在地理场景下的实际位置信息,以能根据实际位置信息控制自移动设备行进,以避开地理场景下的水面区域。204. Acquire the actual location information of the contour to be detected with reflection in the geographical scene, so as to control the self-mobile device to travel according to the actual location information, so as to avoid the water surface area in the geographical scene.

在本申请实施例中,自移动设备在行进过程中利用图像采集装置采集自身行进方向上的环境图像。或者自移动设备在准备行进时利用图像采集装置采集自身行进方向上的环境图像,例如自移动在行进起点利用图像采集装置采集自身行进方向上的环境图像。该图像采集装置可以是深度相机。例如摄像机、照相机等。该地理场景可以是实际使用场景,例如如图3所指的自移动设备的移动场景。In the embodiment of the present application, the self-mobile device uses an image acquisition device to collect an environment image in its own traveling direction during the traveling process. Or the self-mobile device uses the image acquisition device to collect the environment image in the direction of its own travel when it is preparing to travel, for example, the self-mobile device uses the image acquisition device to collect the environment image in the direction of its travel at the starting point of travel. The image acquisition device may be a depth camera. Such as video cameras, cameras, etc. The geographic scene may be an actual usage scene, for example, the mobile scene from the mobile device as shown in FIG. 3 .

在本申请实施例中,可以控制图像采集装置实时进行图像采集,也可以控制图像采集装置周期性进行图像采集,图像采集周期根据实际业务需求设置。In the embodiment of the present application, the image acquisition device can be controlled to perform image acquisition in real time, or the image acquisition device can be controlled to perform image acquisition periodically, and the image acquisition period is set according to actual business requirements.

在本申请实施例中,采用轮廓提取算法处理环境图像,以提取环境图像中的至少一个轮廓,为了便于理解,将提取到的轮廓称作待检测轮廓。另外,环境图像的轮廓提取结果还可以包括但不限于以下信息:各个待检测轮廓在环境图像中的图像位置信息、轮廓周长信息、轮廓高度信息、轮廓形状信息。进一步地,通过轮廓提取算法在环境图像中提取到至少一个轮廓。该至少一个可以是1个或者多个。该多个可以是2个、3个、4个等。以图1所示为例,智能割草机在行进过程中,实时利用图像采集装置采集前方区域的环境图像,通过对环境图像进行轮廓提取,可以识别出水面区域的轮廓、石头的轮廓、树的轮廓等多个轮廓。In the embodiment of the present application, the environment image is processed by a contour extraction algorithm to extract at least one contour in the environment image. For ease of understanding, the extracted contour is referred to as a contour to be detected. In addition, the contour extraction result of the environment image may also include but not limited to the following information: image position information, contour perimeter information, contour height information, and contour shape information of each contour to be detected in the environment image. Further, at least one contour is extracted from the environment image through a contour extraction algorithm. The at least one may be one or more. The plurality may be 2, 3, 4, etc. Taking the example shown in Figure 1, the intelligent lawn mower uses the image acquisition device to collect the environmental image of the front area in real time during the running process. By extracting the outline of the environmental image, the outline of the water surface area, the outline of the stone, the outline of the tree can be identified. The contour of and many other contours.

在对环境图像进行轮廓提取之后,还可以对提取到的任一个待检测轮廓进行倒影检测,以判断该待检测轮廓内是否存在倒影。针对至少一个待检测轮廓中任一待检测轮廓,若检测到待检测轮廓的内部区域存在倒影,则该待检测轮廓为水面区域的轮廓,若检测到待检测轮廓的内部区域不存在倒影,则该待检测轮廓不是水面区域的轮廓。从而当所有的待检测轮廓内均不存在倒影时,说明自移动设备的行进方向上不存在水面区域,那么移动设备可以在行进方向上继续行进。具体地,例如对环境图像进行轮廓提取后,提取到3个待检测轮廓。对该3个待检测轮廓的内部进行一一倒影检测,当检测到该3个待检测轮廓内的一个或存在倒影时,说明该3个待检测轮廓中存在一个水面区域的轮廓,如此可以获取该一个存在倒影的待检测轮廓在地理场景下的实际位置信息,以能根据实际位置信息控制自移动设备行进,以避开地理场景下的该一个水面区域;当检测到该3个待检测轮廓内的多个存在倒影时,说明该3个待检测轮廓中存在多个水面区域的轮廓,如此可以分别获取该多个存在倒影的待检测轮廓在地理场景下的实际位置信息,以能根据实际位置信息控制自移动设备行进,以避开地理场景下的多个水面区域;当检测到该3个待检测轮廓内全部不存在倒影时,说明该3个待检测轮廓中不存在水面区域的轮廓,可以使得移动设备在行进方向上继续行进。After contour extraction is performed on the environment image, reflection detection may also be performed on any extracted contour to be detected, so as to determine whether there is a reflection in the contour to be detected. For any contour to be detected in at least one contour to be detected, if it is detected that there is a reflection in the inner area of the contour to be detected, then the contour to be detected is the contour of the water surface area; if it is detected that there is no reflection in the inner area of the contour to be detected, then The contour to be detected is not the contour of the water surface area. Therefore, when there is no reflection in all the contours to be detected, it means that there is no water surface area in the traveling direction of the self-mobile device, and the mobile device can continue to travel in the traveling direction. Specifically, for example, after contour extraction is performed on the environment image, three contours to be detected are extracted. The interior of the three contours to be detected is detected one by one. When one of the three contours to be detected is detected or there is a reflection, it means that there is a contour of the water surface area among the three contours to be detected. In this way, it can be obtained The actual position information of the contour to be detected with reflection in the geographical scene, so as to control the self-mobile device to advance according to the actual position information, so as to avoid the water surface area under the geographical scene; when the 3 contours to be detected are detected When there are multiple reflections in the three contours to be detected, it means that there are multiple contours of the water surface area among the three contours to be detected. In this way, the actual position information of the multiple contours to be detected with reflections in the geographical scene can be obtained respectively, so as to be able to The location information controls the movement of the mobile device to avoid multiple water surface areas in the geographical scene; when it is detected that there is no reflection in the three contours to be detected, it means that there is no contour of the water surface area among the three contours to be detected , which can make the mobile device continue to travel in the direction of travel.

进一步可选的,步骤203的一种实现方式为:在待检测轮廓内提取多个第一特征点;在环境图像上,对多个第一特征点进行一一计算,以判断每个所述第一特征点是否存在相对于地平线对称的匹配点,且当所述第一特征点存在相对于地平线对称的匹配点时,则将所述第一特征点与所述匹配点组成一个对称点对;获取对称点对的数量,并当对称点对的数量满足第二预设值时,判断待检测轮廓内存在倒影。进一步地,该多个可以是2个、3个、4个、5个等,对此本申请不作规定。当然第一特征点的数量越多,可用于判断是否存在倒影的采样点越多,如此对于判断是否存在倒影的精度越高。但第一特征点的数量越多,也会带来计算量的增加,所以选取第一特征点的数量可以根据实际需要进行。Further optionally, one implementation of step 203 is: extracting multiple first feature points within the contour to be detected; and performing calculations on the multiple first feature points on the environment image to determine the Whether the first feature point has a matching point that is symmetrical with respect to the horizon, and when the first feature point has a matching point that is symmetrical with respect to the horizon, then form a symmetrical point pair with the first feature point and the matching point ; Obtain the number of symmetrical point pairs, and determine that there is a reflection in the contour to be detected when the number of symmetrical point pairs satisfies a second preset value. Further, the plurality may be 2, 3, 4, 5, etc., which is not specified in this application. Of course, the more the number of first feature points, the more sampling points available for judging whether there is a reflection, and thus the higher the accuracy for judging whether there is a reflection. However, the larger the number of first feature points, the more calculation amount will be brought, so the number of first feature points can be selected according to actual needs.

在本申请实施例中,第一特征点的匹配点是与第一特征点相对于地平线对称的特征点,第一特征点可以认为是对应的匹配点的倒影。第二预设值根据实际业务需求设置,若对称点对的数量大于或等于第二预设值,确定对称点对的数量满足第二预设值;若对称点对的数量小于第二预设值,确定对称点对的数量不满足第二预设值。In the embodiment of the present application, the matching point of the first feature point is a feature point symmetrical to the first feature point with respect to the horizon, and the first feature point may be considered as a reflection of the corresponding matching point. The second preset value is set according to actual business needs. If the number of symmetrical point pairs is greater than or equal to the second preset value, it is determined that the number of symmetrical point pairs meets the second preset value; if the number of symmetrical point pairs is less than the second preset value value, it is determined that the number of symmetrical point pairs does not meet the second preset value.

若统计出对称点对的数量大于或等于第二预设值,确认对称点对的数量较多,待检测轮廓内存在倒影,也即待检测轮廓为水面轮廓。若统计出对称点对的数量小于第二预设值,确认对称点对的数量较少,并确定待检测轮廓内不存在倒影,也即待检测轮廓不是水面轮廓。If it is counted that the number of symmetrical point pairs is greater than or equal to the second preset value, it is confirmed that the number of symmetrical point pairs is large, and there is a reflection in the contour to be detected, that is, the contour to be detected is a water surface contour. If it is counted that the number of symmetrical point pairs is less than the second preset value, it is confirmed that the number of symmetrical point pairs is small, and it is determined that there is no reflection in the contour to be detected, that is, the contour to be detected is not a water surface contour.

进一步地,请参见图7,在一个实施方式中,对环境图像中待检测轮廓的内部区域进行特征点提取,得到多个第一特征点。依次遍历每个第一特征点,针对每个第一特征点,在环境图像中寻找以地平线为对称中心与该第一对称点对应的对称特征点作为匹配点,若找到,则使得每个第一特征点与对称的特征点形成对称点对。若没找到,则第一特征点不存在以地平线为对称中心的特征点。例如如图7所示,图7中提取了3个第一特征点A、B和C。进一步地,分别计算A、B和C三个特征点与地平线之间的距离。例如A、B和C三个特征点分别与地平线之间的距离为L1、L2和L3。进一步地,可以通过在地平线远离A、B和C的一侧分别寻找与地平线相距L1、L2和L3的特征点。如此如图7所示,在图7中寻找到分别与该3个第一特征点(A、B和C)以地平线为对称中心的特征点,分别为(A',B'和C')。该A',B'和C'分别与地平线相距L1、L2和L3。如此形成如下3个特征点对:(A、A'),(B、B')和(C、C')。例如第二预设值为2,由于特征点对的数量(3)大于第二预设值(2),如此判断该待检测轮廓内存在倒影。Further, referring to FIG. 7 , in one embodiment, feature point extraction is performed on the inner area of the contour to be detected in the environment image to obtain a plurality of first feature points. Traverse each first feature point in turn, and for each first feature point, look for a symmetrical feature point corresponding to the first symmetrical point with the horizon as the symmetric center in the environment image as a matching point, if found, make each first feature point A feature point and a symmetrical feature point form a symmetrical point pair. If not found, the first feature point does not have a feature point with the horizon as the center of symmetry. For example, as shown in FIG. 7 , three first feature points A, B and C are extracted in FIG. 7 . Further, the distances between the three feature points A, B and C and the horizon are calculated respectively. For example, the distances between the three feature points A, B and C and the horizon are L 1 , L 2 and L 3 . Further, feature points at distances L 1 , L 2 , and L 3 from the horizon can be found on the sides of the horizon far away from A, B, and C, respectively. As shown in Figure 7, in Figure 7, the feature points that are symmetrical to the three first feature points (A, B, and C) with the horizon as the center are found, respectively (A', B', and C') . The A', B' and C' are at distances L 1 , L 2 and L 3 from the horizon, respectively. In this way, the following three feature point pairs are formed: (A, A'), (B, B') and (C, C'). For example, the second preset value is 2. Since the number (3) of feature point pairs is greater than the second preset value (2), it is determined that there is a reflection in the contour to be detected.

进一步可选的,步骤203的另一种实现方式为:步骤2031:在待检测轮廓内提取一个第一特征点作为当前第一特征点;步骤2033:在环境图像上,对当前第一特征点进行计算,以判断当前第一特征点是否存在相对于地平线对称的当前匹配点,且当当前特征点存在相对于地平线对称的当前匹配点时,则将当前第一特征点与当前匹配点组成一个当前对称点对;步骤2035:将当前对称点对作为已检对称点对,并记载在已检对称点对集中,且在待检测轮廓内提取不同与已检对称点对集中的任一个第一特征点作为当前第一特征点,并重复步骤2033至步骤2035直至当已检对称点对的数量满足第二预设值时,判断待检测轮廓内存在倒影。Further optionally, another implementation of step 203 is: step 2031: extract a first feature point in the contour to be detected as the current first feature point; step 2033: on the environment image, for the current first feature point Perform calculations to determine whether the current first feature point has a current matching point that is symmetrical to the horizon, and when the current feature point has a current matching point that is symmetrical to the horizon, then the current first feature point and the current matching point form a The current symmetrical point pair; step 2035: use the current symmetrical point pair as the checked symmetrical point pair, and record it in the checked symmetrical point pair set, and extract any first one that is different from the checked symmetrical point pair set in the contour to be detected. The feature point is used as the current first feature point, and steps 2033 to 2035 are repeated until the number of detected symmetrical point pairs satisfies the second preset value, and it is determined that there is a reflection in the contour to be detected.

进一步地,第一特征点的提取可以采用以下任一种算法:ORB提取算法、SIFT提取算法和HARRIS提取算法等。Further, the extraction of the first feature point may adopt any of the following algorithms: ORB extraction algorithm, SIFT extraction algorithm, HARRIS extraction algorithm and the like.

在从至少一个待检测轮廓中识别出存在倒影的待检测轮廓之后,获取存在倒影的待检测轮廓在地理场景下的实际位置信息,并根据实际位置信息控制自移动设备行进,以避开地理场景下的水面区域。参见图3,自移动设备在进行路径规划时,基于存在倒影的待检测轮廓在地理场景下的实际位置信息规划出避开水面区域的导航路径,并沿着导航路径在行进过程中避开地理场景下的水面区域,进而降低在行进过程中涉水损坏的概率。After identifying the to-be-detected contour with reflection from at least one to-be-detected contour, acquire the actual position information of the to-be-detected contour with reflection in the geographical scene, and control the self-mobile device to travel according to the actual position information to avoid the geographical scene the subsurface area. Referring to Figure 3, when the self-mobile device is performing path planning, it plans a navigation path that avoids the water surface area based on the actual position information of the contour to be detected with reflection in the geographic scene, and avoids the geographical area during the travel along the navigation path. The water surface area under the scene, thereby reducing the probability of wading damage during travel.

具体应用时,可以将存在倒影的待检测轮廓在地理场景下的实际位置信息作为水面区域的实际位置信息标记到辅助自移动设备进行导航处理的环境地图中,根据标记有水面区域的实际位置信息的环境地图,控制自移动设备避开水面区域继续行进。其中,环境地图可以包括但不限于:基于SLAM(Simultaneous localization and mapping同步定位与地图构建)技术构建的栅格地图(Grid-based map)、拓扑地图(Topological map)、几何特征地图以及混合地图等。In specific applications, the actual position information of the contour to be detected with reflection in the geographical scene can be marked as the actual position information of the water surface area in the environment map that assists in navigation processing from the mobile device, according to the actual position information of the marked water surface area The environmental map of the mobile device is controlled to avoid the water surface area and continue to travel. Among them, the environmental map may include but not limited to: Grid-based map, topological map, geometric feature map and hybrid map constructed based on SLAM (Simultaneous localization and mapping) technology .

另外,在将水面区域的实际位置信息标记到辅助自移动设备进行导航处理的环境地图中之前,还可以判断环境地图使用的坐标系是否为世界坐标系,若是,可以直接将水面区域的实际位置信息标记到环境地图中。若否,则计算世界坐标系与环境地图使用的坐标系之间的坐标系变换矩阵,并利用坐标系变换矩阵将水面区域的实际位置信息转换至环境地图使用的坐标系下,以及将水面区域在环境地图使用的坐标系下的位置信息标记到环境地图,以完成在环境地图中添加水面区域的信息的任务。在本申请的一些可选实施例中,可以基于存在倒影的待检测轮廓在环境图像中的图像位置信息和环境图像对应图像坐标系和世界坐标系之间的坐标系变换矩阵,计算存在倒影的待检测轮廓在地理场景下的实际位置信息。In addition, before marking the actual position information of the water surface area in the environment map that assists in navigation processing from the mobile device, it can also be judged whether the coordinate system used by the environment map is the world coordinate system, and if so, the actual position of the water surface area can be directly The information is labeled into the environment map. If not, calculate the coordinate system transformation matrix between the world coordinate system and the coordinate system used by the environment map, and use the coordinate system transformation matrix to convert the actual position information of the water surface area to the coordinate system used by the environment map, and convert the water surface area The location information in the coordinate system used by the environment map is marked on the environment map to complete the task of adding information of the water surface area in the environment map. In some optional embodiments of the present application, based on the image position information of the contour to be detected with reflection in the environment image and the coordinate system transformation matrix between the image coordinate system corresponding to the environment image and the world coordinate system, the calculation of The actual location information of the contour to be detected in the geographic scene.

进一步可选的,为了获取到更为准确的存在倒影的待检测轮廓在地理场景下的实际位置信息,步骤204的具体实现方式是:获取图像采集装置所采集的两张目标环境图像,其中,每张目标环境图像均包含存在倒影的待检测轮廓;获取存在倒影的待检测轮廓分别在两张目标环境图像中相对应的第二特征点;将两张目标环境图像中的第二特征点进行匹配,得到两张目标环境图像中匹配成功的第二特征点集;构建第二特征点集在地理场景下的三维空间坐标;根据拍摄两张目标环境图像时图像采集装置的第一地理坐标信息,以及第二特征点在地理场景下的三维空间坐标获取存在倒影的待检测轮廓的地理坐标信息,其中,地理坐标信息为存在倒影的待检测轮廓在地理场景下的实际位置信息。Further optionally, in order to obtain more accurate actual position information of the contour to be detected with reflection in the geographical scene, the specific implementation of step 204 is: obtain two target environment images collected by the image collection device, wherein, Each target environment image contains the contour to be detected with reflection; the second feature point corresponding to the contour to be detected with reflection in the two target environment images is obtained; the second feature point in the two target environment images is Match to obtain the second set of feature points that are successfully matched in the two target environment images; construct the three-dimensional space coordinates of the second feature point set in the geographic scene; according to the first geographic coordinate information of the image acquisition device when shooting the two target environment images , and the three-dimensional space coordinates of the second feature point in the geographic scene to obtain the geographic coordinate information of the contour to be detected with reflection, wherein the geographic coordinate information is the actual position information of the contour to be detected with reflection in the geographic scene.

在本申请实施例中,第二特征点可以是对存在倒影的待检测轮廓上的任一轮廓点采用特征点检测算法处理得到的特征点。进一步可选的,第二特征点为存在倒影的待检测轮廓上的顶点对应的特征点。具体的,可以基于存在倒影的待检测轮廓的形状信息,从存在倒影的待检测轮廓上的多个轮廓点上选择两两线段相交形成的顶点,并采用特征点检测算法处理该顶点得到的第二特征点。In the embodiment of the present application, the second feature point may be a feature point obtained by processing any contour point on the contour to be detected with a reflection by using a feature point detection algorithm. Further optionally, the second feature point is a feature point corresponding to a vertex on the contour to be detected with reflection. Specifically, based on the shape information of the contour to be detected with reflection, the vertex formed by the intersection of two line segments can be selected from multiple contour points on the contour to be detected with reflection, and the vertex obtained by processing the vertex with a feature point detection algorithm Two feature points.

进一步可选的,构建第二特征点集在地理场景下的三维空间坐标时,可以利用第二特征点集,采用对极约束计算两张目标环境图像之间的旋转矩阵和平移矩阵;根据旋转矩阵、平移矩阵生成第二特征点集在地理场景下的三维空间坐标。Further optionally, when constructing the three-dimensional space coordinates of the second feature point set in the geographic scene, the second feature point set can be used to calculate the rotation matrix and translation matrix between the two target environment images using epipolar constraints; according to the rotation The matrix and the translation matrix generate the three-dimensional space coordinates of the second feature point set in the geographic scene.

为了便于理解,结合图4进行说明。在不同的位置拍摄同一个水面区域的两张环境图像。该两张环境图像中相同物体对应的像素点满足对极约束关系。如图4所示,假设两张目标环境图像分别为环境图像1和环境图像2,针对地理场景(也即真实世界)下水面区域的任一轮廓点P,例如为水面区域轮廓的顶点,该轮廓点P在环境图像1中的投影为第二特征点P1,该轮廓点P在环境图像2中的投影为第二特征点P2,O1位置是图像采集装置在拍摄环境图像1时图像采集装置的光心位置,O2位置是图像采集装置拍摄环境图像2时图像采集装置的光心位置。图4中的e1和e2为极点,假设第二特征点P1的图像位置记为p1,第二特征点P2的图像位置记为p2,t为平移矩阵,R为旋转矩阵,T为矩阵的转置,本质矩阵E=t∧R,E为3×3的本质矩阵。根据对极约束可得p1×t×R×p2=0,利用八点法求解本质矩阵E。对本质矩阵E的奇异值进行分解,可以得到两张目标环境图像之间的旋转矩阵R和平移矩阵t。基于针对第二特征点集中的任一第二特征点,利用旋转矩阵和平移矩阵对该第二特征点在对应的目标环境图像中的图像位置进行坐标变换,得到该第二特征点相对于图像采集装置的三维空间坐标。For ease of understanding, description will be made in conjunction with FIG. 4 . Take two environmental images of the same water surface area at different locations. The pixel points corresponding to the same object in the two environmental images satisfy the epipolar constraint relationship. As shown in Figure 4, assuming that the two target environment images are environment image 1 and environment image 2 respectively, for any contour point P of the water surface area under the geographic scene (that is, the real world), for example, the vertex of the water surface area contour, the The projection of the contour point P in the environment image 1 is the second feature point P1, and the projection of the contour point P in the environment image 2 is the second feature point P2. The position O1 is the image acquisition device when the image acquisition device is shooting the environment image 1 The position of the optical center of O2 is the position of the optical center of the image acquisition device when the image acquisition device captures the environmental image 2. e1 and e2 in Figure 4 are poles, assuming that the image position of the second feature point P1 is recorded as p1, and the image position of the second feature point P2 is recorded as p2, t is the translation matrix, R is the rotation matrix, and T is the rotation of the matrix Set, the essential matrix E=t∧R, E is a 3×3 essential matrix. According to the polar constraints, p1×t×R×p2=0 can be obtained, and the essential matrix E is solved by using the eight-point method. By decomposing the singular value of the essential matrix E, the rotation matrix R and translation matrix t between the two target environment images can be obtained. Based on any second feature point in the second feature point set, use the rotation matrix and translation matrix to perform coordinate transformation on the image position of the second feature point in the corresponding target environment image, and obtain the second feature point relative to the image The three-dimensional space coordinates of the acquisition device.

在利用八点法求解本质矩阵E,需要得到8个轮廓点P分别在两张目标环境图像的图像像素坐标,假设

Figure BDA0003449205490000091
任一轮廓点P在一张目标环境图像的图像像素坐标记为(u1,v1),任一轮廓点P在另一张目标环境图像的图像像素坐标记为(u2,v2)。将8个轮廓点P的两个图像像素坐标依次代入以下公式:/>
Figure BDA0003449205490000092
可以得到本质矩阵E=(e1,e2,e3T,。When using the eight-point method to solve the essential matrix E, it is necessary to obtain the image pixel coordinates of the eight contour points P in the two target environment images, assuming
Figure BDA0003449205490000091
The image pixel coordinates of any contour point P in a target environment image are marked as (u 1 , v 1 ), and the image pixel coordinates of any contour point P in another target environment image are marked as (u 2 , v 2 ) . Substitute the two image pixel coordinates of the eight contour points P into the following formula in turn: />
Figure BDA0003449205490000092
The essential matrix E=(e1,e2,e3 T , can be obtained.

拍摄两张所述目标环境图像时所述图像采集装置的第一地理坐标信息,具体可以是:图像采集装置在拍摄两张所述目标环境图像时的三维空间坐标。进一步地,在计算O1位置的位置信息和O2位置的位置信息时,首先可以基于自移动设备的定位设备获取自移动设备当时的定位信息,根据自移动设备当前的定位信息和自移动设备与图像采集装置之间的相对位置关系计算得到图像采集装置当前的三维空间坐标。The first geographic coordinate information of the image acquisition device when capturing two images of the target environment may specifically be: the three-dimensional space coordinates of the image acquisition device when capturing two images of the target environment. Further, when calculating the position information of the O1 position and the position information of the O2 position, firstly, the current position information of the self-mobile device can be obtained based on the positioning device of the self-mobile device, and according to the current position information of the self-mobile device and the image of the self-mobile device The relative positional relationship between the acquisition devices is calculated to obtain the current three-dimensional space coordinates of the image acquisition devices.

结合图4可知,基于O1位置的位置信息、O2位置的位置信息,特征点P1的三维空间坐标,特征点P2的三维空间坐标,通过几何原理,可以简单、准确、快速地计算出轮廓点P的三维空间坐标。Combining with Figure 4, it can be seen that based on the position information of O1 position, O2 position information, the three-dimensional space coordinates of feature point P1, and the three-dimensional space coordinates of feature point P2, the contour point P can be calculated simply, accurately and quickly through geometric principles. The three-dimensional space coordinates of .

本申请实施例提供的自移动设备的控制方法,首先,通过图像采集装置自移动设备行进方向上的环境图像,并对环境图像进行轮廓提取,得到至少一个待检测轮廓;接着,基于对至少一个待检测轮廓的倒影检测结果,从至少一个待检测轮廓中确定包含倒影的待检测轮廓;最后,基于包含倒影的待检测轮廓在地理场景下的实际位置信息,控制自移动设备避开在行进过程中避开地理场景下的水面区域。由此,实现自动、准确、快速地帮助自移动设备基于视觉技术识别水面区域,进而基于水面区域在地理场景下的实际位置信息可以控制自移动设备在行进过程中有效规避水面区域,减少了自移动设备涉水损坏的概率。进一步地,无需布置物理边界即可帮助自移动设备识别水面区域的方式,该方式无需耗费时间和精力,成本较低。In the control method of the self-mobile device provided in the embodiment of the present application, firstly, the environment image in the traveling direction of the self-mobile device is obtained by the image acquisition device, and the contour of the environment image is extracted to obtain at least one contour to be detected; then, based on at least one According to the reflection detection result of the contour to be detected, the contour to be detected containing the reflection is determined from at least one contour to be detected; finally, based on the actual position information of the contour to be detected containing the reflection in the geographical scene, the self-mobile device is controlled to avoid Avoid the water surface area under the geographic scene. As a result, it is possible to automatically, accurately, and quickly help self-mobile devices identify water surface areas based on visual technology, and then based on the actual location information of water surface areas in geographical scenarios, self-mobile devices can be controlled to effectively avoid water surface areas during travel, reducing self-mobile devices. Probability of water damage to mobile devices. Furthermore, there is no need to arrange physical boundaries to help the self-mobile device identify the water surface area, and this method does not need to consume time and energy, and the cost is low.

具体应用中,无论是室内环境还是户外环境,工作环境中可能都存在多种多样的物体或区域,这样,对环境图像进行轮廓提取可以识别到多个待检测轮廓。若对全部的待检测轮廓均进行倒影检测,会降低水面区域的识别效率。In a specific application, whether it is an indoor environment or an outdoor environment, there may be a variety of objects or areas in the working environment. In this way, multiple contours to be detected can be identified by contour extraction on the environmental image. If reflection detection is performed on all contours to be detected, the recognition efficiency of the water surface area will be reduced.

于是,在一可选实施例中,步骤对环境图像进行轮廓提取,得到至少一个待检测轮廓,与步骤对待检测轮廓的内部区域进行倒影检测,以判断待检测轮廓内是否存在倒影之间,还可以执行以下步骤:对至少一个待检测轮廓进行筛选,以删除至少一个待检测轮廓中环境图像上地平线上方的待检测轮廓,和/或,删除周长小于第一预设值的待检测轮廓。Therefore, in an optional embodiment, the step extracts the contour of the environment image to obtain at least one contour to be detected, and the step of performing reflection detection on the inner area of the contour to be detected to determine whether there is a reflection in the contour to be detected, and The following steps may be performed: filtering at least one contour to be detected to delete contours to be detected above the horizon on the environment image in the at least one contour to be detected, and/or deleting contours to be detected whose circumference is smaller than a first preset value.

具有而言,对至少一个待检测轮廓进行筛选,筛选出的待检测轮廓是水面轮廓的概率较大,对筛选出的待检测轮廓进行倒影检测,可以提高水面轮廓的识别效率,还可以提高水面轮廓的识别准确度。Generally speaking, if at least one contour to be detected is screened, the probability that the contour to be detected that is screened out is the contour of the water surface is relatively high, and the reflection detection of the contour to be detected that is screened out can improve the recognition efficiency of the contour of the water surface, and can also improve the water surface contour. Contour recognition accuracy.

在本申请实施例中,对至少一个待检测轮廓进行筛选的具体实现方式不做限制。下面介绍几种可选的实现方式:In this embodiment of the present application, no limitation is imposed on a specific implementation manner of screening at least one contour to be detected. Here are several optional implementations:

方式1:删除周长小于第一预设值的待检测轮廓,也即保留周长大于或等于第一预设值的待检测轮廓。其中,第一预设值是预设的轮廓周长阈值,该第一预设值根据实际业务需求设置。基于各个待检测轮廓的周长与第一预设值的比较结果,可以过滤周长较短的待检测轮廓。Mode 1: Delete the contours to be detected whose circumference is smaller than the first preset value, that is, keep the contours to be detected whose circumference is greater than or equal to the first preset value. Wherein, the first preset value is a preset contour perimeter threshold, and the first preset value is set according to actual business requirements. Based on the comparison result between the circumference of each contour to be detected and the first preset value, contours to be detected with shorter circumferences may be filtered.

方式2:删除环境图像上位于地平线上方的待检测轮廓,也即保留环境图像上位于地平线下方的待检测轮廓。Mode 2: Delete the contours to be detected located above the horizon on the environment image, that is, retain the contours to be detected located below the horizon on the environment image.

在该方式中,基于环境图像中的地平线和多个待检测轮廓的相对位置关系,可以筛选出位于地平线下方的待检测轮廓。In this manner, based on the horizon in the environment image and the relative positional relationship between the multiple contours to be detected, the contours to be detected below the horizon can be screened out.

方式3:删除周长小于第一预设值的待检测轮廓,从剩余的周长大于或等于第一预设值的待检测轮廓中,删除环境图像上位于地平线上方的待检测轮廓。也即保留周长大于或等于第一预设值,且位于环境图像中地平线下方的的待检测轮廓。Mode 3: Delete the contours to be detected whose perimeter is smaller than the first preset value, and delete the contours to be detected above the horizon on the environmental image from the remaining contours to be detected whose perimeter is greater than or equal to the first preset value. That is, the contours to be detected whose circumference is greater than or equal to the first preset value and which are located below the horizon in the environment image are retained.

本申请实施例对确定环境图像中的地平线的方式不做限制。例如,可以利用目标检测算法识别环境图像中建筑物,并检测包围该建筑物的边界框,该边界框反映建筑物在环境图像中的位置信息,将边界框中贴近地面的目标边界所在的水平线确定为环境图像中的地平线,如图5所示。又例如,为了更为精准地确定环境图像中的地平线,可以将基于多个建筑物分别对应的边界框确定出的多个地平线进行加权求和,得到环境图像中的最终的地平线。The embodiment of the present application does not limit the manner of determining the horizon in the environment image. For example, the target detection algorithm can be used to identify buildings in the environment image, and detect the bounding box surrounding the building. Determined as the horizon in the environment image, as shown in Figure 5. For another example, in order to more accurately determine the horizon in the environment image, multiple horizons determined based on the bounding boxes corresponding to the multiple buildings may be weighted and summed to obtain the final horizon in the environment image.

进一步可选的,为了更为精准地确定环境图像中的地平线,在确定环境图像中的地平线时,可以根据自移动设备在采集环境图像时的位姿数据和图像采集装置的光心位置,得到环境图像中的地平线。其中,图像采集装置的光心位置可以从图像采集装置的标定参数中获取。自移动设备在采集环境图像时的位姿数据可以由设置在自移动设备的惯性传感器(Inertial Measurement Unit,IMU)、三轴姿态传感器、六轴姿态传感器、九轴姿态传感器等提供。由于地形颠簸,如图5所示,自移动设备在行进过程中若遇到石头等会发生倾斜,在这种情形下,环境图像中的地平线为与环境图像的像素平面坐标轴不平行的斜线。Further optionally, in order to more accurately determine the horizon in the environment image, when determining the horizon in the environment image, it can be obtained according to the pose data of the mobile device when collecting the environment image and the optical center position of the image acquisition device Horizon in environment images. Wherein, the optical center position of the image acquisition device can be obtained from calibration parameters of the image acquisition device. The pose data of the self-mobile device when collecting the environment image may be provided by an inertial sensor (Inertial Measurement Unit, IMU), a three-axis attitude sensor, a six-axis attitude sensor, a nine-axis attitude sensor, etc. set on the self-mobile device. Due to the turbulent terrain, as shown in Figure 5, if the self-mobile device encounters stones during travel, it will tilt. Wire.

在本申请实施例中,环境图像中的地平线是图像采集装置光心所在海拔高度的绝对水平面与环境图像所在的图像平面之间的相交线,在图6的过图像采集装置光心的线段为绝对水平面中的线段。下面结合图6对环境图像中的地平线的计算原理进行介绍。在图6中,O-x-y-z坐标系为图像采集装置坐标系,O′-x′-y′坐标系为像素平面坐标系,O为图像采集装置的光心,图像采集装置的焦距即为f,图像平面也即物理成像平面。图像采集装置的光心所在海拔高度的绝对水平面记为PQP′Q′,PQP′Q′绝对水平面与图像平面之间的相交线为P′Q′,P′Q′即为环境图像中的地平线。In the embodiment of the present application, the horizon in the environmental image is the intersection line between the absolute horizontal plane at the altitude where the optical center of the image acquisition device is located and the image plane where the environmental image is located, and the line segment passing through the optical center of the image acquisition device in Figure 6 is A line segment in an absolute horizontal plane. The calculation principle of the horizon in the environment image will be introduced below with reference to FIG. 6 . In Fig. 6, the O-x-y-z coordinate system is the coordinate system of the image acquisition device, the O'-x'-y' coordinate system is the pixel plane coordinate system, O is the optical center of the image acquisition device, and the focal length of the image acquisition device is f, the image The plane is also the physical imaging plane. The absolute horizontal plane at the altitude where the optical center of the image acquisition device is located is recorded as PQP'Q', the intersection line between the absolute horizontal plane of PQP'Q' and the image plane is P'Q', and P'Q' is the horizon in the environmental image .

假设图像采集装置的光心位置记为(X,Y,Z),自移动设备的姿态数据(也是图像采集装置的姿态数据)记为(roll,yaw,pitch),roll表征翻滚角,yaw表征偏航角,pitch表征俯仰角。基于光心位置(X,Y,Z)和姿态数据(roll,yaw,pitch)可以计算出PQP′Q′水平面的方程:Ax+By+Cz+D=0。其中,A、B、C、D为常系数。取PQP′Q′水平面上的两点P(X1,Y1,Z1)和Q(X2,Y2,Z2),根据小孔成像原理可以P(X1,Y1,Z1)在成像平面上像素P′(u1,v1),以及Q(X2,Y2,Z2)在成像平面上像素Q′(u2,v2),像素P′(u1,v1)和像素Q′(u2,v2)之间的连线记为环境图像中的地平线。Assuming that the optical center position of the image acquisition device is recorded as (X, Y, Z), the attitude data of the self-moving device (also the attitude data of the image acquisition device) is recorded as (roll, yaw, pitch), roll represents the roll angle, and yaw represents Yaw angle, pitch represents the pitch angle. Based on the optical center position (X, Y, Z) and attitude data (roll, yaw, pitch), the equation of the PQP'Q' horizontal plane can be calculated: Ax+By+Cz+D=0. Among them, A, B, C, D are constant coefficients. Taking two points P(X1, Y1, Z1) and Q(X2, Y2, Z2) on the horizontal plane of PQP'Q', according to the pinhole imaging principle, P(X1, Y1, Z1) can be pixel P'( u1, v1), and Q(X2, Y2, Z2) on the imaging plane pixel Q'(u2,v2), the connection between pixel P'(u1,v1) and pixel Q'(u2,v2) is the horizon in the environment image.

为了便于理解,下面介绍几种场景实施例对本申请实施例提供的自移动设备的控制方法进行详细说明。For ease of understanding, several scenario embodiments are introduced below to describe in detail the method for controlling the self-mobile device provided by the embodiment of the present application.

场景实施例1:Scenario Example 1:

智能割草机器人在户外执行割草作业时,开启设置在智能割草机器人前端的图像采集装置进行图像采集,并对采集的环境图像进行轮廓提取,以及对提取到的多个轮廓的内部区域分别进行倒影检测。在有轮廓的内部区域存在倒影时,则该轮廓为水面轮廓。将水面轮廓在地理场景下的实际位置信息添加至在导航地图中。智能割草机器人根据导航地图中该水面区域的实际位置信息进行路径规划,以规划出一条在行进过程中避让水面区域的路径,避免智能割草机器人涉水损坏。When the intelligent lawn mowing robot performs mowing work outdoors, it turns on the image acquisition device set at the front end of the intelligent lawn mowing robot to collect images, and extracts the contours of the collected environmental images, and separates the internal areas of the extracted multiple contours. Perform reflection detection. A contour is a water contour when there is a reflection in the contoured interior area. Add the actual position information of the water surface outline in the geographic scene to the navigation map. The intelligent lawn mowing robot performs path planning according to the actual location information of the water surface area in the navigation map, so as to plan a path that avoids the water surface area during the traveling process, and avoids the intelligent lawn mowing robot wading damage.

场景实施例2:Scenario example 2:

智能消杀机器人在室内环境执行消杀作业时,开启设置在智能消杀机器人前端的图像采集装置进行图像采集,并对采集的环境图像进行轮廓提取,以及对提取到的多个轮廓的内部区域分别进行倒影检测。在有轮廓的内部区域存在倒影时,则该轮廓为水面轮廓。将水面轮廓在地理场景下的实际位置信息添加至在导航地图中。智能消杀机器人根据导航地图中该水面区域的实际位置信息进行路径规划,以规划出一条在行进过程中避让水面区域的路径,避免智能消杀机器人涉水损坏。When the intelligent disinfecting robot performs disinfecting operations in an indoor environment, it turns on the image acquisition device set at the front end of the intelligent disinfecting robot to collect images, and extracts the contours of the collected environmental images, as well as the internal areas of the extracted multiple contours Reflection detection is performed separately. A contour is a water contour when there is a reflection in the contoured interior area. Add the actual position information of the water surface outline in the geographic scene to the navigation map. The intelligent disinfecting robot performs path planning according to the actual position information of the water surface area in the navigation map, so as to plan a path that avoids the water surface area during the traveling process, and avoids the intelligent disinfecting robot wading damage.

需要说明的是,上述实施例所提供方法的各步骤的执行主体均可以是同一设备,或者,该方法也由不同设备作为执行主体。比如,步骤201至步骤203的执行主体可以为设备A;又比如,步骤201和202的执行主体可以为设备A,步骤203的执行主体可以为设备B;等等。It should be noted that the subject of execution of each step of the method provided in the foregoing embodiments may be the same device, or the method may also be executed by different devices. For example, the execution subject of steps 201 to 203 may be device A; for another example, the execution subject of steps 201 and 202 may be device A, and the execution subject of step 203 may be device B; and so on.

另外,在上述实施例及附图中的描述的一些流程中,包含了按照特定顺序出现的多个操作,但是应该清楚了解,这些操作可以不按照其在本文中出现的顺序来执行或并行执行,操作的序号如201、202等,仅仅是用于区分开各个不同的操作,序号本身不代表任何的执行顺序。另外,这些流程可以包括更多或更少的操作,并且这些操作可以按顺序执行或并行执行。需要说明的是,本文中的“第一”、“第二”等描述,是用于区分不同的消息、设备、模块等,不代表先后顺序,也不限定“第一”和“第二”是不同的类型。In addition, in some of the processes described in the above embodiments and accompanying drawings, multiple operations appearing in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear herein or executed in parallel , the serial numbers of the operations, such as 201, 202, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. Additionally, these processes can include more or fewer operations, and these operations can be performed sequentially or in parallel. It should be noted that the descriptions of "first" and "second" in this article are used to distinguish different messages, devices, modules, etc. are different types.

本申请实施例还提供一种自移动设备,图8为本申请一示例性实施例提供的一种自移动设备的结构示意图。如图8所示,该自移动设备至少可以包括:图像采集装置80、存储器81和处理器82、车架83、行走装置84。An embodiment of the present application also provides a self-moving device, and FIG. 8 is a schematic structural diagram of a self-moving device provided in an exemplary embodiment of the present application. As shown in FIG. 8 , the self-mobile device may at least include: an image acquisition device 80 , a memory 81 and a processor 82 , a vehicle frame 83 , and a walking device 84 .

行走装置84设置于车架83上,用于带动自移动设备行走。例如,行走装置可以包括驱动轮、驱动电机、万向轮等。The traveling device 84 is arranged on the vehicle frame 83 and is used to drive the self-moving equipment to walk. For example, the running gear may include driving wheels, driving motors, universal wheels and the like.

图像采集装置80设置于车架上,用于图像采集。The image acquisition device 80 is arranged on the vehicle frame for image acquisition.

存储器,用于存储计算机程序;这些计算机程序可被处理器82执行,致使处理器82控制自移动设备实现相应功能、完成相应动作或任务。除了存储计算机程序之外,存储器81还可被配置为存储其它各种数据以支持在自移动设备上的操作。这些数据的示例包括用于在自移动设备上操作的任何应用程序或方法的指令。The memory is used to store computer programs; these computer programs can be executed by the processor 82, causing the processor 82 to control the self-mobile device to implement corresponding functions and complete corresponding actions or tasks. In addition to storing computer programs, memory 81 may also be configured to store various other data to support operations on the mobile device. Examples of such data include instructions for any application or method operating on the mobile device.

在本申请实施例中,并不限定处理器82的实现形态,例如可以是但不限于CPU、GPU或MCU等。处理器82可以看作是自移动设备的控制系统,可用于执行存储器81中存储的计算机程序,以控制自移动设备实现相应功能、完成相应动作或任务。值得说明的是,根据自移动设备实现形态以及所处于场景的不同,其所需实现的功能、完成的动作或任务会有所不同;相应地,存储器81中存储的计算机程序也会有所不同,而处理器82执行不同计算机程序可控制自移动设备实现不同的功能、完成不同的动作或任务。In this embodiment of the present application, the implementation form of the processor 82 is not limited, for example, it may be but not limited to a CPU, a GPU, or an MCU. The processor 82 can be regarded as the control system of the self-mobile device, and can be used to execute the computer program stored in the memory 81, so as to control the self-mobile device to realize corresponding functions and complete corresponding actions or tasks. It is worth noting that, depending on the form of the self-mobile device and the different scenarios, the required functions, completed actions or tasks will be different; correspondingly, the computer programs stored in the memory 81 will also be different. , and the processor 82 executes different computer programs to control the self-mobile device to realize different functions and complete different actions or tasks.

处理器82耦合至存储器81,用于:获取图像采集装置所采集的环境图像,环境图像为自移动设备行进方向上的图像;对环境图像进行轮廓提取,得到至少一个待检测轮廓;对待检测轮廓的内部区域进行倒影检测,以判断待检测轮廓内是否存在倒影;当待检测轮廓内存在倒影时,获取存在倒影的待检测轮廓在地理场景下的实际位置信息,以能根据实际位置信息控制自移动设备行进,以避开地理场景下的水面区域。The processor 82 is coupled to the memory 81, and is used to: obtain the environmental image collected by the image acquisition device, the environmental image is an image in the direction of travel of the mobile device; perform contour extraction on the environmental image to obtain at least one contour to be detected; contour to be detected In order to determine whether there is a reflection in the contour to be detected; when there is a reflection in the contour to be detected, the actual position information of the contour to be detected with reflection in the geographical scene is obtained, so as to control the self-display according to the actual position information. The mobile device travels to avoid water surface areas under the geographic scene.

进一步可选的,处理器82在执行步骤对环境图像进行轮廓提取,得到至少一个待检测轮廓,与步骤对待检测轮廓的内部区域进行倒影检测,以判断待检测轮廓内是否存在倒影之间,还用于:对至少一个待检测轮廓进行筛选,以删除至少一个待检测轮廓中环境图像上地平线下方的待检测轮廓,和/或,删除周长小于第一预设值的待检测轮廓。Further optionally, the processor 82 extracts the contour of the environment image in the execution step to obtain at least one contour to be detected, and performs reflection detection on the inner area of the contour to be detected in the step of performing reflection detection to determine whether there is a reflection in the contour to be detected. It is used for: filtering at least one contour to be detected to delete contours to be detected in the at least one contour to be detected that are below the horizon on the environment image, and/or to delete contours to be detected whose circumference is smaller than a first preset value.

进一步可选的,处理器82还用于:根据自移动设备在采集环境图像时的位姿数据和图像采集装置的光心位置,获取环境图像中的地平线。Further optionally, the processor 82 is further configured to: acquire the horizon in the environment image according to the pose data of the self-mobile device when collecting the environment image and the optical center position of the image acquisition device.

进一步可选的,处理器82在对待检测轮廓的内部区域进行倒影检测,以判断待检测轮廓内是否存在倒影时,具体用于:在待检测轮廓内提取多个第一特征点;在环境图像上,对多个第一特征点进行一一计算,以判断每个所述第一特征点是否存在相对于地平线对称的匹配点,且当所述第一特征点存在相对于地平线对称的匹配点时,则将所述第一特征点与所述匹配点组成一个对称点对;获取所述对称点对的数量,并当对称点对的数量满足第二预设值时,判断待检测轮廓内存在倒影。Further optionally, when the processor 82 performs reflection detection in the inner area of the contour to be detected to determine whether there is a reflection in the contour to be detected, it is specifically used to: extract a plurality of first feature points in the contour to be detected; In the above, a plurality of first feature points are calculated one by one to determine whether each of the first feature points has a matching point that is symmetrical with respect to the horizon, and when the first feature point has a matching point that is symmetrical with respect to the horizon , then form a symmetrical point pair with the first feature point and the matching point; obtain the number of symmetrical point pairs, and when the number of symmetrical point pairs satisfies the second preset value, judge the contour memory to be detected in reflection.

进一步可选的,处理器82当待检测轮廓内存在倒影时,获取存在倒影的待检测轮廓在地理场景下的实际位置信息时,具体用于:获取图像采集装置所采集的两张目标环境图像,其中,每张目标环境图像均包含存在倒影的待检测轮廓;获取存在倒影的待检测轮廓分别在两张目标环境图像中相对应的第二特征点;将两张目标环境图像中的第二特征点进行匹配,得到两张目标环境图像中匹配成功的第二特征点集;构建第二特征点集在地理场景下的三维空间坐标;根据拍摄两张目标环境图像时图像采集装置的第一地理坐标信息,以及第二特征点在地理场景下的三维空间坐标获取存在倒影的待检测轮廓的地理坐标信息,其中,地理坐标信息为存在倒影的待检测轮廓在地理场景下的实际位置信息。Further optionally, when there is a reflection in the contour to be detected, the processor 82 is specifically used to obtain the two target environment images collected by the image acquisition device when acquiring the actual position information of the contour to be detected with the reflection in the geographical scene , wherein, each target environment image contains a contour to be detected with reflection; the second feature point corresponding to the contour to be detected with reflection in the two target environment images is obtained; the second feature point in the two target environment images is The feature points are matched to obtain the second feature point set successfully matched in the two target environment images; the three-dimensional space coordinates of the second feature point set in the geographical scene are constructed; according to the first set of the image acquisition device when shooting the two target environment images The geographical coordinate information and the three-dimensional space coordinates of the second feature point in the geographical scene obtain the geographical coordinate information of the contour to be detected with reflection, wherein the geographical coordinate information is the actual position information of the contour to be detected with reflection in the geographical scene.

进一步可选的,处理器82构建第二特征点集在地理场景下的三维空间坐标时,具体用于:利用第二特征点集,采用对极约束计算两张目标环境图像之间的旋转矩阵和平移矩阵;根据旋转矩阵、平移矩阵生成第二特征点集在地理场景下的三维空间坐标。Further optionally, when the processor 82 constructs the three-dimensional space coordinates of the second feature point set in the geographical scene, it is specifically used to: use the second feature point set to calculate the rotation matrix between two target environment images using epipolar constraints and a translation matrix; generating the three-dimensional space coordinates of the second feature point set in the geographical scene according to the rotation matrix and the translation matrix.

进一步可选的,第二特征点为存在倒影的待检测轮廓上的顶点对应的特征点。Further optionally, the second feature point is a feature point corresponding to a vertex on the contour to be detected with reflection.

相应地,本申请实施例还提供一种存储有计算机程序的计算机可读存储介质,计算机程序被执行时能够实现上述方法实施例中的各步骤。Correspondingly, the embodiments of the present application also provide a computer-readable storage medium storing a computer program, and when the computer program is executed, the steps in the above method embodiments can be realized.

上述通信组件被配置为便于通信组件所在设备和其他设备之间有线或无线方式的通信。通信组件所在设备可以接入基于通信标准的无线网络,如WiFi,2G、3G、4G/LTE、5G等移动通信网络,或它们的组合。在一个示例性实施例中,通信组件经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The above-mentioned communication component is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on communication standards, such as WiFi, 2G, 3G, 4G/LTE, 5G and other mobile communication networks, or a combination thereof. In one exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication assembly also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

上述显示器包括屏幕,其屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。The above-mentioned display includes a screen, and the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or a swipe action, but also detect duration and pressure associated with the touch or swipe operation.

上述电源组件,为电源组件所在设备的各种组件提供电力。电源组件可以包括电源管理系统,一个或多个电源,及其他与为电源组件所在设备生成、管理和分配电力相关联的组件。The above-mentioned power supply component provides power for various components of the equipment where the power supply component is located. A power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device in which the power supply component resides.

上述音频组件,可被配置为输出和/或输入音频信号。例如,音频组件包括一个麦克风(MIC),当音频组件所在设备处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器或经由通信组件发送。在一些实施例中,音频组件还包括一个扬声器,用于输出音频信号。The aforementioned audio components may be configured to output and/or input audio signals. For example, the audio component includes a microphone (MIC), which is configured to receive an external audio signal when the device on which the audio component is located is in an operation mode, such as a calling mode, a recording mode, and a speech recognition mode. The received audio signal may be further stored in a memory or sent via a communication component. In some embodiments, the audio component further includes a speaker for outputting audio signals.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read only memory (ROM) or flash RAM. Memory is an example of computer readable media.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

以上仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above are only examples of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may occur in this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.

Claims (11)

1. A control method of a self-moving device having an image acquisition apparatus, the method comprising:
acquiring an environment image acquired by the image acquisition device, wherein the environment image is an image in the travelling direction of the self-mobile equipment;
extracting the contour of the environment image to obtain at least one contour to be detected;
performing reflection detection on the internal area of the outline to be detected to judge whether reflection exists in the outline to be detected;
when the back image exists in the contour to be detected, acquiring the actual position information of the contour to be detected with the back image under the geographic scene, so that the self-moving equipment can be controlled to travel according to the actual position information, and the water surface area under the geographic scene is avoided.
2. The method of claim 1, wherein the steps of extracting the contour of the environmental image to obtain at least one contour to be detected, and detecting the reflection of the internal region of the contour to be detected to determine whether the reflection exists in the contour to be detected, further comprise:
And screening at least one contour to be detected to delete the contour to be detected below the horizon on the environment image in at least one contour to be detected, and/or deleting the contour to be detected with the circumference smaller than a first preset value.
3. The method as recited in claim 2, further comprising:
and acquiring the horizon in the environment image according to the pose data of the self-mobile device when the environment image is acquired and the optical center position of the image acquisition device.
4. A method according to any one of claims 1 to 3, wherein the step of performing a ghost detection on an inner region of the outline to be detected to determine whether a ghost exists within the outline to be detected, comprises:
extracting a plurality of first characteristic points from the outline to be detected;
on the environment image, carrying out one-to-one calculation on a plurality of first feature points to judge whether each first feature point has a matching point symmetrical relative to a horizon, and when the first feature point has a matching point symmetrical relative to the horizon, forming a symmetrical point pair by the first feature point and the matching point;
And acquiring the number of the symmetrical point pairs, and judging that the contour to be detected has the reflection when the number of the symmetrical point pairs meets a second preset value.
5. The method according to claim 4, wherein the extracting of the first feature point may use any one of the following algorithms: ORB extraction algorithm, SIFT extraction algorithm, and HARRIS extraction algorithm.
6. A method according to any one of claims 1 to 3, wherein the step of performing a ghost detection on an inner region of the outline to be detected to determine whether a ghost exists within the outline to be detected, comprises:
step 2031: extracting a first characteristic point from the contour to be detected as a current first characteristic point;
step 2033: calculating the current first feature point on the environment image to judge whether the current first feature point has a current matching point symmetrical relative to the horizon, and when the current feature point has the current matching point symmetrical relative to the horizon, forming a current symmetrical point pair by the current first feature point and the current matching point;
step 2035: and taking the current symmetry point pair as a detected symmetry point pair, recording the current symmetry point pair as a detected symmetry point pair set, extracting any one of first characteristic points in different pairs of detected symmetry point pairs from the profile to be detected as the current first characteristic point, and repeating the steps 2033 to 2035 until the existence of the reflection in the profile to be detected is judged when the number of the detected symmetry point pairs meets a second preset value.
7. A method according to any one of claims 1 to 3, wherein when there is a reflection in the contour to be detected, the step of obtaining actual position information of the contour to be detected in which there is a reflection in a geographical scene, so as to control the self-mobile device to travel according to the actual position information, so as to avoid a water surface area in the geographical scene, specifically includes:
acquiring two target environment images acquired by the image acquisition device, wherein each target environment image comprises the contour to be detected with the reflection;
acquiring second feature points corresponding to the contours to be detected with the reflection in the two target environment images respectively;
matching the second characteristic points in the two target environment images to obtain a second characteristic point set successfully matched in the two target environment images;
constructing three-dimensional space coordinates of the second feature point set in the geographic scene;
and acquiring the geographic coordinate information of the contour to be detected with the reflection according to the first geographic coordinate information of the image acquisition device when two images of the target environment are shot and the three-dimensional space coordinates of the second characteristic points in the geographic scene, so that the self-moving equipment can be controlled to advance according to the actual position information to avoid a water surface area in the geographic scene, wherein the geographic coordinate information is the actual position information of the contour to be detected with the reflection in the geographic scene.
8. The method according to claim 7, wherein the step of constructing three-dimensional space coordinates of the second feature point set in the geographic scene specifically comprises:
calculating a rotation matrix and a translation matrix between the two target environment images by utilizing the second characteristic point set and adopting epipolar constraint;
and generating three-dimensional space coordinates of the second feature point set in the geographic scene according to the rotation matrix and the translation matrix.
9. The method of claim 7, wherein the second feature point is a feature point corresponding to a vertex on the contour to be detected where a reflection exists.
10. A self-moving device, comprising: the device comprises a frame, a traveling device, an image acquisition device, a memory and a processor, wherein,
the walking device is arranged on the frame and used for driving the self-moving equipment to walk;
the image acquisition device is arranged on the frame;
the memory is used for storing a computer program;
the processor is coupled to the memory for executing the computer program for performing the method of any of claims 1-9.
11. A storage medium storing a computer program which, when executed by a processor, causes the processor to implement the method of any one of claims 1-9.
CN202111658963.7A 2021-12-30 2021-12-30 Control method of self-mobile device, self-mobile device and storage medium Pending CN116414112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111658963.7A CN116414112A (en) 2021-12-30 2021-12-30 Control method of self-mobile device, self-mobile device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111658963.7A CN116414112A (en) 2021-12-30 2021-12-30 Control method of self-mobile device, self-mobile device and storage medium

Publications (1)

Publication Number Publication Date
CN116414112A true CN116414112A (en) 2023-07-11

Family

ID=87053389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111658963.7A Pending CN116414112A (en) 2021-12-30 2021-12-30 Control method of self-mobile device, self-mobile device and storage medium

Country Status (1)

Country Link
CN (1) CN116414112A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119828714A (en) * 2025-03-17 2025-04-15 山东港口日照港集团有限公司 Method and system for intelligent bionic robot to patrol and examine position of grain wharf

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833763A (en) * 2010-04-28 2010-09-15 天津大学 A Method for Detection of Water Surface Reflection Image
CN112580497A (en) * 2020-12-17 2021-03-30 上海依图智安人工智能科技有限公司 Image recognition method and device
CN112643719A (en) * 2020-12-11 2021-04-13 国网智能科技股份有限公司 Tunnel security detection method and system based on inspection robot
CN113359692A (en) * 2020-02-20 2021-09-07 杭州萤石软件有限公司 Obstacle avoidance method and movable robot
WO2021238001A1 (en) * 2020-05-29 2021-12-02 苏州科瓴精密机械科技有限公司 Robot travelling control method and system, robot, and readable storage medium
CN113761970A (en) * 2020-06-02 2021-12-07 苏州科瓴精密机械科技有限公司 Method, system, robot and storage medium for identifying working position based on image

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833763A (en) * 2010-04-28 2010-09-15 天津大学 A Method for Detection of Water Surface Reflection Image
CN113359692A (en) * 2020-02-20 2021-09-07 杭州萤石软件有限公司 Obstacle avoidance method and movable robot
WO2021238001A1 (en) * 2020-05-29 2021-12-02 苏州科瓴精密机械科技有限公司 Robot travelling control method and system, robot, and readable storage medium
CN113761970A (en) * 2020-06-02 2021-12-07 苏州科瓴精密机械科技有限公司 Method, system, robot and storage medium for identifying working position based on image
CN112643719A (en) * 2020-12-11 2021-04-13 国网智能科技股份有限公司 Tunnel security detection method and system based on inspection robot
CN112580497A (en) * 2020-12-17 2021-03-30 上海依图智安人工智能科技有限公司 Image recognition method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119828714A (en) * 2025-03-17 2025-04-15 山东港口日照港集团有限公司 Method and system for intelligent bionic robot to patrol and examine position of grain wharf

Similar Documents

Publication Publication Date Title
CN112161618B (en) Storage robot positioning and map construction method, robot and storage medium
US10278333B2 (en) Pruning robot system
CN110268225B (en) A method, server and electronic device for collaborative operation between multiple devices
EP3371670B1 (en) Device and method for autonomous localisation
US20190162856A1 (en) Method and system for positioning of autonomously operating entities
CN112710318A (en) Map generation method, route planning method, electronic device, and storage medium
US10970929B2 (en) Boundary detection using vision-based feature mapping
CN107390721A (en) Robot retinue control method, device and robot
CN106940186A (en) A kind of robot autonomous localization and air navigation aid and system
CN113095184B (en) Positioning method, driving control method, device, computer equipment and storage medium
CN110134117B (en) Mobile robot repositioning method, mobile robot and electronic equipment
CN112907625B (en) Target following method and system applied to quadruped bionic robot
CN106162144A (en) A kind of visual pattern processing equipment, system and intelligent machine for overnight sight
CN109709977B (en) Method and device for planning movement track and moving object
CN113191297A (en) Pavement identification method and device and electronic equipment
CN118658056A (en) Method, system and electronic equipment for automatic inspection of orchard
CN118752498A (en) Autonomous navigation method and system for a steel bar tying robot
CN114721385A (en) Virtual boundary establishing method and device, intelligent terminal and computer storage medium
KR101319526B1 (en) Method for providing location information of target using mobile robot
CN116414112A (en) Control method of self-mobile device, self-mobile device and storage medium
Griffith et al. Survey registration for long‐term natural environment monitoring
CN115981298A (en) Operation control method of outdoor robot and outdoor robot
CN119369360A (en) Intelligent orchard inspection robot and control system and control method thereof
US20230324921A1 (en) Autonomous Robotic Platform
Hroob et al. Learned long-term stability scan filtering for robust robot localisation in continuously changing environments

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