Hay cutting device and method for gardens

By analyzing the differential characteristics and texture complexity of hay images, and adjusting the grayscale merging and cutting parameters of the garden hay cutting device in real time, the energy waste and equipment loss problems of hay cutting devices in the prior art are solved in different luxuriant degrees of hay processing, achieving more efficient mowing effect and reducing costs.

CN120147388AActive Publication Date: 2025-06-13HANGZHOU YINGLV MUNICIPAL GARDEN ENG CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202510622428.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-15
Publication Date
2025-06-13
Estimated Expiration
2045-05-15

AI Technical Summary

Technical Problem

When the existing garden hay cutting device treats hay of different lush degrees, energy waste and equipment loss are large, and the mowing effect is not ideal, which increases time cost.

Method used

By acquiring the hay image, analyze the difference characteristics of the current hay image and the historical adjacent hay image to determine whether the device is adjusted. Then, according to the number of pixel points distribution, edge intensity and local grayscale differences of each grayscale level, merge the hay image in grayscale, and reduce the calculation complexity. Finally, the texture complexity is obtained based on the grayscale symbiosis matrix of the combined hay images, and the motion speed and cutting power of the hay cutting device are adjusted.

Benefits of technology

By adjusting the hay cutting device in real time, reduce energy and equipment loss costs, improve mowing effect, and reduce time costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120147388A_ABST
    Figure CN120147388A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of image region merging and simplified analysis, in particular to a hay cutting device and method for gardens. Firstly, a hay image is obtained, and whether the device is adjusted is judged; further, when the device is judged to be adjusted, according to the number distribution and the edge intensity of the pixel points of each gray level and the number difference between the pixel points of each gray level and the adjacent gray level, combining the gray difference between the pixel points of each gray level and the pixel points in a preset neighborhood, and carrying out gray level combination on the current hay image; further obtaining texture complexity based on the gray level co-occurrence matrix of the current combined hay image; and adjusting the hay cutting device according to the texture complexity. According to the method, the calculation complexity is reduced by analyzing the number distribution of the pixel points of the gray levels, the edge strength and the local gray level difference and combining the gray levels, the hay cutting device is adjusted in real time, the energy and equipment loss cost is reduced, the mowing effect is guaranteed, and the time cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image region merging and simplification analysis, and particularly relates to a hay cutting device and method for gardens. Background Art

[0002] In garden maintenance, cutting hay is usually to keep the landscape clean and beautiful. At the same time, it also helps the healthy growth of plants and the maintenance of the ecological environment, reducing the fire hazard.

[0003] The main working principle of the existing mowing devices is as follows: the mowing device moves forward through the crawler, and the cutter group rotates for cutting and crushing, making it into grass residue. However, the existing mowing devices often adopt a mowing method with a fixed power. For dry grasslands with different degrees of lushness, only one mowing mode is used, which will lead to waste of energy, increased equipment loss, or unsatisfactory mowing effect, and the need for re-mowing increases the time cost. Summary of the Invention

[0004] In order to solve the technical problem of the high cost of the existing mowing devices, the purpose of the present invention is to provide a hay cutting device and method for gardens, and the specific technical solutions adopted are as follows: A hay cutting method for gardens, the method comprising: Obtaining a hay image; determining whether to adjust the device according to the difference features between the current hay image and the historical adjacent hay images; When it is determined to adjust the device, obtaining the merging acceptance degree of each gray level according to the number distribution and edge intensity of the pixel points of each gray level; obtaining the merging priority degree of each gray level according to the number difference of the pixel points between each gray level and the adjacent gray levels, and combining the gray difference between the pixel points of each gray level and the pixel points within the preset neighborhood; performing gray level merging on the current hay image according to the merging acceptance degree and the merging priority degree of each gray level; Obtaining the texture complexity based on the gray level co-occurrence matrix of the current merged hay image; adjusting the hay cutting device according to the texture complexity.

[0005] Further, the method for determining whether to adjust the device includes: Obtaining the adjustment necessity according to the cosine similarity between the current hay image and the historical adjacent hay images; the adjustment necessity is negatively correlated with the cosine similarity; When the adjustment necessity is greater than the preset adjustment threshold, it is determined that the device needs to be adjusted currently.

