Control method of self-moving equipment and equipment applying method

By receiving and processing image sensor data, the mobile device moves along the border with varying offsets, solving the problems of missed cuts and grass indentations, achieving a more complete grass cut and aesthetic effect.

CN118778619APending Publication Date: 2024-10-15POSITEC POWER TOOLS (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310361882.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-06
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

When the mobile device cuts the grass in the border area along the edge, it is easy to miss the cut, and multiple movements with the same offset will cause indentations on the grass, affecting the appearance.

Method used

By receiving the environmental image data provided by the image sensor, process it to determine the distance from the mobile device to the border, and control the device to move along the border with varying offsets to cover the missed area, avoid the device from exceeding the border or hitting obstacles, and adjust at the same time Offset to avoid grass indentation.

Benefits of technology

It effectively prevents the grass in the missed cut area from being missed, ensures the completeness of the cutting, and avoids the indentation of the grass caused by multiple movements of the same offset, improving the aesthetics of the grass.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778619A_ABST
    Figure CN118778619A_ABST
Patent Text Reader

Abstract

The invention provides a control method of self-moving equipment and equipment applying the method, and relates to the field of self-moving machines. The control method of the self-moving equipment comprises the following steps: receiving environment image data which is provided by an image sensor and comprises a boundary; processing the environmental image data to determine a distance of the self-moving device from the boundary; the distance between the self-moving device and the boundary is controlled to be at least kept at a first preset value, and the self-moving device is controlled to move for multiple circles along the boundary with the variable offset to cover the cutting missing area; wherein the cutting missing area is defined as an area formed between the steering position and the boundary when the self-moving device is controlled to steer when the distance between the self-moving device and the boundary reaches a second preset value when the advancing direction of the self-moving device faces the boundary. The self-moving device is controlled to move for multiple circles along the boundary with the variable offset for mowing, the miss-mowing area is covered, the cutting integrity of the edge area of the grassland is improved, and the cut grassland is more attractive.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of self-moving machines, and in particular to a control method for a self-moving device and a device using the method. Background Art

[0002] With the development of technology, the use of autonomous equipment is becoming more and more extensive. For example, autonomous equipment can complete the task of mowing grass autonomously without human control. However, when autonomous equipment cuts grass in the border area along the edge, it usually moves at the same border distance, so the grass in the border area is more likely to be missed. Summary of the invention

[0003] In view of this, an embodiment of the present application provides a control method for a mobile device and a device applying the method.

[0004] In the first aspect, an embodiment of the present application provides a control method for a self-moving device, which is used to control the self-moving device to move in a work area with a boundary, where the boundary is the boundary between grass and non-grass. The method includes: receiving environmental image data including a boundary provided by an image sensor; processing the environmental image data to determine the distance between the self-moving device and the boundary; controlling the distance between the self-moving device and the boundary to at least maintain a first preset value, and controlling the self-moving device to move along the boundary with a varying offset for multiple cycles to cover the missed cutting area; wherein the missed cutting area is defined as when the self-moving device's forward direction is toward the boundary, the self-moving device is controlled to turn when the distance from the boundary reaches a second preset value, and the area formed between the turning position and the boundary, the range of the offset value is determined based on the missed cutting area and the first preset value, and the offset values ​​of at least two weeks are different.

[0005] In combination with the first aspect, in certain implementations of the first aspect, the self-moving device is controlled to turn when the distance from the boundary reaches a second preset value, including: if it is detected that the self-moving device reaches the second preset value from the boundary in the forward direction of the self-moving device, the self-moving device is controlled to gradually slow down and turn, and move in a direction away from the boundary.

[0006] In combination with the first aspect, in certain implementations of the first aspect, controlling the self-moving device to move multiple times along the boundary with a varying offset includes: receiving a task input by a user, the task including a number of times or a moving time; in response to the user input, controlling the self-moving device to move multiple times parallel to the boundary to traverse the missed area until the task input by the user is completed.

[0007] In combination with the first aspect, in certain implementations of the first aspect, controlling the self-moving device to move along the boundary with a varying offset for multiple cycles includes: controlling the self-moving device to move parallel to the boundary with a varying offset in a return to charging station mode; if the self-moving device recognizes that there is a charging station in the forward direction, controlling the self-moving device to return to the charging station.

[0008] In combination with the first aspect, in certain implementations of the first aspect, a signal transmitting device is installed at any position of the boundary, and a relevant signal can be received when the self-moving device moves into the detection range of the signal transmitting device. Controlling the self-moving device to move along the boundary with a variable offset for multiple cycles includes: controlling the self-moving device to move parallel to the boundary with a variable offset, and increasing a count value when receiving a relevant signal; in response to the count value reaching a preset value, controlling the self-moving device to stop moving parallel to the boundary.

[0009] In combination with the first aspect, in certain implementations of the first aspect, moving for multiple rounds includes: each time after the mobile device exits the charging station and / or before returning to the charging station, the mobile device moves for one round parallel to the boundary with a certain offset, and at least two of the multiple entries and / or returns to the charging station have different offsets.

[0010] In combination with the first aspect, in certain implementations of the first aspect, moving for multiple weeks includes: each time after the mobile device leaves the charging station and / or before returning to the charging station, the mobile device moves for multiple weeks parallel to the boundary with a certain offset, and at least two of the multiple weeks have different offsets.

[0011] In combination with the first aspect, in certain implementations of the first aspect, the weekly offset is a fixed value or varies within a bounded range, wherein the bounded range is determined based on the missed cutting area and the second preset value.

[0012] In combination with the first aspect, in certain implementations of the first aspect, the control method of the self-moving device also includes: if the self-moving device detects that the value of the distance from the boundary is outside the endpoint value of the bounded range when moving parallel to the boundary, adjusting the driving direction so that the value of the distance from the boundary of the self-moving device always remains within the bounded range.

[0013] In combination with the first aspect, in certain implementations of the first aspect, environmental image data is processed to determine the distance between the self-moving device and the boundary, including: obtaining a first image including the boundary based on the environmental image data; when the self-moving device is moving in a direction toward the boundary, detecting the distance between the self-moving device and the boundary; and calibrating the first distance based on the position of the boundary line of the grass in the first image, the first distance corresponding to the distance between the self-moving device and the boundary.

[0014] In combination with the first aspect, in certain implementations of the first aspect, the first distance is calibrated according to the position of the boundary line of the grass in the first image, including: determining at least two intersection points of the boundary line of the grass and the edge of the field of view of the first image; and taking the shortest vertical distance between the at least two intersection points and the lower edge of the field of view of the first image as the first distance.

[0015] In combination with the first aspect, in certain implementations of the first aspect, environmental image data is processed to determine the distance between the self-moving device and the boundary, including: obtaining a second image including the boundary based on the environmental image data; calculating the grass area in the area on one side of the boundary line where the center line of the second image includes grass, and obtaining the distance between the self-moving device and the boundary based on a functional relationship between a preset grass area and the distance between the self-moving device and the boundary.

[0016] In combination with the first aspect, in some implementations of the first aspect, the functional relationship is a corresponding relationship between a value of a grass area in the second image and a target position point within a preset range from the mobile device to the boundary.

[0017] In combination with the first aspect, in certain implementations of the first aspect, environmental image data is processed to determine the distance from the mobile device to the boundary, including: obtaining a second image containing the boundary based on the environmental image data; based on the outer edge of the mobile device in the width direction corresponding to the straight line K on the second image, calculating the average horizontal distance of the straight line K from multiple points on the boundary line of the grass, the average corresponding to the distance from the mobile device to the boundary.

[0018] In combination with the first aspect, in certain implementations of the first aspect, environmental image data is processed to determine the distance from the mobile device to the boundary, including: obtaining a second image including the boundary based on the environmental image data; detecting pixel blocks in sequence from the center point of the lower edge of the field of view of the second image in the direction of the boundary line of the grass until the proportion of the grass area in the detected pixel blocks is less than or equal to a predetermined value, then stopping the detection of pixel blocks; counting the number of detected pixel blocks; calculating the length from the center point to the intersection of the boundary line of the grass and the bottom of the field of view of the second image based on the number and the area of ​​the pixel blocks, the length corresponding to the distance from the mobile device to the boundary, wherein each pixel block is a quadrilateral area containing multiple pixels.

[0019] In combination with the first aspect, in certain implementations of the first aspect, pixel blocks are detected sequentially in the direction of the location of the boundary line of the grass, including: if the pixel block coincides with the side edge of the field of view of the second image, and a pixel block whose grass area accounts for less than or equal to a predetermined value has not been detected, then continue to detect pixel blocks upward along the side edge of the field of view of the second image until a pixel block whose grass area accounts for less than or equal to a predetermined value is detected, and then stop detecting pixel blocks.

[0020] In the second aspect, an embodiment of the present application provides a self-moving device for moving in a work area with a boundary, where the boundary is the boundary between grass and non-grass. The self-moving device includes: a main body; a moving component, which drives the self-moving device to move, including a driving wheel and a driven wheel; an image sensor, which is arranged on the main body, and the field of view extends in the forward direction of the driving wheel, and provides data within the field of view for the self-moving device; a controller, which receives and processes the data within the field of view, and controls the moving speed and moving direction of the self-moving device according to the processing result; the controller is configured to execute a control method for the self-moving device, the method comprising: receiving environmental image data including a boundary provided by the image sensor; processing the environmental image data to determine the distance between the self-moving device and the boundary; controlling the distance between the self-moving device and the boundary to at least maintain a first preset value, and controlling the self-moving device to move along the boundary with a varying offset for multiple cycles to cover the missed cutting area; wherein the missed cutting area is defined as when the forward direction of the self-moving device is toward the boundary, the self-moving device is controlled to turn when the distance from the boundary reaches a second preset value, and the area formed between the turning position and the boundary, the value range of the offset is determined based on the missed cutting area and the first preset value, and the values ​​of the offset for at least two weeks are different.

[0021] In a third aspect, an embodiment of the present application provides a self-moving device for moving in a work area with a boundary, where the boundary is the boundary between grass and non-grass. The self-moving device includes: a main body; a moving component that drives the self-moving device to move, including a driving wheel and a driven wheel; one or more sensors, arranged on the main body, for providing posture data of the self-moving device in the work area; a controller, receiving and processing the posture data, and controlling the moving speed and moving direction of the self-moving device according to the processing result; the controller is configured to execute a control method for the self-moving device, the method including: receiving the posture data of the self-moving device in the work area provided by the sensor; processing the posture data to determine the distance between the self-moving device and the boundary; controlling the distance between the self-moving device and the boundary to at least maintain a first preset value, and controlling the self-moving device to move along the boundary with a variable offset for multiple cycles to cover the missed cutting area; wherein the missed cutting area is defined as when the self-moving device's forward direction is toward the boundary, the self-moving device is controlled to turn when the distance from the boundary reaches a second preset value, and the area formed between the turning position and the boundary, the value range of the offset is determined based on the missed cutting area and the first preset value, and the values ​​of the offset for at least two weeks are different.

[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program for executing the method mentioned in the first aspect.

[0023] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a processor; a memory for storing processor executable instructions; the processor is used to execute the method mentioned in the first aspect.

[0024] The control method of the self-moving device provided in the embodiment of the present application has the following beneficial effects.

[0025] When the self-moving device is operating in a work area with a boundary, it will turn when the distance from the boundary reaches a second preset value, which prevents the self-moving device from exceeding the boundary of the work area on the one hand, and prevents the self-moving device from colliding with obstacles at the boundary (for example, a wall) on the other hand. In addition, the distance between the self-moving device and the boundary is kept at least at the first preset value, ensuring the completeness of the cutting of the grass in the missed cutting area. The self-moving device moves along the boundary with a varying offset for multiple cycles, so that the missed cutting area is cut more completely, and at the same time avoids the appearance of indentations on the grass when moving with the same offset for multiple times, which affects the beauty of the grass. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation on the present application. In the accompanying drawings, the same reference numerals generally represent the same parts or steps. It should be noted that different embodiments of the present application can be combined with each other.

[0027] Figure 1a Shown is a schematic diagram of a scenario applicable to an embodiment of the present application.

[0028] Figure 1b Shown is a schematic structural diagram of a self-moving device provided by an exemplary embodiment of the present application.

[0029] Figure 2 The figure is a flow chart of a control method of a self-moving device provided by an exemplary embodiment of the present application.

[0030] Figure 3 It is a schematic diagram of a flow chart of controlling a mobile device to move along a border for multiple cycles with a varying offset, provided by an exemplary embodiment of the present application.

[0031] Figure 4 It is a schematic diagram of a flow chart of controlling a mobile device to move for multiple cycles along a boundary with a varying offset, provided by another exemplary embodiment of the present application.

[0032] Figure 5aIt is a flowchart diagram of controlling a mobile device to move for multiple cycles along a boundary with a varying offset provided by another exemplary embodiment of the present application.

[0033] Figure 5b Shown is a flow chart of controlling a mobile device to move parallel to a boundary provided by an exemplary embodiment of the present application.

[0034] Figure 6a The figure is a flow chart of processing environment image data provided by an exemplary embodiment of the present application to determine the distance between a mobile device and a boundary.

[0035] Figure 6b Shown is a schematic diagram of a first distance provided by an exemplary embodiment of the present application.

[0036] Figure 7a It is a schematic diagram of a flow chart of processing environment image data to determine the distance between a mobile device and a boundary provided by another exemplary embodiment of the present application.

[0037] Figure 7b Shown is a schematic diagram corresponding to method 2 provided by an exemplary embodiment of the present application.

[0038] Figure 7c Shown is a schematic diagram corresponding to method 3 provided by an exemplary embodiment of the present application.

[0039] Figure 7d Shown is a schematic diagram corresponding to method 3 provided by another exemplary embodiment of the present application.

[0040] Figure 8 Shown is a schematic structural diagram of a control device for a self-moving device provided by an exemplary embodiment of the present application.

[0041] Fig. 9 Shown is a schematic structural diagram of an electronic device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0043] With the development of science and technology, the uses of autonomous equipment are becoming more and more extensive. For example, autonomous equipment can independently complete the task of mowing the lawn without human control, and has the advantages of low power, low noise, and exquisite and beautiful appearance.

[0044] In the related art, when a lawn mower robot cuts grass in a boundary area or moves along a boundary to complete return charging, it usually moves at a fixed boundary distance. However, when mowing at a fixed boundary distance, there will be more missed areas and it will also cause indentations on the grass, affecting the appearance of the grass.

[0045] In view of this, the technical solution of the present application is proposed. Specifically, when the self-moving device is operating in a bounded working area, it will turn when the distance from the boundary reaches a second preset value, which on the one hand avoids the self-moving device from exceeding the boundary of the working area, and on the other hand avoids the self-moving device from colliding with obstacles at the boundary (for example, walls). In addition, the distance between the self-moving device and the boundary is maintained at least at the first preset value, ensuring the completeness of the cutting of the grass in the missed cutting area. The self-moving device moves along the boundary with a varying offset for multiple cycles, so that the missed cutting area is cut more completely, while avoiding indentations on the grass when moving with the same offset for multiple times, which affects the beauty of the grass.

[0046] Figure 1a The figure shows a schematic diagram of a scenario to which the embodiment of the present application is applicable. Figure 1a As shown, the scene includes a working area 1, a boundary 2, a missed cutting area 3 and a self-moving device 4. Figure 1b The figure shows a schematic diagram of the structure of a self-moving device provided by an exemplary embodiment of the present application. Figure 1b As shown, the self-mobile device 4 may include an image sensor 41. Exemplarily, the image sensor 41 is a camera.

[0047] During the operation of the self-moving device 4, the self-moving device 4 may be low on power or need to be transferred from one working area to another working area for operation. At this time, the self-moving device 4 needs to find the boundary 2 and quickly return to charge along the boundary 2, or find a transition mark along the boundary 2.

[0048] For example, when the self-moving device 4 moves in the working area 1, if it detects that the distance from the boundary 2 reaches a preset condition, it will turn, and a missed cutting area 3 will be formed in the process of turning. In order to cut the grass in the missed cutting area 3 more completely, when the self-moving device 4 moves along the edge, the offset along the edge will be changed. For example, the self-moving device 4 can adjust the offset from the boundary, thereby adjusting the distance along the edge (with the distance along the edge d 1 and the distance along the edge d 2 For example, d 1 Not equal to d 2 ) to better cut the grass in the missed cutting area 3.

[0049] Figure 2FIG. 1 is a flow chart of a control method for a self-moving device provided by an exemplary embodiment of the present application. For example, the control method for a self-moving device provided by an embodiment of the present application can be used to control the self-moving device to move in a bounded working area, where the boundary is the boundary between grass and non-grass. Figure 2 As shown, the control method of the self-moving device provided in the embodiment of the present application includes the following steps.

[0050] Step S201: receiving environment image data including boundaries provided by an image sensor.

[0051] Exemplarily, the image sensor may be a camera. The environmental image data includes a plurality of pixels, and the plurality of pixels may determine an environmental image within a field of view of the mobile device.

[0052] Step S202: Process the environmental image data to determine the distance between the mobile device and the boundary.

[0053] Exemplarily, semantic segmentation and perspective transformation are performed on the environmental image data, and the distance between the self-moving device and the boundary is determined according to the processing result. The processing result may be a segmented image obtained after semantic segmentation or a perspective transformed image obtained after perspective transformation. The self-moving device may be an intelligent lawn mower, and the self-moving device may randomly cut in the working area.

[0054] Step S203, controlling the distance between the self-moving device and the boundary to maintain at least a first preset value, and controlling the self-moving device to move along the boundary with a varying offset for multiple circles to cover the missed cutting area.

[0055] For example, when the forward direction of the self-moving device needs to be adjusted, the self-moving device is controlled to turn, the offset of the self-moving device along the boundary is changed to move, etc. For example, the forward direction of the self-moving device can be changed by adjusting the angular velocity and linear velocity of the driving wheel of the self-moving device.

[0056] Exemplarily, the missed cutting area is the area formed between the turning position and the boundary when the self-moving device is controlled to turn when the distance from the boundary reaches a second preset value when the forward direction of the self-moving device is toward the boundary. In practical applications, the self-moving device can perform random cutting in the working area. In order to avoid the self-moving device moving outside the working area or moving outside the working area and colliding with obstacles such as walls when performing random cutting, a certain safety distance (i.e., the second preset value) will be reserved when the self-moving device turns. Therefore, a missed cutting area will be formed between the turning position of the self-moving device and the boundary.

[0057] The second preset value can be determined according to the safety distance to be reserved and the parameters such as the size of the cutter head of the self-moving device, the length of the self-moving device and the rotation radius. For example, the second preset value can be 30 cm. When the self-moving device detects that the distance to the boundary reaches 30 cm, the self-moving device will be controlled to turn to prevent the driving wheel of the self-moving device from moving out of the boundary.

[0058] For example, in order to ensure that the grass in the missed mowing area can be cut more cleanly when the self-moving device moves along the border, the self-moving device can be made to move along the border for at least a first preset value, and the second preset value is greater than the first preset value. In other words, the granularity of the self-moving device moving along the edge is increased, thereby improving the accuracy of mowing and reducing the probability of missed mowing.

[0059] Exemplarily, the value range of the offset is determined based on the missed cutting area and the first preset value, and the values ​​of the offset for at least two weeks are different.

[0060] In some embodiments, the maximum value of the offset value range is determined by the random cutting area, wherein the random cutting area is the area in the working area except the missed cutting area.

[0061] In practical applications, when the self-moving device moves along the border for multiple times with a varying offset, in order to cut the grass in the missed area more cleanly, the offset value needs to be different for at least two weeks. For example, when the self-moving device moves along the border for N times, when N is equal to 2, first select an offset value in the offset value range, such as d 1 , and d 1 After moving along the border for one circle, a value different from d is selected in the range of the offset value. 1 The value of d 2 , and d 2 When N is greater than 2, the self-moving device moves along the edge with a fixed offset in a single cycle, and the offset values ​​of at least two of the N cycles are different.

[0062] In an embodiment of the present application, when the self-moving device is operating in a work area with a boundary, it will turn when the distance from the boundary reaches a second preset value, which on the one hand prevents the self-moving device from exceeding the boundary of the work area, and on the other hand prevents the self-moving device from colliding with obstacles at the boundary (e.g., a wall). In addition, the distance between the self-moving device and the boundary is maintained at least at the first preset value, ensuring the completeness of the cutting of the grass in the missed cutting area. The self-moving device moves along the boundary with a varying offset for multiple cycles, so that the missed cutting area is cut more completely, while avoiding the appearance of indentations on the grass when moving with the same offset for multiple times, which affects the beauty of the grass.

[0063] In some embodiments, the weekly offset can be a fixed value or can vary within a bounded range. The bounded range can be determined based on the missed cutting area and the second preset value. In addition, the bounded range can also be determined based on at least one of the distance between the cutter head of the self-moving device and the boundary, the error of the camera of the self-moving device, and the empirical value of a large number of edge cuttings performed by the self-moving device.

[0064] Exemplarily, the offset may be randomly selected within a bounded range, or may be selected within a bounded range according to a certain rule, for example, the offset may be selected within the bounded range in an increasing or decreasing manner according to a mathematical function.

[0065] In some embodiments, if the self-moving device detects that the distance value from the boundary is outside the end point value of the bounded range when moving parallel to the boundary, the driving direction is adjusted so that the distance value from the self-moving device to the boundary always remains within the bounded range.

[0066] In other embodiments, if it is detected that the self-moving device is at a distance from the boundary by a second preset value in the forward direction of the self-moving device, the self-moving device is controlled to gradually decelerate and turn to move in a direction away from the boundary.

[0067] Specifically, in the forward direction of the self-moving device, it is determined whether the distance between the self-moving device and the boundary reaches a second preset value. If the distance between the self-moving device and the boundary reaches the second preset value, after the self-moving device is decelerated to meet the turning condition, the self-moving device is controlled to turn into the working area and move away from the boundary. For example, the turning condition is that the speed of the self-moving device is 0.

[0068] For example, the actual distance of the mobile device relative to the border can be compared with the second preset value to determine whether the distance between the mobile device and the border has reached the second preset value in the forward direction of the mobile device. If the distance between the mobile device and the border is greater than or equal to the second preset value, it is considered that the distance between the mobile device and the border has reached the second preset value; if the distance between the mobile device and the border is less than the second preset value, it is considered that the distance between the mobile device and the border has not reached the second preset value.

[0069] In actual applications, when the distance between the self-moving device and the boundary reaches a second preset value, the self-moving device is controlled to gradually slow down and turn, thereby avoiding the situation where the self-moving device exceeds the working area when turning, and moves away from the boundary after turning, so that the self-moving device continues to move within the working area.

[0070] Figure 3 The figure shows a flow chart of controlling a mobile device to move along a border with a variable offset for multiple cycles provided by an exemplary embodiment of the present application. Figure 2 Based on the embodiment shown, Figure 3The embodiment shown is described below with emphasis on Figure 3 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0071] like Figure 3 As shown, in the embodiment of the present application, moving along the border for multiple cycles with a varying offset includes the following steps.

