WO2021169192A1 - Automatic working system, automatic walking device and control method therefor, and computer-readable storage medium - Google Patents

Automatic working system, automatic walking device and control method therefor, and computer-readable storage medium Download PDF

Info

Publication number
WO2021169192A1
WO2021169192A1 PCT/CN2020/108926 CN2020108926W WO2021169192A1 WO 2021169192 A1 WO2021169192 A1 WO 2021169192A1 CN 2020108926 W CN2020108926 W CN 2020108926W WO 2021169192 A1 WO2021169192 A1 WO 2021169192A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
histogram
control method
contrast
automatic
Prior art date
Application number
PCT/CN2020/108926
Other languages
French (fr)
Chinese (zh)
Inventor
朱绍明
任雪
Original Assignee
苏州科瓴精密机械科技有限公司
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 苏州科瓴精密机械科技有限公司 filed Critical 苏州科瓴精密机械科技有限公司
Publication of WO2021169192A1 publication Critical patent/WO2021169192A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/10Terrestrial scenes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/50Extraction of image or video features by performing operations within image blocks; by using histograms, e.g. histogram of oriented gradients [HoG]; by summing image-intensity values; Projection analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour

Definitions

  • the invention relates to the field of intelligent control, in particular to an automatic working system, an automatic walking device, a control method thereof, and a computer-readable storage medium.
  • intelligent robots With the continuous advancement of computer technology and artificial intelligence technology, automatic walking equipment and automatic working systems of intelligent robots have slowly entered people's lives, such as intelligent sweeping robots and intelligent lawn mower robots.
  • smart robots are small in size, and are integrated with sensing devices, driving devices, batteries, etc., without manual manipulation, and can travel and work in a prescribed area.
  • the battery power when the battery power is insufficient, it can automatically return to the charging station, dock with the charging station and charge, and continue to travel and work after the charging is completed.
  • the working area of the existing automatic working system is large lawn, and the boundary is mostly energized equipment buried under the ground, so that the intelligent lawn mowing robot can sense .
  • the boundary line is buried under the ground, much manpower and material resources are required.
  • burying the boundary line requires certain requirements, for example, the angle of the corner cannot be less than 90 degrees, etc., which also limits the shape of the lawn for the intelligent lawnmower robot to work to a certain extent.
  • an automatic working system built on the ground can be designed, and the boundary line can be recognized by a visual recognition method.
  • the lawn may show different colors such as yellow-green, light green, dark green, dark green, gray-green, etc., and there may be dead grass or small pieces in the lawn. Bare plots. All these factors will affect the accuracy of visual recognition by automatic walking equipment.
  • the present invention provides a control method of an autonomous walking device, and the control method includes:
  • Vc is the preset comparison threshold.
  • the processed image and the contrast image are both in histogram format.
  • the step of "processing the captured image to obtain the processed image” includes:
  • the step of "obtaining a contrast image” includes:
  • the step of "obtaining a contrast image” includes:
  • the step of "compare the processed image and the contrast image and calculate the similarity d" includes: calculating the similarity d between the processed image and the contrast image through correlation analysis or chi-square test or intersection method or distance analysis method.
  • the present invention also provides an automatic working system, including:
  • Automatic walking equipment can work according to the above-mentioned control method
  • the working area is provided with a non-working area outside the edge of the working area, and the geology of the working area and the non-working area are different.
  • the present invention also provides an automatic working system, including:
  • Automatic walking equipment can work according to the above-mentioned control method
  • the boundary is surrounded in a ring shape and formed to define the working area of the autonomous vehicle, and the boundary extends upward from the ground.
  • the present invention also provides an automatic walking device, including a main body, a walking module, a power supply module, and a memory and a processor arranged in the main body.
  • the memory stores a computer that can run on the processor.
  • the autonomous walking device further includes a camera arranged on the body, the shooting direction of the camera is facing the front side of the autonomous walking device along the traveling direction; when the processor executes the computer program, it can be implemented as described above The steps of the control method of autonomous walking equipment.
  • the present invention also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it can realize the steps in the control method of the autonomous walking device as described above. .
  • the present invention can process and analyze the photographed images taken by the autonomous walking equipment, and determine the degree of similarity between the processed image and the contrast image by calculating the similarity between the processed image and the contrast image
  • the contrast image may be an image of the lawn area or a derivative image thereof.
  • the similarity d is greater than the comparison threshold Vc, it means that the captured image and the contrast image are relatively similar, and the captured image belongs to the lawn area, and the automatic walking device can continue to work freely; if the similarity d is less than the comparison threshold Vc, then It shows that the similarity between the captured image and the contrast image is low, and the captured image belongs to a non-turf area, and the automatic walking device needs to perform operations such as backing and turning to avoid the boundary or non-working area. Therefore, by analyzing the captured images, it can be analyzed whether the autonomous walking device has encountered a boundary or traveled outside the working area, which is more convenient and makes the control more sensitive and effective.
  • Figure 1 is a schematic structural diagram of an automatic working system in a second embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of an embodiment of the automatic working method of the present invention
  • the self-propelled equipment 1 of the present invention may be an automatic lawn mower, or an automatic vacuum cleaner, etc., which automatically walks in the work area for mowing and vacuuming.
  • the self-propelled equipment 1 is used as a lawn mower.
  • the working area may be a lawn.
  • the self-propelled equipment 1 is not limited to lawn mowers and vacuum cleaners, and can also be other equipment, such as spraying equipment, snow removal equipment, monitoring equipment, etc., suitable for unattended equipment.
  • a control method of an autonomous walking device 1 includes:
  • Vc is the preset comparison threshold.
  • the captured image orgImage captured by the autonomous vehicle 1 can be processed and analyzed, and the similarity d between the processed image and the contrast image can be calculated to determine the degree of similarity between the processed image and the contrast image, and ,
  • the contrast image can be an image of the lawn area or a derivative image thereof. Therefore, if the similarity d is greater than the comparison threshold Vc, it means that the captured image orgImage and the contrast image are relatively similar, and the captured image orgImage belongs to the lawn area, and the autonomous walking device 1 can continue to work freely; if the similarity d is less than the comparison threshold Vc means that the similarity between the captured image orgImage and the contrast image is low.
  • the captured image orgImage belongs to a non-turf area, and the automatic walking device 1 needs to perform operations such as backing and turning to avoid the boundary 2 or the non-working area. Therefore, by analyzing the captured image orgImage, it can be analyzed whether the autonomous walking device 1 encounters the boundary 2 or travels outside the working area, which is more convenient and makes the control more sensitive and effective.
  • the processed image and the contrast image are both in histogram format.
  • the histogram can reflect the proportion of different colors in the entire image, but it does not reflect the spatial position of each color. It is suitable for describing images that cannot be automatically segmented. Since the autonomous vehicle 1 in the present invention travels in the grass, the images taken by the autonomous vehicle 1 in its working area are all related to the grass, so the color is relatively uniform on the whole, approximately green, thus, The processed image and the contrast image can be adjusted to histogram format and then the two can be compared to calculate the gap between the processed image and the contrast image. If the gap is larger, it means that there are fewer green-related pixels in the processed image. , It can be judged that the captured image orgImage belongs to a non-turf area.
  • the step of "processing the captured image orgImage to obtain a processed image” includes:
  • the histogram image hist1 is normalized, and a normalized histogram H1 is generated and recorded as a processed image.
  • the HSV format is a color space, which includes hue H, saturation S, and lightness V.
  • the hue H is measured by an angle, and its value range is 0° ⁇ 360°. It is calculated in a counterclockwise direction from red. Red is 0°, green is 120°, and blue is 240°.
  • Saturation S indicates the degree to which the color is close to the spectral color. The greater the proportion of the spectral color, the higher the degree of the color close to the spectral color, and the higher the saturation of the color.
  • the value of saturation ranges from 0% to 100%. The larger the value, the more saturated the color.
  • the lightness V indicates the brightness of the color.
  • the lightness value V is related to the transmittance or reflectance of the object. The usual value ranges from 0% to 100%, with 0% being black and 100% being white.
  • the captured image orgImage is an RGB format image. Therefore, the step of "acquiring a captured image orgImage in HSV format" specifically includes: converting the captured image orgImage into an HSV image.
  • the captured image orgImage itself is in the HSV format, no additional format conversion is required, and the objective of the present invention can also be achieved.
  • the normalization refers to the process of performing a series of standard processing transformations on the image and transforming the image into a fixed standard format. Similarity analysis can be carried out more conveniently.
  • the captured image orgImage can be converted into the normalized histogram H1, that is, the processed image, so as to facilitate the comparison with the contrast image and calculate the similarity.
  • the comparison image is also in the histogram format. Therefore, in the present invention, two specific embodiments are provided to obtain the comparison image in the histogram format.
  • the step of "obtaining a comparison image” includes:
  • a comparison histogram is directly preset, and the comparison image is obtained by directly calling the comparison histogram.
  • the comparison histogram can be pre-stored in the automatic walking device, and the comparison histogram can be retrieved and directly compared with the processed image, so that there is no need to calculate the comparison histogram separately.
  • the comparison histogram is universal and can be applied to the lawn in that place.
  • the comparison histogram can be directly fitted through simulation calculations and other methods.
  • the step of "obtaining a comparison image” includes:
  • the sample histogram image hist2 is normalized to generate a normalized sample histogram H2 and recorded as a contrast image.
  • the steps are similar to the above-mentioned steps for acquiring the processed image of the captured image orgImage.
  • the user can issue a shooting instruction to the automatic walking device 1 so that the automatic walking device 1 can shoot the current lawn to obtain a sample image samImage, and perform similar processing steps to obtain a comparison image .
  • each lawn can be individually photographed in advance, so that the comparison with the above-mentioned processed image is more accurate, more suitable for the current situation of the lawn, and more accurate.
  • multiple images can be obtained by taking multiple shots of multiple lawns in different environments, such as morning and evening under different light, cloudy or rainy, and then fitting these multiple images to obtain sample images.
  • a default lawn image can also be preset as the sample image samImage. When the default lawn image is used as the sample image samImage, the default lawn image is also universal and can be applied to lawns in various situations.
  • the sample image samImage in the HSV format can be directly obtained, or the sample image samImage can be converted into the HSV format.
  • the step of "compare the processed image and the contrast image and calculate the similarity d" includes: calculating the similarity d between the processed image and the contrast image through correlation analysis or chi-square test or intersection method or distance analysis method.
  • correlation analysis or chi-square test or intersection method or distance analysis method.
  • correlation analysis is a statistical analysis method for studying the correlation between two or more random variables in the same position.
  • the chi-square test includes: the chi-square test for comparing two rates or two component ratios; the chi-square test for comparing multiple rates or multiple component ratios and the correlation analysis of classification data.
  • the intersection method and distance analysis method are also methods for similarity analysis, and the details will not be repeated.
  • the comparison threshold Vc is related to factors such as the photographing effect of the camera. After determining the automatic working system, the developer can test different values and then use an optimal value as the value of the comparison threshold Vc. In a specific embodiment of the present invention, the value of the comparison threshold Vc is taken to be zero.
  • the present invention also provides an automatic working system.
  • the present invention provides Two embodiments of automatic working systems are presented.
  • the automatic working system includes:
  • the automatic walking equipment 1 can work according to the above-mentioned control method
  • the autonomous vehicle 1 can travel and work in the working area, and a non-working area is arranged outside the edge of the working area, and the geology of the working area and the non-working area are different.
  • the autonomous walking device 1 acquires the captured image orgImage and then performs similarity analysis, the boundary 2 may not be additionally provided in the present invention. Since the autonomous walking device 1 of the present invention is applied to a lawn mower, the grass is the working area. Obviously, the non-working area can be bare soil, floor, cement board, etc., and its geology is larger than that of grass. Its color is also quite different from that of grass. Therefore, the control method in the present invention can be applied to analyze whether the autonomous vehicle 1 reaches the edge of the working area.
  • the automatic working system includes:
  • the automatic walking equipment 1 can work according to the above-mentioned control method
  • the boundary 2 is surrounded in a ring shape and formed to define the working area of the autonomous vehicle 1, and the boundary 2 extends upward from the ground.
  • the autonomous vehicle 1 obtains the captured image orgImage, and then processes and analyzes the captured image orgImage to obtain the area where the autonomous vehicle 1 travels. Therefore, the boundary 2 of the automatic working system of the present invention can be upward from the ground. Extend, so as to be photographed and recognized by the autonomous vehicle 1.
  • the present invention also provides an automatic walking device 1, including a main body, a walking module, a power supply module, and a memory and a processor arranged in the main body.
  • the memory stores a computer program that can run on the processor.
  • the walking device 1 also includes a camera arranged on the body, and the shooting direction of the camera faces the front side of the automatic walking device 1 along the traveling direction; the processor can realize the automatic walking as described above when the computer program is executed.
  • the body of the autonomous vehicle 1 in the present invention is provided with a camera, so that the captured image orgImage can be photographed and obtained.
  • the photographing direction of the camera is toward the front side of the autonomous vehicle 1 in the traveling direction, so that the camera captures a view of the front side of the autonomous vehicle 1. Therefore, the following motion trajectory of the autonomous walking device 1 can be analyzed according to the captured image orgImage captured by the autonomous walking device 1: If it is determined that the captured image orgImage belongs to the lawn area, the autonomous walking device 1 is controlled to further walk and work; if the shooting is determined If the image orgImage belongs to a non-grass area, the automatic walking device 1 is controlled to stop, turn, or retreat.
  • the present invention also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it can realize the steps in the control method of the autonomous walking device 1 as described above. That is to say, when the processor executes the computer program, the steps of the control method of any embodiment of the autonomous walking device 1 described above can be implemented.
  • the present invention provides an automatic working system, an automatic driving device 1 and a control method thereof, and a computer readable storage medium.
  • the image of the automatic driving device 1 can be captured.
  • the captured image orgImage is processed and analyzed, and the similarity d between the processed image and the contrast image is calculated to determine the degree of similarity between the processed image and the contrast image, and the contrast image can be the image of the lawn area or its extended image .
  • the similarity d is greater than the comparison threshold Vc, it means that the similarity between the captured image orgImage and the contrast image is low, and the captured image orgImage belongs to the lawn area, and the autonomous walking device 1 can continue to work freely; the similarity d If it is less than the comparison threshold Vc, it means that the captured image orgImage and the contrast image are not very similar.
  • the captured image orgImage belongs to a non-turf area, and the automatic walking device 1 needs to perform operations such as backing and turning to avoid the boundary 2. Therefore, by analyzing the captured image orgImage, it can be analyzed whether the autonomous walking device 1 encounters the boundary 2 or travels outside the working area, which is more convenient and makes the control more sensitive and effective.
  • the processed image and the contrast image in the present invention are both in histogram format, and the histogram can effectively describe the global distribution characteristics of colors in the image, and has the invariance of translation, scale and rotation, so the recognition is more accurate.
  • the interference of the environment on visual recognition can be eliminated, the lawn area and the non-turf area can be effectively identified, and the work efficiency of the autonomous walking device 1 can be improved.
  • the automatic working system of the present invention does not need to lay out additional boundary lines under the ground, reducing the cost of manpower and material resources, the shape of the working area is flexible and unrestricted, the recognition speed is fast, and the accuracy is high. It can also improve the automatic walking equipment of the present invention. 1 Especially the working efficiency of the automatic lawn mower robot.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
  • Harvester Elements (AREA)

