[go: up one dir, main page]

CN114549978A - A method and system for running a mobile robot based on multiple cameras - Google Patents

A method and system for running a mobile robot based on multiple cameras Download PDF

Info

Publication number
CN114549978A
CN114549978A CN202210113040.1A CN202210113040A CN114549978A CN 114549978 A CN114549978 A CN 114549978A CN 202210113040 A CN202210113040 A CN 202210113040A CN 114549978 A CN114549978 A CN 114549978A
Authority
CN
China
Prior art keywords
image
scene
camera
scene image
area
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
CN202210113040.1A
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.)
Shenzhen Umouse Technology Development Co Ltd
Original Assignee
Shenzhen Umouse Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Umouse Technology Development Co Ltd filed Critical Shenzhen Umouse Technology Development Co Ltd
Priority to CN202210113040.1A priority Critical patent/CN114549978A/en
Publication of CN114549978A publication Critical patent/CN114549978A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/66Analysis of geometric attributes of image moments or centre of gravity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence

Landscapes

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

Abstract

A mobile robot operation method based on multiple cameras is characterized in that multiple cameras acquire indoor scene images, coordinate systems are established according to two sides of the scene images, and a scene image area of each camera is set; setting a rectangular boundary area in a scene image, establishing a target image template, matching the target image template with the scene image by using a gray matching algorithm to obtain the center point coordinate and the contour of the target image in the scene image, and determining the coordinate of the target image in a coordinate system according to the center point coordinate and the contour of the target image. According to the multi-camera-based mobile robot operation method, the image template is matched with the scene image, the gray level matching algorithm is used for matching, the matching precision under various conditions can be effectively improved, the accuracy of object positioning is improved, the hardware cost is reduced, the reliability of a positioning system is improved by using a variable and quantitative method, and the center point coordinate and the contour coordinate of the target image are accurately obtained.

Description

一种基于多摄像头的移动机器人运行方法及系统A method and system for operating a mobile robot based on multiple cameras

技术领域technical field

本发明涉及扫地机器人室内定位技术领域,具体涉及一种基于多摄像头的移动机器人运行方法及系统。The invention relates to the technical field of indoor positioning of sweeping robots, in particular to a multi-camera-based mobile robot operation method and system.

背景技术Background technique

现有的扫地机器人在室内清洁,产生了极大的作用。随着使用场景的变化,急需在室内对于扫地机器人进行精确定位,以解决导航、清洁、避障的操作。The existing sweeping robots clean indoors and have a great effect. With the change of usage scenarios, it is urgent to accurately position the sweeping robot indoors to solve the operations of navigation, cleaning and obstacle avoidance.

但是现有的扫地机器人在图像数据中,其色彩很容易与室内场景的其他近似物重合,导致标定困难,无法精确追踪。However, in the image data of the existing sweeping robot, the color easily overlaps with other approximations of the indoor scene, resulting in difficult calibration and accurate tracking.

目前的主要方法是通过对比静态和动态物体来定位,对于电脑的算力和系统算法设计的要求和成本比较高,并且会受环境影响,比如产品镜面的反光等等,存在这个问题的原因是基于现在硬件的提升导致倾向于使用算法去定位移动物体,而忽略了变量和定量之间的转换。At present, the main method is to locate by comparing static and dynamic objects. The requirements and costs for computer computing power and system algorithm design are relatively high, and it will be affected by the environment, such as the reflection of product mirrors, etc. The reason for this problem is that Improvements based on current hardware have led to the tendency to use algorithms to locate moving objects, ignoring the conversion between variables and quantities.

发明内容SUMMARY OF THE INVENTION

本发明的发明目的在于克服现有技术存在的问题,提供一种标定准确度高、成本低的用于多摄像头的移动机器人的运行方法及系统。The purpose of the present invention is to overcome the problems existing in the prior art, and to provide an operation method and system for a multi-camera mobile robot with high calibration accuracy and low cost.

本发明技术方案如下:The technical scheme of the present invention is as follows:

一种基于多摄像头的移动机器人运行方法,A mobile robot operation method based on multi-camera,

多个摄像头获取室内的场景图像,根据场景图像的两边建立坐标系,设定每个摄像头的场景图像区域;Multiple cameras acquire indoor scene images, establish a coordinate system according to both sides of the scene image, and set the scene image area of each camera;

设定场景图像中的矩形边界区域,Sets the rectangular bounding area in the scene image,

建立目标图像模板,将目标图像模板与场景图像使用灰度匹配算法进行匹配,得到场景图像中的目标图像的中心点坐标和轮廓,Establish a target image template, match the target image template with the scene image using a grayscale matching algorithm, and obtain the center point coordinates and outline of the target image in the scene image,

根据目标图像的中心点坐标和轮廓,确定目标图像在坐标系中的坐标。Determine the coordinates of the target image in the coordinate system according to the center point coordinates and outline of the target image.

所述设定场景图像中的矩形边界区域之后还包括对场景图像建立图像遮蔽区域,所述图像遮蔽区域包括After the setting of the rectangular boundary area in the scene image, it further includes establishing an image shielding area for the scene image, and the image shielding area includes