[0072] Step S301: receiving a task input by a user.

[0073] For example, the task input by the user may include the number of weeks or the moving time.

[0074] Step S302, in response to the user's input, controlling the mobile device to move parallel to the boundary for multiple circles to traverse the missed area until the task input by the user is completed.

[0075] When the self-moving device moves parallel to the boundary, it may be necessary to bypass obstacles beside the boundary. At this time, the moving trajectory of the self-moving device can be controlled to be parallel to the boundary and deviate to a certain extent, that is, it is sufficient to ensure that the self-moving device moves basically parallel to the boundary for multiple cycles.

[0076] When the task input by the user includes the number of turns, the self-moving device may estimate the moving time according to the length of the boundary and the moving speed of the self-moving device, and move parallel to the boundary according to the estimated moving time.

[0077] In actual applications, after receiving the task input by the user, the self-mobile device will execute the task input by the user. For example, if the task input by the user is 5 circles, the self-mobile device is controlled to move parallel to the boundary for 5 circles, and after moving 5 circles, the self-mobile device is controlled to stop moving. For another example, if the task input by the user is 10 minutes of movement, the self-mobile device is controlled to move parallel to the boundary for 10 minutes, and after moving for 10 minutes, the self-mobile device is controlled to stop moving.

[0078] The embodiments of the present application enable the self-mobile device to move according to the task input by the user, which not only increases the control flexibility of the self-mobile device, but also further improves the user experience.