Abstract

Provided are an automatic working system, an automatic walking device and a control method therefor, and a computer-readable storage medium. The control method comprises: acquiring a photographed image; processing the photographed image to acquire a processed image; acquiring a contrast image; comparing the processed image with the contrast image, and calculating a similarity d therebetween; and if d > Vc, determining that the photographed image belongs to a lawn area, and if d < Vc, determining that the photographed image belongs to a non-lawn area, wherein Vc is a preset comparison threshold value. The contrast image may be an image of the lawn region or a derivative image thereof. Thus, whether an automatic walking device encounters a boundary or travels to the outside of a working area can be analyzed by analyzing a photographed image, which is more convenient, and thus making the control also more sensitive and effective.

Description

自动工作系统、自动行走设备及其控制方法及计算机可读存储介质Automatic working system, automatic walking equipment and control method thereof, and computer readable storage medium 技术领域Technical field
本发明涉及智能控制领域,特别是涉及一种自动工作系统、自动行走设备及其控制方法及计算机可读存储介质。The invention relates to the field of intelligent control, in particular to an automatic working system, an automatic walking device, a control method thereof, and a computer-readable storage medium.
背景技术Background technique
随着计算机技术和人工智能技术的不断进步,智能机器人的自动行走设备、自动工作系统已经慢慢进入人们的生活,例如智能扫地机器人、智能割草机器人等。通常的,此类智能机器人体积较小,且集成有传感装置、驱动装置、电池等,无需人工操控,并可在规定的区域内行进并工作。并且,在电池电量不够时,可自动返回充电站,与充电站对接并充电,充电完成后继续行进和工作。With the continuous advancement of computer technology and artificial intelligence technology, automatic walking equipment and automatic working systems of intelligent robots have slowly entered people's lives, such as intelligent sweeping robots and intelligent lawn mower robots. Generally, such smart robots are small in size, and are integrated with sensing devices, driving devices, batteries, etc., without manual manipulation, and can travel and work in a prescribed area. In addition, when the battery power is insufficient, it can automatically return to the charging station, dock with the charging station and charge, and continue to travel and work after the charging is completed.
针对现有的智能割草机器人来说,现有的自动工作系统的工作区域均为较大的草坪,并且边界大多是为埋设在地面下的可通电设备,从而可使得智能割草机器人感应到。但是,若在地面下埋设边界线,需要花费较多的人力和物力。并且埋设边界线需要一定的要求,例如拐角的角度不能小于90度等,因而也在一定程度上限制了供智能割草机器人工作的草坪的形状。For existing intelligent lawn mowing robots, the working area of the existing automatic working system is large lawn, and the boundary is mostly energized equipment buried under the ground, so that the intelligent lawn mowing robot can sense . However, if the boundary line is buried under the ground, much manpower and material resources are required. And burying the boundary line requires certain requirements, for example, the angle of the corner cannot be less than 90 degrees, etc., which also limits the shape of the lawn for the intelligent lawnmower robot to work to a certain extent.
从而,针对上述问题,可设计一种搭建在地面上的自动工作系统,并采用视觉识别的方法对边界线进行识别。但是,由于草坪的种类不同、不同季节或早晚的阳光光照的影响,草坪可能会呈现黄绿、浅绿、墨绿、深绿、灰绿等不同的颜色,而且草坪内还可能存在枯草或小块裸露的地皮。这些因素均会影响自动行走设备进行视觉识别的准确度。Therefore, in view of the above problems, an automatic working system built on the ground can be designed, and the boundary line can be recognized by a visual recognition method. However, due to the different types of lawns, different seasons or the influence of sunlight in the morning and evening, the lawn may show different colors such as yellow-green, light green, dark green, dark green, gray-green, etc., and there may be dead grass or small pieces in the lawn. Bare plots. All these factors will affect the accuracy of visual recognition by automatic walking equipment.
因此,必须设计一种可以搭建在地面上的自动工作系统,且具有更高视觉识别准确度的自动行走设备及其控制方法及计算机可读存储介质。Therefore, it is necessary to design an automatic working system that can be built on the ground and has a higher degree of visual recognition accuracy for an automatic walking device, a control method thereof, and a computer-readable storage medium.
发明内容Summary of the invention
为解决上述问题之一,本发明提供了一种自动行走设备的控制方法,所 述控制方法包括:In order to solve one of the above-mentioned problems, the present invention provides a control method of an autonomous walking device, and the control method includes:
获取拍摄图像;Obtain a photographed image;
对拍摄图像进行处理获取处理图像;Process the captured image to obtain the processed image;
获取对比图像;Obtain a comparison image;
比较处理图像和对比图像并计算相似性d;Compare the processed image with the contrast image and calculate the similarity d;
若d>Vc,则判断该拍摄图像属于草坪区域;If d>Vc, it is judged that the captured image belongs to the lawn area;
若d<Vc,则判断该拍摄图像属于非草坪区域;If d<Vc, it is determined that the captured image belongs to a non-turf area;
其中,Vc为预设比较阈值。Among them, Vc is the preset comparison threshold.
作为本发明的进一步改进,所述处理图像和对比图像均为直方图格式。As a further improvement of the present invention, the processed image and the contrast image are both in histogram format.
作为本发明的进一步改进,步骤“对拍摄图像进行处理获取处理图像”包括:As a further improvement of the present invention, the step of "processing the captured image to obtain the processed image" includes:
获取HSV格式的拍摄图像并记为HSV图像;Obtain the captured image in HSV format and record it as HSV image;
计算HSV图像的直方图,生成直方图图像;Calculate the histogram of the HSV image and generate the histogram image;
对直方图图像进行归一化处理,生成归一化直方图并记为处理图像。Normalize the histogram image to generate a normalized histogram and record it as a processed image.
作为本发明的进一步改进,步骤“获取对比图像”包括:As a further improvement of the present invention, the step of "obtaining a contrast image" includes:
预设对比直方图;Preset contrast histogram;
调取对比直方图并记为对比图像。Recall the contrast histogram and record it as the contrast image.
作为本发明的进一步改进,步骤“获取对比图像”包括:As a further improvement of the present invention, the step of "obtaining a contrast image" includes:
获取HSV格式的样本图像并记为HSV样本图像;Obtain sample images in HSV format and record them as HSV sample images;
计算HSV样本图像的直方图,生成样本直方图图像;Calculate the histogram of the HSV sample image and generate the sample histogram image;
对样本直方图图像进行归一化处理,生成归一化样本直方图并记为对比图像。Normalize the sample histogram image to generate a normalized sample histogram and record it as a contrast image.
作为本发明的进一步改进,步骤“比较处理图像和对比图像并计算相似性d”包括:通过相关性分析或卡方检验或交集法或距离分析法计算处理图像和对比图像的相似性d。As a further improvement of the present invention, the step of "compare the processed image and the contrast image and calculate the similarity d" includes: calculating the similarity d between the processed image and the contrast image through correlation analysis or chi-square test or intersection method or distance analysis method.
为解决上述问题之一,本发明还提供了一种自动工作系统,包括:To solve one of the above-mentioned problems, the present invention also provides an automatic working system, including:
自动行走设备,可按照如上所述的控制方法工作;Automatic walking equipment can work according to the above-mentioned control method;
工作区域,所述工作区域边沿外侧设置有非工作区域,所述工作区域和非工作区域的地质不同。The working area is provided with a non-working area outside the edge of the working area, and the geology of the working area and the non-working area are different.
为解决上述问题之一,本发明还提供了一种自动工作系统,包括:To solve one of the above-mentioned problems, the present invention also provides an automatic working system, including:
自动行走设备,可按照如上所述的控制方法工作;Automatic walking equipment can work according to the above-mentioned control method;
边界,围设呈环状并形成用以限定自动行走设备的工作区域,所述边界自地面向上延伸。The boundary is surrounded in a ring shape and formed to define the working area of the autonomous vehicle, and the boundary extends upward from the ground.
为解决上述问题之一,本发明还提供了一种自动行走设备,包括本体、行走模块、电源模块及设置于本体内的存储器和处理器,所述存储器存储有可在处理器上运行的计算机程序,所述自动行走设备还包括设置于本体上的摄像头,所述摄像头的拍摄方向朝向该自动行走设备沿行进方向的前侧;所述处理器执行所述计算机程序时可实现如上述所述的自动行走设备的控制方法的步骤。In order to solve one of the above-mentioned problems, the present invention also provides an automatic walking device, including a main body, a walking module, a power supply module, and a memory and a processor arranged in the main body. The memory stores a computer that can run on the processor. Program, the autonomous walking device further includes a camera arranged on the body, the shooting direction of the camera is facing the front side of the autonomous walking device along the traveling direction; when the processor executes the computer program, it can be implemented as described above The steps of the control method of autonomous walking equipment.
为解决上述问题之一,本发明还提供了一种计算机可读存储介质,其存储有计算机程序,该计算机程序被处理器执行时可实现如上述所述的自动行走设备的控制方法中的步骤。In order to solve one of the above-mentioned problems, the present invention also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it can realize the steps in the control method of the autonomous walking device as described above. .
与现有技术相比,本发明中,可对自动行走设备所拍摄到的拍摄图像进行处理和分析,并通过计算处理图像和对比图像的相似性来判断处理图像和对比图像之间的相似程度,并且,该对比图像可为草坪区域的图像或其衍生图像。从而,若相似性d大于比较阈值Vc,则说明该拍摄图像和对比图像之间较为类似,该拍摄图像属于草坪区域,自动行走设备可继续自由行进工作;若相似性d小于比较阈值Vc,则说明该拍摄图像和对比图像之间相似性较低,该拍摄图像属于非草坪区域,需要自动行走设备进行后退、转弯等操作以对边界或非工作区域进行避让。从而,通过分析拍摄图像可分析出自动行走设备是否遇到了边界或行进到工作区域外侧,更加方便,使得控制也更加灵敏、有效。Compared with the prior art, the present invention can process and analyze the photographed images taken by the autonomous walking equipment, and determine the degree of similarity between the processed image and the contrast image by calculating the similarity between the processed image and the contrast image And, the contrast image may be an image of the lawn area or a derivative image thereof. Therefore, if the similarity d is greater than the comparison threshold Vc, it means that the captured image and the contrast image are relatively similar, and the captured image belongs to the lawn area, and the automatic walking device can continue to work freely; if the similarity d is less than the comparison threshold Vc, then It shows that the similarity between the captured image and the contrast image is low, and the captured image belongs to a non-turf area, and the automatic walking device needs to perform operations such as backing and turning to avoid the boundary or non-working area. Therefore, by analyzing the captured images, it can be analyzed whether the autonomous walking device has encountered a boundary or traveled outside the working area, which is more convenient and makes the control more sensitive and effective.
附图说明Description of the drawings
图1为本发明第二种实施例中自动工作系统的结构示意图;Figure 1 is a schematic structural diagram of an automatic working system in a second embodiment of the present invention;
图2为本发明自动工作方法的实施方式的流程示意图;FIG. 2 is a schematic flowchart of an embodiment of the automatic working method of the present invention;
具体实施例Specific embodiment
为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
在本申请的各个图示中,为了便于图示,结构或部分的某些尺寸会相对于其它结构或部分夸大,因此,仅用于图示本申请的主题的基本结构。In the drawings of the present application, for the convenience of illustration, some dimensions of the structure or part are exaggerated relative to other structures or parts, and therefore, they are only used to illustrate the basic structure of the subject matter of the present application.
本发明的自动行走设备1可以是自动割草机,或者自动吸尘器等,其自动行走于工作区域以进行割草、吸尘工作,本发明具体示例中,以自动行走设备1为割草机为例做具体说明,相应的,所述工作区域可为草坪。当然,自动行走设备1不限于割草机和吸尘器,也可以为其它设备,如喷洒设备、除雪设备、监视设备等等适合无人值守的设备。The self-propelled equipment 1 of the present invention may be an automatic lawn mower, or an automatic vacuum cleaner, etc., which automatically walks in the work area for mowing and vacuuming. In a specific example of the present invention, the self-propelled equipment 1 is used as a lawn mower. An example is specifically described, and accordingly, the working area may be a lawn. Of course, the self-propelled equipment 1 is not limited to lawn mowers and vacuum cleaners, and can also be other equipment, such as spraying equipment, snow removal equipment, monitoring equipment, etc., suitable for unattended equipment.
如图1和图2所示,在本发明中提供了一种自动行走设备1的控制方法,所述控制方法包括:As shown in Fig. 1 and Fig. 2, in the present invention, a control method of an autonomous walking device 1 is provided, and the control method includes:
获取拍摄图像orgImage;Obtain the captured image orgImage;
对拍摄图像orgImage进行处理获取处理图像;Process the captured image orgImage to obtain the processed image;
获取对比图像;Obtain a comparison image;
比较处理图像和对比图像并计算相似性d;Compare the processed image with the contrast image and calculate the similarity d;
若d>Vc,则判断该拍摄图像orgImage属于草坪区域;If d>Vc, it is judged that the captured image orgImage belongs to the lawn area;
若d<Vc,则判断该拍摄图像orgImage属于非草坪区域;If d<Vc, it is judged that the captured image orgImage belongs to a non-turf area;
其中,Vc为预设比较阈值。Among them, Vc is the preset comparison threshold.
因此,本发明中,可对自动行走设备1所拍摄到的拍摄图像orgImage进行处理和分析,并通过计算处理图像和对比图像的相似性d来判断处理图像和对比图像之间的相似程度,并且,该对比图像可为草坪区域的图像或其衍生图像。从而,若相似性d大于比较阈值Vc,则说明该拍摄图像orgImage和对比图像之 间较为类似,该拍摄图像orgImage属于草坪区域,自动行走设备1可继续自由行进工作;若相似性d小于比较阈值Vc,则说明该拍摄图像orgImage和对比图像之间相似性较低,该拍摄图像orgImage属于非草坪区域,需要自动行走设备1进行后退、转弯等操作以对边界2或非工作区域进行避让。从而,通过分析拍摄图像orgImage可分析出自动行走设备1是否遇到了边界2或行进到工作区域外侧,更加方便,使得控制也更加灵敏、有效。Therefore, in the present invention, the captured image orgImage captured by the autonomous vehicle 1 can be processed and analyzed, and the similarity d between the processed image and the contrast image can be calculated to determine the degree of similarity between the processed image and the contrast image, and , The contrast image can be an image of the lawn area or a derivative image thereof. Therefore, if the similarity d is greater than the comparison threshold Vc, it means that the captured image orgImage and the contrast image are relatively similar, and the captured image orgImage belongs to the lawn area, and the autonomous walking device 1 can continue to work freely; if the similarity d is less than the comparison threshold Vc means that the similarity between the captured image orgImage and the contrast image is low. The captured image orgImage belongs to a non-turf area, and the automatic walking device 1 needs to perform operations such as backing and turning to avoid the boundary 2 or the non-working area. Therefore, by analyzing the captured image orgImage, it can be analyzed whether the autonomous walking device 1 encounters the boundary 2 or travels outside the working area, which is more convenient and makes the control more sensitive and effective.
另外,在本具体实施方式中,若d=Vc,则也判断该拍摄图像orgImage属于草坪区域。In addition, in this specific embodiment, if d=Vc, it is also determined that the captured image orgImage belongs to the lawn area.
进一步的,所述处理图像和对比图像均为直方图格式。在图像处理及图像识别领域中,直方图可反映不同色彩在整幅图像中所占的比例,但是并不反映每种色彩所处的空间位置,适用于描述无法进行自动分割的图像。由于,本发明中的自动行走设备1在草地中行进,因而在其工作区域内所述自动行走设备1所拍摄的图像均与草地相关,因而颜色整体来说较为统一,约为绿色,从而,可通过将处理图像和对比图像均调整为直方图格式后进行两者比对,计算处理图像与对比图像之间的差距,若差距较大,则说明处理图像中的绿色相关的像素点较少,即可判断该拍摄图像orgImage属于非草坪区域。Further, the processed image and the contrast image are both in histogram format. In the field of image processing and image recognition, the histogram can reflect the proportion of different colors in the entire image, but it does not reflect the spatial position of each color. It is suitable for describing images that cannot be automatically segmented. Since the autonomous vehicle 1 in the present invention travels in the grass, the images taken by the autonomous vehicle 1 in its working area are all related to the grass, so the color is relatively uniform on the whole, approximately green, thus, The processed image and the contrast image can be adjusted to histogram format and then the two can be compared to calculate the gap between the processed image and the contrast image. If the gap is larger, it means that there are fewer green-related pixels in the processed image. , It can be judged that the captured image orgImage belongs to a non-turf area.
具体的,步骤“对拍摄图像orgImage进行处理获取处理图像”包括:Specifically, the step of "processing the captured image orgImage to obtain a processed image" includes:
获取HSV格式的拍摄图像orgImage并记为HSV图像hsvImage1;Obtain the captured image orgImage in HSV format and record it as HSV image hsvImage1;
计算HSV图像hsvImage1的直方图,生成直方图图像hist1;Calculate the histogram of the HSV image hsvImage1, and generate the histogram image hist1;
对直方图图像hist1进行归一化处理,生成归一化直方图H1并记为处理图像。The histogram image hist1 is normalized, and a normalized histogram H1 is generated and recorded as a processed image.
其中,HSV格式是一种颜色空间,其包括色调H、饱和度S、明度V。色调H用角度度量,其取值范围为0°~360°,从红色开始按逆时针方向计算,红色为0°,绿色为120°,蓝色为240°。饱和度S表示颜色接近光谱色的程度,光谱色所占的比例越大,颜色接近光谱色的程度就越高,颜色的饱和度就越高。饱和度的取值范围为0%至100%,值越大,颜色越饱和。明度V表示颜色明亮的程度,对于物体色,明度值V与物体的透射比或反射比有关。通常的 取值范围为0%至100%,0%为黑,100%为白。Among them, the HSV format is a color space, which includes hue H, saturation S, and lightness V. The hue H is measured by an angle, and its value range is 0°~360°. It is calculated in a counterclockwise direction from red. Red is 0°, green is 120°, and blue is 240°. Saturation S indicates the degree to which the color is close to the spectral color. The greater the proportion of the spectral color, the higher the degree of the color close to the spectral color, and the higher the saturation of the color. The value of saturation ranges from 0% to 100%. The larger the value, the more saturated the color. The lightness V indicates the brightness of the color. For the color of an object, the lightness value V is related to the transmittance or reflectance of the object. The usual value ranges from 0% to 100%, with 0% being black and 100% being white.
并且,通常的,所述拍摄图像orgImage为RGB格式图像,因而,步骤“获取HSV格式的拍摄图像orgImage”中具体为:将拍摄图像orgImage转换为HSV图像。当然,若该拍摄图像orgImage本身即为HSV格式,则无需再进行另外的格式转化,同样也可达到本发明的目的。In addition, usually, the captured image orgImage is an RGB format image. Therefore, the step of "acquiring a captured image orgImage in HSV format" specifically includes: converting the captured image orgImage into an HSV image. Of course, if the captured image orgImage itself is in the HSV format, no additional format conversion is required, and the objective of the present invention can also be achieved.
另外,“对直方图图像hist1进行归一化处理”中,归一化处理是指对图像进行一系列标准的处理变换、将图像变换为一固定标准形式的过程。可更方便的进行相似性分析。In addition, in "normalizing the histogram image hist1", the normalization refers to the process of performing a series of standard processing transformations on the image and transforming the image into a fixed standard format. Similarity analysis can be carried out more conveniently.
通过上述方法,可将拍摄图像orgImage转换为归一化直方图H1即处理图像,从而方便与对比图像进行比对并计算相似性。Through the above method, the captured image orgImage can be converted into the normalized histogram H1, that is, the processed image, so as to facilitate the comparison with the contrast image and calculate the similarity.
另外,如上述所述,所述对比图像也为直方图格式,从而,本发明中,提供了两种具体实施例来获得直方图格式的对比图像。In addition, as described above, the comparison image is also in the histogram format. Therefore, in the present invention, two specific embodiments are provided to obtain the comparison image in the histogram format.
一种实施例中,步骤“获取对比图像”包括:In an embodiment, the step of "obtaining a comparison image" includes:
预设对比直方图;Preset contrast histogram;
调取对比直方图并记为对比图像。Recall the contrast histogram and record it as the contrast image.
在本实施例中,直接预设有对比直方图,该对比图像通过直接调取对比直方图获得。对比直方图可预先存储于自动行走设备中,并且调取该对比直方图直接与处理图像进行比对,从而不需要再另外对对比直方图进行计算。该对比直方图具有普遍性,可适用该处草坪的情况。该对比直方图可以通过模拟计算等方式直接拟合而成。In this embodiment, a comparison histogram is directly preset, and the comparison image is obtained by directly calling the comparison histogram. The comparison histogram can be pre-stored in the automatic walking device, and the comparison histogram can be retrieved and directly compared with the processed image, so that there is no need to calculate the comparison histogram separately. The comparison histogram is universal and can be applied to the lawn in that place. The comparison histogram can be directly fitted through simulation calculations and other methods.
或者,第二种实施例中,步骤“获取对比图像”包括:Or, in the second embodiment, the step of "obtaining a comparison image" includes:
获取HSV格式的样本图像samImage并记为HSV样本图像hsvImage2;Obtain the sample image samImage in HSV format and record it as HSV sample image hsvImage2;
计算HSV样本图像hsvImage2的直方图,生成样本直方图图像hist2;Calculate the histogram of the HSV sample image hsvImage2, and generate the sample histogram image hist2;
对样本直方图图像hist2进行归一化处理,生成归一化样本直方图H2并记为对比图像。The sample histogram image hist2 is normalized to generate a normalized sample histogram H2 and recorded as a contrast image.
在本第二种实施例中,和上述获取拍摄图像orgImage的处理图像的步骤类似。可以在工作之前,通过人机互动的方式,用户对自动行走设备1发出拍摄 指令,让自动行走设备1对当前所处的草坪进行拍摄获得样本图像samImage,并进行类似的处理步骤后获得对比图像。在本实施例中,可以单独对每个草坪进行预先的拍摄,从而与上述处理图像在进行对比时,更加精确,更加适用于本块草坪的当前情况,准确性也更高。为了更加精确,可以对多个草坪在不同的环境下,比如早晚不同的光线下,阴天或雨天下进行多次拍摄后获取多张图像,再将这多张图像拟合获得样本图像。或者,也可以预设一个默认的草坪图像为样本图像samImage,该默认的草坪图像作为样本图像samImage时,该默认的草坪图像也具有普遍性,可适用于多种情况下的草坪。In this second embodiment, the steps are similar to the above-mentioned steps for acquiring the processed image of the captured image orgImage. Before work, through human-computer interaction, the user can issue a shooting instruction to the automatic walking device 1 so that the automatic walking device 1 can shoot the current lawn to obtain a sample image samImage, and perform similar processing steps to obtain a comparison image . In this embodiment, each lawn can be individually photographed in advance, so that the comparison with the above-mentioned processed image is more accurate, more suitable for the current situation of the lawn, and more accurate. In order to be more precise, multiple images can be obtained by taking multiple shots of multiple lawns in different environments, such as morning and evening under different light, cloudy or rainy, and then fitting these multiple images to obtain sample images. Alternatively, a default lawn image can also be preset as the sample image samImage. When the default lawn image is used as the sample image samImage, the default lawn image is also universal and can be applied to lawns in various situations.
同样的,在步骤“获取HSV格式的样本图像”中,可以直接获取HSV格式的样本图像samImage,也可以将样本图像samImage转化为HSV格式。Similarly, in the step "Obtain a sample image in HSV format", the sample image samImage in the HSV format can be directly obtained, or the sample image samImage can be converted into the HSV format.
进一步的,步骤“比较处理图像和对比图像并计算相似性d”包括:通过相关性分析或卡方检验或交集法或距离分析法计算处理图像和对比图像的相似性d。当然,若采用其他的方法进行相似性d的计算,也可以满足本发明的目的。Further, the step of "compare the processed image and the contrast image and calculate the similarity d" includes: calculating the similarity d between the processed image and the contrast image through correlation analysis or chi-square test or intersection method or distance analysis method. Of course, if other methods are used to calculate the similarity d, the objective of the present invention can also be met.
本发明中,提出了计算相似性d的方法,其中,相关性分析是研究两个或两个以上处于同等地位的随机变量间的相关关系的统计分析方法。卡方检验包括:两个率或两个构成比比较的卡方检验;多个率或多个构成比比较的卡方检验以及分类资料的相关分析等。交集法、距离分析法也是进行相似性分析的方法,具体的不再赘述。In the present invention, a method for calculating similarity d is proposed, wherein correlation analysis is a statistical analysis method for studying the correlation between two or more random variables in the same position. The chi-square test includes: the chi-square test for comparing two rates or two component ratios; the chi-square test for comparing multiple rates or multiple component ratios and the correlation analysis of classification data. The intersection method and distance analysis method are also methods for similarity analysis, and the details will not be repeated.
所述比较阈值Vc与摄像头拍摄效果等因素相关,在确定该自动工作系统后,可通过开发者对不同的值进行试验然后以一个最佳数值作为该比较阈值Vc的值。在本发明的具体实施例中,取所述比较阈值Vc的值为0。The comparison threshold Vc is related to factors such as the photographing effect of the camera. After determining the automatic working system, the developer can test different values and then use an optimal value as the value of the comparison threshold Vc. In a specific embodiment of the present invention, the value of the comparison threshold Vc is taken to be zero.
本发明中还提供了自动工作系统,为了可以使得自动行走设备1在行走的过程中能识别出边界2或者其工作区域,并且,在本发明中可以更好的计算相似性,本发明中提供了两种自动工作系统的实施例。The present invention also provides an automatic working system. In order to enable the automatic traveling device 1 to recognize the boundary 2 or its working area during walking, and to better calculate the similarity in the present invention, the present invention provides Two embodiments of automatic working systems are presented.
具体的,在第一种实施例中,所述自动工作系统包括:Specifically, in the first embodiment, the automatic working system includes:
自动行走设备1,可按照如上所述的控制方法工作;The automatic walking equipment 1 can work according to the above-mentioned control method;
工作区域,所述自动行走设备1可在工作区域内行进并工作,所述工作区 域边沿外侧设置有非工作区域,所述工作区域和非工作区域的地质不同。In the working area, the autonomous vehicle 1 can travel and work in the working area, and a non-working area is arranged outside the edge of the working area, and the geology of the working area and the non-working area are different.
由于本发明中,所述自动行走设备1通过获取拍摄图像orgImage,再进行相似性分析,本发明中可不另外设置边界2。由于本发明中的自动行走设备1应用于割草机中,则草地即为工作区域,显然的,非工作区域中可为裸露土壤、地板、水泥板等等,其地质均和草地有较大的不同,其颜色也和草地有较大的不同。因而,可以应用本发明中的控制方法进行分析自动行走设备1是否到达所述工作区域的边沿。Since in the present invention, the autonomous walking device 1 acquires the captured image orgImage and then performs similarity analysis, the boundary 2 may not be additionally provided in the present invention. Since the autonomous walking device 1 of the present invention is applied to a lawn mower, the grass is the working area. Obviously, the non-working area can be bare soil, floor, cement board, etc., and its geology is larger than that of grass. Its color is also quite different from that of grass. Therefore, the control method in the present invention can be applied to analyze whether the autonomous vehicle 1 reaches the edge of the working area.
或者,在第二种实施例中,所述自动工作系统包括:Or, in the second embodiment, the automatic working system includes:
自动行走设备1,可按照如上所述的控制方法工作;The automatic walking equipment 1 can work according to the above-mentioned control method;
边界2,围设呈环状并形成用以限定自动行走设备1的工作区域,所述边界2自地面向上延伸。The boundary 2 is surrounded in a ring shape and formed to define the working area of the autonomous vehicle 1, and the boundary 2 extends upward from the ground.
在本实施例中,所述自动行走设备1通过获取拍摄图像orgImage,再对拍摄图像orgImage进行处理分析后获得自动行走设备1行进的区域,因而,本发明自动工作系统的边界2可自地面向上延伸,从而被自动行走设备1拍摄并识别到。In this embodiment, the autonomous vehicle 1 obtains the captured image orgImage, and then processes and analyzes the captured image orgImage to obtain the area where the autonomous vehicle 1 travels. Therefore, the boundary 2 of the automatic working system of the present invention can be upward from the ground. Extend, so as to be photographed and recognized by the autonomous vehicle 1.
本发明中还提供了一种自动行走设备1,包括本体、行走模块、电源模块及设置于本体内的存储器和处理器,所述存储器存储有可在处理器上运行的计算机程序,所述自动行走设备1还包括设置于本体上的摄像头,所述摄像头的拍摄方向朝向该自动行走设备1沿行进方向的前侧;所述处理器执行所述计算机程序时可实现如上述所述的自动行走设备1的控制方法的步骤。也就是说,所述处理器执行所述计算机程序时可实现如上述所述的自动行走设备1的任何一种实施例的控制方法的步骤。The present invention also provides an automatic walking device 1, including a main body, a walking module, a power supply module, and a memory and a processor arranged in the main body. The memory stores a computer program that can run on the processor. The walking device 1 also includes a camera arranged on the body, and the shooting direction of the camera faces the front side of the automatic walking device 1 along the traveling direction; the processor can realize the automatic walking as described above when the computer program is executed. The steps of the control method of the device 1. That is to say, when the processor executes the computer program, the steps of the control method of any embodiment of the autonomous walking device 1 described above can be implemented.
如上述所述,本发明中的自动行走设备1的本体上设置有摄像头,从而可以拍摄并获取拍摄图像orgImage。并且,摄像头的拍摄方向朝向自动行走设备1沿行进方向的前侧,从而所述摄像头拍摄获得的是自动行走设备1前侧的景象。因而,可以根据自动行走设备1所拍摄获得的拍摄图像orgImage来分析自动行走设备1接下来的运动轨迹:若判断拍摄图像orgImage属于草坪区域,则控制 自动行走设备1进一步行走及工作;若判断拍摄图像orgImage属于非草坪区域,则控制自动行走设备1进行停止或转向或后退等操作。As described above, the body of the autonomous vehicle 1 in the present invention is provided with a camera, so that the captured image orgImage can be photographed and obtained. In addition, the photographing direction of the camera is toward the front side of the autonomous vehicle 1 in the traveling direction, so that the camera captures a view of the front side of the autonomous vehicle 1. Therefore, the following motion trajectory of the autonomous walking device 1 can be analyzed according to the captured image orgImage captured by the autonomous walking device 1: If it is determined that the captured image orgImage belongs to the lawn area, the autonomous walking device 1 is controlled to further walk and work; if the shooting is determined If the image orgImage belongs to a non-grass area, the automatic walking device 1 is controlled to stop, turn, or retreat.
同样的,本发明中还提供了一种计算机可读存储介质,其存储有计算机程序,该计算机程序被处理器执行时可实现如上述所述的自动行走设备1的控制方法中的步骤。也就是说,所述处理器执行所述计算机程序时可实现如上述所述的自动行走设备1的任何一种实施例的控制方法的步骤。Similarly, the present invention also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it can realize the steps in the control method of the autonomous walking device 1 as described above. That is to say, when the processor executes the computer program, the steps of the control method of any embodiment of the autonomous walking device 1 described above can be implemented.
综上所述,本发明中提供了一种自动工作系统、自动行走设备1及其控制方法及计算机可读存储介质,其中,自动行走设备1的控制方法中,可对自动行走设备1所拍摄到的拍摄图像orgImage进行处理和分析,并通过计算处理图像和对比图像的相似性d来判断处理图像和对比图像之间的相似程度,并且,该对比图像可为草坪区域的图像或其延伸图像。从而,若相似性d大于比较阈值Vc,则说明该拍摄图像orgImage和对比图像之间相似性较低,该拍摄图像orgImage属于草坪区域,自动行走设备1可继续自由行进工作;所述相似性d小于比较阈值Vc,则说明该拍摄图像orgImage和对比图像之间不太相似,该拍摄图像orgImage属于非草坪区域,需要自动行走设备1进行后退、转弯等操作以对边界2进行避让。从而,通过分析拍摄图像orgImage可分析出自动行走设备1是否遇到了边界2或行进到工作区域外侧,更加方便,使得控制也更加灵敏、有效。In summary, the present invention provides an automatic working system, an automatic driving device 1 and a control method thereof, and a computer readable storage medium. Among them, in the control method of the automatic driving device 1, the image of the automatic driving device 1 can be captured. The captured image orgImage is processed and analyzed, and the similarity d between the processed image and the contrast image is calculated to determine the degree of similarity between the processed image and the contrast image, and the contrast image can be the image of the lawn area or its extended image . Therefore, if the similarity d is greater than the comparison threshold Vc, it means that the similarity between the captured image orgImage and the contrast image is low, and the captured image orgImage belongs to the lawn area, and the autonomous walking device 1 can continue to work freely; the similarity d If it is less than the comparison threshold Vc, it means that the captured image orgImage and the contrast image are not very similar. The captured image orgImage belongs to a non-turf area, and the automatic walking device 1 needs to perform operations such as backing and turning to avoid the boundary 2. Therefore, by analyzing the captured image orgImage, it can be analyzed whether the autonomous walking device 1 encounters the boundary 2 or travels outside the working area, which is more convenient and makes the control more sensitive and effective.
并且,进一步的,本发明中的处理图像和对比图像均为直方图格式,而直方图可以有效描述图像中颜色的全局分布特征,且具有平移、尺度和旋转的不变性,因而识别更加准确。在具体实施例中,通过预先对草坪拍摄图像后作为样本图像并处理为对比图像,可以排除环境对视觉识别的干扰,有效的识别出草坪区域和非草坪区域,提高自动行走设备1的工作效率。Furthermore, the processed image and the contrast image in the present invention are both in histogram format, and the histogram can effectively describe the global distribution characteristics of colors in the image, and has the invariance of translation, scale and rotation, so the recognition is more accurate. In a specific embodiment, by taking an image of the lawn in advance as a sample image and processing it as a comparison image, the interference of the environment on visual recognition can be eliminated, the lawn area and the non-turf area can be effectively identified, and the work efficiency of the autonomous walking device 1 can be improved. .
另外,本发明中的自动工作系统中不需要在地底下另外布局边界线,减少了人力物力成本,工作区域形状灵活不受限制,识别速度快,精度高,也可以提高本发明中自动行走设备1特别是自动割草机器人的工作效率。In addition, the automatic working system of the present invention does not need to lay out additional boundary lines under the ground, reducing the cost of manpower and material resources, the shape of the working area is flexible and unrestricted, the recognition speed is fast, and the accuracy is high. It can also improve the automatic walking equipment of the present invention. 1 Especially the working efficiency of the automatic lawn mower robot.
此外,应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施 方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施方式中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。In addition, it should be understood that although this specification is described in accordance with the implementation manners, not each implementation manner only includes an independent technical solution. This narration in the specification is only for the sake of clarity, and those skilled in the art should regard the specification as a whole The technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.
上文所列出的一系列的详细说明仅仅是针对本发明的可行性实施方式的具体说明,并非用以限制本发明的保护范围,凡未脱离本发明技艺精神所作的等效实施方式或变更均应包含在本发明的保护范围之内。The series of detailed descriptions listed above are only specific descriptions of feasible implementations of the present invention, and are not intended to limit the scope of protection of the present invention. Any equivalent implementations or changes made without departing from the technical spirit of the present invention All should be included in the protection scope of the present invention.