处理场景图像中矩形边界区域以外的区域;Process the area outside the rectangular bounding area in the scene image;

将这个区域的场景图像灰度化的之后与常量255做异或。The scene image in this area is grayscaled and XORed with the constant 255.

所述多个摄像头取像时,设定每个摄像头的取像区域,对场景图像根据取像区域分区定义,指定摄像头。When the multiple cameras capture images, the image capturing area of each camera is set, and the camera is designated for the scene image according to the image capturing area partition definition.

以所述矩形边界的两边为轴,建立坐标系,标定目标图像的位置在矩形边界内的坐标。Taking the two sides of the rectangular boundary as axes, a coordinate system is established, and the coordinates of the position of the target image within the rectangular boundary are calibrated.

所述每个摄像头的场景图像均设置独立的坐标系。An independent coordinate system is set for the scene image of each camera.

所述相邻的摄像头的场景图像内的坐标系衔接第一个摄像头的场景图像的坐标系,多个摄像头构成全景坐标系。The coordinate systems in the scene images of the adjacent cameras are connected to the coordinate systems of the scene images of the first camera, and a plurality of cameras form a panoramic coordinate system.

通过设置于室内顶部的摄像头向下取像得到场景图像,多个摄像头的取像区域布满整个室内场景。The scene image is obtained by taking a downward image of the camera set at the top of the room, and the image capturing area of the multiple cameras covers the entire indoor scene.

分析连续的摄像头的场景图像,当机器人离开场景图像中的矩形区域,且未进入下一个摄像头的矩形区域时,标记机器人丢失。Analyze the scene images of consecutive cameras, and mark the robot as lost when the robot leaves the rectangular area in the scene image and does not enter the rectangular area of the next camera.

所述图像模板包括有多个,每个图像模板的像素为正常采集的目标图像像素至目标图像的最小识别像素。The image template includes a plurality of pixels, and the pixels of each image template are from the target image pixel normally collected to the minimum recognition pixel of the target image.

一种基于多摄像头的移动机器人运行系统,包括A mobile robot operating system based on multiple cameras, including

摄像头模块,用于摄像头获取室内的场景图像,建立坐标系;The camera module is used for the camera to obtain indoor scene images and establish a coordinate system;

模板构建模块,建立图像模板,Template building blocks, build image templates,

匹配模块,将图像模板与场景图像使用灰度匹配算法进行匹配,对于互相关值进行归一化处理,得到匹配结果;The matching module matches the image template and the scene image using a grayscale matching algorithm, and normalizes the cross-correlation value to obtain a matching result;

计算模块,计算目标图像在场景图像内的中心点坐标和轮廓坐标。The calculation module calculates the center point coordinates and contour coordinates of the target image in the scene image.

有益效果:Beneficial effects:

一种基于多摄像头的移动机器人运行方法,A mobile robot operation method based on multi-camera,

多个摄像头获取室内的场景图像,根据场景图像的两边建立坐标系,设定每个摄像头的场景图像区域;Multiple cameras acquire indoor scene images, establish a coordinate system according to both sides of the scene image, and set the scene image area of each camera;

设定场景图像中的矩形边界区域,Sets the rectangular bounding area in the scene image,

建立目标图像模板,将目标图像模板与场景图像使用灰度匹配算法进行匹配,得到场景图像中的目标图像的中心点坐标和轮廓,Establish a target image template, match the target image template with the scene image using a grayscale matching algorithm, and obtain the center point coordinates and outline of the target image in the scene image,

根据目标图像的中心点坐标和轮廓,确定目标图像在坐标系中的坐标。Determine the coordinates of the target image in the coordinate system according to the center point coordinates and outline of the target image.

本发明的一种基于多摄像头的移动机器人运行方法,利用图像模板与场景图像匹配,并且利用灰度匹配算法进行匹配,能够有效提高在多种情况下得匹配精度,提升物体定位的准确性,降低硬件成本,使用变量和定量的方法来提高定位系统的可靠性,精确得到目标图像的中心点坐标和轮廓坐标。The multi-camera-based mobile robot operation method of the present invention uses an image template to match a scene image, and uses a grayscale matching algorithm for matching, which can effectively improve the matching accuracy in various situations and improve the accuracy of object positioning. Reduce hardware cost, use variable and quantitative methods to improve the reliability of the positioning system, and accurately obtain the center point coordinates and contour coordinates of the target image.

附图说明Description of drawings

图1为本发明的目标图像模板的流程图;Fig. 1 is the flow chart of the target image template of the present invention;

图2为本发明的矩形边界、轮廓和运动趋势区域的示意图。FIG. 2 is a schematic diagram of the rectangular boundary, contour and motion trend area of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进列进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同;本文中在申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请;本申请的说明书和权利要求书及上述附图说明中的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。本申请d的说明书和权利要求书或上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field of this application; the terms used herein in the specification of the application are for the purpose of describing specific embodiments only It is not intended to limit the application; the terms "comprising" and "having" and any variations thereof in the description and claims of this application and the above description of the drawings are intended to cover non-exclusive inclusion. The terms "first", "second" and the like in the description and claims of the present application d or the above drawings are used to distinguish different objects, rather than to describe a specific order.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