[0079] Figure 4 FIG. 1 is a flow chart of controlling a mobile device to move for multiple cycles along a border with a varying offset provided by another exemplary embodiment of the present application. Figure 2 Based on the embodiment shown, Figure 4 The embodiment shown is described below with emphasis on Figure 4 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0080] like Figure 4 As shown, in an embodiment of the present application, controlling the self-moving device to move along the boundary with a varying offset for multiple cycles includes the following steps.

[0081] Step S401, controlling the mobile device to move parallel to the boundary with a variable offset in a return to charging station mode.

[0082] For example, when the self-mobile device detects that its battery power is low and needs to be charged, it will automatically switch to the return charging station mode so that it can return to the charging station for charging. In the process of returning to the charging station, the self-mobile device will move parallel to the boundary with a variable offset. During the movement of the self-mobile device, it may encounter situations where it needs to bypass obstacles, so the movement trajectory of the self-mobile device can have a certain degree of deviation on the basis of being parallel to the boundary, thereby ensuring that the self-mobile device can move basically parallel to the boundary with a variable offset in the return charging station mode.

[0083] Step S402: When the mobile device recognizes that there is a charging station in the forward direction, the mobile device is controlled to return to the charging station.

[0084] In the embodiment of the present application, during the process of returning the mobile device to the charging station, it will still move parallel to the boundary with a variable offset, further ensuring the completeness of cutting the grass in the missed cutting area.

