A method and platform for monitoring the cultivation of oyster mushrooms
By scanning tags to obtain digital twin data, build a virtual wall and monitor the growth of oyster mushrooms, it solves the problem of the lack of a digital monitoring platform in the existing technology, achieves efficient monitoring and status determination of oyster mushroom growth, reduces costs, and improves efficiency. Nurturing effect.
Patent Information
- Application Number
- CN202410553941.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-07
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-05-07
AI Technical Summary
There is a lack of digital monitoring platform in the existing oyster mushroom cultivation, which results in the need to invest too much manpower and cost to monitor the growth and development of oyster mushrooms.
Obtain digital twin data by scanning the scanned tags on the cultivation wall, build a virtual wall, determine the base area and growth area of the real oyster mushroom, conduct regional planning based on the virtual wall, and compare the growth parts to determine the cultivation status, including normal and abnormal state.
It achieves efficient monitoring of the growth of oyster mushrooms and determination of cultivation status, reduces labor costs, and improves the cultivation effect of oyster mushrooms.
Smart Images

Figure CN118470263B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to data processing technology, and in particular to a method and platform for monitoring the cultivation of oyster mushrooms. Background Art
[0002] Oyster mushroom is an edible fungus, rich in nutrients, and has the effects of dispelling wind and cold, relaxing muscles and activating blood circulation. It is used to treat low back and leg pain, numbness of hands and feet, and blocked tendons and blood circulation. In addition, it has certain benefits in preventing cancer, regulating women's menopausal syndrome, improving human metabolism, and strengthening physical fitness.
[0003] The inventors found in their research that in the existing cultivation of oyster mushrooms, the growth and development of oyster mushrooms are mostly monitored manually, and there is a lack of a digital monitoring platform to assist, which requires too much manpower and corresponding costs. Summary of the invention
[0004] Based on the above problems, the present invention is proposed to provide a method and platform for monitoring the cultivation of Pleurotus ostreatus that overcomes the above problems or at least partially solves the above problems.
[0005] According to one aspect of the present invention, there is provided a method for monitoring the cultivation of Pleurotus ostreatus, comprising the following steps:
[0006] Scanning a scanning tag preset on the cultivation wall to obtain digital twin data, and constructing a virtual wall based on the digital twin data;
[0007] Acquire an initial wall image of the cultivation wall at a first moment, and determine each actual oyster mushroom base area located in the cultivation wall based on the initial wall image;
[0008] Generate virtual oyster mushroom base areas corresponding to the real oyster mushroom base areas in the virtual wall, and perform area planning on the virtual wall based on the virtual oyster mushroom base areas to obtain virtual oyster mushroom planning areas including the virtual oyster mushroom base areas;
[0009] At a second moment after the first moment, a current wall image of the cultivation wall is acquired, and a real Pleurotus ostreatus growth area located in the cultivation wall is determined based on the current wall image;
[0010] Generate a virtual oyster mushroom growth area in the virtual wall surface based on the actual oyster mushroom growth area, and determine the growth parts corresponding to the virtual oyster mushroom base areas based on the coverage between the virtual oyster mushroom growth area and the virtual oyster mushroom planning areas;
[0011] The growth parts are compared, and the cultivation states corresponding to the virtual oyster mushroom base areas are determined based on the comparison results, wherein the cultivation states include a normal state and an abnormal state.
[0012] Optionally, in the method according to the present invention, obtaining an initial wall image of the cultivation wall at a first moment, and determining each actual oyster mushroom base area located in the cultivation wall based on the initial wall image, comprises:
[0013] Determine the image contour of the initial wall image, and obtain the endpoint pixel values corresponding to the image endpoints located on the image contour and at the endpoint positions;
[0014] Calculating the mean value of each endpoint pixel value to obtain a reference pixel value, and obtaining each image pixel value corresponding to each image pixel point located within the image contour;
[0015] Calculate the difference between each image pixel value and the reference pixel value to obtain pixel differences corresponding to each image pixel point, and determine each image pixel point corresponding to each pixel difference within a preset difference interval as each target pixel point;
[0016] The pixel areas composed of the target pixel points are determined respectively, and the pixel areas are determined respectively based on the preset oyster mushroom determination strategy to determine the actual oyster mushroom base areas located in the cultivation wall.
[0017] Optionally, in the method according to the present invention, each pixel area is respectively determined based on a preset oyster mushroom determination strategy to determine each actual oyster mushroom base area located in the cultivation wall, including:
[0018] Recall the preset circular contour and the preset circular area respectively;
[0019] Determine each area contour corresponding to each pixel area, and compare each area contour with the preset circular contour to determine each contour contrast coefficient;
[0020] Aggregate the pixel regions corresponding to the contour contrast coefficients in the preset contour interval into a region screening group;
[0021] Determine the area of each region corresponding to each pixel region in the screening group, and compare the area of each region with the preset circular area to determine the comparison coefficient of each area;
[0022] The pixel areas respectively corresponding to the area contrast coefficients in the preset area interval are summarized into an area determination group, and the wall parts in the cultivation wall corresponding to the pixel areas in the area determination group are determined as the actual oyster mushroom base areas.
[0023] Optionally, in the method according to the present invention, generating virtual oyster mushroom base areas corresponding to real oyster mushroom base areas in the virtual wall surface includes:
[0024] A virtual coordinate system and a real coordinate system are respectively established with the virtual center point of the virtual wall as the origin and the real center point of the cultivation wall as the origin, and real pixel coordinate groups constituting the real oyster mushroom base areas are respectively obtained in the real coordinate system;
[0025] Determine a mapping relationship between the virtual coordinate system and the real coordinate system, and determine each virtual pixel coordinate group corresponding to each real pixel group in the virtual coordinate system based on the mapping relationship;
[0026] Based on each virtual pixel coordinate group, each virtual mushroom base area corresponding to each real mushroom base area is generated in the virtual wall.
[0027] Optionally, in the method according to the present invention, the virtual wall is regionally planned based on each virtual mushroom base area to obtain each virtual mushroom planning area including each virtual mushroom base area, including:
[0028] Obtaining the wall area of the cultivation wall, and performing difference calculation between the wall area and the preset reserved area to obtain the practical area;
[0029] Determine the number of bases of each actual oyster mushroom base area, and divide the practical area by the number of bases to determine the planned area;
[0030] Determine the base center points located in the base areas of the virtual oyster mushrooms, and create circular planning areas with the planning areas with the base center points as the centers;
[0031] Based on the relative position relationship of each circular planning area, it is determined whether the planning conditions are met, and if the planning conditions are met, each circular planning area is determined as each virtual oyster mushroom planning area.
[0032] Optionally, in the method according to the present invention, determining whether the planning conditions are met based on the relative position relationship of each circular planning area, and determining each circular planning area as each virtual oyster mushroom planning area when the planning conditions are met, includes:
[0033] Determine whether there is an overlapping relationship between the circular planning areas based on the relative position relationship of the circular planning areas;
[0034] When there is no overlapping relationship between the circular planning areas, it is judged that the planning conditions are met, and the circular planning areas are determined as the virtual oyster mushroom planning areas;
[0035] When at least two of the circular planning areas overlap, it is determined that the planning condition is not met, and the planning areas of the circular planning areas that overlap are adjusted respectively so that there is no overlapping relationship between the circular planning areas.
[0036] Optionally, in the method according to the present invention, based on the coverage between the virtual oyster mushroom growth area and each virtual oyster mushroom planning area, determining each growth part corresponding to each virtual oyster mushroom base area respectively comprises:
[0037] Determine the covered parts where the virtual oyster mushroom growing areas are respectively located in the virtual oyster mushroom planning areas, and determine the state attributes corresponding to the covered parts based on the intersection between the covered parts and the virtual oyster mushroom planning areas where they are located, wherein the state attributes include non-continuation attributes and continuation attributes;
[0038] When the state attribute of any of the covered parts is a non-continuation attribute, the covered part is determined as a growth part corresponding to the virtual oyster mushroom base area in the virtual oyster mushroom growth area where the covered part is located;
[0039] When the state attribute of any of the covering parts is a continuation attribute, a continuation part having a continuation relationship with the covering part is determined in other areas of the virtual wall except for each virtual mushroom planning area, and the covering part and the continuation part are determined as the growth parts corresponding to the virtual mushroom base area in the virtual mushroom growth area where the covering part is located.
[0040] Optionally, in the method according to the present invention, based on the intersection between each covered part and the virtual mushroom planning area where it is located, determining the state attributes corresponding to each covered part respectively includes:
[0041] Obtaining the intersection line between each covered part and the planning outline of the virtual oyster mushroom planning area where it is located, and determining the line segment length of the intersection line;
[0042] The length of the line segment is compared with a preset length, and if the comparison result shows that the length of the line segment is greater than or equal to the preset length, the intersection line is determined as a coverage approval line;
[0043] Determine the approved pixel points constituting the coverage approval line, and determine whether there are continued pixel points in the other areas that have a continuation relationship with at least part of the approved pixel points, wherein the continued pixel points all belong to the virtual Pleurotus ostreatus growth area;
[0044] When there are continuation pixels, the state attribute of the corresponding covered portion is determined as a continuation attribute.
[0045] Optionally, in the method according to the present invention, when the state attribute of any of the covered parts is a continuation attribute, determining a continuation part having a continuation relationship with the covered part in other areas of the virtual wall surface except for each virtual mushroom planning area, and determining the covered part and the continuation part as the growth part corresponding to the virtual mushroom base area in the virtual mushroom growth area where the covered part is located, comprising:
[0046] When the state attribute of any of the covered parts is a continuation attribute, determining each continuation pixel point corresponding to the covered part, and determining the area formed by each continuation pixel point as the continuation part having a continuation relationship with the covered part;
[0047] Determining whether the extended portion is at least partially located in other virtual oyster mushroom planning areas other than the virtual oyster mushroom planning area where the covered portion is located;
[0048] When the continuation portion is not located in other virtual oyster mushroom planning areas, the continuation portion and the covering portion having a continuation relationship therewith are determined as the growth portion corresponding to the virtual oyster mushroom base area located in the virtual oyster mushroom growth area where the covering portion is located;
[0049] When at least part of the extended portion is located in other virtual oyster mushroom division areas, the virtual oyster mushroom growth area where the covered portion is located is determined as the first growth area, and the other virtual oyster mushroom division areas are determined as the second growth area;
[0050] Determine a region dividing line between the first growth region and the growth region, and divide the continuation portion based on the region dividing line to obtain a first sub-portion close to the first growth region and a second sub-portion far from the first growth region;
[0051] The first sub-portion and the covering portion having a continuous relationship therewith are determined as the growing portion corresponding to the virtual oyster mushroom base area in the virtual oyster mushroom growing area where the covering portion is located.
[0052] Optionally, in the method according to the present invention, the growth parts are compared, and the cultivation states corresponding to the virtual basal areas of the Pleurotus ostreatus are determined based on the comparison results, including:
[0053] Based on each generated part, the corresponding growth values are obtained, and the corresponding numerical sequence is obtained by sorting based on the numerical value, wherein the growth value at the first position is greater than the growth value at the last position;
[0054] Determine the growth value at the first position as the benchmark growth value, and compare the benchmark growth value with other growth values in the numerical sequence based on a reverse comparison method;
[0055] When the comparison result between the reference growth value and any other growth value is that the difference is greater than the preset growth threshold, the cultivation state of the generated part corresponding to the other growth value is determined to be an abnormal state, and the comparison process of the remaining other growth values is performed;
[0056] When the comparison result between the benchmark growth value and any other growth value is that the difference is less than or equal to the preset growth threshold, the cultivation status of each growth part corresponding to the other growth value and the remaining other growth values is determined to be a normal state, and the comparison process of the remaining other growth values is stopped.
[0057] According to another aspect of the present invention, there is provided a Pleurotus ostreatus cultivation monitoring platform, comprising:
[0058] A scanning module is configured to scan a scanning tag preset on the cultivation wall, obtain digital twin data, and construct a virtual wall based on the digital twin data;
[0059] A first acquisition module is configured to acquire an initial wall image of the cultivation wall at a first moment, and determine the base areas of each actual oyster mushroom located in the cultivation wall based on the initial wall image;
[0060] A planning module is configured to generate virtual mushroom base areas corresponding to the real mushroom base areas in the virtual wall, and perform regional planning on the virtual wall based on the virtual mushroom base areas to obtain virtual mushroom planning areas including the virtual mushroom base areas;
[0061] A second acquisition module is configured to acquire a current wall image of the cultivation wall at a second moment after the first moment, and determine a real Pleurotus ostreatus growth area located in the cultivation wall based on the current wall image;
[0062] A generating module is configured to generate a virtual oyster mushroom growing area in the virtual wall surface based on the actual oyster mushroom growing area, and determine the growth parts corresponding to the virtual oyster mushroom base areas respectively based on the coverage between the virtual oyster mushroom growing area and the virtual oyster mushroom planning areas;
[0063] The state determination module is configured to compare the growth parts and determine the cultivation states corresponding to the virtual oyster mushroom base areas based on the comparison results, wherein the cultivation states include normal states and abnormal states.
[0064] According to the solution of the present invention, first, the server obtains digital twin data by scanning the scanning tags on the cultivation wall, so as to construct a virtual wall; then, the initial wall image of the cultivation wall at the first moment is obtained to determine the actual oyster mushroom base areas in the cultivation wall; then, virtual oyster mushroom base areas corresponding to the actual oyster mushroom base areas are generated in the virtual wall, and the virtual wall is regionally planned based on the virtual oyster mushroom base areas to obtain the virtual oyster mushroom planning areas; at the second moment after the first moment, the server obtains the current wall image of the cultivation wall, and determines the actual oyster mushroom growth area based on the current wall image; then, a virtual oyster mushroom growth area is generated in the virtual wall based on the actual oyster mushroom growth area, and the growth parts corresponding to the virtual oyster mushroom base areas are determined based on the coverage between the virtual oyster mushroom growth area and the virtual oyster mushroom planning areas; then, the growth parts are compared, and based on the comparison result, it is determined whether the cultivation state of each virtual oyster mushroom base area is normal or abnormal. The present invention can monitor the growth of Pleurotus ostreatus and determine the corresponding cultivation status, reduce a certain amount of manpower and corresponding costs, and improve the cultivation effect of Pleurotus ostreatus to a great extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 A flow chart of a method for monitoring cultivation of oyster mushrooms according to an embodiment of the present invention is shown;
[0066] Figure 2 A schematic diagram showing the cultivation of Oyster mushrooms by using a high wall and soil covering method according to an embodiment of the present invention;
[0067] Figure 3 A schematic diagram showing how to divide a virtual oyster mushroom planning area according to a method for monitoring oyster mushroom cultivation according to an embodiment of the present invention;
[0068] Figure 4 A schematic diagram showing how to determine a growing part in a method for monitoring cultivation of Oyster Mushroom according to an embodiment of the present invention;
[0069] Figure 5 A structural block diagram of a Pleurotus ostreatus cultivation monitoring platform according to another embodiment of the present invention is shown. DETAILED DESCRIPTION
[0070] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0071] Oyster mushroom is an edible fungus, rich in nutrients, and has the effects of dispelling wind and cold, relaxing muscles and activating blood circulation. It is used to treat low back and leg pain, numbness of hands and feet, and blocked tendons and blood circulation. In addition, it has certain benefits in preventing cancer, regulating women's menopausal syndrome, improving human metabolism, and strengthening physical fitness.
[0072] The inventors found in their research that in the existing cultivation of oyster mushrooms, the growth and development of oyster mushrooms are mostly monitored manually, and there is a lack of a digital monitoring platform to assist, which requires too much manpower and corresponding costs.
[0073] In order to solve the problems existing in the above-mentioned prior art, the inventor proposes the solution of the present invention. An embodiment of the present invention provides a method for monitoring the cultivation of Pleurotus ostreatus, which can be executed in a computing device.
[0074] Figure 1 The flowchart of a method for monitoring the cultivation of oyster mushrooms according to an embodiment of the present invention is shown. The method is suitable for being executed in a computing device, wherein the computing device can be understood as a terminal device such as a computer with a data processing function.
[0075] like Figure 1 As shown, the purpose of this embodiment is to implement a method for monitoring the cultivation of Pleurotus ostreatus, which starts at step S102. In step S102, the following steps are included:
[0076] Scan the scanning tags preset on the cultivation wall to obtain digital twin data, and build a virtual wall based on the digital twin data.
[0077] For example, in the prior art, Figure 2As shown, for the cultivation of oyster mushrooms, the method of "high wall covering soil" is often adopted, that is, in the greenhouse, mushroom bags containing oyster mushrooms that have experienced 1 to 2 tides are piled on the high wall, and the bag blocks are connected to the sterile nutrient soil to make them produce mushrooms repeatedly. This method of cultivating oyster mushrooms has the corresponding advantages of simple facilities, good heat preservation, low pollution rate, large mushroom production area, rapid and concentrated mushroom production, and long growth period. In this embodiment, the wall surface for cultivating oyster mushrooms is the corresponding cultivation wall surface. In the actual cultivation environment, since there may be multiple cultivation walls, the specifications of each cultivation wall surface and the laying form of oyster mushrooms may be different. Therefore, Different scanning tags are set according to the differences of each cultivation wall. Here, the scanning tag may include a QR code or a barcode, etc., and the scanning tag records the digital twin number of the cultivation wall. After scanning the scanning tag on a cultivation wall, a virtual wall corresponding to the cultivation wall can be constructed according to the obtained digital twin data. It should be noted that, in this embodiment, the device for scanning the scanning tag can be a robot controlled by a server for mobile operation, so as to avoid the corresponding pollution to the cultivation environment of the oyster mushroom due to manual scanning and reduce the corresponding oyster mushroom productivity.
[0078] In step S104, the following contents are included:
[0079] An initial wall image of the cultivation wall at a first moment is acquired, and each actual oyster mushroom base area located in the cultivation wall is determined based on the initial wall image.
[0080] For example, in this embodiment, since in the process of cultivating oyster mushrooms, the mushroom bags containing oyster mushrooms will first be piled on a high wall, in order to monitor the growth process of oyster mushrooms, the server will obtain the image of the cultivation wall after the mushroom bags are placed, that is, obtain the initial wall image of the cultivation wall at the first moment, and then the server will determine the placement area of each mushroom bag located in the cultivation wall based on the initial wall image, so as to realize the subsequent monitoring of the growth process of each mushroom bag.
[0081] It should be noted that, in this embodiment, the actual oyster mushroom base area can be understood as the area where the mushroom bags are located on the cultivation wall in a real environment.
[0082] Furthermore, the above-mentioned “obtaining an initial wall image of the cultivation wall at the first moment, and determining each actual oyster mushroom base area located in the cultivation wall based on the initial wall image” further includes the following steps:
[0083] Determine the image contour of the initial wall image, and obtain the endpoint pixel values corresponding to the image endpoints located on the image contour and at the endpoint positions;
[0084] Calculating the mean value of each endpoint pixel value to obtain a reference pixel value, and obtaining each image pixel value corresponding to each image pixel point located within the image contour;
[0085] Calculate the difference between each image pixel value and the reference pixel value to obtain pixel differences corresponding to each image pixel point, and determine each image pixel point corresponding to each pixel difference within a preset difference interval as each target pixel point;
[0086] The pixel areas composed of the target pixel points are determined respectively, and the pixel areas are determined respectively based on the preset oyster mushroom determination strategy to determine the actual oyster mushroom base areas located in the cultivation wall.
[0087] For example, in this embodiment, since the cultivation wall is generally composed of sterile nutrient soil, its entire body is generally brown-yellow (that is, the color of the soil), and the corresponding mushroom bags filled with oyster mushrooms stacked on the cultivation wall are generally white. Therefore, in this embodiment, the server can determine the area where each mushroom bag is located on the cultivation wall according to the large pixel value difference between the mushroom bag and the cultivation wall, that is, to zone the base area of each actual oyster mushroom.
[0088] The specific determination process may include the following:
[0089] First, after acquiring the initial wall image, the server will determine the image contour of the initial wall image. Generally, the image contour should be a rectangular shape. At the same time, the server will further acquire the pixel values corresponding to each image endpoint at the endpoint position on the image contour, that is, each endpoint pixel value. Because under normal circumstances, mushroom bags will not be stacked at each wall endpoint of the cultivation wall, therefore, the corresponding colors at each wall endpoint of the cultivation wall should be the overall color of the cultivation wall, that is, the above-mentioned brown-yellow color. For this purpose, the corresponding mean calculation can be performed based on each endpoint pixel point to obtain the reference pixel value of the overall color of the corresponding cultivation wall. At the same time, it is also necessary to obtain each image pixel value corresponding to each image pixel point located within the image contour;
[0090] Next, the server will perform difference calculations on each determined image pixel value and the reference pixel value one by one to obtain a pixel difference value corresponding to each image pixel point, and compare the pixel difference value with a preset difference range pre-stored in the server;
[0091] Finally, when the pixel difference is in the preset difference interval, it indicates that the difference between the corresponding image pixel value and the reference pixel value is large, that is, the color of the image pixel point corresponding to the image pixel value in the preset difference interval is too different from the color of the cultivation wall. At this time, it can be considered that the image pixel point may be a pixel point used to characterize the mushroom bag, so that the corresponding image pixel point can be determined as the target pixel point, and each pixel area composed of each target pixel point can be further determined;
[0092] It should be noted that since there may be stones or other objects on the cultivation wall that are somewhat different from the overall color of the cultivation wall, there is a certain amount of noise influence in the above-mentioned pixel area determination process. In order to avoid misidentifying these noise areas as real oyster mushroom base areas, the server will further determine the area of each pixel area based on the preset oyster mushroom determination strategy, thereby eliminating the noise influence and determining the real oyster mushroom base areas located in the cultivation wall.
[0093] Furthermore, the above-mentioned “determining the regions of each pixel area based on the preset oyster mushroom determination strategy to determine the actual oyster mushroom base areas located in the cultivation wall” further includes the following steps:
[0094] Recall the preset circular contour and the preset circular area respectively;
[0095] Determine each area contour corresponding to each pixel area, and compare each area contour with the preset circular contour to determine each contour contrast coefficient;
[0096] Aggregate the pixel regions corresponding to the contour contrast coefficients in the preset contour interval into a region screening group;
[0097] Determine the area of each region corresponding to each pixel region in the screening group, and compare the area of each region with the preset circular area to determine the comparison coefficient of each area;
[0098] The pixel areas respectively corresponding to the area contrast coefficients in the preset area interval are summarized into an area determination group, and the wall parts in the cultivation wall corresponding to the pixel areas in the area determination group are determined as the actual oyster mushroom base areas.
[0099] For example, in this embodiment, since the shape of the mushroom bags is mostly circular when cultivating oyster mushrooms, and the area of each mushroom bag is basically the same, a preset circular contour and a preset circular area corresponding to the mushroom bag can be set based on daily cultivation experience, and stored in the server. After the corresponding pixel areas are determined through the above-mentioned solution process, further area determination can be performed based on the two different comparison dimensions of the pre-stored preset circular contour and the preset circular area. The specific process may include the following:
[0100] First, after determining each pixel area, the server will determine the area contour of each pixel area, and compare each area contour with the preset circular contour, so as to determine each contour contrast coefficient according to the comparison result. The server will set a preset contour interval according to the preset circular contour, and the area contour corresponding to the contour contrast coefficient in the preset contour interval is not much different from the preset circular contour, that is, the shape of the area contour is circular or approximately circular. At this time, the server will aggregate these pixel areas with circular and approximately circular area contours into the area screening group, that is, aggregate the pixel areas corresponding to the contour contrast coefficients in the preset contour interval into the area screening group, thereby completing the area determination based on the preset circular contour in this comparison dimension;
[0101] Finally, the server will determine the area of each pixel area in the area screening group, and compare each area with the preset circular area, so as to determine each area comparison coefficient according to the comparison result. The server will set a preset area interval according to the preset circular area. The area corresponding to the area comparison coefficient in the preset area interval is not much different from the preset circular area. At this time, the server will summarize each pixel area corresponding to each area comparison coefficient in the preset area interval into the area determination group, and determine each wall part in the cultivation wall corresponding to each pixel area in the area determination group as each actual oyster mushroom base area.
[0102] The preset mushroom determination strategy in this embodiment can first screen all pixel areas from the dimension of the contour shape of each pixel area, and then further determine the base area of each real mushroom from the dimension of area. This embodiment can improve the accuracy of the server in determining the base area of the real mushroom and further improve work efficiency.
[0103] In step S106, the following contents are included:
[0104] In the virtual wall, virtual oyster mushroom base areas corresponding to the real oyster mushroom base areas are generated, and the virtual wall is regionally planned based on the virtual oyster mushroom base areas to obtain virtual oyster mushroom planning areas including the virtual oyster mushroom base areas.
[0105] For example, in this embodiment, after determining each real oyster mushroom base area located in the cultivation wall, the server will generate each virtual oyster mushroom base area corresponding to each real oyster mushroom base area in the virtual wall according to the position of each real oyster mushroom base area. At this time, the server will predict the area that the oyster mushrooms in each mushroom bag will cover during the subsequent growth process, and perform regional planning on the virtual wall according to each predicted coverage area, and obtain each virtual oyster mushroom planning area including each virtual oyster mushroom base area in the regional planning.
[0106] Furthermore, the above-mentioned “generating virtual mushroom base areas corresponding to the real mushroom base areas in the virtual wall” further includes the following steps:
[0107] A virtual coordinate system and a real coordinate system are respectively established with the virtual center point of the virtual wall as the origin and the real center point of the cultivation wall as the origin, and real pixel coordinate groups constituting the real oyster mushroom base areas are respectively obtained in the real coordinate system;
[0108] Determine a mapping relationship between the virtual coordinate system and the real coordinate system, and determine each virtual pixel coordinate group corresponding to each real pixel group in the virtual coordinate system based on the mapping relationship;
[0109] Based on each virtual pixel coordinate group, each virtual mushroom base area corresponding to each real mushroom base area is generated in the virtual wall.
[0110] For example, in this embodiment, after obtaining each virtual oyster mushroom planning area including each virtual oyster mushroom base area, the server will establish a virtual coordinate system with the virtual center point of the virtual wall as the origin, and establish a real coordinate system with the real center point of the cultivation wall as the origin, and obtain the coordinate groups that constitute each real oyster mushroom base area in the real coordinate system, that is, each real pixel coordinate group. Then the server will determine the mapping relationship between the virtual coordinate system and the real coordinate system, and determine the coordinate group of the area corresponding to each real pixel group in the virtual coordinate system according to the mapping relationship, that is, each virtual pixel coordinate group, and then generate each virtual oyster mushroom base area corresponding to each real oyster mushroom base area in the virtual wall according to each virtual pixel coordinate group.
[0111] Furthermore, the above-mentioned “performing regional planning on the virtual wall surface based on each virtual mushroom base area to obtain each virtual mushroom planning area including each virtual mushroom base area” further includes the following steps:
[0112] Obtaining the wall area of the cultivation wall, and performing difference calculation between the wall area and the preset reserved area to obtain the practical area;
[0113] Determine the number of bases of each actual oyster mushroom base area, and divide the practical area by the number of bases to determine the planned area;
[0114] Determine the base center points located in the base areas of the virtual oyster mushrooms, and create circular planning areas with the planning areas with the base center points as the centers;
[0115] Based on the relative position relationship of each circular planning area, it is determined whether the planning conditions are met, and if the planning conditions are met, each circular planning area is determined as each virtual oyster mushroom planning area.
[0116] For example, in this embodiment, since the growth of oyster mushrooms requires a certain amount of space, when mushroom bags are placed on the cultivation wall, a certain gap will be left between the mushroom bags, i.e., a preset reserved area. The server will first obtain the wall area of the cultivation wall, and perform a difference calculation between the wall area and the preset reserved area. The result of the difference calculation is the total area of the cultivation wall where mushroom bags can be placed, i.e., the practical area. The server will then determine the number of actual oyster mushroom base areas, i.e., the number of bases, and perform a division calculation between the practical area and the number of bases. The result of the division calculation is the size of the growth area of a oyster mushroom that can be planned, i.e., the planned area.
[0117] Due to the growth characteristics of Oyster mushrooms, the server sets the planning area of Oyster mushrooms to be circular. Therefore, the server will first determine the center point of each virtual Oyster mushroom base area, that is, each base center point, and then create each circular planning area with a planning area with each base center point as the center. The server will determine whether each circular planning area meets the planning conditions based on the relative position relationship of each circular planning area, and if the planning conditions are met, each circular planning area will be determined as each virtual Oyster mushroom planning area.
[0118] Furthermore, the above-mentioned “determining whether the planning conditions are met based on the relative position relationship of each circular planning area, and determining each circular planning area as each virtual oyster mushroom planning area if the planning conditions are met” also includes the following steps:
[0119] Determine whether there is an overlapping relationship between the circular planning areas based on the relative position relationship of the circular planning areas;
[0120] When there is no overlapping relationship between the circular planning areas, it is judged that the planning conditions are met, and the circular planning areas are determined as the virtual oyster mushroom planning areas;
[0121] When at least two of the circular planning areas overlap, it is determined that the planning condition is not met, and the planning areas of the circular planning areas that overlap are adjusted respectively so that there is no overlapping relationship between the circular planning areas.
[0122] For example, in this embodiment, since the mushroom bags on the cultivation wall are placed manually, there may be deviations in the placement positions, resulting in overlaps between the circular planning areas. Therefore, the server will determine whether there is an overlapping relationship between the circular planning areas based on the relative position relationship of the circular planning areas, and make corresponding adjustments based on the determination results.
[0123] When there is no overlapping relationship between the circular planning areas, the server will determine that each circular planning area meets the planning conditions and determine each circular planning area as a virtual mushroom planning area; when there are two or more circular planning areas in the circular planning areas that overlap, the server will determine that each circular planning area does not meet the planning conditions and adjust the planning areas of the circular planning areas that overlap respectively. The adjustment method may be to reduce the planning area of one of the circular planning areas that overlap, or to reduce the planning areas of all the circular planning areas that overlap, so that there is no overlapping relationship between the circular planning areas.
[0124] Figure 3 The virtual mushroom base areas and virtual mushroom planning areas located in the virtual wall are shown. The circle composed of solid lines is a schematic diagram of the virtual mushroom base area, and the circle composed of dotted lines is a schematic diagram of the virtual mushroom planning area. Figure 3 It can be clearly seen that there are gaps between the virtual oyster mushroom planning areas. This embodiment can determine whether there is an overlapping relationship between the circular planning areas according to the relative position relationship of the circular planning areas, and adjust the planning areas of the circular planning areas with overlapping relationships, so as to ensure that there is no overlapping relationship between the virtual oyster mushroom planning areas, thereby greatly reducing the situation of overlapping growth spaces in the subsequent growth and development of oyster mushrooms, and further ensuring the cultivation effect of oyster mushrooms.
[0125] In step S108, the following contents are included:
[0126] At a second moment after the first moment, a current wall image of the cultivation wall is acquired, and a real Pleurotus ostreatus growing area located in the cultivation wall is determined based on the current wall image.
[0127] For example, in this embodiment, after the oyster mushrooms in the mushroom bags have grown for a certain period of time, such as after reaching the corresponding monitoring time, that is, the second moment, the server will obtain the image of the cultivation wall at the second moment, that is, the current wall image, and determine the growth range of the oyster mushrooms in each mushroom bag in the current wall image, that is, each actual oyster mushroom growth area.
[0128] It should be noted that the specific process of the server determining the actual mushroom growth area in the current wall image can be, for example, referred to the "determining the actual mushroom base area according to the initial wall image" in the previous text, that is, the corresponding actual mushroom growth area can also be determined based on the comparison of pixel values. Since the schemes are relatively similar, this embodiment will not be described in detail here.
[0129] In step S110, the following contents are included:
[0130] A virtual mushroom growth area is generated in the virtual wall surface based on the actual mushroom growth area, and the growth parts corresponding to the virtual mushroom base areas are determined based on the coverage between the virtual mushroom growth area and the virtual mushroom planning areas.
[0131] For example, in this embodiment, after determining each real oyster mushroom growing area located in the cultivation wall, the server will generate a virtual oyster mushroom growing area corresponding to the real oyster mushroom growing area in the virtual wall. At this time, the server will determine the coverage between the virtual oyster mushroom growing area and each virtual oyster mushroom planning area, and determine the virtual oyster mushroom growing area that has an overlapping relationship with the virtual oyster mushroom planning area as the growth portion corresponding to the virtual oyster mushroom planning area.
[0132] Furthermore, the above-mentioned “determining the growth parts corresponding to the virtual oyster mushroom base areas respectively based on the coverage between the virtual oyster mushroom growth area and each virtual oyster mushroom planning area” also includes the following steps:
[0133] Determine the covered parts where the virtual oyster mushroom growing areas are respectively located in the virtual oyster mushroom planning areas, and determine the state attributes corresponding to the covered parts based on the intersection between the covered parts and the virtual oyster mushroom planning areas where they are located, wherein the state attributes include non-continuation attributes and continuation attributes;
[0134] When the state attribute of any of the covered parts is a non-continuation attribute, the covered part is determined as a growth part corresponding to the virtual oyster mushroom base area in the virtual oyster mushroom growth area where the covered part is located;
[0135] When the state attribute of any of the covering parts is a continuation attribute, a continuation part having a continuation relationship with the covering part is determined in other areas of the virtual wall except for each virtual mushroom planning area, and the covering part and the continuation part are determined as the growth parts corresponding to the virtual mushroom base area in the virtual mushroom growth area where the covering part is located.
[0136] For example, in this embodiment, the server determines the overlapping area between the virtual oyster mushroom growing area and the virtual oyster mushroom planning area, and determines the covered parts of the virtual oyster mushroom growing area in the virtual oyster mushroom planning area based on the overlapping area, and then determines the state attributes corresponding to each covered part according to the intersection between each covered part and the outline of the virtual oyster mushroom planning area where it is located, wherein the state attributes include non-continuation attributes and continuation attributes.
[0137] It should be noted that, when the oyster mushrooms corresponding to a certain real oyster mushroom base area do not grow obviously to spread out of the real oyster mushroom planning area corresponding to the real oyster mushroom base area, the state attribute of the corresponding covering part can be determined as a non-continuation attribute; similarly, when the oyster mushrooms corresponding to a certain real oyster mushroom base area grow and develop obviously to spread outside the real oyster mushroom planning area corresponding to the real oyster mushroom base area, the state attribute of the corresponding covering part can be determined as a continuation attribute.
[0138] Among them, when the state attribute of any covering part is a non-continuation attribute, the server will determine the covering part as the growth part corresponding to the virtual mushroom base area in the virtual mushroom growth area where it is located; and when the state attribute of any covering part is a continuation attribute, the server will determine a continuation part in the virtual wall that has a continuation relationship with the covering part, and the continuation part is located outside other virtual mushroom planning areas, and determine the covering part and the continuation part as the growth part corresponding to the virtual mushroom base area in the virtual mushroom growth area where the covering part is located.
[0139] This embodiment can determine the state attributes of the covered part and quickly determine the growth parts corresponding to the base areas of each virtual mushroom according to the state attributes, which is very efficient.
[0140] Furthermore, the above-mentioned “determining the state attributes corresponding to each covered part based on the intersection between each covered part and the virtual mushroom planning area where it is located” also includes the following steps:
[0141] Obtaining the intersection line between each covered part and the planning outline of the virtual oyster mushroom planning area where it is located, and determining the line segment length of the intersection line;
[0142] The length of the line segment is compared with a preset length, and if the comparison result shows that the length of the line segment is greater than or equal to the preset length, the intersection line is determined as a coverage approval line;
[0143] Determine the approved pixel points constituting the coverage approval line, and determine whether there are continued pixel points in the other areas that have a continuation relationship with at least part of the approved pixel points, wherein the continued pixel points all belong to the virtual Pleurotus ostreatus growth area;
[0144] When there are continuation pixels, the state attribute of the corresponding covered portion is determined as a continuation attribute.
[0145] For example, in this embodiment, after determining that the virtual oyster mushroom growing areas are located in each covered part in each virtual oyster mushroom planning area, the server will obtain the intersection line between each covered part and the planning outline of the virtual oyster mushroom planning area where it is located, and determine the line segment length of the intersection line, and then compare the line segment length with the preset length. The preset length can be based on the outline length of the virtual oyster mushroom planning area. For example, the ratio of the preset length to the outline length of the virtual oyster mushroom planning area can be 1:100.
[0146] When the comparison result is that the line segment length is greater than or equal to the preset length, the server will determine the intersection line as the coverage approval line, and then determine the pixel points that make up the coverage approval line, that is, the approved pixel points, and determine whether there are pixel points in other areas that have a continuity relationship with at least some of the approved pixel points, that is, the continuation pixel points. Each adjacent pixel point is located in the virtual mushroom growth area. At this time, if there are continuation pixel points, the server will determine the state attribute of the corresponding coverage part as a continuation attribute. If there are continuation pixel points, the server will determine the state attribute of the corresponding coverage part as a non-continuation attribute; when the comparison result is that the line segment length is less than the preset length, it indicates that the growth part outside the virtual mushroom planning area is small and can be ignored. At this time, the server determines the state attribute of the corresponding coverage part as a non-continuation attribute, which can save a certain amount of calculation and improve a certain amount of calculation efficiency.
[0147] In addition, it should be noted that the above scheme is established based on the scenario of "there is a corresponding intersection line between the covered part and the corresponding planning contour". When the scenario of "there is no corresponding intersection line between any covered part and the corresponding planning contour" occurs, since the oyster mushroom corresponding to the covered part has not grown to spread out of the actual oyster mushroom planning area corresponding to the oyster mushroom base area where the oyster mushroom is located, it can also be directly judged that the state attribute of the covered part is a non-continuation attribute.
[0148] Furthermore, the above-mentioned “when the state attribute of any of the covered parts is a continuation attribute, determining a continuation part having a continuation relationship with the covered part in other areas of the virtual wall surface except for each virtual mushroom planning area, and determining the covered part and the continuation part as the growth part corresponding to the virtual mushroom base area in the virtual mushroom growth area where the covered part is located” also includes the following steps:
[0149] When the state attribute of any of the covered parts is a continuation attribute, determining each continuation pixel point corresponding to the covered part, and determining the area formed by each continuation pixel point as the continuation part having a continuation relationship with the covered part;
[0150] Determining whether the extended portion is at least partially located in other virtual oyster mushroom planning areas other than the virtual oyster mushroom planning area where the covered portion is located;
[0151] When the continuation portion is not located in other virtual oyster mushroom planning areas, the continuation portion and the covering portion having a continuation relationship therewith are determined as the growth portion corresponding to the virtual oyster mushroom base area located in the virtual oyster mushroom growth area where the covering portion is located;
[0152] When at least part of the extended portion is located in other virtual oyster mushroom division areas, the virtual oyster mushroom growth area where the covered portion is located is determined as the first growth area, and the other virtual oyster mushroom division areas are determined as the second growth area;
[0153] Determine a region dividing line between the first growth region and the growth region, and divide the continuation portion based on the region dividing line to obtain a first sub-portion close to the first growth region and a second sub-portion far from the first growth region;
[0154] The first sub-portion and the covering portion having a continuous relationship therewith are determined as the growing portion corresponding to the virtual oyster mushroom base area in the virtual oyster mushroom growing area where the covering portion is located.
[0155] For example, in this embodiment, when the server determines that the state attribute of any covering part is a continuation attribute, it will further determine the continuation pixel points with the covering part, and determine the area composed of the continuation pixel points as a continuation part having a continuation relationship with the covering part, and then determine whether at least part of the continuation part is located in other virtual mushroom planning areas other than the virtual mushroom planning area where the covering part is located.
[0156] When the continuation part is not located in other virtual oyster mushroom planning areas, the server will determine the continuation part and the covering part with a continuation relationship as the growth part corresponding to the virtual oyster mushroom base area in the virtual oyster mushroom growth area where the covering part is located; when at least part of the continuation part is located in other virtual oyster mushroom division areas, the server will determine the virtual oyster mushroom growth area where the covering part is located as the first growth area, and determine other virtual oyster mushroom division areas as the second growth area. At this time, the server will connect the center point of the circle located in the first growth area with the center point of the circle located in the second growth area by a line segment, and generate a region division line perpendicular to the line segment, and then divide the continuation part according to the region division line. At this time, the continuation part close to the first growth area is the first sub-part, and the continuation part far from the first growth area is the second sub-part. Then the server will determine the first sub-part and the covering part with a continuation relationship as the growth part corresponding to the virtual oyster mushroom base area in the virtual oyster mushroom growth area where the covering part is located.
[0157] It should be noted that Figure 4 The irregular curve in the figure exemplarily shows the virtual mushroom growth area of the mushroom located at the upper left corner of the virtual wall. Part of the virtual mushroom growth area is located in other virtual mushroom planning areas. The server will generate an area division line between the virtual mushroom growth area and other virtual mushroom planning areas as shown by the straight line in the figure, and then determine the continuation part close to the virtual mushroom growth area and the covering part having a continuation relationship with it as the growth part corresponding to the virtual mushroom base area in the virtual mushroom growth area where the covering part is located.
[0158] In step S112, the following contents are included:
[0159] The growth parts are compared, and the cultivation states corresponding to the virtual oyster mushroom base areas are determined based on the comparison results, wherein the cultivation states include a normal state and an abnormal state.
[0160] For example, in this embodiment, after determining the growth part corresponding to each virtual oyster mushroom planning area, the server will compare the growth parts one by one, determine the growth differences between the growth parts, and determine the cultivation status of the growth parts corresponding to each virtual oyster mushroom base area according to the comparison results, and the cultivation status includes normal status and abnormal status.
[0161] Furthermore, the above-mentioned "comparing the growth parts and determining the cultivation states corresponding to the virtual basal areas of the Pleurotus ostreatus based on the comparison results" further includes the following steps:
[0162] Based on each generated part, the corresponding growth values are obtained, and the corresponding numerical sequence is obtained by sorting based on the numerical value, wherein the growth value at the first position is greater than the growth value at the last position;
[0163] Determine the growth value at the first position as the benchmark growth value, and compare the benchmark growth value with other growth values in the numerical sequence based on a reverse comparison method;
[0164] When the comparison result between the reference growth value and any other growth value is that the difference is greater than the preset growth threshold, the cultivation state of the generated part corresponding to the other growth value is determined to be an abnormal state, and the comparison process of the remaining other growth values is performed;
[0165] When the comparison result between the benchmark growth value and any other growth value is that the difference is less than or equal to the preset growth threshold, the cultivation status of each growth part corresponding to the other growth value and the remaining other growth values is determined to be a normal state, and the comparison process of the remaining other growth values is stopped.
[0166] For example, in this embodiment, the server will obtain the specific scores of the growth of Pleurotus ostreatus scored by the relevant personnel, that is, the growth values, and sort the growth values according to the numerical values, wherein the growth value at the first position is greater than the growth value at the last position. At this time, the server will determine the growth value at the first position as the benchmark growth value, and compare the benchmark growth value with other growth values in the numerical sequence in a reverse comparison manner.
[0167] The server will be set with a preset growth threshold. When the comparison result between the baseline growth value and any other growth value is that the difference is greater than the preset growth threshold, it means that the difference between the other growth value and the baseline growth value is too large, so the server will determine the cultivation state of the generated part corresponding to the other growth value as an abnormal state, and continue to execute the comparison process of the remaining other growth values; when the comparison result between the baseline growth value and any other growth value is that the difference is less than or equal to the preset growth threshold, it means that the difference between the other growth value and the baseline growth value is too small. Since the remaining other growth values are all smaller than the other growth value, the server will determine the cultivation state of each growth part corresponding to the other growth value and the remaining other growth values as a normal state, and stop the comparison process of the remaining other growth values, which can save a certain amount of calculation and improve the corresponding work efficiency.
[0168] According to the solution of the present invention, first, the server obtains digital twin data by scanning the scanning tags on the cultivation wall, so as to construct a virtual wall; then, the initial wall image of the cultivation wall at the first moment is obtained to determine the actual oyster mushroom base areas in the cultivation wall; then, virtual oyster mushroom base areas corresponding to the actual oyster mushroom base areas are generated in the virtual wall, and the virtual wall is regionally planned based on the virtual oyster mushroom base areas to obtain the virtual oyster mushroom planning areas; at the second moment after the first moment, the server obtains the current wall image of the cultivation wall, and determines the actual oyster mushroom growth area based on the current wall image; then, a virtual oyster mushroom growth area is generated in the virtual wall based on the actual oyster mushroom growth area, and the growth parts corresponding to the virtual oyster mushroom base areas are determined based on the coverage between the virtual oyster mushroom growth area and the virtual oyster mushroom planning areas; then, the growth parts are compared, and based on the comparison result, it is determined whether the cultivation state of each virtual oyster mushroom base area is normal or abnormal. The present invention can monitor the growth of Pleurotus ostreatus and determine the corresponding cultivation status, reduce a certain amount of manpower and corresponding costs, and improve the cultivation effect of Pleurotus ostreatus to a great extent.
[0169] Another embodiment of the present invention provides a monitoring platform for the cultivation of oyster mushrooms. Figure 3 For its corresponding structure diagram, the platform includes:
[0170] A scanning module is configured to scan a scanning tag preset on the cultivation wall, obtain digital twin data, and construct a virtual wall based on the digital twin data;
[0171] A first acquisition module is configured to acquire an initial wall image of the cultivation wall at a first moment, and determine the base areas of each actual oyster mushroom located in the cultivation wall based on the initial wall image;
[0172] A planning module is configured to generate virtual mushroom base areas corresponding to the real mushroom base areas in the virtual wall, and perform regional planning on the virtual wall based on the virtual mushroom base areas to obtain virtual mushroom planning areas including the virtual mushroom base areas;
[0173] A second acquisition module is configured to acquire a current wall image of the cultivation wall at a second moment after the first moment, and determine a real Pleurotus ostreatus growth area located in the cultivation wall based on the current wall image;
[0174] A generating module is configured to generate a virtual oyster mushroom growing area in the virtual wall surface based on the actual oyster mushroom growing area, and determine the growth parts corresponding to the virtual oyster mushroom base areas respectively based on the coverage between the virtual oyster mushroom growing area and the virtual oyster mushroom planning areas;
[0175] The state determination module is configured to compare the growth parts and determine the cultivation states corresponding to the virtual oyster mushroom base areas based on the comparison results, wherein the cultivation states include normal states and abnormal states.
[0176] In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the examples of the present invention. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to implement the content of the present invention described herein, and the above description of specific languages is for the purpose of disclosing the preferred embodiment of the present invention.
[0177] In the description provided herein, a large number of 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.
[0178] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0179] Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in the devices described in the embodiment, or alternatively may be located in one or more devices different from the devices in the examples. The modules in the foregoing examples may be combined into one module or may be divided into multiple submodules.
[0180] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged 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 further may be divided into a plurality of submodules or subunits or subcomponents. All features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device so disclosed 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.
[0181] In addition, those skilled in the art will appreciate that, although some embodiments described 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 claims below, any one of the claimed embodiments may be used in any combination.
[0182] In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiments are examples of devices for implementing the functions performed by the elements for the purpose of implementing the invention.
[0183] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.
[0184] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative and not restrictive with respect to the scope of the present invention, and the scope of the present invention is defined by the appended claims.
Claims
1. A method for monitoring the cultivation of Pleurotus ostreatus, characterized in that: The following steps are involved: Scanning a scanning tag preset on the cultivation wall to obtain digital twin data, and constructing a virtual wall based on the digital twin data; Acquire an initial wall image of the cultivation wall at a first moment, and determine each actual oyster mushroom base area located in the cultivation wall based on the initial wall image; Generate virtual oyster mushroom base areas corresponding to the real oyster mushroom base areas in the virtual wall, and perform area planning on the virtual wall based on the virtual oyster mushroom base areas to obtain virtual oyster mushroom planning areas including the virtual oyster mushroom base areas; At a second moment after the first moment, a current wall image of the cultivation wall is acquired, and a real Pleurotus ostreatus growth area located in the cultivation wall is determined based on the current wall image; Generate a virtual mushroom growth area in the virtual wall surface based on the actual mushroom growth area, and determine the growth parts corresponding to the virtual mushroom base areas based on the coverage between the virtual mushroom growth area and the virtual mushroom planning areas; The growth parts are compared, and the cultivation states corresponding to the virtual oyster mushroom base areas are determined based on the comparison results, wherein the cultivation states include a normal state and an abnormal state.
2. The method for monitoring cultivation of Pleurotus ostreatus according to claim 1, characterized in that: The following steps are involved: Acquiring an initial wall image of the cultivation wall at a first moment, and determining each actual oyster mushroom base area located in the cultivation wall based on the initial wall image, comprising: Determine the image contour of the initial wall image, and obtain the endpoint pixel values corresponding to the image endpoints located on the image contour and at the endpoint positions; Calculating the mean value of each endpoint pixel value to obtain a reference pixel value, and obtaining each image pixel value corresponding to each image pixel point located within the image contour; Calculate the difference between each image pixel value and the reference pixel value to obtain pixel differences corresponding to each image pixel point, and determine each image pixel point corresponding to each pixel difference within a preset difference interval as each target pixel point; The pixel areas composed of the target pixel points are determined respectively, and the pixel areas are determined based on the preset oyster mushroom determination strategy to determine the actual oyster mushroom base areas located in the cultivation wall.
3. The method for monitoring the cultivation of Pleurotus ostreatus according to claim 2, characterized in that: Based on the preset oyster mushroom determination strategy, each pixel area is determined respectively to determine each actual oyster mushroom base area located in the cultivation wall, including: Recall the preset circular contour and the preset circular area respectively; Determine each area contour corresponding to each pixel area, and compare each area contour with the preset circular contour to determine each contour contrast coefficient; Aggregate the pixel regions corresponding to the contour contrast coefficients in the preset contour interval into a region screening group; Determine the area of each region corresponding to each pixel region in the screening group, and compare the area of each region with the preset circular area to determine the comparison coefficient of each area; The pixel areas respectively corresponding to the area contrast coefficients in the preset area interval are summarized into an area determination group, and the wall parts in the cultivation wall corresponding to the pixel areas in the area determination group are determined as the actual oyster mushroom base areas.
4. The method for monitoring cultivation of Pleurotus ostreatus according to claim 1, characterized in that: The virtual wall is regionally planned based on each virtual mushroom base area, and each virtual mushroom planning area including each virtual mushroom base area is obtained, including: Obtaining the wall area of the cultivation wall, and performing difference calculation between the wall area and the preset reserved area to obtain the practical area; Determine the number of bases of each actual oyster mushroom base area, and divide the practical area by the number of bases to determine the planned area; Determine the base center points located in the base areas of the virtual oyster mushrooms, and create circular planning areas with the planning areas with the base center points as the centers; Based on the relative position relationship of each circular planning area, it is determined whether the planning conditions are met, and if the planning conditions are met, each circular planning area is determined as each virtual oyster mushroom planning area.
5. The method for monitoring cultivation of Pleurotus ostreatus according to claim 4, characterized in that: Based on the relative position relationship of each circular planning area, it is determined whether the planning conditions are met, and if the planning conditions are met, each circular planning area is determined as each virtual oyster mushroom planning area, including: Determine whether there is an overlapping relationship between the circular planning areas based on the relative position relationship of the circular planning areas; When there is no overlapping relationship between the circular planning areas, it is determined that the planning conditions are met, and the circular planning areas are determined as virtual mushroom planning areas; When at least two of the circular planning areas overlap, it is determined that the planning condition is not met, and the planning areas of the circular planning areas that overlap are adjusted respectively so that there is no overlapping relationship between the circular planning areas.
6. The method for monitoring cultivation of Pleurotus ostreatus according to claim 1, characterized in that: Based on the coverage between the virtual oyster mushroom growing area and each virtual oyster mushroom planning area, determining each growth part corresponding to each virtual oyster mushroom base area, including: Determine the covered parts where the virtual oyster mushroom growing areas are respectively located in the virtual oyster mushroom planning areas, and determine the state attributes corresponding to the covered parts based on the intersection between the covered parts and the virtual oyster mushroom planning areas where they are located, wherein the state attributes include non-continuation attributes and continuation attributes; When the state attribute of any of the covered parts is a non-continuation attribute, the covered part is determined as a growth part corresponding to the virtual oyster mushroom base area in the virtual oyster mushroom growth area where the covered part is located; When the state attribute of any of the covering parts is a continuation attribute, a continuation part having a continuation relationship with the covering part is determined in other areas of the virtual wall except for each virtual mushroom planning area, and the covering part and the continuation part are determined as the growth parts corresponding to the virtual mushroom base area in the virtual mushroom growth area where the covering part is located.
7. The method for monitoring cultivation of Pleurotus ostreatus according to claim 6, characterized in that: Based on the intersection between each covered part and the virtual mushroom planning area where it is located, the state attributes corresponding to each covered part are determined, including: Obtaining the intersection line between each covered part and the planning outline of the virtual mushroom planning area where it is located, and determining the line segment length of the intersection line; The length of the line segment is compared with a preset length, and if the comparison result shows that the length of the line segment is greater than or equal to the preset length, the intersection line is determined as a coverage approval line; Determine the approved pixel points constituting the coverage approval line, and determine whether there are continued pixel points in the other areas that have a continuation relationship with at least part of the approved pixel points, wherein the continued pixel points all belong to the virtual Pleurotus ostreatus growth area; When there are continuation pixels, the state attribute of the corresponding covered portion is determined as a continuation attribute.
8. The method for monitoring cultivation of Pleurotus ostreatus according to claim 7, characterized in that: When the state attribute of any of the covered parts is a continuation attribute, determining a continuation part having a continuation relationship with the covered part in other areas of the virtual wall surface except for each virtual mushroom planning area, and determining the covered part and the continuation part as a growth part corresponding to the virtual mushroom base area in the virtual mushroom growth area where the covered part is located, including: When the state attribute of any of the covered parts is a continuation attribute, determining each continuation pixel point corresponding to the covered part, and determining the area formed by each continuation pixel point as the continuation part having a continuation relationship with the covered part; Determining whether the extended portion is at least partially located in other virtual oyster mushroom planning areas other than the virtual oyster mushroom planning area where the covered portion is located; When the continuation portion is not located in other virtual oyster mushroom planning areas, the continuation portion and the covering portion having a continuation relationship therewith are determined as the growth portion corresponding to the virtual oyster mushroom base area located in the virtual oyster mushroom growth area where the covering portion is located; When at least part of the extended portion is located in other virtual oyster mushroom division areas, the virtual oyster mushroom growth area where the covered portion is located is determined as the first growth area, and the other virtual oyster mushroom division areas are determined as the second growth area; Determine a region dividing line between the first growth region and the growth region, and divide the continuation portion based on the region dividing line to obtain a first sub-portion close to the first growth region and a second sub-portion far from the first growth region; The first sub-portion and the covering portion having a continuous relationship therewith are determined as the growing portion corresponding to the virtual oyster mushroom base area in the virtual oyster mushroom growing area where the covering portion is located.
9. The method for monitoring cultivation of Pleurotus ostreatus according to claim 1, characterized in that: The growth parts are compared, and the cultivation states corresponding to the virtual basal areas of the oyster mushrooms are determined based on the comparison results, including: Based on each generated part, the corresponding growth values are obtained, and the corresponding numerical sequence is obtained by sorting based on the numerical value, wherein the growth value at the first position is greater than the growth value at the last position; Determine the growth value at the first position as the benchmark growth value, and compare the benchmark growth value with other growth values in the numerical sequence based on a reverse comparison method; When the comparison result between the reference growth value and any other growth value is that the difference is greater than the preset growth threshold, the cultivation state of the generated part corresponding to the other growth value is determined to be an abnormal state, and the comparison process of the remaining other growth values is performed; When the comparison result between the benchmark growth value and any other growth value is that the difference is less than or equal to the preset growth threshold, the cultivation status of each growth part corresponding to the other growth value and the remaining other growth values is determined to be a normal state, and the comparison process of the remaining other growth values is stopped.
10. A monitoring platform for the cultivation of oyster mushrooms, characterized in that: include: A scanning module is configured to scan a scanning tag preset on the cultivation wall, obtain digital twin data, and construct a virtual wall based on the digital twin data; A first acquisition module is configured to acquire an initial wall image of the cultivation wall at a first moment, and determine the base areas of each actual oyster mushroom located in the cultivation wall based on the initial wall image; A planning module is configured to generate virtual mushroom base areas corresponding to the real mushroom base areas in the virtual wall, and perform regional planning on the virtual wall based on the virtual mushroom base areas to obtain virtual mushroom planning areas including the virtual mushroom base areas; A second acquisition module is configured to acquire a current wall image of the cultivation wall at a second moment after the first moment, and determine a real Pleurotus ostreatus growth area located in the cultivation wall based on the current wall image; A generating module is configured to generate a virtual oyster mushroom growing area in the virtual wall surface based on the actual oyster mushroom growing area, and determine the growth parts corresponding to the virtual oyster mushroom base areas respectively based on the coverage between the virtual oyster mushroom growing area and the virtual oyster mushroom planning areas; The state determination module is configured to compare the growth parts and determine the cultivation states corresponding to the virtual oyster mushroom base areas based on the comparison results, wherein the cultivation states include normal states and abnormal states.