为了使本技术领域的人员更好地理解本申请方案,下面将结合附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings.

实施例1Example 1

一种基于多摄像头的移动机器人运行方法,A mobile robot operation method based on multi-camera,

多个摄像头获取室内的场景图像,根据场景图像的两边建立坐标系,设定每个摄像头的场景图像区域;Multiple cameras acquire indoor scene images, establish a coordinate system according to both sides of the scene image, and set the scene image area of each camera;

设定场景图像中的矩形边界区域,Sets the rectangular bounding area in the scene image,

建立目标图像模板,将目标图像模板与场景图像使用灰度匹配算法进行匹配,得到场景图像中的目标图像的中心点坐标和轮廓,Establish a target image template, match the target image template with the scene image using a grayscale matching algorithm, and obtain the center point coordinates and outline of the target image in the scene image,

根据目标图像的中心点坐标和轮廓,确定目标图像在坐标系中的坐标。Determine the coordinates of the target image in the coordinate system according to the center point coordinates and outline of the target image.

所述的得到场景图像中的目标图像的中心点坐标和轮廓包括The center point coordinates and outline of the target image in the obtained scene image include:

对矩形边界区域内的场景图像匹配目标图像模板,确定场景图像中的目标图像的轮廓,Match the target image template to the scene image in the rectangular boundary area, and determine the contour of the target image in the scene image,

存储矩形边界区域和轮廓的坐标点,store the coordinates of the bounding area and outline of the rectangle,

本发明的场景图像通过下述方法获取:The scene image of the present invention is obtained by the following method:

控制摄像头获取室内场景图像,包括1个或多个摄像头对室内的场景分别取像,当室内的场景较大时,需要利用多个摄像头对室内的场景进行取像,摄像头的数量与室内的场景图像的范围成比例关系;所述的控制摄像头获取室内场景图像为设置于室内顶部的摄像头向下进行拍照,获得室内场景图像;所述获得室内场景图像的时间为机器人位移离开运动趋势区域的最小时间。Control the camera to obtain indoor scene images, including one or more cameras to capture images of indoor scenes respectively. When the indoor scene is large, multiple cameras need to be used to capture images of indoor scenes. The number of cameras is related to the indoor scene. The range of the image is proportional; the control camera to obtain the indoor scene image is the camera set at the top of the room to take pictures downward to obtain the indoor scene image; the time to obtain the indoor scene image is the minimum time for the robot to move away from the motion trend area. time.

多个摄像头分别设置有取像角度和取像区域,使其能够全部覆盖室内的场景,其中对多个摄像头的取像区域进行定义,确定场景图像中的交叉区域的图像其所指定的摄像头,所说的指定摄像头,即目标图像位于每个取像区域时,按照其对应的摄像头的数据进行计算图像中的数据。The multiple cameras are respectively set with an image capturing angle and an image capturing area, so that they can fully cover the indoor scene, wherein the image capturing area of the multiple cameras is defined, and the image of the intersecting area in the scene image is determined. The designated camera, that is, when the target image is located in each imaging area, calculates the data in the image according to the data of the corresponding camera.

如图1所示,本发明的目标图像模板的创建方法包括,将场景图像通过灰度处理过滤成黑白照片,提取出目标图像的模板,进而得到图像模板。As shown in FIG. 1 , the method for creating a target image template of the present invention includes filtering a scene image into a black-and-white photo through grayscale processing, extracting a template of the target image, and then obtaining an image template.

目标图像模板的像素大小包括目标图像的最小识别的像素至完整的目标图像的像素;目标图像模板可以设置多个,可以将最小识别像素至完整的目标图像的像素大小每个均设置,在匹配时,可以有效提高整体匹配成功率。The pixel size of the target image template includes the minimum recognized pixels of the target image to the pixels of the complete target image; multiple target image templates can be set, and each can be set from the minimum recognized pixel to the pixel size of the complete target image. can effectively improve the overall matching success rate.

当然,还可以根据目标图像的区别来调整识别的像素大小;同时目标图像模板的位置也有意义,其目标图像模板中的目标图像分别位于场景图像中的两个对角线上。Of course, the pixel size of the recognition can also be adjusted according to the difference between the target images; at the same time, the position of the target image template is also meaningful, and the target images in the target image template are respectively located on two diagonal lines in the scene image.

本申请的场景图像中的物体均通过坐标系表达,坐标系为以场景图像的两边为坐标轴即X轴和Y轴,以每个像素为一个坐标点(x,y)形成坐标系,为场景图像中的有兴趣的物体标记坐标,使其能够快速的被使用。The objects in the scene image of the present application are all expressed by a coordinate system, and the coordinate system takes the two sides of the scene image as the coordinate axes, that is, the X-axis and the Y-axis, and uses each pixel as a coordinate point (x, y) to form a coordinate system, which is Objects of interest in the scene image are marked with coordinates so that they can be used quickly.