[0006] Further, the method for obtaining the merging acceptance degree includes: Based on the difference between the number of pixel points in each gray level and the average value of the number of pixel points in all gray levels, and combining the ratio of the number of edge pixel points to non-edge pixel points within the corresponding gray level, obtain the combined acceptance degree of the corresponding gray level; the difference between the number of pixel points in each gray level and the average value of the number of pixel points in all gray levels is positively correlated with the combined acceptance degree; the ratio of the number of edge pixel points to non-edge pixel points is negatively correlated with the combined acceptance degree.

[0007] Further, the method for obtaining the merging priority includes: Select any one of the gray levels as the target gray level; Take the maximum ratio of the number of pixel points in the adjacent gray level to the number of pixel points in the target gray level as the numerator, take the average value of the squares of the differences between the gray values of the pixel points in the target gray level and the gray values of the pixel points in the preset neighborhood as the denominator, and take the fractional ratio as the merging priority of the target gray level.

[0008] Further, the method for merging the gray levels of the current hay image includes: Based on the combined acceptance degree and the merging priority of each gray level, obtain the merging possibility of each gray level; both the combined acceptance degree and the merging priority are positively correlated with the merging possibility; When the merging possibility is greater than the preset merging threshold, determine that the corresponding gray level needs to be merged, and merge the corresponding gray level into the gray level with the most adjacent pixel points.

[0009] Further, the method for obtaining the texture complexity includes: Obtain the texture complexity based on the entropy and contrast obtained from the gray-level co-occurrence matrix; both the entropy and the contrast are positively correlated with the texture complexity.

[0010] Further, the method for adjusting the hay cutting device according to the texture complexity includes: Obtain the current moving speed based on the no-load speed of the hay cutting device and the texture complexity; the no-load speed is positively correlated with the current moving speed; the texture complexity is negatively correlated with the current moving speed; Obtain the power increment based on the cutting power range difference of the hay cutting device and the texture complexity; both the cutting power range difference and the texture complexity are positively correlated with the power increment; take the sum of the minimum cutting power and the power increment as the current cutting power.

[0011] Further, the preset neighborhood is an eight-neighborhood.

[0012] Further, obtain the edge pixel points through the Canny operator.

[0013] The present invention also provides a hay cutting device for gardens. The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of any one of the hay cutting methods for gardens are implemented.

[0014] The present invention has the following beneficial effects: The present invention first obtains a hay image to obtain an analysis basis; determines whether to adjust the device according to the difference features between the current hay image and the historical adjacent hay images, avoiding overly frequent adjustment of the device and increasing the working stability of the device; further, when it is determined to adjust the device, taking advantage of the fact that the main part of the hay changes relatively smoothly and the edge contains texture features, according to the number distribution and edge strength of the pixel points at each gray level, the combined acceptance degree of each gray level is obtained, which represents the texture loss degree when the gray levels are combined, providing a basis for subsequent gray level combination; further, based on the fact that the difference in the number of pixel points between a gray level and its adjacent gray levels represents the influence degree of the image structure during combination, and the gray difference between a pixel point and the pixel points within a preset neighborhood represents the local texture complexity of the pixel point, the combined priority of each gray level is obtained, which represents the priority degree of the gray level being combined, providing more basis for subsequent gray level combination; further, according to the combined acceptance degree and combined priority of each gray level, the current hay image is subjected to gray level combination, reducing the image texture loss while reducing the gray complexity of the image and saving computing resources; finally, the texture complexity is obtained based on the gray level co-occurrence matrix of the currently combined hay image; the hay cutting device is adjusted according to the texture complexity. By analyzing the number distribution, edge strength, and local gray difference of the pixel points at the gray levels, the present invention combines the gray levels to reduce the computational complexity, adjusts the hay cutting device in real time, reduces the energy and equipment loss costs, ensures the mowing effect, and reduces the time cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0016] Figure 1 It is a schematic diagram of the overall structure of a hay cutting device for gardens provided by an embodiment of the present invention; Figure 2 It is a schematic diagram of the internal structure of a hay cutting device for gardens provided by an embodiment of the present invention; Figure 3Schematic diagram of the drum installation structure of a hay cutting device for gardens provided by an embodiment of the present invention; Figure 4 Schematic diagram of the drum structure of a hay cutting device for gardens provided by an embodiment of the present invention; Figure 5 Schematic diagram of the tool structure of a hay cutting device for gardens provided by an embodiment of the present invention; Figure 6 Flow chart of a hay cutting method for gardens provided by an embodiment of the present invention.

