Solar automatic planting flowerpot device
By using camera equipment and processors in the solar automatic planting flower pot device, the plant rhizome images are extracted and color detection is performed, the plants are accurately pruned, and the problems of inaccurate and time-consuming automatic pruning in the existing technology are solved, and convenient and environmentally friendly planting management is achieved.
Patent Information
- Application Number
- CN202510232713.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-05-06
AI Technical Summary
The prior art is difficult to automatically prune plants without affecting flowers, and manual pruning is time-consuming and inconvenient.
A solar-powered automatic flower pot device was designed to obtain plant images using camera equipment. The processor extracts rhizome images and performs color detection to determine the flower position, and accurately trim the rhizome position.
Automatic pruning of plants is achieved, avoiding damage to flowers, saving time and manpower for manual pruning, and at the same time, power is used to use solar energy to achieve environmentally friendly and convenient planting management.
Smart Images

Figure CN119924105A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a solar automatic planting flowerpot device. Background Art
[0002] At present, pruning is required during the growth process of plants to prevent the plants from growing too long and affecting their appearance, and to allow the plants to renew their own energy and grow more advantageously under certain pruning. However, manual pruning takes a lot of time and manpower, which is not convenient enough, so the method of automatic pruning of plants is adopted. However, if the plants are only pruned at a certain position, the entire plant of a certain height will be pruned, which is not friendly to users who want to keep the flowers. Therefore, it is necessary to identify the position of the flowers and accurately prune at the root and stem position. Summary of the invention
[0003] The purpose of the present invention is to provide a solar-powered automatic planting flowerpot device to solve the above-mentioned problems existing in the prior art.
[0004] The embodiment of the present invention provides a solar automatic planting flower pot device, including an external structure, a water storage structure, a small water pump, a pruning structure, a camera device and a processor:
[0005] The camera device is used to obtain a plant image; the plant image is an image of the side of the monitored plant;
[0006] The processor is used to execute the following method:
[0007] Extracting rhizomes based on the plant image to obtain a rhizome image; the rhizome image is an image containing only the rhizomes of the plant;
[0008] Based on the rhizome image and the plant image, color detection is performed, and the flower position is obtained through comparison;
[0009] Based on the flower position and the rhizome image, the pruning position is obtained.
[0010] The step of extracting rhizomes based on the plant image to obtain a rhizome image includes:
[0011] Based on the plant image, according to the characteristic that the plant root is connected to the soil, the root position is obtained through target detection;
[0012] Based on the plant image, the position of the plant stem is determined according to the pixels through a histogram to obtain a plant stem image; the plant stem image is the position containing branches and leaves in the image;
[0013] According to the root position, the skeleton of the stem position in the stem image is adjusted to obtain the root and stem image.
[0014] Optionally, the step of predicting the stem position according to the plant image by using a histogram to obtain the stem image includes:
[0015] According to the plant image, a histogram is constructed to obtain a plant array; the plant array is a two-dimensional array; the elements in the plant array are the same as the information in the histogram;
[0016] Establishing a color window; the color window represents a fixed number of pixel values;
[0017] According to the color window, sliding with a step size of 1 to obtain multiple pixel groups;
[0018] A plurality of pixel quantities are obtained by respectively adding the number of pixels in a plurality of pixel groups for a plurality of times;
[0019] Compare multiple pixel quantities, find a pixel quantity that is greater than other pixel quantities, and obtain the optimal pixel quantity;
[0020] The position where the pixel value corresponding to the optimal pixel quantity in the plant image is located is set to 1, and the other positions are set to 0, so as to obtain a plant stem image.
[0021] Optionally, extracting the skeleton of the stem position in the stem image according to the root position to obtain the root and stem image includes:
[0022] The vertical center axis of the root position is obtained to obtain the root center line;
[0023] Extend the root centerline by one eighth of itself to obtain an extended root centerline;
[0024] According to the area of the extended root center line in the stem image, the extended stem position is obtained;
[0025] Obtaining a left-right ratio according to a quotient from the extended root center line to the left and right boundaries of the extended stem position;
[0026] The skeleton of the plant stem image is extracted according to the left-right ratio to obtain the rhizome image.
[0027] Optionally, extracting the skeleton of the plant stem image according to the left-right ratio to obtain the rhizome image includes:
[0028] According to the left-right ratio, the number of left corrosion times and the number of right corrosion times are obtained;
[0029] The left boundary of the stem position in the stem image is eroded multiple times according to the left erosion times by using the erosion boundary algorithm;
[0030] The right boundary of the stem position in the stem image is corroded multiple times according to the right corrosion times by using the corrosion boundary algorithm;
[0031] The root image is obtained by alternating left and right erosion multiple times.
[0032] Optionally, performing color detection based on the rhizome image and the plant image and obtaining the flower position by comparison includes:
[0033] Detecting the plant image to obtain an initial detection flower position and an initial detection flower color;
[0034] According to the color of the flower initially detected and the color corresponding to the pixel quantity when the plant stem image is obtained, it is determined whether the colors are similar;
[0035] If the colors of the initially detected flower position and the color position are not similar, the flower position is obtained; the flower position is the initially detected flower position.
[0036] Optionally, obtaining the pruning position according to the flower position and the rhizome image includes:
[0037] The trimming positions include a trimming height position and a trimming level position;
[0038] Obtaining a pruning height; the pruning height represents a preset height of branches and leaves after pruning;
[0039] According to the vertical position of the flower position, the flower height is obtained;
[0040] If the trimming height is less than the flower height, the trimming height position is set to the flower height; if the trimming height is greater than or equal to the flower height, the trimming height position is set to the trimming height;
[0041] According to the rhizome image at the pruning height position, find the rhizome position and set the rhizome position as the pruning level position.
[0042] Optionally, the external structure includes an uncovered flower pot structure and a flower pot cover.
[0043] The uncovered flower pot structure is a cylinder with one side open; the flower pot cover can be fastened on the uncovered flower pot structure;
[0044] The water storage structure is located at the bottom of the uncovered flower pot structure; the water storage structure is retractable; and a screen is located above the water storage structure;
[0045] There is soil and plants above the screen;
[0046] The camera device is fixed to the side edge of the uncovered flower pot structure;
[0047] A small water pump is fixed to the side edge of the uncovered flower pot structure opposite to the camera device; the small water pump is used to spray the water in the water storage structure onto the surface of the soil layer at a fixed time;
[0048] The pruning structure is fixed inside the flower pot cover; the processor is built into the pruning structure;
[0049] Optionally, a right solar panel is fixedly placed outside the flower pot cover; the solar panel is connected to a motor.
[0050] Optionally, the pruning structure includes a motor, a blade and a support rod.
[0051] The processor is built into the motor;
[0052] The motor is connected to the support rod; the motor can control the support rod to extend downward;
[0053] The center point of the blade is fixedly connected to the support rod.
[0054] Optionally, the water pump structure includes a suction component and a discharge component.
[0055] The suction part of the small water pump is located in the water storage structure; the discharge part of the small water pump is located above the soil.
[0056] Compared with the prior art, the embodiments of the present invention achieve the following beneficial effects:
[0057] The embodiment of the present invention also provides a solar automatic flowerpot planting device, which includes: the camera device is used to obtain a plant image; the plant image is an image of the side of the plant monitored. The processor is used to execute the following method: based on the plant image, the rhizome is extracted to obtain a rhizome image; the rhizome image is an image of only the rhizome of the plant. Based on the rhizome image and the plant image, color detection is performed, and the flower position is obtained by comparison. Based on the flower position and the rhizome image, the pruning position is obtained.
[0058] According to the color discrimination of the plant image, the approximate position of the branches and leaves is obtained, and the left-right ratio of the root position of the rhizome is obtained to correct the rhizome skeleton, extract the skeleton to obtain the rhizome image, identify the flower position through the neural network, and accurately prune the rhizome position. Control the position for pruning, and you can avoid cutting flowers during the detection process by identifying the flowers. At the same time, the position of the branches and leaves connected to it is detected, and accurate automatic pruning is identified to avoid pruning but not pruning the branches and leaves. In addition, the water pump can automatically water the plants, and the solar panels can charge the batteries. The water storage structure can easily add water and nutrient solution for planting at any time. The screen facilitates the return of excess water in the soil layer to the bottom layer without taking away the soil. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1This is a flow chart of a method for obtaining a trimming position in a solar-powered automatic flowerpot planting device provided by an embodiment of the present invention.
[0060] Figure 2 It is a structural schematic diagram of a solar-powered automatic planting flowerpot device provided in an embodiment of the present invention.
[0061] Markings in the figure: external structure 1, uncovered flower pot structure 102, flower pot cover 101, water storage structure 2, small water pump 3, suction part 301, outlet part 302, pruning structure 4, motor 402, blade 401, support rod 403, camera equipment 5, screen 6, solar panel 7. DETAILED DESCRIPTION
[0062] The present invention will be described in detail below in conjunction with the accompanying drawings.
[0063] Example
[0064] like Figure 1 As shown, an embodiment of the present invention provides a solar automatic planting flower pot device, including an external structure 1, a water storage structure 2, a small water pump 3, a pruning structure 4, a camera device 5 and a processor:
[0065] The camera device 5 is used to obtain plant images. The plant images are images of the side surfaces of the monitored plants.
[0066] The processor is used to execute the following method:
[0067] S101: extracting rhizomes based on the plant image to obtain a rhizome image. The rhizome image is an image containing only the rhizomes of the plant.
[0068] S102: Perform color detection based on the rhizome image and the plant image, and obtain the flower position through comparison.
[0069] Among them, color detection is performed to find objects different from branches and leaves through comparison.
[0070] S103: Obtaining a pruning position based on the flower position and the rhizome image.
[0071] Wherein, the pruning position is transmitted to the pruning structure.
[0072] The step of extracting rhizomes based on the plant image to obtain a rhizome image includes:
[0073] Based on the plant image and according to the characteristic that the plant root is connected to the soil, the root position is obtained through target detection.
[0074] Among them, according to the connection between the roots of plants and the soil, the plant images are reflected in images with different shapes and colors.
[0075] Among them, in this embodiment, the target detection is performed by the YOLOV5 algorithm, and multiple plant images are used as training images, and the corresponding plant root positions are used as annotations for training to obtain a target detection algorithm that can detect the root position.
[0076] Based on the plant image, the position of the plant stem is determined according to the pixels through a histogram to obtain a plant stem image; the plant stem image is the position containing branches and leaves in the image.
[0077] According to the root position, the skeleton of the stem position in the stem image is adjusted to obtain the root image.
[0078] Through the above method, the two-dimensional image is used to find the bottom rhizome position and adjust the rhizome position from bottom to top.
[0079] Optionally, the step of predicting the stem position according to the plant image by using a histogram to obtain the stem image includes:
[0080] According to the plant image, a histogram is constructed to obtain a plant array. The plant array is a two-dimensional array; the elements in the plant array are the same as the information in the histogram.
[0081] The histogram and plant array are arranged in order from low to high according to the pixel values of the colors.
[0082] The values in the image in the histogram represent the number of pixels corresponding to each pixel value.
[0083] Among them, judging pixels according to the histogram is equivalent to judging colors, because the colors of branches and leaves are in a fixed range.
[0084] A color window is established. The color window represents a fixed number of pixel values.
[0085] The color window represents grouping the colors in the histogram, ie, the plant array.
[0086] Among them, the color window in this embodiment is 4.
[0087] According to the color window, sliding is performed with a step size of 1 to obtain multiple pixel groups.
[0088] The pixel groups represent adjacent positions, that is, adjacent colors.
[0089] A plurality of pixel quantities are obtained by adding the number of pixels in a plurality of pixel groups for a plurality of times.
[0090] The pixel quantity represents the quantity of similar colors, such as the quantity of green in branches and leaves.
[0091] Compare multiple pixel quantities, find a pixel quantity that is greater than other pixel quantities, and obtain the optimal pixel quantity.
[0092] The position where the pixel value corresponding to the optimal pixel quantity in the plant image is located is set to 1, and the other positions are set to 0, so as to obtain a plant stem image.
[0093] The plant stem image is an image that roughly obtains the locations of plant branches and leaves.
[0094] Optionally, extracting the skeleton of the stem position in the stem image according to the root position to obtain the root and stem image includes:
[0095] Extend the root position by one eighth of itself to obtain the extended rhizome position.
[0096] The left-right ratio is obtained according to the quotient of the extended root center line to the left boundary and the right boundary of the extended stem position.
[0097] The left-right ratio is obtained by subtracting the horizontal coordinate of the left boundary of the extended stem position from the horizontal coordinate of the center line of the root and dividing it by the vertical coordinate of the left boundary of the extended stem position from the horizontal coordinate of the center line of the root.
[0098] The skeleton of the plant stem image is extracted according to the left-right ratio to obtain a rhizome image.
[0099] By using the above method, the root position and the plant stem image are matched, so that the skeleton of the plant stem can be obtained more accurately during skeleton extraction.
[0100] Optionally, extracting a portion of the skeleton through a histogram according to the plant image to obtain a plant stem image includes:
[0101] According to the left-right ratio, the number of left corrosion times and the number of right corrosion times are obtained;
[0102] The left boundary of the stem position in the stem image is eroded multiple times according to the left erosion times by using the erosion boundary algorithm.
[0103] The right boundary of the stem position in the stem image is eroded multiple times according to the right erosion times through the erosion boundary algorithm.
[0104] The corrosion boundary algorithm described in this embodiment is the K3M algorithm.
[0105] The root image is obtained by alternately performing left erosion and right erosion multiple times.
[0106] Through the above method, the border is generally eroded at the same time, but due to the proportion problem, after the left side is eroded a certain number of times, the right side is eroded.
[0107] Optionally, performing color detection based on the rhizome image and the plant image and obtaining the flower position by comparison includes:
[0108] The plant image is detected to obtain an initial detected flower position and an initial detected flower color.
[0109] In this embodiment, the YOLOV5 target detection model trained by using multiple flower images multiple times is used to detect the flower position.
[0110] The flower colors are divided into 7 categories: red, orange, yellow, green, cyan, blue, and purple, and are marked as 1, 2, 3, 4, 5, 6, and 7. 1 corresponds to red, 2 corresponds to orange, 3 corresponds to yellow, 4 corresponds to green, 5 corresponds to cyan, 6 corresponds to blue, and 7 corresponds to purple.
[0111] Based on the color of the flower initially detected and the color corresponding to the pixel quantity when the plant stem image is obtained, it is determined whether the colors are similar.
[0112] Among them, according to the pixel value corresponding to the pixel quantity when obtaining the plant stem image, that is, the RGB value, the color is classified into red, orange, yellow, green, cyan, blue and purple according to the color comparison table to determine whether it is the same as the category of the flower color initially detected.
[0113] If the colors of the initially detected flower position and the color position are not similar, the flower position is obtained. The flower position is the initially detected flower position.
[0114] Through the above positions, sometimes the shape of branches and leaves is similar to that of flowers, which may lead to misjudgment. Judgment is made through color contrast and alignment.
[0115] Optionally, obtaining the pruning position according to the flower position and the rhizome image includes:
[0116] The trimming positions include a trimming height position and a trimming level position;
[0117] Get the pruning height. The pruning height represents the preset height of the branches and leaves after pruning.
[0118] In this embodiment, the trimming height is set to 1 / 10 of the flower pot height, which is 5 cm in this embodiment.
[0119] According to the vertical position of the flower, the flower height is obtained.
[0120] The center point position and height of the flower position are obtained. The center point position of the flower position plus half of the height is added to obtain the flower height.
[0121] The flower height is the height of the highest flower among the multiple flowers.
[0122] If the trimming height is less than the flower height, the trimming height position is set to the flower height; if the trimming height is greater than or equal to the flower height, the trimming height position is set to the trimming height.
[0123] According to the rhizome image at the pruning height position, find the rhizome position and set the rhizome position as the pruning level position.
[0124] Optionally, the external structure 1 includes an uncovered flower pot structure 102 and a flower pot cover 101.
[0125] The uncovered flower pot structure 102 is a cylinder with one side open; the flower pot cover 101 can be fastened on the uncovered flower pot structure 102 .
[0126] The water storage structure 2 is located at the bottom of the uncovered flower pot structure 102; the water storage structure 2 is retractable; and the screen 6 is located above the water storage structure 2.
[0127] There are soil and plants above the screen 6 .
[0128] The camera device 5 is fixed to the side edge of the uncovered flower pot structure 102 .
[0129] The small water pump 3 is fixed to the side edge of the uncovered flower pot structure 102 opposite to the camera device 5; the small water pump 3 is used to spray the water in the water storage structure 2 onto the surface of the soil layer at a regular time.
[0130] The pruning structure 4 is fixed inside the flowerpot cover 101; the processor is built into the pruning structure 4.
[0131] Optionally, a right solar panel 7 is fixedly placed outside the flower pot cover 101 ; the solar panel 7 is connected to the motor 402 .
[0132] Optionally, the pruning structure includes a motor 402, a blade 401 and a support rod 403.
[0133] The processor is built into the motor 402.
[0134] The motor 402 is connected to the support rod 403; the motor 402 can control the support rod 403 to extend downward.
[0135] The center point of the blade 401 is fixedly connected to the support rod 403 .
[0136] The motor 402 and the blade 401 form a pruning structure 4 similar to the ceiling fan in the early years.
[0137] After touching the top cover, the pruning structure 4 starts to work, extends downward from the flower pot cover 101 to the position of the pruning height, and cuts off the branches and leaves. The outside of the flower pot cover 101 is provided with a solar panel 7 to charge the battery. A battery-powered appliance can also be used to power the battery.
[0138] Among them, the motor battery is the same as the small water pump 3 battery and can be used interchangeably.
[0139] Optionally, the water pump structure includes a suction component 301 and a discharge component 302.
[0140] The suction part 301 of the small water pump 3 is located in the water storage structure 2; the outlet part 302 of the small water pump 3 is located above the soil;
[0141] The water pump is powered by a rechargeable battery, and the soil layer is surrounded by a solar panel to power the battery. Battery appliances can also be used to power the battery.
[0142] Optional, there are three layers in total, the bottom layer is a pull-out water storage device, because it is made of glass, the water level at the bottom can be observed at any time. The pull-out is convenient for adding water and nutrient solution for planting at any time.
[0143] The middle layer is the soil layer, and a denser screen separates the soil layer and the bottom layer, which allows excess water in the soil layer to flow back to the bottom layer without taking away the soil.
[0144] The top layer is the plant growth layer, which provides space for plant growth.
[0145] There is a small water pump on the side wall of the flower pot, which is used to spray the water from the bottom layer onto the surface of the soil layer at regular intervals.
[0146] The water pump is powered by a rechargeable battery, and the soil layer is surrounded by a solar panel to power the battery. Battery appliances can also be used to power the battery.
[0147] There is a top cover on the top, and a pruner is installed inside the top cover, that is, a motor + blade (similar to the ceiling fan in the early years). After the top of the plant touches the top cover, the pruner starts to work and extends 3-5 cm from the top cover, or other set lengths. Cut off branches and leaves. The pruner is powered by a rechargeable battery. The outside of the top cover is equipped with a solar panel to charge the battery. You can also use a battery appliance to power the battery. The battery is the same as the water pump battery and can be used interchangeably.
[0148] Regarding the system in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the relevant embodiments and will not be elaborated here.
[0149] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the solar automatic planting flower pot device described above and the data involved above are implemented.
[0150] The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general purpose systems may also be used with the teachings based thereon. Based on the above description, the structure required to construct such systems is obvious. In addition, the present invention is not directed to any particular programming language. It should be understood that the contents of the present invention described herein can be implemented using various programming languages, and the above description of specific languages is intended to disclose the best mode of implementation of the present invention.
[0151] In the description provided herein, numerous specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of this description.
[0152] Similarly, it should be understood that in order to streamline the disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this method of disclosure should not be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single embodiment disclosed above. Therefore, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of the invention.
[0153] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and set in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore they may be divided into multiple sub-modules or sub-units or sub-components. All features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination, except that at least some of such features and / or processes or units are mutually exclusive. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.
[0154] In addition, those skilled in the art will appreciate that although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the following claims, any one of the claimed embodiments may be used in any combination.
[0155] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the apparatus according to an embodiment of the present invention. The present invention may also be implemented as a device or device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may have the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0156] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.
Claims
1. A solar-powered automatic flowerpot planting device, characterized in that: Including external structure, water storage structure, small water pump, pruning structure, camera equipment and processor: The camera device is used to obtain a plant image; the plant image is an image of the side of the monitored plant; The processor is used to execute the following method: Extracting rhizomes based on the plant image to obtain a rhizome image; the rhizome image is an image containing only the rhizomes of the plant; Based on the rhizome image and the plant image, color detection is performed, and the flower position is obtained through comparison; Based on the flower position and rhizome image, the pruning position is obtained; The step of extracting rhizomes based on the plant image to obtain a rhizome image includes: Based on the plant image, according to the characteristic that the plant root is connected to the soil, the root position is obtained through target detection; Based on the plant image, the position of the plant stem is determined according to the pixels through a histogram to obtain a plant stem image; the plant stem image is the position containing branches and leaves in the image; According to the root position, adjusting the skeleton of the stem position in the stem image to obtain a root and stem image; The method of predicting the position of a plant stem by using a histogram according to the plant image to obtain a plant stem image includes: According to the plant image, a histogram is constructed to obtain a plant array; the plant array is a two-dimensional array; the elements in the plant array are the same as the information in the histogram; Establishing a color window; the color window represents a fixed number of pixel values; According to the color window, sliding with a step size of 1 to obtain multiple pixel groups; A plurality of pixel quantities are obtained by respectively adding the number of pixels in a plurality of pixel groups for a plurality of times; Compare multiple pixel quantities, find a pixel quantity that is greater than other pixel quantities, and obtain the optimal pixel quantity; The position where the pixel value corresponding to the optimal pixel quantity in the plant image is located is set to 1, and the other positions are set to 0, so as to obtain a plant stem image.
2. The solar automatic flowerpot planting device according to claim 1, characterized in that: The step of extracting the skeleton of the stem position in the stem image according to the root position to obtain the root and stem image comprises: The vertical center axis of the root position is obtained to obtain the root center line; Extend the root centerline by one eighth of itself to obtain an extended root centerline; According to the area of the extended root center line in the stem image, the extended stem position is obtained; Obtaining a left-right ratio according to a quotient from the extended root centerline to the left and right boundaries of the extended stem position; The skeleton of the plant stem image is extracted according to the left-right ratio to obtain a rhizome image.
3. The solar automatic flowerpot planting device according to claim 2, characterized in that: The step of extracting the skeleton of the plant stem image according to the left-right ratio to obtain the root stem image comprises: According to the left-right ratio, the number of left corrosion times and the number of right corrosion times are obtained; The left boundary of the stem position in the stem image is eroded multiple times according to the left erosion times by using the erosion boundary algorithm; The right boundary of the stem position in the stem image is corroded multiple times according to the right corrosion times by using the corrosion boundary algorithm; The root image is obtained by alternately performing left erosion and right erosion multiple times.
4. The solar automatic flowerpot planting device according to claim 1, characterized in that: The method of performing color detection based on the rhizome image and the plant image and obtaining the flower position by comparison includes: Detecting the plant image to obtain an initial detection flower position and an initial detection flower color; According to the color of the flower initially detected and the color corresponding to the pixel quantity when the plant stem image is obtained, it is determined whether the colors are similar; If the colors of the initially detected flower position and the color position are not similar, the flower position is obtained; the flower position is the initially detected flower position.
5. The solar automatic flowerpot planting device according to claim 1, characterized in that: The method of obtaining the pruning position according to the flower position and the rhizome image includes: The trimming positions include a trimming height position and a trimming level position; Obtaining a pruning height; the pruning height represents a preset height of branches and leaves after pruning; According to the vertical position of the flower position, the flower height is obtained; If the trimming height is less than the flower height, the trimming height position is set to the flower height; if the trimming height is greater than or equal to the flower height, the trimming height position is set to the trimming height; According to the rhizome image at the pruning height position, find the rhizome position and set the rhizome position as the pruning level position.
6. The solar automatic flowerpot planting device according to claim 1, characterized in that: The external structure includes an uncovered flower pot structure and a flower pot cover, The uncovered flower pot structure is a cylinder with one side open; the flower pot cover can be fastened on the uncovered flower pot structure; The water storage structure is located at the bottom of the uncovered flower pot structure; the water storage structure is retractable; and a screen is located above the water storage structure; There is soil and plants above the screen; The camera device is fixed to the side edge of the uncovered flower pot structure; A small water pump is fixed to the side edge of the uncovered flower pot structure opposite to the camera device; the small water pump is used to spray the water in the water storage structure onto the surface of the soil layer at a fixed time; The pruning structure is fixed inside the flowerpot cover; the processor is built in the pruning structure.
7. The solar automatic flowerpot planting device according to claim 1, characterized in that: A right solar panel is fixedly placed outside the flower pot cover; the solar panel is connected to a motor.
8. The solar automatic flowerpot planting device according to claim 7, characterized in that: The pruning structure includes a motor, a blade and a support rod. The motor is connected to the support rod; the motor can control the support rod to extend downward; The center point of the blade is fixedly connected to the support rod.
9. The solar automatic flowerpot planting device according to claim 8, characterized in that: The processor is built into the motor.
10. The solar automatic flowerpot planting device according to claim 7, characterized in that: The water pump structure comprises a suction component and a discharge component. The suction component of the small water pump is located in the water storage structure; the discharge component of the small water pump is located above the soil.