本申请中的坐标系还可以通过矩形边界设置,即以矩形边界的边界上的某一点为起始元点,以两边为坐标轴,建立坐标系,当需要对场景图像计算时,即可直接匹配矩形边界内的场景图像,无需对矩形边界外的图像进行分析比对。The coordinate system in this application can also be set through a rectangular boundary, that is, a certain point on the boundary of the rectangular boundary is used as the starting element point, and the two sides are used as the coordinate axes to establish a coordinate system. When the scene image needs to be calculated, it can be directly Match the scene images within the rectangle boundary without analyzing and comparing the images outside the rectangle boundary.

本发明的坐标系还可以通过其他方式构成,所述相邻的摄像头的场景图像内的坐标系衔接第一个摄像头的场景图像的坐标系,多个摄像头的场景图像构成全景坐标系。The coordinate system of the present invention can also be formed in other ways, the coordinate systems in the scene images of the adjacent cameras are connected to the coordinate system of the scene image of the first camera, and the scene images of multiple cameras form a panoramic coordinate system.

本申请的场景图像进行处理时,会遇到效率很低的问题,这是由于场景图像为广角图像,其包含了很多的环节噪声,例如墙壁,装饰物等,其视室内的复杂程度,出现极大的变量,这样导致识别效率降低,误判的几率增大。When the scene image of the present application is processed, it will encounter the problem of low efficiency. This is because the scene image is a wide-angle image, which contains a lot of link noise, such as walls, decorations, etc., depending on the complexity of the room. A large variable, which will reduce the recognition efficiency and increase the probability of misjudgment.

如图2所示,本发明可以利用矩形边界和轮廓来实现场景图像的快速处理,其是首先设定一个矩形边界,排除场景图像中的明确部分,比如固定无法存在的物体,然后在矩形边界内匹配目标图像模板,找到场景图像中的目标图像,确定其目标图像的中心坐标点和轮廓坐标。As shown in FIG. 2 , the present invention can utilize rectangular boundaries and contours to achieve fast processing of scene images. First, a rectangular boundary is set to exclude certain parts of the scene image, such as fixing objects that cannot exist, and then a rectangular boundary is set. Match the target image template internally, find the target image in the scene image, and determine the center coordinate point and outline coordinates of the target image.

这个矩形边界的范围可以根据需要设计,其不仅能够去除环境噪音,还能够设定为特定的识别区域,其矩形边界可以使用坐标来确定一个区域,当场景图像需要识别时,自动套取矩形边界。The range of this rectangular boundary can be designed as needed. It can not only remove environmental noise, but also can be set as a specific recognition area. The rectangular boundary can use coordinates to determine an area. When the scene image needs to be recognized, the rectangular boundary is automatically taken. .

本申请中的坐标系还可以通过矩形边界设置,即以矩形边界的边界上的某一点为起始元点,以两边为坐标轴,建立坐标系,当需要对场景图像计算时,即可直接匹配矩形边界内的场景图像,无需对矩形边界外的图像进行分析比对。The coordinate system in this application can also be set through a rectangular boundary, that is, a certain point on the boundary of the rectangular boundary is used as the starting element point, and the two sides are used as the coordinate axes to establish a coordinate system. When the scene image needs to be calculated, it can be directly Match the scene images within the rectangle boundary without analyzing and comparing the images outside the rectangle boundary.

矩形边界外的场景图像的像素使用图像遮蔽方法处理,对场景图像建立图像遮蔽区域,所述图像遮蔽区域包括处理场景图像中矩形边界区域以外的区域;将这个区域的场景图像灰度化的之后与常量255做异或;,255代表黑色,框选之外的地方全部都是黑色的。The pixels of the scene image outside the rectangular boundary are processed using the image masking method, and an image masking area is established for the scene image, and the image masking area includes the area outside the rectangular boundary area in the processing scene image; XOR with the constant 255; 255 represents black, and all places outside the box selection are black.

除了矩形边界和轮廓外,还可以设置运动趋势区域,具体为,将场景图像匹配目标图像形成的模板,是指将图像形成的模板与场景图像比对,识别出场景图像中的目标图像所在,确定轮廓,根据轮廓确定运动趋势区域,其矩形的面积大于目标图像的区域。In addition to the rectangular boundary and outline, the motion trend area can also be set. Specifically, matching the scene image to the template formed by the target image refers to comparing the template formed by the image with the scene image to identify the target image in the scene image. Determine the contour, and determine the motion trend area according to the contour, and the area of the rectangle is larger than the area of the target image.

当当下一帧的场景图像匹配无法找到目标图像时,对这一帧场景图像进行全部匹配,重新确定轮廓和运动趋势区域。When the next frame of scene image matching fails to find the target image, all the scene images of this frame are matched, and the contour and motion trend area are re-determined.