[0017] The reference numerals in the figure are: 1, arc-shaped grass grasping claws; 2, drum; 3, full-closed baffle of the drum; 4, tool; 6, negative pressure absorber; 8, iron box; 9, gland; 10, side drawer of the iron box; 11, first camera; 12, second camera; 13, housing; 14, power supply; 15, motor; 16, transmission shaft; 17, gear transmission device; 18, first wheel; 19, second wheel; 20, third wheel; 21, fourth wheel; 41, detection system; 42, adjustment and control system. Detailed implementation manners

[0018] In order to further elaborate on the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following combines the drawings and preferred embodiments to detail the specific implementation manners, structures, features and effects of a hay cutting device and method for gardens proposed according to the present invention. In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. In addition, the specific features, structures or characteristics in one or more embodiments can be combined in any suitable form.

[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present invention belongs.

[0020] The following specifically describes the specific solutions of a hay cutting device and method for gardens provided by the present invention with reference to the drawings.

[0021] The hay cutting device for gardens consists of the following modules: a cutting module, a conveying module, a collecting module, an information acquisition module and a transmission module.

[0022] Among them, the cutting module includes an arc-shaped hay-grabbing claw 1 for grabbing hay into the roller 2; two rollers 2, similar to the rollers of a noodle press, for flattening the hay and conveying it to the cutting knife group; a fully enclosed roller baffle 3 to ensure that the hay is conveyed forward during the transmission process and does not run out of both sides; two cutters 4, similar to the shape of electric fan blades, for cutting the hay slices conveyed by the roller 2. The specific structure is as follows: The arc-shaped hay-grabbing claw 1 is in front of the two rollers 2. The two rollers 2 are vertically arranged side by side with a small gap in the middle. The fully enclosed roller baffle 3 is arranged around the arc-shaped hay-grabbing claw 1 and the rollers 2 to form a channel. The 2 cutters 4 are arranged side by side directly behind the rollers 2.

[0023] The conveying module includes a negative pressure absorber 6, similar to a vacuum cleaner, for sucking the hay residue pushed to the rear into the collection container. The specific structure is as follows: The negative pressure absorber 6 is placed at the end of the channel of the conveying module. The channel of the conveying module is closely connected to the channel of the cutting module.

[0024] The collection module includes an iron box 8 for placing the hay residue absorbed by the negative pressure absorber 6; a pressing cover 9 for compacting the hay residue; an iron box side drawer 10 for conveniently taking out the collected hay residue. The specific structure is as follows: The pressing cover 9 is placed directly above the iron box 8. There are holes in the lower part on the side of the iron box 8 and small holes in the upper part on the opposite side. The iron box side drawer 10 is placed at the hole of the iron box 8. The holes in the lower part on the side of the iron box 8 and the small holes in the upper part on the opposite side are used for close connection with the channel of the conveying module.

[0025] The information acquisition module is divided into a detection system 41 and an adjustment and control system 42. The detection system 41 includes a first camera 11 and a second camera 12, mainly for collecting and monitoring the density information of the hay image during the forward movement. The housing 13. The adjustment and control system 42 mainly includes an FPGA chip for calculating the data collected in the monitoring system and adjusting the running speed, cutting power, and storage power of the device. The specific structure is as follows: The first camera 11 and the second camera 12 are located directly above the arc-shaped hay-grabbing claw 1. The adjustment and control system 42 is located directly above the outside of the channel in the conveying module, and the housing 13 is added to the whole device.

[0026] The transmission module includes a power supply 14 to provide power for the whole device; a motor 15 for driving the operation of each module; a transmission shaft 16 for connecting the power source and the main shaft of the transmission device to transmit power from the power source to the transmission device; a gear transmission device 17 for transmitting and adjusting power; a first wheel 18, a second wheel 19, a third wheel 20, and a fourth wheel 21 for moving the hay cutting device. The specific structure is as follows: The power supply 14 and the motor 15 are located inside the housing 13. The transmission shaft 16 is located directly below the housing 13 and on the axis of symmetry. The gear transmission device 17 is connected to the transmission shaft 16, the first wheel 18, the second wheel 19, the third wheel 20, and the fourth wheel 21.

[0027] Please refer to Figure 6 , which shows a flowchart of a method for cutting dry grass in a garden provided by an embodiment of the present invention, specifically including: Step S1: Obtain a dry grass image; determine whether to adjust the device according to the difference features between the current dry grass image and the historical adjacent dry grass images.

[0028] When using a dry grass cutting device for a garden to cut dry grass in the garden, the lushness of the dry grass is different in each area. However, during the operation of the dry grass cutting device for a garden, the lushness at adjacent times may be similar. Then, the same device parameters can be used to meet the cutting requirements of the dry grass cutting device for a garden, and it is not necessary to adjust the device parameters at every moment. Therefore, first obtain a dry grass image to obtain an analysis basis; determine whether to adjust the device according to the difference features between the current dry grass image and the historical adjacent dry grass images, so as to avoid adjusting the device too frequently and increase the working stability of the device.

[0029] Preferably, in an embodiment of the present invention, considering that the greater the cosine similarity between two frames of images, the closer their directions are in the vector space, the higher the similarity, and the more similar the lushness of the dry grass, the less need to adjust the device; at the same time, the cosine similarity calculation efficiency is high. Therefore, obtain the necessity of adjustment according to the cosine similarity between the current dry grass image and the historical adjacent dry grass images; the necessity of adjustment is negatively correlated with the cosine similarity; When the necessity of adjustment is greater than the preset adjustment threshold, it is determined that the device needs to be adjusted currently.

[0030] As an example, the image acquisition interval is 5 seconds. After normalizing the pixel values of the dry grass image, it is expanded into a one-dimensional vector row by row. First, arrange all pixel values in the first row, then the second row, and so on; then calculate the cosine similarity between the one-dimensional vector of the current dry grass image and the one-dimensional vector of the historical adjacent dry grass image; the calculation formula for the necessity of adjustment includes: ; where t is the current time sequence number; represents the necessity of adjustment at the t-th moment; represents the exponential function with the natural constant e as the base; represents the cosine similarity function; represents the one-dimensional vector at the (t - 1)-th moment; represents the one-dimensional vector at the t-th moment.

[0031] In the calculation formula for the necessity of adjustment, through The cosine similarity is negatively correlated and mapped (where \(x\) represents the independent variable), the logical relationship is adjusted to obtain the necessity for adjustment, and the difference features between the current hay image and the adjacent historical hay images are represented by the cosine similarity. The smaller the cosine similarity, the more obvious the difference between the images, and the greater the need for adjustment, that is, the greater the necessity for adjustment.

[0032] As an example, it is preset that the adjustment threshold is taken as 0.8.

[0033] It should be noted that the hay images collected by the first camera 11 and the second camera 12 are output with a fixed size and grayscale after image stitching. The image stitching technology of the binocular camera is already a prior art and will not be elaborated here.

[0034] In another embodiment of the present invention, considering that the cosine similarity is sensitive to the vector direction, while the Euclidean distance is sensitive to the vector length, the difference features between the hay image and the adjacent historical hay images are also represented by the Euclidean distance between the images. Specifically: calculate the Euclidean distance between the one-dimensional vector of the current hay image and the one-dimensional vector of the adjacent historical hay image, and divide it by the arithmetic square root of the number of pixel points in the hay image to normalize the Euclidean distance. The normalized Euclidean distance and the average value are used as the necessity for adjustment.

[0035] Step S2: When it is determined to adjust the device, according to the number distribution and edge intensity of the pixel points of each gray level, obtain the merging acceptance degree of each gray level; according to the difference in the number of pixel points between each gray level and the adjacent gray levels, and combining the gray difference between the pixel points of each gray level and the pixel points within the preset neighborhood, obtain the merging priority of each gray level; according to the merging acceptance degree and merging priority of each gray level, perform gray level merging on the current hay image.

[0036] When it is determined to adjust the device, it is necessary to analyze the texture complexity in the image to analyze the lushness of the hay during the current cutting, so as to adjust the hay cutting device for gardening, save energy costs and time costs, and slow down the equipment wear. Considering directly using the gray-level co-occurrence matrix of the original hay image to detect the texture complexity, the gray-level co-occurrence matrix needs to expand the original hay image at all gray levels, and the overall computational complexity is relatively large, which is not suitable for real-time mowing behavior, and not all gray levels can provide texture information. Therefore, the computational complexity can be reduced by merging gray levels and computing resources can be saved.

[0037] Considering that the main parts of hay, such as the stems and leaves, occupy most of the image area and change smoothly; the relatively small number of stripes, wrinkles or edges on the hay surface mainly contain the texture features of the hay. Therefore, the combined acceptance degree of each gray level can be obtained according to the number distribution and edge intensity of the pixel points at each gray level, which characterizes the texture loss degree when the gray level is combined, providing a basis for subsequent gray level combination.

[0038] Preferably, in an embodiment of the present invention, considering that in the natural image of hay, most areas are relatively smooth, the more the number of pixel points of a gray level, the more likely it corresponds to the areas inside the stems and leaves that lack obvious texture details, and the less the texture information, the smaller the texture loss degree during combination; in the hay texture, the edge pixel points often appear at the edges of the stems, the wrinkles or stripes of the leaves, and these areas are exactly where the texture features of the hay are located. The smaller the proportion of edge pixel points, the less the texture information, and the smaller the texture loss degree during combination. Based on this, according to the difference between the number of pixel points of each gray level and the average value of the number of pixel points of all gray levels, combined with the ratio of the number of edge pixel points to non-edge pixel points within the corresponding gray level, the combined acceptance degree of the corresponding gray level is obtained; the difference between the number of pixel points of each gray level and the average value of the number of pixel points of all gray levels is positively correlated with the combined acceptance degree; the ratio of the number of edge pixel points to non-edge pixel points is negatively correlated with the combined acceptance degree.

[0039] As an example, the calculation formula of the combined acceptance degree includes: ; where g is the serial number of the gray level; represents the combined acceptance degree of the g-th gray level; e is the natural constant; represents the number of pixel points of the g-th gray level; represents the average value of the number of pixel points of the gray level; represents the number of edge pixel points of the g-th gray level; represents the number of non-edge pixel points of the g-th gray level; C0 represents a preset positive parameter for dividing by zero; C1 represents a preset positive parameter for dividing by zero. In this example, C0 = 1 and C1 = 0.01.

[0040] In the calculation formula of the combined acceptance degree, represents the number distribution of pixel points. The larger it is, it indicates that the number of pixel points within the current gray level is more than the overall number of pixel points of all gray levels, the less the texture information, the smaller the texture loss degree during combination, and the greater the combined acceptance degree; the edge intensity is represented by the ratio of the number of edge pixel points to non-edge pixel points. The larger it is, the more edge pixel points there are, the stronger the edge intensity, the more texture information, the greater the texture loss during merging, and the smaller the merging acceptance.

[0041] In another embodiment of the present invention, considering that the gradient magnitude also reflects the edge intensity of pixel points, the larger the average gradient magnitude of pixel points at a gray level, the higher the edge intensity and the richer the texture information contained in the pixel points. Therefore, the edge intensity can also be represented by the average gradient magnitude of pixel points at a gray level: ; where represents the average gradient magnitude of pixel points at the g-th gray level.

[0042] In other embodiments of the present invention, the proportion of pixel points within the g-th gray level occupying the total pixel points of all gray levels can also be used to replace to represent the quantity distribution of pixel points.

[0043] It should be noted that in one embodiment of the present invention, the edge pixel points are obtained through the Canny operator to distinguish the edge pixel points and non-edge pixel points in each gray level; in other embodiments of the present invention, those skilled in the art can also use existing edge detection methods such as the Sobel operator, which will not be elaborated here.

[0044] Considering that when merging gray levels, the continuity of the image also needs to be protected. Considering that merging pixel points with close gray values will not cause obvious visual jumps or texture breaks, the difference in the number of pixel points between a gray level and its adjacent gray level represents the impact degree on the image structure during merging, and the gray difference between a pixel point and the pixel points within a preset neighborhood represents the local texture complexity of the pixel point. Therefore, according to the difference in the number of pixel points between each gray level and its adjacent gray level, combined with the gray difference between the pixel points of each gray level and the pixel points within the preset neighborhood, the merging priority of each gray level is obtained, which represents the priority degree of the gray level to be merged, providing more basis for subsequent gray level merging.

[0045] Preferably, in one embodiment of the present invention, any gray level is selected as the target gray level for easy analysis one by one; Considering that merging a gray level with fewer pixel points into an adjacent gray level with more pixel points has less impact on the overall image structure and retains the main gray distribution characteristics; at the same time, considering that the smaller the square of the gray difference between a pixel point and the pixel points within the neighborhood, the smaller the gray difference, the stronger the continuity of the gray value distribution, and the less texture information of the pixel points corresponding to the gray level, and no obvious pseudo-texture phenomenon will occur during merging; Based on this, the maximum ratio of the number of pixel points of adjacent gray levels to the number of pixel points of the target gray level is used as the numerator to represent the difference in the number of pixel points between the gray level and the adjacent gray level; the average value of the squares of the differences between the gray values of the pixel points within the target gray level and the gray values of the pixel points within the preset neighborhood is used as the denominator to represent the gray difference between the pixel points and the pixel points within the preset neighborhood, and the fractional ratio is used as the merging priority of the target gray level.

[0046] As an example, the preset neighborhood is an eight-neighborhood.

[0047] It should be noted that generally, for the target gray level of a natural hay image, the average value of the squares of the differences between the gray values of all pixel points and the neighborhood pixel points within the preset neighborhood is not zero. When a special case of zero occurs, a denominator of a very small positive parameter such as 0.01 is given; for the case where the number of pixel points of the target gray level is 0, it is directly skipped.

[0048] In other embodiments of the present invention, the implementer can also set other preset neighborhoods, such as a four-neighborhood in a cross shape, and use the absolute value of the difference to represent the gray difference, such as using the average value of the absolute values of the differences between the gray values of the pixel points within the target gray level and the gray values of the pixel points within the preset neighborhood as the denominator.

[0049] The merging acceptance and the merging priority provide the merging basis from the perspective of texture loss and image continuity respectively. Therefore, further according to the merging acceptance and the merging priority of each gray level, the gray levels of the current hay image are merged, reducing the texture loss of the image while reducing the gray complexity of the image and saving computing resources.

[0050] In a preferred embodiment of the present invention, considering that the greater the merging acceptance, the smaller the degree of texture loss during merging and the higher the merging possibility; the greater the merging priority, the smaller the impact on the overall image structure and the higher the merging possibility. Therefore, according to the merging acceptance and the merging priority of each gray level, the merging possibility of each gray level is obtained; both the merging acceptance and the merging priority are positively correlated with the merging possibility; When the merging possibility is greater than the preset merging threshold, it is determined that the corresponding gray level needs to be merged, and the corresponding gray level is merged into the gray level with the most adjacent pixel points.

[0051] As an example, after linearly normalizing the product of the merging acceptance and the merging priority, it is used as the merging possibility of the corresponding gray level; the preset merging threshold is 0.85.

[0052] For example, when g = 200, the merging possibility is 0.9, and it is determined that merging is required; when g = 199 contains 150 pixels and g = 201 contains 300 pixels, the gray value of the pixels with g = 200 is changed to 201, so as to merge the gray level of g = 200 into the gray level of 201.

[0053] It should be noted that in the embodiment of the present invention, all gray levels are first determined and then merged; considering that there may be continuous merging situations, such as in the determination stage, the gray level of 200 is merged into 201, the gray level of 201 is merged into the gray level of 202, and the gray level of 202 is merged into the gray level of 203. At this time, the gray values of the pixels with gray levels of 200, 201, and 202 are all changed to 203; to avoid excessive continuous merging resulting in serious loss of image texture, the maximum number of continuous merges is limited to 3 times. In the above example, regardless of whether the gray level of 203 is determined to be merged into the gray level of 204, no merging is performed.

[0054] It should be noted that for the special situation where two adjacent gray levels are determined to merge into each other, such as the gray level of 200 is merged into 201 and the gray level of 201 is merged into 200, at this time, the gray level with more pixels is retained. For example, if the gray level of 200 has 150 pixels and the gray level of 201 has 180 pixels, the gray level of 201 is retained.

[0055] Step S3: Obtain the texture complexity based on the gray-level co-occurrence matrix of the currently merged hay image; adjust the hay cutting device according to the texture complexity.

[0056] After simplifying the hay image through step S2, the computational complexity of the gray-level co-occurrence matrix is saved. Then, the texture complexity is obtained based on the gray-level co-occurrence matrix of the currently merged hay image, which characterizes the lushness of the hay; finally, the hay cutting device is adjusted according to the texture complexity, so that the hay cutting device adapts to different lushness situations of the hay, reduces energy waste, and ensures the mowing effect.

[0057] In a preferred embodiment of the present invention, considering that the larger the entropy obtained from the gray-level co-occurrence matrix, the more complex the image texture, and the larger the contrast, the more complex the texture, so the texture complexity is obtained based on the entropy and contrast obtained from the gray-level co-occurrence matrix; both the entropy and the contrast are positively correlated with the texture complexity.

[0058] As an example, the entropy and contrast are fused by multiplication, and the product of the entropy and contrast obtained from the gray-level co-occurrence matrix is used as the texture complexity.

[0059] As another example, the entropy and contrast are fused by weighted summation, and the average value of the entropy and contrast obtained from the gray-level co-occurrence matrix is used as the texture complexity.

[0060] It should be noted that the gray-level co-occurrence matrix, entropy, and contrast obtained based on the gray-level co-occurrence matrix are all existing technologies and will not be elaborated here.

[0061] Preferably, in an embodiment of the present invention, considering that when the hay cutting device moves without load, the speed is the highest and the cutting power is the lowest. When cutting, the higher the texture complexity and the denser the hay, the more the cutting power needs to be increased and the movement speed needs to be decreased. Based on this, the current movement speed is obtained according to the no-load speed and texture complexity of the hay cutting device; the no-load speed is positively correlated with the current movement speed; the texture complexity is negatively correlated with the current movement speed. The power increment is obtained according to the cutting power range and texture complexity of the hay cutting device; both the cutting power range and texture complexity are positively correlated with the power increment; the sum of the minimum cutting power and the power increment is used as the current cutting power.

[0062] As an example, the calculation formula for the movement speed of the current hay cutting device includes: ; Wherein, represents the movement speed of the hay cutting device at the current time t; represents the texture complexity at the current time t; represents the no-load speed.

[0063] In the calculation formula of the movement speed, the greater the texture complexity and the denser the hay, the smaller

[0064] the current movement speed of the hay cutting device is. ; Wherein, represents the cutting power of the hay cutting device at the current time t; represents the cutting power range of the hay cutting device; represents the minimum cutting power of the hay cutting device; represents the power increment of the hay cutting device at the current time t.

[0065] In the calculation formula of the cutting power, the adjustment range of the cutting power is represented by the cutting power range. Based on the minimum cutting power, the cutting power is increased on the basis of the minimum cutting power. The greater the texture complexity and the denser the hay, the greater the power increment and the greater the cutting power of the current hay cutting device.

[0066] It should be noted that the no-load speed, minimum cutting power, and maximum cutting power of the hay cutting device during cutting can be obtained from the device instruction manual or product nameplate and will not be limited here.

[0067] An embodiment of the present invention further provides a hay cutting device for gardens. The device includes a memory, a processor, and a computer program. The memory is used to store the corresponding computer program, and the processor is used to run the corresponding computer program. When the computer program runs in the processor, it can implement a hay cutting method for gardens described in steps S1 - S3.

[0068] The working principle of the hay cutting device for gardens is briefly described as follows: First, turn on the power switch. Before mowing, it is in an idle mode. After the device travels to the area to be mowed, the first camera 11 and the second camera 12 in the detection system 41 are used to collect images and transmit the information to the FPGA chip in the adjustment control system 42. Then, the FPGA chip calculates and analyzes the hay images at each moment to determine whether to adjust the device. When it is determined to adjust the device, the hay cutting device is adjusted. When the hay contacts the device, first, the arc-shaped hay grasping claw 1 grasps the hay and sends it into the roller 2. The roller 2 rotates to squeeze the hay into a cake shape and sends it to the cutter 4. At this time, the cutter 4 cuts the fed hay cake into fragments. The fragments cut by the cutter 4 move backward under the suction of the negative pressure absorber 6 until they fall into the iron box 8 for collection. The pressing cover 9 presses down once every certain period of time (such as 30 seconds) under the control of the FPGA chip.

[0069] In summary, in view of the technical problem of the relatively high cost of existing mowing devices, the present invention proposes a hay cutting device and method for gardens. The present invention first obtains hay images and determines whether to adjust the device. Further, when it is determined to adjust the device, based on the number distribution and edge intensity of pixel points at each gray level, the difference in the number of pixel points between each gray level and adjacent gray levels, and the gray difference between pixel points at each gray level and pixel points within a preset neighborhood, the gray levels of the current hay image are merged. Further, the texture complexity is obtained based on the gray-level co-occurrence matrix of the current merged hay image. The hay cutting device is adjusted according to the texture complexity. By analyzing the number distribution, edge intensity, and local gray difference of pixel points at each gray level, the gray levels are merged to reduce the computational complexity, the hay cutting device is adjusted in real time, the energy and equipment loss costs are reduced, the mowing effect is ensured, and the time cost is reduced.

[0070] It should be noted that: the above sequence of embodiments of the present invention is only for description and does not represent the advantages or disadvantages of the embodiments. The processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0071] Each embodiment in this specification is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other, and the differences between each embodiment and other embodiments are emphasized.