[0085] Figure 5a FIG. 1 is a flow chart of controlling a mobile device to move along a border with a variable offset for multiple cycles provided by another exemplary embodiment of the present application. Figure 2 Based on the embodiment shown, Figure 5a The embodiment shown is described below in detail. Figure 5a The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0086] like Figure 5a As shown, in the embodiment of the present application, a signal transmitter is installed at any position of the boundary, and a related signal can be received when the self-moving device moves into the detection range of the signal transmitter. Controlling the self-moving device to move along the boundary with a variable offset for multiple cycles includes the following steps.

[0087] Step S501, controlling the mobile device to move parallel to the boundary with a varying offset, and increasing the count value when receiving a related signal.

[0088] Exemplarily, the signal transmitting device may be an RFID (Radio Frequency Identification) transmitting device, and the related signal may be an RFID signal. When the related signal is received while the self-mobile device is moving parallel to the boundary with a varying offset, the count value of the number of related signals received by the self-mobile device will be increased.

[0089] Step S502, in response to the count value reaching a preset value, controlling the self-moving device to stop moving parallel to the boundary.

[0090] Exemplarily, the preset value is twice. In the process of the self-moving device moving parallel to the boundary, after the self-moving device moves to the position where the signal transmitting device is located for the first time and receives the relevant signal, it continues to move parallel to the boundary, and after moving parallel to the boundary for one week and receiving the relevant signal again, the self-moving device is controlled to stop moving parallel to the boundary.

[0091] In the embodiment of the present application, when the mobile device receives the relevant signal reaching a preset number of times, the mobile device is controlled to stop moving parallel to the boundary, thereby enriching the conditions for the mobile device to stop moving parallel to the boundary and ensuring the completeness of the cutting of the grass in the missed cutting area.

[0092] Figure 5b The flowchart shown is provided by an exemplary embodiment of the present application for controlling the movement of a mobile device parallel to a boundary. Figure 5b As shown, when the self-moving device starts to move parallel to the boundary, an offset will be determined first, such as randomly selecting an offset in the value range corresponding to the offset. After determining the offset, the self-moving device is controlled to move parallel to the boundary. In the process of the self-moving device moving parallel to the boundary, it is necessary to determine whether the distance between the self-moving device and the boundary reaches the offset. When the distance between the self-moving device and the boundary does not reach the offset, the driving wheel of the self-moving device is adjusted, that is, the linear velocity and angular velocity of the driving wheel are adjusted to adjust the distance between the self-moving device and the boundary. When the distance between the self-moving device and the boundary reaches the offset, the self-moving device is controlled to continue to move parallel to the boundary, and it is determined whether the self-moving device reaches the condition for ending the movement parallel to the boundary. When the self-moving device reaches the condition for ending the movement parallel to the boundary, the self-moving device is controlled to end the movement parallel to the boundary; when the self-moving device does not reach the condition for ending the movement parallel to the boundary, the self-moving device will continue to be controlled to move parallel to the boundary. Among them, the conditions for controlling the self-moving device to end the movement parallel to the boundary have been explained in the above embodiment and will not be repeated here.

[0093] In some embodiments, moving for multiple cycles includes: after each time the mobile device exits the charging station and / or before returning to the charging station, the mobile device moves for one cycle parallel to the boundary with a certain offset, and at least two of the multiple entry and / or return to the charging station have different offsets.