Claims (10)

  1. 一种自动行走设备的控制方法,其特征在于,所述控制方法包括:A control method of autonomous walking equipment, characterized in that the control method includes:
    获取拍摄图像;Obtain a photographed image;
    对拍摄图像进行处理获取处理图像;Process the captured image to obtain the processed image;
    获取对比图像;Obtain a comparison image;
    比较处理图像和对比图像并计算相似性d;Compare the processed image with the contrast image and calculate the similarity d;
    若d>Vc,则判断该拍摄图像属于草坪区域;If d>Vc, it is judged that the captured image belongs to the lawn area;
    若d<Vc,则判断该拍摄图像属于非草坪区域;If d<Vc, it is determined that the captured image belongs to a non-turf area;
    其中,Vc为预设比较阈值。Among them, Vc is the preset comparison threshold.
  2. 根据权利要求1所述的控制方法,其特征在于,所述处理图像和对比图像均为直方图格式。The control method according to claim 1, wherein the processed image and the contrast image are both in histogram format.
  3. 根据权利要求1所述的控制方法,其特征在于,步骤“对拍摄图像进行处理获取处理图像”包括:The control method according to claim 1, wherein the step of "processing the captured image to obtain the processed image" comprises:
    获取HSV格式的拍摄图像并记为HSV图像;Obtain the captured image in HSV format and record it as HSV image;
    计算HSV图像的直方图,生成直方图图像;Calculate the histogram of the HSV image and generate the histogram image;
    对直方图图像进行归一化处理,生成归一化直方图并记为处理图像。Normalize the histogram image to generate a normalized histogram and record it as a processed image.
  4. 根据权利要求1所述的控制方法,其特征在于,步骤“获取对比图像”包括:预设对比直方图;The control method according to claim 1, wherein the step of "obtaining a contrast image" comprises: preset a contrast histogram;
    调取对比直方图并记为对比图像。Recall the contrast histogram and record it as the contrast image.
  5. 根据权利要求1所述的控制方法,其特征在于,步骤“获取对比图像”包括:获取HSV格式的样本图像并记为HSV样本图像;The control method according to claim 1, wherein the step of "obtaining a comparison image" comprises: obtaining a sample image in HSV format and recording it as an HSV sample image;
    计算HSV样本图像的直方图,生成样本直方图图像;Calculate the histogram of the HSV sample image and generate the sample histogram image;
    对样本直方图图像进行归一化处理,生成归一化样本直方图并记为对比图像。Normalize the sample histogram image to generate a normalized sample histogram and record it as a contrast image.
  6. 根据权利要求1所述的控制方法,其特征在于,步骤“比较处理图像和对比图像并计算相似性d”包括:通过相关性分析或卡方检验或交集法或距离分析法计算处理图像和对比图像的相似性d。The control method according to claim 1, wherein the step of "compare the processed image and the contrast image and calculate the similarity d" comprises: calculating the processing image and the comparison through correlation analysis or chi-square test or intersection method or distance analysis method. Image similarity d.
  7. 一种自动工作系统,其特征在于,包括:An automatic working system, characterized in that it comprises:
    自动行走设备,可按照如权利要求1至6中的任意一项所述的控制方法工作;工作区域,所述工作区域边沿外侧设置有非工作区域,所述工作区域和非工作区域的地质不同。An automatic walking device that can work according to the control method according to any one of claims 1 to 6; a working area, a non-working area is arranged outside the edge of the working area, and the geology of the working area and the non-working area are different .
  8. 一种自动工作系统,其特征在于,包括:An automatic working system, characterized in that it comprises:
    自动行走设备,可按照如权利要求1至6中的任意一项所述的控制方法工作;边界,围设呈环状并形成用以限定自动行走设备的工作区域,所述边界自地面向上延伸。The autonomous vehicle can work according to the control method according to any one of claims 1 to 6; the boundary is ring-shaped and formed to define the working area of the autonomous vehicle, and the boundary extends upward from the ground .
  9. 一种自动行走设备,包括本体、行走模块、电源模块及设置于本体内的存储器和处理器,所述存储器存储有可在处理器上运行的计算机程序,其特征在于,所述自动行走设备还包括设置于本体上的摄像头,所述摄像头的拍摄方向朝向该自动行走设备沿行进方向的前侧;所述处理器执行所述计算机程序时可实现权利要求1至6中任意一项所述的自动行走设备的控制方法的步骤。A self-propelled equipment includes a main body, a walking module, a power supply module, and a memory and a processor arranged in the main body. The memory stores a computer program that can run on the processor, and is characterized in that the self-propelled equipment also It includes a camera arranged on the main body, and the shooting direction of the camera faces the front side of the automatic traveling equipment along the traveling direction; the processor can implement the computer program described in any one of claims 1 to 6 when the processor executes the computer program. Steps of the control method of autonomous walking equipment.
  10. 一种计算机可读存储介质,其存储有计算机程序,其特征在于,该计算机程序被处理器执行时可实现权利要求1至6中任意一项所述的自动行走设备的控制方法中的步骤。A computer-readable storage medium storing a computer program, wherein the computer program can implement the steps in the method for controlling an autonomous walking device according to any one of claims 1 to 6 when the computer program is executed by a processor.