Claims

1. A method for cutting hay for gardening, characterized in that: The method comprises: Acquire a hay image; and determine whether to adjust the device according to the difference characteristics between the current hay image and the historical adjacent hay images; When determining the adjustment device, according to the number distribution and edge strength of the pixels of each gray level, the merging acceptance of each gray level is obtained; according to the number difference between the pixels of each gray level and the adjacent gray level, combined with the gray difference between the pixels of each gray level and the pixels in the preset neighborhood, the merging priority of each gray level is obtained; according to the merging acceptance and the merging priority of each gray level, the gray level of the current hay image is merged; The texture complexity is obtained based on the gray-level co-occurrence matrix of the currently merged hay image; and the hay cutting device is adjusted according to the texture complexity.

2. A method for cutting garden hay according to claim 1, characterized in that: The method for determining whether to adjust the device comprises: Obtaining the necessity of adjustment according to the cosine similarity between the current hay image and the historical adjacent hay images; the necessity of adjustment is negatively correlated with the cosine similarity; When the necessity of adjustment is greater than a preset adjustment threshold, it is determined that the device needs to be adjusted currently.

3. A garden hay cutting method according to claim 1, characterized in that: The method for obtaining the combined acceptance includes: According to the difference between the number of pixels of each gray level and the average number of pixels of all gray levels, combined with the ratio of the number of edge pixels to non-edge pixels in the corresponding gray level, the merged acceptance of the corresponding gray level is obtained; the difference between the number of pixels of each gray level and the average number of pixels of all gray levels is positively correlated with the merged acceptance; the ratio of the number of edge pixels to non-edge pixels is negatively correlated with the merged acceptance.