所述运动趋势区域包括横向矩形趋势和纵向矩形趋势,所述横向趋势区域和矩形趋势区域起始自场景图像的左边边界,至右边为止,所述纵向矩形趋势自场景图像的上边边界,至下边为止;所述的横向矩形趋势和纵向矩形趋势的宽度大于轮廓的宽度。The motion trend area includes a horizontal rectangular trend and a vertical rectangular trend. The horizontal trend area and the rectangular trend area start from the left border of the scene image and end to the right, and the vertical rectangular trend starts from the upper border of the scene image and goes to the bottom. So far; the width of the horizontal rectangular trend and the vertical rectangular trend is greater than the width of the outline.

利用运动趋势区域可以预测机器人的运动位置,对其进行追踪定位,同时,也可以在识别场景图像时,优先对运动趋势区域内的像素点进行匹配,匹配目标图像;其不但可以提高匹配效率,也能达到较好的追踪效果。The motion trend area can be used to predict the motion position of the robot and track and locate it. At the same time, when recognizing scene images, the pixels in the motion trend area can be preferentially matched to match the target image; it can not only improve the matching efficiency, It can also achieve better tracking effect.

运动趋势区域实现对于场景图像中的目标图像进行追踪定位,并且有效减少场景图像的匹配时间,降低匹配计算量。The motion trend area realizes the tracking and positioning of the target image in the scene image, and effectively reduces the matching time of the scene image and the amount of matching calculation.

本发明的场景图像还包括图像预处理,所说的图像预处理是指,调节场景图像中的:即红黄蓝、色调、饱和度、名度、亮度等参数,将场景图像转化为单一参数的图像。使用这个单一参数的场景图像与模板图像进行匹配。本申请中的摄像头使用CMOS摄像头,其接头使用接口:USB2.0;像素:200万像素(有效像素:120万-150万像素)帧速:30;灵敏度:120-150LUX。The scene image of the present invention also includes image preprocessing, and the image preprocessing refers to adjusting the parameters in the scene image: that is, red, yellow, blue, hue, saturation, brightness, brightness and other parameters, and converting the scene image into a single parameter Image. The scene image is matched against the template image using this single parameter. The camera in this application uses a CMOS camera, and its connector uses an interface: USB2.0; pixels: 2 million pixels (effective pixels: 1.2-1.5 million pixels) frame rate: 30; sensitivity: 120-150LUX.

本申请中得场景图像还可以进行障碍物标识处理,其包括获取场景图像的初始图像,与实际场景图像对比求差,识别场景图像中的障碍物区域;获取场景图像的初始图像,与实际场景图像对比求差,提取对应的障碍物面积,生成障碍物删减图;根据清扫面积和障碍物删减图,确定实际覆盖面积,根据实际覆盖面积确定覆盖率。The scene image obtained in this application can also be subjected to obstacle identification processing, which includes acquiring an initial image of the scene image, comparing it with the actual scene image to obtain a difference, and identifying the obstacle area in the scene image; The images are compared to find the difference, the corresponding obstacle area is extracted, and the obstacle reduction map is generated; the actual coverage area is determined according to the cleaning area and the obstacle reduction map, and the coverage rate is determined according to the actual coverage area.

所述根据第一位置和第二位置确定轨迹为第一位置的中心点坐标与第二位置的中心点坐标的连线为轨迹线;所述相邻的两个场景图像中的矩形边界的坐标系衔接。The trajectory determined according to the first position and the second position is that the line connecting the coordinates of the center point of the first position and the coordinates of the center point of the second position is the trajectory line; the coordinates of the rectangular boundary in the two adjacent scene images system connection.

所述的匹配目标图像形成的模板,将模板图片过滤成黑白照片,将黑白的程度量化成数值(0-255),所述的灰度匹配方法是在中模板图像与目标图像之间归一化的计算方法The template formed by the described matching target image, the template image is filtered into a black and white photo, the degree of black and white is quantified into a numerical value (0-255), and the described grayscale matching method is to normalize between the template image and the target image. method of calculation

例如:尺寸为L×K的模板图像T(x,y)在N×M的目标图像f(x,y)中从上到下,从左到右移动时(L≦M且K≦N),模板图像与目标图像中(i,j)(0≦i≦M-1;0≦j≦N-1)所处区域的互相关值可以表示为:For example: when the template image T(x,y) of size L×K moves from top to bottom and left to right in the target image f(x,y) of N×M (L≦M and K≦N) , the cross-correlation value of the region where (i,j) (0≦i≦M-1; 0≦j≦N-1) is located in the template image and the target image can be expressed as:

Figure BDA0003495473510000071
Figure BDA0003495473510000071

互相关值对于图片和模板中振幅的变化十分敏感,如像素密度,所以需要利用归一化来消除振幅的影响:The cross-correlation value is very sensitive to changes in amplitude in the image and template, such as pixel density, so normalization is needed to eliminate the effect of amplitude:

Figure BDA0003495473510000072
Figure BDA0003495473510000072