[0094] In other embodiments, moving for multiple cycles includes: each time after the mobile device leaves the charging station and / or before returning to the charging station, the mobile device moves for multiple cycles parallel to the boundary with a certain offset, and at least two of the multiple cycles have different offsets.

[0095] Figure 6a The figure shows a flow chart of processing environmental image data provided by an exemplary embodiment of the present application to determine the distance between the mobile device and the boundary. Figure 2 Based on the embodiment shown, Figure 6a The embodiment shown is described below in detail. Figure 6a The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0096] like Figure 6a As shown, in an embodiment of the present application, processing environmental image data to determine the distance between the mobile device and the boundary may include the following steps.

[0097] Step S601: obtaining a first image including a boundary according to environmental image data.

[0098] Exemplarily, the first image is a perspective transformed image. For example, semantic segmentation is performed on the environment image data to obtain a segmented image corresponding to the environment image data, and then perspective transformation is performed on the segmented image to obtain the first image.

[0099] The first image may be the entire perspective transformed image corresponding to the environment image data, or may be a part of the perspective transformed image corresponding to the environment image data.

[0100] Step S602: When the moving direction of the self-moving device is toward the boundary, the distance between the self-moving device and the boundary is detected.

[0101] The purpose of step S602 includes determining the distance between the mobile device and the front boundary so that the mobile device can avoid obstacles, for example, by controlling the mobile device to turn to avoid obstacles.

[0102] Step S603: calibrate the first distance according to the position of the boundary line of the grass in the first image.

[0103] The boundary line of the grass may be a boundary line between grass and non-grass in the first image.

[0104] Specifically, calibrating the first distance according to the position of the boundary line of the grass in the first image includes: determining at least two intersection points of the boundary line of the grass and the edge of the field of view of the first image; and taking the shortest vertical distance between the at least two intersection points and the lower edge of the field of view of the first image as the first distance.

[0105] The lower edge of the field of view of the first image is the bottom edge of the first image. Exemplarily, the point on the boundary line of the grass closest to the bottom edge of the first image is determined, and a perpendicular line segment is drawn from the point to the bottom edge of the first image, and the length of the perpendicular line segment is the first distance. In addition, the point closest to the bottom edge of the first image may be any point of the two intersection points, or may be other points on the boundary line of the grass except the two intersection points, and the point closest to the bottom edge of the first image may be one or more.

[0106] For ease of understanding, Figure 6b FIG. 2 is a schematic diagram of a first distance provided by an exemplary embodiment of the present application. Figure 6b As shown, when the first image is the entire perspective transformed image corresponding to the environmental image data, there are intersections 1 and 2 between the boundary f and the edge (side edge) of the field of view of the first image, wherein the vertical distance between the intersection 2 and the bottom edge of the first image is the shortest, therefore, the vertical distance d between the intersection 2 and the bottom edge of the first image is taken as the first distance.

[0107] In another implementation, the first image is a portion of a perspective transformed image corresponding to the environment image data. Figure 7b , the first image is the part where region 2 is located. At this time, the intersection of boundary f and two sides of region 2 can be determined, and the shortest vertical distance between the intersection and the bottom edge of the first image can be determined, and the shortest vertical distance is used as the first distance.

[0108] The embodiment of the present application determines the distance between the self-moving device and the boundary in front through the correspondence between the first distance and the distance of the self-moving device relative to the boundary, so that the self-moving device can avoid obstacles.

[0109] Figure 7a FIG. 1 is a flow chart of another exemplary embodiment of the present application for processing environmental image data to determine the distance between a mobile device and a boundary. Figure 2 Based on the embodiment shown, Figure 7a The embodiment shown is described below in detail. Figure 7a The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0110] like Figure 7a As shown, in the embodiment of the present application, the environmental image data can be processed to determine the distance between the self-moving device and the boundary in the following three ways.

[0111] Method 1:

[0112] A second image including a boundary is obtained based on the environmental image data; the grass area in the area on one side of the boundary line where the center line of the second image includes grass is calculated, and the distance between the self-moving device and the boundary is obtained based on the functional relationship between the predetermined grass area and the distance between the self-moving device and the boundary.

[0113] Exemplarily, the environment image data is segmented to obtain a second image including a boundary. The second image may be the same as or different from the first image, and the second image may be the entire segmented image corresponding to the environment image data or a portion of the segmented image corresponding to the environment image data.

[0114] Exemplarily, the functional relationship is the corresponding relationship between the value of the grass area in the second image and the target position point within the preset range from the boundary. The target position point within the preset range can be a target position point 5 cm, 10 cm, etc. from the boundary. A curve can be formed by connecting multiple discrete target position points. When the self-moving device moves to the target position point, the distance between the self-moving device and the boundary is determined based on the corresponding relationship between the curve relationship and the value of the grass area in the second image.

[0115] A second preset calibration table may be prepared according to the correspondence between the target position point and the distance between the self-moving device and the boundary. When the self-moving device moves to the target position point, the distance between the self-moving device and the boundary is determined according to the second preset calibration table.

[0116] Method 2:

[0117] A second image including a boundary is obtained according to the environmental image data; based on the outer edge in the width direction of the self-mobile device corresponding to the straight line K on the second image, the average horizontal distance between the straight line K and multiple points on the boundary line of the grass is calculated.

[0118] Exemplarily, the average value corresponds to the distance between the mobile device and the boundary. A third preset calibration table can be formulated according to the correspondence between the average value and the distance between the mobile device and the boundary, and the distance between the mobile device and the boundary can be determined according to the third preset calibration table.

[0119] For ease of understanding, Figure 7b The diagram shown is a schematic diagram corresponding to the method 2 provided by an exemplary embodiment of the present application. Figure 7bAs shown, area 1 is the area corresponding to the outer side of the left driving wheel of the self-moving device, area 2 is the field of view of the self-moving device, and area 3 is the area corresponding to the outer side of the right driving wheel of the self-moving device. Taking the self-moving device moving along the edge in a counterclockwise direction as an example, area 2 and area 3 are divided by a straight line K. The distance between the self-moving device and the boundary can be determined by the average value of the horizontal distance n between the straight line K and multiple points on the boundary line f of the grass and the corresponding relationship between the self-moving device and the boundary.

[0120] Method 3:

[0121] A second image including a boundary is obtained based on the environmental image data; pixel blocks are detected in sequence from the center point of the lower edge of the field of view of the second image in the direction of the position of the boundary line of the grass until the proportion of the grass area in the detected pixel blocks is less than or equal to a predetermined value, then the pixel block detection is stopped; the number of detected pixel blocks is counted; and the length from the center point to the intersection of the boundary line of the grass and the lower field of view of the second image is calculated based on the number and the area of ​​the pixel blocks.

[0122] Exemplarily, a fourth preset calibration table is formulated according to the correspondence between the length and the distance between the self-moving device and the boundary, and the distance between the self-moving device and the boundary is determined according to the fourth preset calibration table.

[0123] Exemplarily, each pixel block is a quadrilateral region including a plurality of pixels, and each pixel block includes a (height)*b (length) pixels, for example, a=5, b=10.

[0124] Exemplarily, the first pixel block is taken from the center point of the lower edge of the field of view of the second image, and the proportion of the grass area in the first pixel block is calculated. If the proportion of the grass area is greater than a predetermined value, a second pixel block adjacent to the first pixel block and located in the direction of the grass boundary line is taken, and the proportion of the grass area in the second pixel block is calculated. The calculation is repeated in this way until the proportion of the grass area in the pixel block is less than or equal to the predetermined value, and the pixel block detection is stopped. The length between the center point and the intersection of the grass boundary line and the lower field of view of the second image is calculated using the number of pixel blocks detected and the area of ​​the pixel blocks.