4. A method for cutting garden hay according to claim 1, characterized in that: The method for obtaining the merge priority includes: Select any gray level as the target gray level; The maximum ratio of the number of pixels of adjacent gray levels to the number of pixels of the target gray level is used as the numerator, the average of the squares of the differences between the gray values ​​of the pixels in the target gray level and the gray values ​​of the pixels in the preset neighborhood is used as the denominator, and the fractional ratio is used as the merging priority of the target gray level.

5. A garden hay cutting method according to claim 1, characterized in that: The method for gray-scale merging of the current hay image comprises: According to the merging acceptance and the merging priority of each gray level, obtaining the merging possibility of each gray level; the merging acceptance and the merging priority are both positively correlated with the merging possibility; When the merging possibility is greater than a preset merging threshold, it is determined that the corresponding grayscale needs to be merged, and the corresponding grayscale is merged into the grayscale with the most adjacent pixels.

6. A garden hay cutting method according to claim 1, characterized in that: The method for obtaining the texture complexity includes: The texture complexity is obtained according to the entropy and contrast obtained from the gray level co-occurrence matrix; the entropy and the contrast are both positively correlated with the texture complexity.

7. A method for cutting garden hay according to claim 6, characterized in that: The method of adjusting a hay cutting device according to the texture complexity comprises: The current movement speed is obtained according to the no-load speed of the hay cutting device and the texture complexity; the no-load speed is positively correlated with the current movement speed; and the texture complexity is negatively correlated with the current movement speed; A power increment is obtained according to the cutting power range of the hay cutting device and the texture complexity; both the cutting power range and the texture complexity are positively correlated with the power increment; and the sum of the minimum cutting power and the power increment is used as the current cutting power.

8. A garden hay cutting method according to claim 1, characterized in that: The preset neighborhood is eight neighborhoods.

9. A method for cutting garden hay according to claim 3, characterized in that: The edge pixel points are obtained by using the Canny operator.

10. A garden hay cutting device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the garden hay cutting method as described in any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Intelligent mower based on laser scanning radar sensor and control method of intelligent mower

    CN108781705A

  • A method for adaptive adjustment of operating speed in a double rotary knife paper production line

    CN114937063A

  • Method for monitoring working state of laser cutting machine

    CN115239961A

  • Harvester control data processing method based on 5G technology

    CN116109658A

  • Coal sample grinding intelligent detection system based on laser burning technology

    CN117152132A