其中是模板w中像素的平均密度值;简单来讲,归一化就是通过设定阈值把所有的数值都化为0和1,归一化后能够提高识别速度,相应的,误判率也会增加,所以本发明对于匹配的成功率进行归一化,匹配成功率低于100%,都判断为匹配不成功,只有达到100%判断为匹配成功。where is the average density value of the pixels in the template w; in simple terms, normalization is to convert all values to 0 and 1 by setting a threshold. After normalization, the recognition speed can be improved. Correspondingly, the false positive rate is also will increase, so the present invention normalizes the matching success rate. If the matching success rate is lower than 100%, it is judged that the matching is unsuccessful, and only when it reaches 100%, it is judged that the matching is successful.

匹配率还能够通过下述方法提高,The matching rate can also be improved by the following methods,

本发明中的环境中将室内的照明灯的亮度均匀设置,能够有效提高匹配效率。In the environment of the present invention, the brightness of the indoor lighting lamps is uniformly set, which can effectively improve the matching efficiency.

优选的,还可以将在目标图像上叠加标识物,其标识物为使用不反光材料、颜色单一、图案对称中的一种或一种以上的要素组合,这样的目标图像更容易被匹配到。Preferably, a marker can also be superimposed on the target image, and the marker is a combination of one or more elements selected from non-reflective materials, single color, and symmetrical pattern, so that the target image can be more easily matched.

运动物体的目标检测最终验收的形式就是通过在屏幕上输出运动物体的中心,并将运动物体中心标识出来,首先,在匹配区域会将匹配得到运动物体的中心点坐标输出,通过数据结构簇储存中心点的坐标,再将此坐标x、y的值通过数组分别输出到ROI中的轮廓参数Contours簇,并保存,其中需要将该点转换成ROI的存储形式,覆盖并且输出到ROI上,才可以输出。The final acceptance form of the target detection of moving objects is to output the center of the moving object on the screen and identify the center of the moving object. First, the coordinates of the center point of the matching moving object will be output in the matching area and stored through the data structure cluster. The coordinates of the center point, and then output the values of the coordinates x and y to the contour parameter Contours cluster in the ROI through an array, and save it, which needs to convert the point into the storage form of the ROI, cover it and output it to the ROI. can be output.

首先需要输出两个参数,分别是匹配成功图像的数量和匹配成功的点坐标;只要当匹配成功图像的数量大于零时,才会输入运动物体当前的点坐标。First, two parameters need to be output, which are the number of successfully matched images and the coordinates of the successfully matched points; only when the number of successfully matched images is greater than zero, the current point coordinates of the moving object will be input.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该计算机程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,前述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that the realization of all or part of the processes in the methods of the above embodiments can be accomplished by instructing relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the program is During execution, it may include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM).

应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart of the accompanying drawings are sequentially shown in the order indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order and may be performed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution sequence is also It does not have to be performed sequentially, but may be performed alternately or alternately with other steps or at least a portion of sub-steps or stages of other steps.

一种基于多摄像头的移动机器人运行系统,包括摄像头模块,用于摄像头获取室内的场景图像,建立坐标系;模板构建模块,建立图像模板,匹配模块,将图像模板与场景图像使用灰度匹配算法进行匹配,对于互相关值进行归一化处理,得到匹配结果;计算模块,计算目标图像在场景图像内的中心点坐标和轮廓坐标。A mobile robot operating system based on multiple cameras, comprising a camera module for acquiring indoor scene images and establishing a coordinate system; a template building module for establishing an image template, and a matching module for using a grayscale matching algorithm between the image template and the scene image Matching is performed, and the cross-correlation value is normalized to obtain a matching result; the calculation module calculates the center point coordinates and contour coordinates of the target image in the scene image.

本申请还提供了另一种实施方式,即提供一种计算机可读存储介质,所述计算机可读存储介质存储有一种基于多摄像头的移动机器人运行程序,所述一种基于多摄像头的移动机器人运行程序可被至少一个处理器执行,以使所述至少一个处理器执行如上述的一种基于多摄像头的移动机器人运行方法的步骤。The present application also provides another implementation manner, which is to provide a computer-readable storage medium, where the computer-readable storage medium stores a multi-camera-based mobile robot running program, and the multi-camera-based mobile robot The running program can be executed by at least one processor, so that the at least one processor executes the steps of the above-mentioned method for running a mobile robot based on multiple cameras.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.

显然,以上所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例,附图中给出了本申请的较佳实施例,但并不限制本申请的专利范围。本申请可以以许多不同的形式来实现,相反地,提供这些实施例的目的是使对本申请的公开内容的理解更加透彻全面。尽管参照前述实施例对本申请进行了详细的说明,对于本领域的技术人员来而言,其依然可以对前述各具体实施方式所记载的技术方案进行修改,或者对其中部分技术特征进行等效替换。凡是利用本申请说明书及附图内容所做的等效结构,直接或间接运用在其他相关的技术领域,均同理在本申请专利保护范围之内。Obviously, the above-described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The accompanying drawings show the preferred embodiments of the present application, but do not limit the scope of the patent of the present application. This application may be embodied in many different forms, rather these embodiments are provided so that a thorough and complete understanding of the disclosure of this application is provided. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or perform equivalent replacements for some of the technical features. . Any equivalent structure made by using the contents of the description and drawings of the present application, which is directly or indirectly used in other related technical fields, is also within the scope of protection of the patent of the present application.