[0125] Specifically, the length of the center point from the boundary line of the grass and the intersection point below the field of view of the second image is obtained by dividing the number by the number of pixels corresponding to the height of the pixel block. For example, if the number is 5 and the number of pixels corresponding to the height of the pixel block is also 5, then the length of the center point from the boundary line of the grass and the intersection point below the field of view of the second image is 1 centimeter.

[0126] Specifically, sequentially detecting pixel blocks in the direction of the position of the boundary line of the grass may include, if the pixel block coincides with the side edge of the field of view of the second image, and a pixel block whose grass area ratio is less than or equal to a predetermined value has not been detected, then continuing to detect pixel blocks upward along the side edge of the field of view of the second image until a pixel block whose grass area ratio is less than or equal to a predetermined value is detected, then stopping detecting pixel blocks. If a pixel block at the side edge of the field of view of the second image is obtained, and the ratio of the grass area in the pixel block is still greater than the predetermined value, then obtaining pixel blocks upward along the side edge of the field of view of the second image, and repeating the calculation in this way until the ratio of the grass area in the obtained pixel block is less than or equal to the predetermined value, then stopping detecting pixel blocks.

[0127] For ease of understanding, Figure 7c The schematic diagram corresponding to the method 3 provided by an exemplary embodiment of the present application is shown. The pixel block includes 5 (height) * 10 (length) pixels. Taking the default counterclockwise movement of the self-mobile device as an example, pixel block 1 is the pixel block of the center point of the lower edge of the field of view of the second image. If the proportion of the grass area in pixel block 1 is greater than the predetermined value, the pixel block 2 adjacent to the right of pixel block 1 is continued to be taken, and when pixel block 4 is obtained in this way, if it is determined that the proportion of the grass area in pixel block 4 is not greater than the predetermined value, then stop taking pixel blocks. Further, the length between the center point and the intersection of the boundary line f of the grass and the lower right corner of the field of view of the second image is obtained by dividing the number of pixel blocks by the number of pixels corresponding to the height of the pixel blocks. Exemplarily, the number of pixel blocks is 4, and the number of pixels corresponding to the height of the pixel blocks is 5. Then, the distance between the self-mobile device and the border is determined by the length between the intersection points at the lower right corner of the field of view and the corresponding relationship between the self-mobile device and the border.

[0128] Figure 7d The schematic diagram corresponding to the method 3 provided by another exemplary embodiment of the present application is shown. The pixel block includes 5 (height) * 10 (length) pixels. Taking the default movement of the self-mobile device in the counterclockwise direction along the edge as an example, pixel block 1 is the pixel block of the center point of the lower edge of the field of view of the second image. By calculating the proportion of the grass area in pixel block 1, it is determined that the proportion of the grass area is greater than the predetermined value, then continue to take the pixel block 2 adjacent to the right of pixel block 1, and when pixel block 5 is obtained in this way, the proportion of the grass area in pixel block 5 is still greater than the predetermined value. At this time, continue to detect pixel blocks upward along the side edge of the field of view of the second image, and when pixel block 8 is obtained in this way, the proportion of the grass area in pixel block 8 is not greater than the predetermined value, and then stop taking pixel blocks. And the length between the center point and the intersection of the grass boundary line f and the lower right corner of the field of view of the second image is obtained by dividing the number by the number of pixels corresponding to the height of the pixel block. Among them, the number of pixel blocks is 8, and the number of pixels corresponding to the height of the pixel block is 5. Then, the distance between the self-mobile device and the border is determined by the length between the intersection points at the lower right corner of the field of view and the corresponding relationship between the self-mobile device and the border.

[0129] In some embodiments, the self-mobile device may be equipped with a camera, and the distance between the self-mobile device and the boundary may be determined by using the camera in conjunction with a boundary algorithm.

[0130] In other embodiments, the self-moving device may be equipped with a collision sensor, which detects obstacles around the self-moving device, thereby preventing the self-moving device from colliding with obstacles such as walls during movement.

[0131] By determining the distance between the self-moving device and the border, the embodiment of the present application can control the self-moving device to adjust the distance from the border when the offset changes, thereby ensuring that the self-moving device moves along the border with a changing offset.

[0132] In some embodiments, a self-moving device corresponding to the control method of the self-moving device in the above embodiment includes: a main body; a moving component, which drives the self-moving device to move, including a driving wheel and a driven wheel; an image sensor, which is arranged on the main body, and the field of view extends in the forward direction of the driving wheel, providing data within the field of view for the self-moving device; a controller, which receives and processes the data within the field of view, and controls the moving speed and moving direction of the self-moving device according to the processing result; the controller is configured to execute a control method for a self-moving device, the method including: receiving environmental image data including a boundary provided by the image sensor; processing the environmental image data to determine the distance between the self-moving device and the boundary; controlling the distance between the self-moving device and the boundary to at least maintain a first preset value, and controlling the self-moving device to move along the boundary with a varying offset for multiple cycles to cover the missed cutting area; wherein the missed cutting area is defined as when the forward direction of the self-moving device is toward the boundary, the self-moving device is controlled to turn when the distance from the boundary reaches a second preset value, and the area formed between the turning position and the boundary, the value range of the offset is determined based on the missed cutting area and the first preset value, and the values ​​of the offset for at least two cycles are different.

[0133] In other embodiments, a self-moving device corresponding to the control method of the self-moving device in the above embodiment includes: a main body; a moving component, which drives the self-moving device to move, including a driving wheel and a driven wheel; one or more sensors, which are arranged on the main body and are used to provide posture data of the self-moving device in the working area; a controller, which receives and processes the posture data, and controls the moving speed and moving direction of the self-moving device according to the processing result; the controller is configured to execute a control method for a self-moving device, the method including: receiving the posture data of the self-moving device in the working area provided by the sensor; processing the posture data to determine the distance between the self-moving device and the boundary; controlling the distance between the self-moving device and the boundary to at least maintain a first preset value, and controlling the self-moving device to move along the boundary with a varying offset for multiple weeks to cover the missed cutting area; wherein the missed cutting area is defined as when the forward direction of the self-moving device is toward the boundary, the self-moving device is controlled to turn when the distance from the boundary reaches a second preset value, and the area formed between the turning position and the boundary, the value range of the offset is determined based on the missed cutting area and the first preset value, and the values ​​of the offset for at least two weeks are different.

[0134] It should be noted that the detailed embodiment of the control method of the self-moving device executed by the controller of the self-moving device can be referred to above and will not be repeated here.

[0135] Combination of the above Figures 2 to 7d , describes in detail the control method embodiment of the self-equipment device of the present application, and the following is combined with Figure 8 , the control device embodiment of the present application for the self-moving device is described in detail. It should be understood that the description of the control method embodiment of the self-moving device corresponds to the description of the control device embodiment for the self-moving device, so the parts not described in detail can refer to the previous method embodiment.

[0136] Figure 8 The figure shows a schematic diagram of the structure of a control device for a self-moving device provided by an exemplary embodiment of the present application. The device is used to control the self-moving device to move within a bounded working area, where the boundary is the boundary between grass and non-grass. Figure 8 As shown, the control device 80 of the mobile device includes the following modules.

[0137] The receiving module 801 is configured to receive environment image data including boundaries provided by an image sensor.