PCT/CN2020/108926 2020-02-28 2020-08-13 Automatic working system, automatic walking device and control method therefor, and computer-readable storage medium WO2021169192A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010128489.6 2020-02-28
CN202010128489.6A CN111339961A (en) 2020-02-28 2020-02-28 Automatic work system, automatic walking device, control method thereof, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2021169192A1 true WO2021169192A1 (en) 2021-09-02

Family

ID=71185599

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/108926 WO2021169192A1 (en) 2020-02-28 2020-08-13 Automatic working system, automatic walking device and control method therefor, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN111339961A (en)
WO (1) WO2021169192A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111339961A (en) * 2020-02-28 2020-06-26 苏州科瓴精密机械科技有限公司 Automatic work system, automatic walking device, control method thereof, and computer-readable storage medium
CN111830988A (en) * 2020-07-29 2020-10-27 苏州科瓴精密机械科技有限公司 Automatic walking equipment, control method and system thereof and readable storage medium
CN112060086B (en) * 2020-08-27 2022-06-03 深圳拓邦股份有限公司 Method and device for controlling robot walking, storage medium and walking robot
CN114648691A (en) * 2020-12-21 2022-06-21 苏州科瓴精密机械科技有限公司 Obstacle identification method, device, equipment, medium and weeding robot

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104345734A (en) * 2013-08-07 2015-02-11 苏州宝时得电动工具有限公司 Automatic working system, automatic walking equipment and control method thereof
CN105557175A (en) * 2014-10-10 2016-05-11 苏州宝时得电动工具有限公司 Intelligent lawn mower and control method thereof
CN107463166A (en) * 2016-06-03 2017-12-12 苏州宝时得电动工具有限公司 Automatic running device and its control traveling method
CN109328615A (en) * 2018-12-06 2019-02-15 南京苏美达智能技术有限公司 Meadow Boundary Recognition method, the control method of mowing-apparatus and mowing-apparatus
US20190221002A1 (en) * 2018-01-18 2019-07-18 Autel Robotics Co., Ltd. Target detection method and unmanned aerial vehicle
CN111339961A (en) * 2020-02-28 2020-06-26 苏州科瓴精密机械科技有限公司 Automatic work system, automatic walking device, control method thereof, and computer-readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104345734A (en) * 2013-08-07 2015-02-11 苏州宝时得电动工具有限公司 Automatic working system, automatic walking equipment and control method thereof
CN105557175A (en) * 2014-10-10 2016-05-11 苏州宝时得电动工具有限公司 Intelligent lawn mower and control method thereof
CN107463166A (en) * 2016-06-03 2017-12-12 苏州宝时得电动工具有限公司 Automatic running device and its control traveling method
US20190221002A1 (en) * 2018-01-18 2019-07-18 Autel Robotics Co., Ltd. Target detection method and unmanned aerial vehicle
CN109328615A (en) * 2018-12-06 2019-02-15 南京苏美达智能技术有限公司 Meadow Boundary Recognition method, the control method of mowing-apparatus and mowing-apparatus
CN111339961A (en) * 2020-02-28 2020-06-26 苏州科瓴精密机械科技有限公司 Automatic work system, automatic walking device, control method thereof, and computer-readable storage medium