Claims (10)

1.一种基于多摄像头的移动机器人运行方法,其特征在于:1. a mobile robot operating method based on multiple cameras, is characterized in that: 多个摄像头获取室内的场景图像,根据场景图像的两边建立坐标系,设定每个摄像头的场景图像区域;Multiple cameras acquire indoor scene images, establish a coordinate system according to both sides of the scene image, and set the scene image area of each camera; 设定场景图像中的矩形边界区域,Sets the rectangular bounding area in the scene image, 建立目标图像模板,将目标图像模板与场景图像使用灰度匹配算法进行匹配,得到场景图像中的目标图像的中心点坐标和轮廓,Establish a target image template, match the target image template with the scene image using a grayscale matching algorithm, and obtain the center point coordinates and outline of the target image in the scene image, 根据目标图像的中心点坐标和轮廓,确定目标图像在坐标系中的坐标。Determine the coordinates of the target image in the coordinate system according to the center point coordinates and outline of the target image. 2.根据权利要求1所述的一种基于多摄像头的移动机器人运行方法,其特征在于:所述设定场景图像中的矩形边界区域之后还包括对场景图像建立图像遮蔽区域,所述图像遮蔽区域包括:2 . The multi-camera-based mobile robot operation method according to claim 1 , wherein the setting of the rectangular boundary area in the scene image further comprises establishing an image shielding area for the scene image, and the image shielding Areas include: 处理场景图像中矩形边界区域以外的区域;Process the area outside the rectangular bounding area in the scene image; 将这个区域的场景图像灰度化的之后与常量255做异或。The scene image in this area is grayscaled and XORed with the constant 255. 3.根据权利要求1所述的一种基于多摄像头的移动机器人运行方法,其特征在于:所述多个摄像头取像时,设定每个摄像头的取像区域,对场景图像根据取像区域分区定义,指定摄像头。3. A kind of mobile robot operation method based on multi-camera according to claim 1, it is characterized in that: when the said multiple cameras capture images, the image capturing area of each camera is set, and the scene image is captured according to the image capturing area. Partition definition, specifying the camera. 4.根据权利要求2所述的一种基于多摄像头的移动机器人运行方法,其特征在于:以所述矩形边界的两边为轴,建立坐标系,标定目标图像的位置在矩形边界内的坐标。4 . The multi-camera-based mobile robot operation method according to claim 2 , wherein the two sides of the rectangular boundary are used as axes to establish a coordinate system to calibrate the coordinates of the position of the target image within the rectangular boundary. 5 . 5.根据权利要求1所述的一种基于多摄像头的移动机器人运行方法,其特征在于:所述每个摄像头的场景图像均设置独立的坐标系。5 . The method for running a mobile robot based on multiple cameras according to claim 1 , wherein an independent coordinate system is set for the scene image of each camera. 6 . 6.根据权利要求1所述的一种基于多摄像头的移动机器人运行方法,其特征在于:所述相邻的摄像头的场景图像内的坐标系衔接第一个摄像头的场景图像的坐标系,多个摄像头构成全景坐标系。6. The method for running a mobile robot based on multiple cameras according to claim 1, wherein the coordinate system in the scene image of the adjacent cameras is connected to the coordinate system of the scene image of the first camera, and the coordinate systems in the scene images of the adjacent cameras are connected. The cameras form a panoramic coordinate system. 7.根据权利要求1所述的一种基于多摄像头的移动机器人运行方法,其特征在于:通过设置于室内顶部的摄像头向下取像得到场景图像,多个摄像头的取像区域布满整个室内场景。7. a kind of mobile robot operation method based on multi-camera according to claim 1, is characterized in that: obtain scene image by the camera that is arranged on the indoor top to take images downward, and the imaging area of a plurality of cameras is covered with whole indoor Scenes. 8.根据权利要求1所述的一种基于多摄像头的移动机器人运行方法,其特征在于:分析连续的摄像头的场景图像,当机器人离开场景图像中的矩形区域,且未进入下一个摄像头的矩形区域时,标记机器人丢失。8. a kind of mobile robot operation method based on multi-camera according to claim 1, is characterized in that: analyze the scene image of continuous camera, when the robot leaves the rectangular area in the scene image, and does not enter the rectangle of the next camera When in an area, the marked robot is lost. 9.根据权利要求1所述的一种基于多摄像头的移动机器人运行方法,其特征在于:所述图像模板包括有多个,每个图像模板的像素为正常采集的目标图像像素至目标图像的最小识别像素。9. The multi-camera-based mobile robot operation method according to claim 1, wherein the image template includes a plurality of pixels, and the pixels of each image template are the difference between the target image pixel of the normal collection and the target image pixel. Minimum recognition pixel. 10.一种基于多摄像头的移动机器人运行系统,其特征在于:包括10. a mobile robot operating system based on multiple cameras, is characterized in that: comprising: 摄像头模块,用于摄像头获取室内的场景图像,建立坐标系;The camera module is used for the camera to obtain indoor scene images and establish a coordinate system; 模板构建模块,建立图像模板,Template building blocks, build image templates, 匹配模块,将图像模板与场景图像使用灰度匹配算法进行匹配,对于互相关值进行归一化处理,得到匹配结果;The matching module matches the image template and the scene image using a grayscale matching algorithm, and normalizes the cross-correlation value to obtain a matching result; 计算模块,计算目标图像在场景图像内的中心点坐标和轮廓坐标。The calculation module calculates the center point coordinates and contour coordinates of the target image in the scene image.
CN202210113040.1A 2022-01-29 2022-01-29 A method and system for running a mobile robot based on multiple cameras Pending CN114549978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210113040.1A CN114549978A (en) 2022-01-29 2022-01-29 A method and system for running a mobile robot based on multiple cameras

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210113040.1A CN114549978A (en) 2022-01-29 2022-01-29 A method and system for running a mobile robot based on multiple cameras