[0138] The processing module 802 is configured to process the environmental image data to determine the distance between the mobile device and the boundary;

[0139] The moving module 803 controls the distance between the self-moving device and the boundary to at least maintain a first preset value, and controls the self-moving device to move along the boundary with a variable offset for multiple circles to cover the missed cutting area.

[0140] Exemplarily, the missed cutting area is defined as the area formed between the turning position and the boundary when the self-moving device is controlled to turn when the distance from the boundary reaches a second preset value when the forward direction of the self-moving device is toward the boundary. The value range of the offset is determined based on the missed cutting area and the first preset value, and the values ​​of the offset are different for at least two weeks.

[0141] In one embodiment of the present application, the processing module 802 is further configured to control the self-moving device to gradually slow down and turn to move away from the boundary if it is detected that the self-moving device is at a second preset value from the boundary in the forward direction of the self-moving device.

[0142] In one embodiment of the present application, the moving module 803 is also configured to receive a task input by a user, where the task includes a number of weeks or a moving time; in response to the user's input, control the mobile device to move parallel to the boundary for multiple weeks to traverse the missed area until the task input by the user is completed.

[0143] In one embodiment of the present application, the moving module 803 is also configured to control the mobile device to move parallel to the boundary with a varying offset in the return to charging station mode; if the mobile device recognizes that there is a charging station in the forward direction, the mobile device is controlled to return to the charging station.

[0144] In one embodiment of the present application, the moving module 803 is also configured to control the self-moving device to move parallel to the boundary with a changing offset, and increase the count value when receiving a relevant signal; in response to the count value reaching a preset value, control the self-moving device to stop moving parallel to the boundary.

[0145] In one embodiment of the present application, the moving module 803 is also configured to move the mobile device parallel to the boundary for one circle with a certain offset each time after the mobile device exits the charging station and / or before returning to the charging station, and at least two of the multiple entries and / or returns to the charging station have different offsets.

[0146] In one embodiment of the present application, the moving module 803 is further configured to move the self-mobile device parallel to the boundary for multiple cycles with a certain offset each time after the self-mobile device leaves the charging station and / or before returning to the charging station, and at least two of the multiple cycles have different offsets.

[0147] In an embodiment of the present application, the movement module 803 is further configured such that the offset per week is a fixed value or varies within a bounded range, wherein the bounded range is determined based on the missed cutting area and the second preset value.

[0148] In one embodiment of the present application, the moving module 803 is also configured to adjust the driving direction so that the value of the distance between the self-moving device and the boundary always remains within the bounded range if it is detected that the value of the distance between the self-moving device and the boundary is outside the endpoint value of the bounded range when the self-moving device moves parallel to the boundary.

[0149] In one embodiment of the present application, the processing module 802 is also configured to obtain a first image including a boundary based on environmental image data; when the moving direction of the self-moving device is toward the boundary, detect the distance between the self-moving device and the boundary; calibrate the first distance based on the position of the boundary line of the grass in the first image, and the first distance corresponds to the distance between the self-moving device and the boundary.

[0150] In one embodiment of the present application, the processing module 802 is further configured to determine at least two intersection points between the boundary line of the grass and the edge of the field of view of the first image; and take the shortest vertical distance between the at least two intersection points and the lower edge of the field of view of the first image as the first distance.

[0151] In an embodiment of the present application, the processing module 802 is further configured to obtain a second image including a boundary according to the environmental image data; calculate the grass area in the area on the side of the boundary line where the center line of the second image includes grass, and obtain the distance of the self-moving device from the boundary according to a preset functional relationship between the grass area and the distance between the self-moving device and the boundary. The functional relationship is the corresponding relationship between the value of the grass area in the second image when the self-moving device is at the target position point within the preset range from the boundary.

[0152] In one embodiment of the present application, the processing module 802 is also configured to obtain a second image including a boundary based on the environmental image data; based on the outer edge of the self-mobile device in the width direction corresponding to the straight line K on the second image, calculate the average horizontal distance of the straight line K from multiple points on the boundary line of the grass, and the average value corresponds to the distance of the self-mobile device from the boundary.

[0153] In one embodiment of the present application, the processing module 802 is also configured to obtain a second image including a boundary based on the environmental image data; detect pixel blocks in sequence from the center point of the lower edge of the field of view of the second image in the direction of the boundary line of the grass until the proportion of the grass area in the detected pixel blocks is less than or equal to a predetermined value, then stop detecting pixel blocks; count the number of detected pixel blocks; and calculate the length from the center point to the intersection of the boundary line of the grass and the bottom of the field of view of the second image based on the number and the area of ​​the pixel blocks, wherein the length corresponds to the distance from the mobile device to the boundary, wherein each pixel block is a quadrilateral area containing multiple pixel points.

[0154] In one embodiment of the present application, the processing module 802 is also configured to, if the pixel block coincides with the side edge of the field of view of the second image and a pixel block whose grass area accounts for a proportion less than or equal to a predetermined value has not yet been detected, continue to detect pixel blocks upward along the side edge of the field of view of the second image until a pixel block whose grass area accounts for a proportion less than or equal to a predetermined value is detected, and then stop detecting pixel blocks.

[0155] Below, reference Fig. 9 To describe an electronic device according to an embodiment of the present application. Fig. 9 Shown is a schematic structural diagram of an electronic device provided by an exemplary embodiment of the present application.

[0156] like Fig. 9 As shown, the electronic device 90 includes one or more processors 901 and a memory 902 .

[0157] The processor 901 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 90 to perform desired functions.

[0158] The memory 902 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 901 may run the program instructions to implement the methods of the various embodiments of the present application described above and / or other desired functions. Various contents such as a value range of an offset, a second preset value, etc. may also be stored in the computer-readable storage medium.

[0159] In one example, the electronic device 90 may further include: an input device 903 and an output device 904 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0160] The input device 903 may include, for example, a keyboard, a mouse, etc.

[0161] The output device 904 can output various information to the outside, including the value range of the offset, the second preset value, etc. The output device 904 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0162] Of course, to simplify, Fig. 9 Only some of the components related to the present application in the electronic device 90 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 90 may also include any other appropriate components.

[0163] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present application described above in this specification.

[0164] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0165] In addition, an embodiment of the present application may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enables the processor to execute the steps of the method according to various embodiments of the present application described above in this specification.

[0166] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0167] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0168] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.

[0169] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0170] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0171] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A method for controlling a self-moving device, for controlling the self-moving device to move in a bounded working area, wherein the bounded area is a boundary between grass and non-grass, the method comprising: Receiving environmental image data including the boundary provided by an image sensor; Processing the environmental image data to determine the distance between the self-moving device and the boundary; Controlling the distance between the self-moving device and the boundary to maintain at least a first preset value, and controlling the self-moving device to move along the boundary with a variable offset for multiple circles to cover the missed cutting area; Among them, the missed cutting area is defined as the area formed between the turning position and the boundary when the self-moving device is moving in the direction toward the boundary and the self-moving device is controlled to turn when the distance from the boundary reaches a second preset value. The value range of the offset is determined based on the missed cutting area and the first preset value, and the values ​​of the offset are different for at least two weeks.

2. The method according to claim 1, characterized in that The controlling the self-moving device to turn when the distance from the boundary reaches a second preset value includes: if it is detected that the self-moving device reaches the second preset value from the boundary in the forward direction of the self-moving device, controlling the self-moving device to gradually decelerate and turn, and move in a direction away from the boundary.