Also Published As

Publication number Publication date
CN111339961A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
WO2021169192A1 (en) Automatic working system, automatic walking device and control method therefor, and computer-readable storage medium
WO2021169190A1 (en) Automatic working system, automatic travelling device and control method therefor, and computer readable storage medium
WO2022021630A1 (en) Autonomous walking device and control method and system therefor, and readable storage medium
WO2021169193A1 (en) Automatic working system, automatic locomotion device and control method therefor, and computer readable storage medium
CN108496129B (en) Aircraft-based facility detection method and control equipment
CN104111653A (en) Automatic walking equipment and working region judgment method thereof
WO2016045593A1 (en) Self-moving robot
CN109063575A (en) A kind of intelligent grass-removing based on monocular vision is independently orderly mowed method
KR102347511B1 (en) Robotic lawn mower using image processing of lawn boundary and Method for Controlling the same
WO2021226900A1 (en) Cotton crop row detection method and apparatus based on computer vision, and storage medium
CN213424010U (en) Mowing range recognition device of mowing robot
WO2021139397A1 (en) Method for controlling self-moving device
CN105785986A (en) Automatic working equipment
CN107463167B (en) Automatic walking equipment and target area identification method
CN109328615B (en) Lawn boundary recognition method, control method of mowing device and mowing device
Xie et al. Multi-feature detection of in-field grain lodging for adaptive low-loss control of combine harvesters
US20240094739A1 (en) Automatic Working System, Automatic Walking Device, and Method for Controlling Same, and Computer-Readable Storage Medium
CN112542800A (en) Method and system for identifying transmission line fault
WO2021042487A1 (en) Automatic working system, automatic travelling device and control method therefor, and computer readable storage medium
Roy et al. Robotic surveying of apple orchards
CN204143255U (en) Automatic running device
WO2021184664A1 (en) Automatic working system, automatic walking device and control method therefor, and computer-readable storage medium
WO2017206950A1 (en) Automatic walking device and method for controlling the walking thereof
WO2021184663A1 (en) Automatic working system, automatic walking device and control method therefor, and computer-readable storage medium
WO2021031406A1 (en) Automatic working system, and automatic walking device and control method therefor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20921349

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20921349

Country of ref document: EP

Kind code of ref document: A1