Publications (1)

Publication Number Publication Date
CN114549978A true CN114549978A (en) 2022-05-27

Family

ID=81673805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210113040.1A Pending CN114549978A (en) 2022-01-29 2022-01-29 A method and system for running a mobile robot based on multiple cameras

Country Status (1)

Country Link
CN (1) CN114549978A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115811664A (en) * 2022-11-23 2023-03-17 广州高新兴机器人有限公司 Multi-scene fixed-point snapshot method and system, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018228256A1 (en) * 2017-06-12 2018-12-20 炬大科技有限公司 System and method for determining indoor task target location by image recognition mode
CN111968177A (en) * 2020-07-22 2020-11-20 东南大学 Mobile robot positioning method based on fixed camera vision
CN113096179A (en) * 2021-03-09 2021-07-09 杭州电子科技大学 Method for detecting coverage rate of sweeping robot based on visual positioning
CN113124883A (en) * 2021-03-01 2021-07-16 浙江国自机器人技术股份有限公司 Off-line punctuation method based on 3D panoramic camera

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018228256A1 (en) * 2017-06-12 2018-12-20 炬大科技有限公司 System and method for determining indoor task target location by image recognition mode
CN111968177A (en) * 2020-07-22 2020-11-20 东南大学 Mobile robot positioning method based on fixed camera vision
CN113124883A (en) * 2021-03-01 2021-07-16 浙江国自机器人技术股份有限公司 Off-line punctuation method based on 3D panoramic camera
CN113096179A (en) * 2021-03-09 2021-07-09 杭州电子科技大学 Method for detecting coverage rate of sweeping robot based on visual positioning

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
唐飞龙 等: "室内移动机器人的固定摄像头视觉定位", 信息技术与信息化, no. 08, 28 August 2020 (2020-08-28), pages 104 - 107 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115811664A (en) * 2022-11-23 2023-03-17 广州高新兴机器人有限公司 Multi-scene fixed-point snapshot method and system, storage medium and electronic equipment
CN115811664B (en) * 2022-11-23 2024-08-27 广州高新兴机器人有限公司 Multi-scene fixed-point snapshot method and system, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US9530045B2 (en) Method, system and non-transitory computer storage medium for face detection
CN110796041B (en) Subject identification method and device, electronic device, computer-readable storage medium
JP2007058634A (en) Image processing method and image processor, digital camera equipment, and recording medium with image processing program stored thereon
JP7272024B2 (en) Object tracking device, monitoring system and object tracking method
CN106815587B (en) Image processing method and device
KR20140095333A (en) Method and apparratus of tracing object on image
CN110688926B (en) Subject detection method and device, electronic device, computer-readable storage medium
CN113313626A (en) Image processing method, image processing device, electronic equipment and storage medium
CN114549976A (en) Multi-camera-based track measurement method and system for mobile robot
CN116249015A (en) Camera occlusion detection method, device, camera equipment and storage medium
TWI749370B (en) Face recognition method and computer system using the same
WO2020038065A1 (en) Image processing method, terminal, and computer storage medium
CN114549978A (en) A method and system for running a mobile robot based on multiple cameras
CN110610171A (en) Image processing method and apparatus, electronic device, computer-readable storage medium
CN116964627A (en) Information processing device, information processing method and control program
CN114691915A (en) Method and device for improving tile image recognition through algorithm
CN116261742A (en) Information processing apparatus and information processing method
CN114549975A (en) Coverage rate detection method and system of mobile robot based on multiple cameras
CN101567088B (en) Method and device for detecting moving object
CN112364693A (en) Barrier identification method, device and equipment based on binocular vision and storage medium
CN109146973B (en) Robot field feature identification and localization method, device, equipment and storage medium
US10769805B2 (en) Method, image processing device, and system for generating depth map
CN117456371A (en) Group string hot spot detection method, device, equipment and medium
CN116506591A (en) Method and system for acquiring knife edge position during camera resolution test
CN114549977A (en) Image acquisition method and system for robot track measurement

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