3. The method according to claim 1, characterized in that The controlling the self-moving device to move along the boundary with a varying offset for multiple cycles comprises: receiving a task input by a user, wherein the task includes a number of weeks or a moving time; In response to the user's input, the self-moving device is controlled to move parallel to the boundary for multiple cycles to traverse the missed-cut area until the task input by the user is completed.

4. The method according to claim 1, characterized in that: The moving along the boundary with a varying offset for multiple cycles comprises: Controlling the self-moving device to move parallel to the boundary of the self-moving device with a variable offset in a return-to-charging-station mode; If the self-moving device recognizes that there is a charging station in the forward direction, the self-moving device is controlled to return to the charging station.

5. The method according to claim 1, characterized in that: A signal transmitter is installed at any position of the boundary, and the mobile device can receive relevant signals when it moves into the detection range of the signal transmitter. The step of controlling the self-moving device to move along the boundary with a varying offset for multiple cycles includes: Controlling the self-moving device to move parallel to the boundary with a varying offset, and increasing a count value when receiving the relevant signal; In response to the count value reaching a preset value, the self-moving device is controlled to stop moving parallel to the boundary.

6. The method according to any one of claims 1 to 5, characterized in that: The move lasted for several weeks and included: Each time after the self-moving device exits the charging station and / or before returning to the charging station, the self-moving device moves one circle parallel to the boundary with a certain offset, and the offset is different at least twice in multiple entries and / or returns to the charging station.

7. The method according to any one of claims 1 to 5, characterized in that: The move lasted for several weeks and included: Each time after the self-moving device leaves the charging station and / or before returning to the charging station, the self-moving device moves parallel to the boundary with a certain offset for multiple cycles, and the offset is different in at least two of the multiple cycles.

8. The method according to any one of claims 1 to 5, characterized in that: The weekly offset is a fixed value or varies within a bounded range, wherein the bounded range is determined based on the missed cutting area and the second preset value.

9. The method according to claim 8, characterized in that If the self-moving device detects that the value of the distance from the boundary is outside the end point value of the bounded range when moving parallel to the boundary, the driving direction is adjusted so that the value of the distance from the boundary of the self-moving device always remains within the bounded range.

10. The method according to any one of claims 1 to 5, characterized in that: The processing of the environmental image data to determine the distance between the mobile device and the boundary includes: Obtaining a first image including the boundary according to the environmental image data; When the moving direction of the self-moving device is toward the boundary, detecting the distance between the self-moving device and the boundary; A first distance is calibrated according to a position of a boundary line of grass in the first image, wherein the first distance corresponds to a distance between the self-moving device and the boundary.

11. The method according to claim 10, characterized in that The step of calibrating the first distance according to the position of the boundary line of the grass in the first image includes: Determine at least two intersection points between the boundary line of the grass and the edge of the visual field of the first image; The shortest vertical distance between the at least two intersection points and the lower edge of the first image field of view is taken as the first distance.

12. The method according to any one of claims 1 to 5, characterized in that: The processing of the environmental image data to determine the distance between the mobile device and the boundary includes: Obtaining a second image including the boundary according to the environmental image data; The grass area in the area on one side of the boundary line of the grass included in the center line of the second image is calculated, and the distance of the self-moving device from the boundary is obtained according to the functional relationship between the preset grass area and the distance between the self-moving device and the boundary.

13. The method according to claim 12, characterized in that The functional relationship is a corresponding relationship between a value of a grass area in the second image and a target position point within a preset range from the boundary of the self-moving device.

14. The method according to any one of claims 1 to 5, characterized in that: The processing of the environmental image data to determine the distance between the mobile device and the boundary includes: Obtaining a second image including the boundary according to the environmental image data; Based on the outer edge of the self-moving device in the width direction corresponding to the straight line K on the second image, the average horizontal distance between the straight line K and multiple points on the boundary line of the grass is calculated, and the average corresponds to the distance between the self-moving device and the boundary.

15. The method according to any one of claims 1 to 5, characterized in that: The processing of the environmental image data to determine the distance between the mobile device and the boundary includes: Obtaining a second image including the boundary according to the environmental image data; Detect pixel blocks in sequence from the center point of the lower edge of the field of view of the second image in the direction of the boundary line of the grass until the proportion of the grass area in the detected pixel blocks is less than or equal to a predetermined value, then stop detecting the pixel blocks; Count the number of detected pixel blocks; According to the number and the area of ​​the pixel block, the length between the center point and the intersection of the boundary line of the grass and the bottom of the field of view of the second image is calculated, and the length corresponds to the distance of the self-moving device from the boundary, wherein each pixel block is a quadrilateral area containing multiple pixel points.

16. The method according to claim 15, characterized in that The detecting pixel blocks in sequence in the direction of the position of the boundary line of the grass comprises: If the pixel block coincides with the side edge of the field of view of the second image, and a pixel block whose grass area accounts for a proportion less than or equal to the predetermined value has not yet been detected, continue to detect pixel blocks upward along the side edge of the field of view of the second image until a pixel block whose grass area accounts for a proportion less than or equal to the predetermined value is detected, and then stop detecting the pixel block.

17. A self-propelled device for moving in a bounded working area, wherein the bounded area is a boundary between grass and non-grass, characterized in that: The self-mobile device comprises: main body; A moving assembly drives the self-moving device to move, including a driving wheel and a driven wheel; An image sensor is arranged on the main body, and its field of view extends in the forward direction of the driving wheel, and provides data within the field of view for the self-moving device; A controller receives and processes the data within the field of view, and controls the moving speed and direction of the self-moving device according to the processing results; The controller is configured to execute a control method for a mobile device, the method comprising: Receiving environmental image data including the boundary provided by the image sensor; Processing the environmental image data to determine the distance between the self-moving device and the boundary; Controlling the distance between the self-moving device and the boundary to maintain at least a first preset value, and controlling the self-moving device to move along the boundary with a variable offset for multiple circles to cover the missed cutting area; Among them, the missed cutting area is defined as the area formed between the turning position and the boundary when the self-moving device is moving in the direction toward the boundary and the self-moving device is controlled to turn when the distance from the boundary reaches a second preset value. The value range of the offset is determined based on the missed cutting area and the first preset value, and the values ​​of the offset are different for at least two weeks.

18. A self-propelled device for moving in a bounded working area, wherein the bounded area is a boundary between grass and non-grass, characterized in that: The self-mobile device comprises: main body; A moving assembly drives the self-moving device to move, including a driving wheel and a driven wheel; One or more sensors, arranged on the main body, for providing position data of the self-moving device in the working area; A controller receives and processes the position data, and controls the moving speed and moving direction of the self-moving device according to the processing result; The controller is configured to execute a control method for a mobile device, the method comprising: Receiving the position data of the self-moving device in the working area provided by the sensor; Processing the position data to determine the distance of the self-moving device from the boundary; Controlling the distance between the self-moving device and the boundary to maintain at least a first preset value, and controlling the self-moving device to move along the boundary with a variable offset for multiple circles to cover the missed cutting area; Among them, the missed cutting area is defined as the area formed between the turning position and the boundary when the self-moving device is moving in the direction toward the boundary and the self-moving device is controlled to turn when the distance from the boundary reaches a second preset value. The value range of the offset is determined based on the missed cutting area and the first preset value, and the values ​​of the offset are different for at least two weeks.

19. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the method according to any one of claims 1 to 16.

20. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is used to execute the method described in any one of claims 1 to 16.