Pleurotus geesteranus cultivation data processing method and system
By building a cultivation twin space, using fixed equipment and dynamic equipment to collect images and modify and replace them, automated monitoring of mushrooms is achieved, solving the problem of inefficient monitoring in the existing technology and improving monitoring efficiency.
Patent Information
- Application Number
- CN202410601940.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-05-15
AI Technical Summary
In the prior art, a large amount of manpower is required to monitor during the cultivation of mushrooms, resulting in low monitoring efficiency.
By building a cultivation twin space, the top side image and bottom front image are collected using fixed equipment and dynamic equipment, image correction and replacement are performed, calibration images are generated, and the growth of mushrooms is automatically monitored.
Automatic monitoring of mushrooms is realized, monitoring efficiency is improved, manual inspection time is reduced, and mushroom growth information can be quickly obtained.
Smart Images

Figure CN118537302B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to data processing technology, and in particular to a method and system for processing Pleurotus geesteranus cultivation data. Background Art
[0002] Oyster mushroom is a kind of oyster mushroom. It has been cultivated and planted in large quantities due to its pleasing appearance, fresh and crisp taste, delicious taste and rich nutritional value. At the same time, its growth environment is affected by many factors, such as humidity, temperature, etc. Therefore, it needs to be inspected many times during its cultivation period so that mushrooms with inferior growth can be dealt with in time to ensure high yield of mushrooms.
[0003] Currently, manual monitoring is usually performed during mushroom cultivation. However, due to the large number of mushrooms and the shelf cultivation method, personnel may need to check the cultivation conditions of multiple shelves one by one during the mushroom inspection process, which may require a lot of manpower and reduce monitoring efficiency.
[0004] Therefore, how to automatically monitor cultivated mushrooms and improve monitoring efficiency has become an urgent problem to be solved. Summary of the invention
[0005] The embodiment of the present invention provides a method and system for processing Pleurotus geesteranus cultivation data, which can automatically monitor cultivated mushrooms and improve monitoring efficiency.
[0006] A first aspect of an embodiment of the present invention provides a method for processing Pleurotus geesteranus cultivation data, comprising:
[0007] Constructing a cultivation twin space corresponding to the cultivation area according to the configuration information of the management end, wherein the cultivation twin space includes a plurality of virtual cultivation racks corresponding to the actual cultivation racks;
[0008] Retrieve the monitoring and acquisition strategy to obtain the top-side image of the corresponding actual cultivation rack collected by the fixed device, and the bottom-front image of the corresponding actual cultivation rack collected by the dynamic device;
[0009] Based on the bottom front image corresponding to each of the actual cultivation racks, the top side image is corrected and replaced to obtain a calibration image;
[0010] The Pleurotus geesteranus cultivation data of each virtual cultivation rack is determined according to the calibration image, and the corresponding virtual cultivation rack is displayed and updated based on the Pleurotus geesteranus cultivation data to obtain the cultivation monitoring data and send it to the management end.
[0011] Optionally, in a possible implementation of the first aspect, calling a monitoring acquisition strategy to obtain a top-side image of the corresponding actual cultivation rack collected by a fixed device, and a bottom front image of the corresponding actual cultivation rack collected by a dynamic device, includes:
[0012] Obtaining a fixing device corresponding to a cultivation side of each actual cultivation rack, wherein the cultivation side includes a first side and a second side;
[0013] Control the fixing device to collect images of the corresponding cultivation side according to the shooting posture, and obtain a top-side image corresponding to the corresponding cultivation side in the actual cultivation rack, wherein the shooting posture includes a top-side shooting angle and a top-side shooting direction;
[0014] Determine a first integrated number of the top-side image according to the rack number of the actual cultivation rack and the preset number of the cultivation side;
[0015] Acquire a collection point set corresponding to each cultivation side in each actual cultivation rack, control the dynamic device to perform image acquisition according to the collection point set, and obtain a plurality of bottom front images corresponding to the corresponding cultivation side in each actual cultivation rack;
[0016] Determine a second integrated number corresponding to the bottom front image based on the rack position number of the actual cultivation rack and the preset number of the cultivation side;
[0017] According to the first integrated number and the second integrated number, the top side image and the bottom front image corresponding to the corresponding cultivation side in each actual cultivation rack are determined.
[0018] Optionally, in a possible implementation of the first aspect, a collection point set corresponding to each cultivation side in each actual cultivation rack is obtained, and the dynamic device is controlled to perform image acquisition according to the collection point set to obtain a plurality of bottom front images corresponding to the corresponding cultivation side in each actual cultivation rack, including:
[0019] Acquire the interval distance between the adjacent actual cultivation racks, and obtain the shooting distance of the dynamic device based on the difference between the interval distance and the offset distance;
[0020] Determine a shooting span of the dynamic device based on the shooting distance, wherein the shooting span includes a vertical span and a horizontal span;
[0021] Retrieving a virtual top-view image corresponding to the cultivation area, wherein the virtual top-view image includes a plurality of rectangular virtual frames corresponding to actual cultivation frames, and the rectangular virtual frames include side lines corresponding to the cultivation sides;
[0022] Determine a plurality of collection points corresponding to each of the side lines in the virtual top view image according to the lateral span, and obtain the collection points corresponding to the side lines as a collection point set corresponding to the corresponding cultivation side;
[0023] The dynamic device is controlled to collect images according to the geographical location information corresponding to the collection point set and the moving direction corresponding to the cultivation side, so as to obtain a plurality of bottom front images corresponding to the cultivation side in each actual cultivation rack.
[0024] Optionally, in a possible implementation of the first aspect, determining a plurality of collection points corresponding to each of the side lines in the virtual top view image according to the lateral span, and obtaining the collection points corresponding to the side lines as a collection point set corresponding to the corresponding cultivation side, comprises:
[0025] Determine the adjacent side lines of the rectangular virtual frame in the virtual top view image as a target group, and respectively obtain target lines whose side lines in the target group are another side line;
[0026] Taking the target line as a reference, based on the shooting direction of the cultivation side corresponding to the side line and the offset distance, a shooting line corresponding to the side line is generated, wherein the shooting directions of adjacent cultivation sides are opposite;
[0027] Obtaining half of the lateral span as an initial span, and determining an endpoint of the shooting line located at a first end in the moving direction as a reference point;
[0028] Based on the moving direction, a point position on the shooting line at an initial span from the reference point is obtained as a collection point;
[0029] Based on the moving direction, the points at the lateral span from the collection point are sequentially acquired as the next collection point, and the acquisition of the collection points is stopped when there is no next collection point on the shooting line, and the collection points corresponding to the shooting line are acquired as the collection point set corresponding to the cultivation side of the corresponding side line.
[0030] Optionally, in a possible implementation of the first aspect, the top-side image is corrected and replaced based on the bottom front image corresponding to each of the actual cultivation racks to obtain a calibration image, including:
[0031] Arranging the bottom front image corresponding to each of the acquisition points in the acquisition point set according to the moving direction to obtain an image stitching sequence;
[0032] Performing horizontal stitching processing on each of the bottom front images according to the image stitching sequence to obtain a stitched image;
[0033] Acquire detailed replacement layer numbers corresponding to a plurality of first mushroom bag contours in the stitched image, and determine a layer to be replaced corresponding to the detailed replacement layer number in the top-side image;
[0034] Performing coordinate processing on the top-side image to obtain contour coordinates corresponding to contours of a plurality of second mushroom bags in the layer to be replaced;
[0035] Obtaining the maximum Y-axis coordinate value in the contour coordinates, and generating a segmentation line corresponding to the Y-axis coordinate value;
[0036] Segmenting the top-side image based on the segmentation line to obtain a segmented image and an image to be replaced corresponding to the layer to be replaced;
[0037] The segmented image and the stitched image are vertically stitched to obtain a calibrated image.
[0038] Optionally, in a possible implementation manner of the first aspect, obtaining detailed numbers of replacement layers corresponding to multiple first mushroom bag outlines in the stitched image, and determining a layer to be replaced corresponding to the detailed number of replacement layers in the top view image includes:
[0039] Extracting a plurality of first mushroom bag contours in the stitched image, and obtaining first mushroom bag contours having the same Y-axis coordinate value as a first same-layer set;
[0040] Counting the number of the first peer sets to obtain a detailed number of replacement layers;
[0041] Extracting multiple second mushroom bag contours in the top-down image, and obtaining second bag contours having the same Y-axis coordinate value as a second same-layer set;
[0042] The second same layer set is sequentially acquired as the layers to be replaced in the reverse overhead shooting direction until the number of the layers to be replaced is equal to the number of detailed replacement layers, and then the acquisition of the layers to be replaced is stopped.
[0043] Optionally, in a possible implementation of the first aspect, determining the Pleurotus geesteranus cultivation data of each virtual cultivation rack according to the calibration image, displaying and updating the corresponding virtual cultivation rack based on the Pleurotus geesteranus cultivation data, and obtaining the cultivation monitoring data and sending it to the management end, comprises:
[0044] Determine the first same-layer set and the second same-layer set in the calibration image as the cultivation comparison set, number each of the mushroom bag contours in the cultivation comparison set according to the moving direction, and obtain a first number corresponding to each of the mushroom bag contours;
[0045] Wherein, the mushroom bag outline in the cultivation comparison set includes the first mushroom bag outline or the second mushroom bag outline;
[0046] Determining the number of cultivation layers of each of the cultivation comparison sets in sequence according to the reverse overhead shooting direction, and determining the virtual layer corresponding to each of the cultivation comparison sets in the virtual cultivation rack based on the number of cultivation layers;
[0047] Counting the number of mushroom bags in the cultivation comparison set, calling the mushroom bag model corresponding to the number of mushroom bags to arrange and update the corresponding virtual layer;
[0048] Numbering the multiple mushroom bag models in the virtual layer based on the moving direction to obtain a second number corresponding to each of the mushroom bag models;
[0049] Determine the mushroom bag model corresponding to each mushroom bag outline according to the first number and the second number;
[0050] Retrieve the density display strategy to obtain the density of the Pleurotus geesteranus of each mushroom bag outline in the cultivation comparison set, and perform density display and update on the corresponding mushroom bag model according to the Pleurotus geesteranus density to obtain the Pleurotus geesteranus cultivation data;
[0051] Based on the Pleurotus geesteranus cultivation data, the corresponding virtual cultivation rack is displayed and updated, and the obtained cultivation monitoring data is sent to the management end.
[0052] Optionally, in a possible implementation of the first aspect, a density display strategy is called to obtain the density of the Pleurotus geesteranus of each mushroom bag outline in the cultivation comparison set, and density display and update of the corresponding mushroom bag model are performed according to the Pleurotus geesteranus density to obtain the Pleurotus geesteranus cultivation data, including:
[0053] The total pixel values of the contours of each mushroom bag in each of the cultivation comparison sets are averaged to obtain the reference pixel values corresponding to the contours of each mushroom bag in each of the cultivation comparison sets;
[0054] The mushroom bag contours whose total pixel value is less than the reference pixel value are obtained as an abnormal mushroom bag group, and the mushroom bag contours whose total pixel value is greater than the reference pixel value are obtained as a normal mushroom bag group;
[0055] Determine the abnormal density of each of the outlines of the bacteria bags in the abnormal bacteria bag group according to the abnormal density table, and determine the normal density of each of the outlines of the bacteria bags in the normal bacteria bag group based on the normal density table;
[0056] According to the normal density or abnormal density corresponding to each mushroom bag outline, the density of the corresponding mushroom bag model is updated to obtain the Pleurotus geesteranus cultivation data, wherein the Pleurotus geesteranus density includes the normal density or the abnormal density;
[0057] The abnormal level preset for the abnormal density is determined, and the abnormal pixel value corresponding to the abnormal level is retrieved to update the corresponding mushroom bag model.
[0058] Optionally, in a possible implementation of the first aspect, determining the abnormal density of each of the outlines of the bacteria bags in the abnormal bacteria bag group according to an abnormal density table, and determining the normal density of each of the outlines of the bacteria bags in the normal bacteria bag group based on a normal density table, comprises:
[0059] According to the difference between the reference pixel value and the total pixel value, determining the abnormal difference corresponding to the contour of each mushroom bag in the abnormal mushroom bag group;
[0060] Retrieving an abnormal density table, traversing a plurality of abnormal difference intervals in the abnormal density table based on the abnormal difference, and determining that a preset density corresponding to the abnormal difference interval where the abnormal difference is located is the abnormal density of the corresponding mushroom bag contour;
[0061] The abnormal density table includes a plurality of abnormal difference intervals and a preset density corresponding to each abnormal difference interval;
[0062] Determine the normal difference corresponding to the contour of each mushroom bag in the normal mushroom bag group according to the difference between the total pixel value and the reference pixel value;
[0063] Retrieving a normal density table, traversing a plurality of normal difference intervals in the normal density table based on the normal difference value, and determining that a preset density corresponding to the normal difference interval where the normal difference value is located is the normal density of the corresponding mushroom bag contour;
[0064] The normal density table includes a plurality of normal difference intervals and a preset density corresponding to each of the normal difference intervals.
[0065] A second aspect of the embodiment of the present invention provides a Pleurotus geesteranus cultivation data processing system, comprising:
[0066] A construction module, used to construct a cultivation twin space corresponding to the cultivation area according to the configuration information of the management end, wherein the cultivation twin space includes a plurality of virtual cultivation racks corresponding to the actual cultivation racks;
[0067] A calling module, used for calling the monitoring and acquisition strategy to obtain the top-side image of the corresponding actual cultivation rack collected by the fixed device, and the bottom front image of the corresponding actual cultivation rack collected by the dynamic device;
[0068] A processing module, used for correcting and replacing the top-side image based on the bottom front image corresponding to each actual cultivation rack to obtain a calibration image;
[0069] An updating module is used to determine the Pleurotus geesteranus cultivation data of each virtual cultivation rack according to the calibration image, display and update the corresponding virtual cultivation rack based on the Pleurotus geesteranus cultivation data, and obtain cultivation monitoring data and send it to the management end.
[0070] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a memory, a processor and a computer program, wherein the computer program is stored in the memory, and the processor runs the computer program to execute the first aspect of the present invention and various methods that may be involved in the first aspect.
[0071] According to a fourth aspect of an embodiment of the present invention, a readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the first aspect of the present invention and various methods that may be involved in the first aspect.
[0072] The beneficial effects of the present invention are as follows:
[0073] 1. The present invention can automatically monitor the cultivated mushrooms and improve the monitoring efficiency of Pleurotus geesteranus. The present invention can construct a cultivation twin space, so that the acquired Pleurotus geesteranus data can be updated and displayed later, so as to facilitate the intuitive viewing of personnel, so as to quickly obtain the growth information of Pleurotus geesteranus. The present invention can correct and replace the top-side image collected by the fixed device with the bottom front image collected by the mobile device, so as to obtain a calibrated image that clearly displays the growth information of Pleurotus geesteranus, thereby facilitating the image recognition processing of the growth density of Pleurotus geesteranus, and then obtaining accurate Pleurotus geesteranus growth data, so as to realize the automatic monitoring of Pleurotus geesteranus. The present invention can update and display the virtual cultivation rack according to the Pleurotus geesteranus cultivation data, so as to facilitate the intuitive viewing of the growth information of Pleurotus geesteranus by personnel, thereby improving the monitoring efficiency.
[0074] 2. The present invention can collect the top-side image of the cultivation rack through a fixed device, and collect the bottom front image of the cultivation rack through a mobile device, so as to correct and replace the unclear image in the top-side image with the bottom front image, so as to facilitate image recognition and processing, obtain accurate growth data of Pleurotus geesteranus, realize automatic monitoring of mushrooms, and improve monitoring efficiency. Among them, the present invention can control the fixed device to collect images according to the shooting posture, realize automatic monitoring of Pleurotus geesteranus, and the present invention can also obtain the collection point of the mobile device, so that the mobile device collects images of the bottom of the cultivation rack according to the position of the collection point, so as to replace the unclear bottom image in the top-side image, facilitate the acquisition of accurate growth data of Pleurotus geesteranus, realize automatic monitoring of the growth of Pleurotus geesteranus, reduce manual inspection time, and improve monitoring efficiency.
[0075] 3. The present invention can determine the growth density of the mushroom bag according to the pixel value in the mushroom bag outline, thereby determining the growth information of the Pleurotus geesteranus at the corresponding position, so that personnel can promptly handle the mushroom bag with abnormal growth. The present invention can update the pixel value of the corresponding mushroom model, so that personnel can intuitively understand the growth of Pleurotus geesteranus corresponding to different mushroom bags by viewing the cultivation monitoring data, thereby realizing remote monitoring of Pleurotus geesteranus by personnel, and at the same time, saving manual inspection time and improving the monitoring efficiency of Pleurotus geesteranus. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] Figure 1 A schematic diagram of a process flow of a method for processing Pleurotus geesteranus cultivation data provided by an embodiment of the present invention;
[0077] Figure 2 A schematic diagram of a cultivation area provided by an embodiment of the present invention;
[0078] Figure 3 A schematic diagram of a top view image provided by an embodiment of the present invention;
[0079] Figure 4 The present invention provides a structural schematic diagram of a Pleurotus geesteranus cultivation data processing system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0080] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0081] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0082] like Figure 1 As shown, it is a flow chart of a method for processing Pleurotus geesteranus cultivation data provided by an embodiment of the present invention, including steps S1 to S4, which are specifically as follows:
[0083] S1. Construct a cultivation twin space corresponding to the cultivation area according to the configuration information of the management end, wherein the cultivation twin space includes a plurality of virtual cultivation racks corresponding to the actual cultivation racks.
[0084] It should be noted that the cultivation twin space is constructed based on the actual environment of the cultivation area. The cultivation twin space has virtual cultivation racks with the same number as in the cultivation area, and the positions of different virtual cultivation racks also correspond to the placement of actual cultivation racks in the cultivation area.
[0085] It can be understood that by constructing a cultivation twin space, the automatically monitored data can be processed and displayed in the cultivation twin space for intuitive viewing by personnel.
[0086] Among them, the management end is the terminal for managing the Pleurotus geesteranus growers, which can be a mobile phone or a computer. The configuration information is the relevant data information for building the cultivation twin space, which can be the number of virtual cultivation racks, the length of the virtual cultivation racks, and the placement of the virtual cultivation racks. The cultivation twin space is the digital virtual space corresponding to the cultivation area, and the virtual cultivation rack is the cultivation rack in the cultivation twin space that corresponds to the actual cultivation rack.
[0087] S2, calling up the monitoring and acquisition strategy to obtain the top-side image of the corresponding actual cultivation rack collected by the fixed equipment, and the bottom front image of the corresponding actual cultivation rack collected by the dynamic equipment.
[0088] It is not difficult to understand that the actual cultivation rack for cultivating Pleurotus geesteranus has multiple layers of grids in the vertical direction, and each layer also has multiple grids in the horizontal direction. The mushroom bags can be placed in the grids of the actual cultivation rack. When the fixed equipment at a high place in the cultivation area collects images of the mushrooms in the actual cultivation rack, due to the large number of layers, the growth of the upper mushrooms closer to the fixed equipment can be clearly viewed in the collected images, but the growth of the bottom mushrooms cannot be clearly viewed. Therefore, the growth of the bottom mushrooms can be collected through dynamic equipment, which is convenient for subsequent image processing and the processed monitoring data is sent to the management end, so that the management personnel can check the growth of the mushrooms.
[0089] It can be understood that, through the above method, the corresponding image data can be obtained according to the acquisition device, so that the image data can be processed and the specific mushroom situation can be displayed to the management personnel for viewing, thereby realizing automatic monitoring of mushrooms, reducing manual viewing and improving monitoring efficiency.
[0090] Among them, the fixed device is a device with a fixed position, which can be a camera with a fixed position. The top-side image is an image of the actual cultivation rack taken by the fixed device. The dynamic device is a dynamically moving device, which can be a mobile shooting robot. The bottom front image is an image of the front of the bottom layer of the actual cultivation rack taken by the dynamic device.
[0091] In some embodiments, step S2 (calling the monitoring acquisition strategy to obtain the top-side image of the corresponding actual cultivation rack collected by the fixed device, and the bottom front image of the corresponding actual cultivation rack collected by the dynamic device) specifically includes steps S21-S26:
[0092] S21, obtaining a fixing device corresponding to a cultivation side of each actual cultivation rack, wherein the cultivation side includes a first side and a second side.
[0093] It is understandable that when cultivating Pleurotus geesteranus, the mushroom bags are generally placed in each grid of the actual cultivation rack, so that the growth of the mushrooms can be observed on both sides of the actual cultivation rack. Therefore, it is necessary to observe both sides of the actual cultivation rack, and there is a certain distance between each shelf to facilitate people to pick mushrooms. Furthermore, the fixed equipment in the adjacent actual cultivation rack can perform image acquisition and monitoring on the cultivation side of the adjacent actual cultivation rack.
[0094] The cultivation sides are two sides of the actual cultivation rack, including the first side and the second side. In practical applications, a fixed device can be arranged between adjacent cultivation racks to collect data from adjacent cultivation sides of adjacent cultivation racks.
[0095] For example: Figure 2 As shown, it is a schematic diagram of a cultivation area provided by an embodiment of the present invention. When there are three cultivation racks A, B, and C in the cultivation area, each cultivation rack has two sides (a first side and a second side). Therefore, the fixing device between the two cultivation racks A and B can shoot the second side of the cultivation rack A, and can also shoot the first side of the cultivation rack B to collect images.
[0096] S22, controlling the fixing device to collect images of the corresponding cultivation side according to the shooting posture, and obtaining a top-side image corresponding to the corresponding cultivation side in the actual cultivation rack, wherein the shooting posture includes a top-side shooting angle and a top-side shooting direction.
[0097] It can be understood that a time can be set in advance. When the preset time is reached, the fixed equipment will be automatically controlled to collect images of the cultivation side. Since the fixed equipment is between adjacent actual cultivation racks, the angle and direction of the fixed equipment can be adjusted to collect images of the corresponding cultivation side. For example, the cultivation side of an actual cultivation rack can be photographed first, and then the cultivation side of another actual cultivation rack can be photographed. Therefore, a certain shooting posture is required to capture the cultivation side image of the corresponding cultivation side in the actual cultivation rack.
[0098] Among them, the shooting posture is the device posture of the fixed device for shooting, the top-side shooting angle is the rotation angle of the fixed device for shooting the top-side image, which can be manually preset, for example, it can be 45°, and the top-side shooting direction is the rotation direction of the fixed device for shooting the top-side image, which can be manually preset, for example, it can be a direction of rotating 30° from right to left or a direction of rotating 30° from left to right.
[0099] For example: when it reaches 9:00, the camera between the cultivation racks A and B is automatically controlled to rotate downward 45°. At the same time, it is rotated 30° to the left from right to left to capture the image of the second side of the cultivation rack A, and then rotated left and right to the original direction, and then rotated 30° to the right to capture the image of the first side of the cultivation rack B.
[0100] S23, determining a first integration number corresponding to the top-side image according to the rack position number corresponding to the actual cultivation rack and the preset number corresponding to the cultivation side.
[0101] It is not difficult to understand that in order to quickly determine the location of mushrooms when people pick and check them, the actual cultivation rack can have corresponding rack numbers based on the relative position, such as A, B, and C, and the cultivation side can also be preset with corresponding numbers, such as 1 and 2, so that the first integration number of each top-view image can be determined by the rack number and the preset number, so as to determine the actual cultivation rack corresponding to the collected top-view image, so as to facilitate the subsequent corresponding integration of the image collected by the dynamic equipment with the top-view image, and update the twin space according to the integrated image data, so that personnel can quickly check the mushroom production situation at the corresponding position.
[0102] It can be understood that the rack number is the number of the actual cultivation rack, the preset number is the number of the preset cultivation side, which can be 1 for the first side and 2 for the second side, and the first integrated number is the number of the top view image.
[0103] For example, when the fixed device captures a top view image of the second side of the cultivation rack A, the first integrated number A2 can be obtained according to the rack position number A and the preset number 2, so as to facilitate subsequent processing of the image data.
[0104] S24, obtaining a collection point set corresponding to each cultivation side in each actual cultivation rack, controlling the dynamic device to perform image acquisition according to the collection point set, and obtaining a plurality of bottom front images corresponding to the corresponding cultivation side in each actual cultivation rack.
[0105] It can be understood that when the dynamic device is capturing images of the bottom layer of the actual cultivation rack, the closer the dynamic device is to the actual cultivation rack, the smaller the shooting range, and the farther the distance is, the larger the shooting range. However, the interval distance between adjacent actual cultivation racks is fixed and the distance is relatively short. Therefore, the dynamic device cannot capture the bottom layer image of the actual cultivation rack at one time. Therefore, the dynamic device needs to move for multiple captures. Therefore, the present invention will obtain the collection point set corresponding to each cultivation side of each actual cultivation rack, so that the dynamic device automatically performs image capture according to the collection point set to obtain multiple bottom front images, so as to facilitate the subsequent splicing of the multiple bottom front images, so as to facilitate the subsequent automatic monitoring of mushrooms based on image recognition.
[0106] Among them, the collection point set is a set of collection points.
[0107] In some embodiments, step S24 (obtaining a collection point set corresponding to each cultivation side in each actual cultivation rack, controlling the dynamic device to perform image acquisition according to the collection point set, and obtaining a plurality of bottom front images corresponding to the corresponding cultivation side in each actual cultivation rack) specifically includes steps S241-S245:
[0108] S241, obtaining the interval distance between the adjacent actual cultivation racks, and obtaining the shooting distance of the dynamic device based on the difference between the interval distance and the offset distance.
[0109] It should be noted that when the Pleurotus geesteranus spawn bags are placed in the grid of the actual cultivation rack, the length of the spawn bags may be greater than the width of the shelf or the mushrooms will grow beyond the shelf. Therefore, when the dynamic device moves and shoots one side of the other actual cultivation rack closely at the interval distance of the actual cultivation rack, it may be unable to move due to the obstruction of the mushrooms. Therefore, it is necessary to reserve a distance to determine the shooting distance of the dynamic device, so as to facilitate the subsequent determination of the collection point of the dynamic device and facilitate image collection of the cultivation side of the actual cultivation rack.
[0110] It can be understood that the spacing distance is the distance between adjacent actual cultivation racks, the offset distance is a preset distance to facilitate normal movement and shooting of dynamic equipment, and the shooting distance is the distance of the actual cultivation rack shot by the dynamic equipment.
[0111] For example: when the interval distance is 2m and the offset distance is 0.5m, the shooting distance is 2m-0.5m=1.5m.
[0112] S242: Determine a shooting span of the dynamic device based on the shooting distance, where the shooting span includes a vertical span and a horizontal span.
[0113] It can be understood that after obtaining the shooting distance, the corresponding area range that the dynamic device can capture can be determined, for example, the range that can be captured horizontally and the range of the area that can be captured vertically. Therefore, the corresponding number of collection points can be determined based on the horizontal span of the dynamic device and the length of the actual cultivation rack. For example, when the actual cultivation rack is 4m long and the horizontal span is 1m, it can be shown that the dynamic device can capture images within 1m of the actual cultivation rack each time it shoots, thereby determining that 4 collection points can be set for the actual cultivation rack, and further determining the corresponding collection point positions, which is convenient for the dynamic device to capture images of the actual cultivation rack.
[0114] The vertical span is the distance in the vertical direction at which the actual cultivation rack can be photographed, for example, it can be 1m, and the horizontal span is the distance in the horizontal direction at which the actual cultivation rack can be photographed, for example, it can be 1m.
[0115] Through the above implementation, the present invention can obtain the shooting span of the dynamic device, so as to subsequently determine the collection point corresponding to the dynamic device.
[0116] S243, retrieve a virtual top view image corresponding to the cultivation area, wherein the virtual top view image includes a plurality of rectangular virtual frames corresponding to actual cultivation frames, and the rectangular virtual frames include side lines corresponding to the cultivation sides.
[0117] It can be understood that the virtual top-view image is a top-view image artificially set in advance according to the specifications of the cultivation area, the rectangular virtual frame is a virtual frame corresponding to the specifications of the actual cultivation frame, and can be a rectangular frame. The side line is the boundary line in the rectangular virtual frame corresponding to the cultivation side.
[0118] Through the above implementation, the present invention can obtain a virtual top-view image corresponding to the cultivation area, so as to subsequently determine the location of the collection point of the corresponding dynamic device.
[0119] S244, determining a plurality of collection points corresponding to each of the side lines in the virtual top view image according to the lateral span, and acquiring the collection points corresponding to the side lines as a collection point set corresponding to the corresponding cultivation side.
[0120] It can be understood that, after a collection point set having a plurality of collection points is acquired, the dynamic device can subsequently be enabled to collect images of the actual cultivation rack according to the positions of the collection point set.
[0121] In some embodiments, step S244 (determining multiple collection points corresponding to each of the side lines in the virtual top view image according to the lateral span, and obtaining the collection points corresponding to the side lines as the collection point set corresponding to the corresponding cultivation side) specifically includes steps S2441-S2445:
[0122] S2441, determining that the adjacent side lines of the rectangular virtual frame in the virtual top view image are a target group, and respectively obtaining target lines whose side lines in the target group are another side line.
[0123] It can be understood that the target group is a combination of two adjacent side lines of adjacent rectangular virtual frames. For example, the side line of the second side of rectangular virtual frame A and the side line of the first side of rectangular virtual frame B are the same target group, and the target line is one of the side lines in the target group.
[0124] For example, when photographing the second side of the actual cultivation rack A, Figure 3 As shown, it is a schematic diagram of a top view image provided by an embodiment of the present invention, and correspondingly, the side line of the first side of the rectangular virtual frame B is selected as the target line from the target group composed of the side lines of the rectangular virtual frame A and the rectangular virtual frame B, so as to facilitate the subsequent determination of the collection point corresponding to the second side of the actual cultivation frame A.
[0125] S2442: Taking the target line as a reference, based on the shooting direction of the cultivation side corresponding to the side line and the offset distance, a shooting line corresponding to the side line is generated, wherein the shooting directions of adjacent cultivation sides are opposite.
[0126] It can be understood that the shooting direction is the direction in which the dynamic device shoots, and the shooting line is a line segment corresponding to the side line one by one, which is used to determine the moving route of the dynamic device shooting.
[0127] It is not difficult to understand that if Figure 3 As shown, the side surfaces of adjacent cultivation sides are opposite to each other, so when the dynamic device collects images of the adjacent cultivation sides, the shooting directions of the adjacent cultivation sides are opposite.
[0128] S2443, obtaining half of the lateral span as an initial span, and determining an endpoint on the shooting line located at the first end in the moving direction as a reference point.
[0129] It is understandable that the dynamic device can obtain an image within the lateral span every time it takes a shot. Therefore, when taking the first shot of the cultivation side, it is only necessary to move half the distance of the lateral span from the reference point as the starting point to take a shot of the cultivation side. The resulting bottom front image will also have the image information within the complete lateral span.
[0130] The moving direction is the moving direction of the dynamic device for shooting, which is perpendicular to the shooting direction of the cultivation side.
[0131] For example: when the lateral span is 1m, the initial span is 0.5m.
[0132] Through the above implementation, the present invention can obtain the initial span and the reference point, so as to subsequently determine the position of the acquisition point on the shooting line.
[0133] S2444: Based on the moving direction, a point position on the shooting line at an initial span from the reference point is acquired as a collection point.
[0134] It can be understood that the first acquisition point on the shooting line is determined according to the reference point and the initial span, so that the remaining acquisition points can be determined subsequently according to the lateral span.
[0135] S2445, based on the moving direction, sequentially obtain the point position at the lateral span from the collection point as the next collection point, and stop obtaining the collection point when there is no next collection point on the shooting line, and obtain the collection point corresponding to the shooting line as the collection point set corresponding to the cultivation side of the corresponding side line.
[0136] It can be understood that after the position of the first acquisition point is determined, in order to ensure that the dynamic device can completely capture the image of the horizontal span range and does not overlap with the image of the previous acquisition point, the position of the next acquisition point can be determined to be located at the position of the previous acquisition point at the horizontal span, thereby obtaining a collection point set corresponding to multiple collection points on the shooting line, so that the dynamic device can subsequently perform image acquisition based on the position of the collection point set.
[0137] For example: Figure 3 As shown, the positions of the collection points are determined in sequence on the shooting line according to the moving direction, thereby obtaining a collection point set.
[0138] S245, controlling the dynamic device to collect images according to the geographical location information corresponding to the collection point set and the moving direction corresponding to the cultivation side, to obtain a plurality of bottom front images corresponding to the corresponding cultivation side in each of the actual cultivation racks.
[0139] It can be understood that the virtual overhead image of the determined collection point set has position information corresponding to the actual geographical location, so that the dynamic device can be automatically controlled to be positioned at the corresponding position according to the geographical location information corresponding to the collection point set, and move in the determined moving direction, so as to collect images of the cultivation side of the actual cultivation rack, and then obtain multiple bottom and front images corresponding to the corresponding cultivation side of each actual cultivation rack, so as to facilitate the subsequent automatic monitoring of the mushrooms through multiple bottom and front images to improve the monitoring efficiency.
[0140] In some embodiments, when the dynamic device collects images of different cultivation sides in the cultivation area, its movement trajectory can be S-shaped. Therefore, the corresponding movement directions of adjacent cultivation sides can be determined to be different, so that the reference point corresponding to each shooting line can be determined, thereby obtaining each collection point, thereby avoiding repeated mobile shooting from the same end, thereby saving the movement time of the dynamic device and improving the efficiency of image collection.
[0141] S25, determining a second integrated number corresponding to the bottom front image based on the rack position number of the actual cultivation rack and the preset number of the cultivation side.
[0142] It can be understood that the cultivation sides of the actual cultivation racks photographed by the dynamic equipment have corresponding numbers, so that the numbers of the corresponding bottom front images can be determined, so that the corresponding top side images and bottom front images can be integrated and spliced later, thereby ensuring that the data information after subsequent image processing can be reflected in the accurate position of the cultivation twin space, so that subsequent personnel can check the growth of mushrooms at the accurate position.
[0143] The second integrated number is the number corresponding to the bottom front image. For example, when the actual cultivation rack position number is A and the preset number of the cultivation side is 2, the second integrated number corresponding to the bottom front image is A2.
[0144] S26, determining the top side image and the bottom front image corresponding to the corresponding cultivation side in each of the actual cultivation racks according to the first integrated number and the second integrated number.
[0145] It can be understood that when the first integration number and the second integration number are the same, it can be determined that the corresponding top-side image and the bottom-front image are the image information corresponding to the cultivation side in the same actual cultivation rack, so that the corresponding top-side image can be corrected and replaced with the bottom-front image later, so that the image information after identification and processing can be updated at the corresponding accurate position in the cultivation twin space, so that personnel can check the growth of mushrooms at the corresponding position.
[0146] S3, performing correction and replacement processing on the top side image based on the bottom front image corresponding to each of the actual cultivation racks to obtain a calibration image.
[0147] It can be understood that using the bottom front image to replace the unclear image information of the bottom layer of the cultivation side in the top image can facilitate the subsequent recognition and monitoring of the obtained calibration image and improve the accuracy of the monitoring data.
[0148] In some embodiments, step S3 (correcting and replacing the top side image based on the bottom front image corresponding to each actual cultivation rack to obtain a calibration image) specifically includes steps S31-S37:
[0149] S31, arranging the bottom front image corresponding to each of the acquisition points in the acquisition point set according to the moving direction to obtain an image stitching sequence.
[0150] It is understandable that the dynamic device can collect multiple bottom front images for the same cultivation side. Therefore, the bottom front images collected at each collection point can be arranged according to the moving direction of the dynamic device, so as to facilitate sequential splicing of the multiple bottom front images.
[0151] The image stitching sequence is a stitching sequence of multiple bottom and front images.
[0152] For example, a dynamic device collects four bottom front images in the moving direction, namely 1, 2, 3, and 4, to obtain an image stitching sequence (1, 2, 3, 4) of the bottom front images.
[0153] S32, performing horizontal stitching processing on each of the bottom front images according to the image stitching sequence to obtain a stitched image.
[0154] It is understandable that when the dynamic device collects images of the cultivation side, it will not change the number of shooting layers in the vertical direction of the cultivation side. For example, each bottom front image displayed in the vertical direction is the bottom 4 layers of images of the cultivation side corresponding to the actual cultivation rack, so that the bottom front images are horizontally spliced according to the image splicing sequence to obtain a complete horizontal image of the bottom layer of the cultivation side.
[0155] The stitched image is an image obtained by stitching together multiple bottom and front images.
[0156] Through the above implementation, the present invention obtains the stitching image corresponding to the bottom of the cultivation side, so as to facilitate the subsequent image recognition of the mushrooms at the bottom of the cultivation side, automatically monitor the growth of the mushrooms, facilitate personnel viewing, and improve the monitoring efficiency of the mushrooms.
[0157] S33, obtaining detailed replacement layer numbers corresponding to the plurality of first mushroom bag contours in the spliced image, and determining a layer to be replaced corresponding to the detailed replacement layer number in the top-side image.
[0158] It can be understood that the first mushroom bag outline is the outline of the mushroom bag in the stitched image, and the detailed number of replacement layers is the number of layers of the mushroom bag in the vertical direction in the stitched image, which is convenient for determining the corresponding number of replacement layers in the top view image, and the layer to be replaced is the image layer in the top view image waiting to be replaced.
[0159] In some embodiments, step S33 (obtaining detailed replacement layer numbers corresponding to multiple first mushroom bag contours in the stitched image, and determining the layers to be replaced corresponding to the detailed replacement layer numbers in the top view image) specifically includes steps S331-S334:
[0160] S331, extracting a plurality of first mushroom bag contours in the stitched image, and obtaining first mushroom bag contours having the same Y-axis coordinate value as a first same-layer set.
[0161] It can be understood that the Y-axis coordinate values corresponding to the outlines of the same layer of mushroom bags in the stitched image are the same, so the first mushroom bag outlines with the same Y-axis coordinate values can be used as the first same-layer set. By obtaining the first same-layer set, it is convenient to subsequently determine the number of mushroom bag layers captured in the stitched image.
[0162] S332: Count the number of the first same-layer sets to obtain the detailed number of replacement layers.
[0163] It can be understood that when the number of first same-layer sets in the spliced image is 4, the number of detailed replacement layers is 4.
[0164] S333, extracting a plurality of second mushroom bag contours in the top-side image, and obtaining second bag contours having the same Y-axis coordinate value as a second same-layer set.
[0165] It is understandable that when the Y-axis coordinate values of the second mushroom bag contours in the top view image are the same, the corresponding multiple second mushroom bag contours belong to the same layer, thereby obtaining a second same-layer set, so as to facilitate subsequent determination of the corresponding layer to be replaced.
[0166] S334: sequentially acquire the second same layer set as the layers to be replaced in the reverse overhead shooting direction until the number of the layers to be replaced is equal to the number of detailed replacement layers, and then stop acquiring the layers to be replaced.
[0167] It can be understood that the reverse overhead shooting direction is a direction opposite to the overhead shooting direction, and can be a direction from bottom to top.
[0168] For example, when the number of detailed replacement layers is 4, 4 second same layer sets are determined from bottom to top in the top view image as layers to be replaced.
[0169] S34, coordinate processing is performed on the top-side image to obtain contour coordinates corresponding to the contours of multiple second mushroom bags in the layer to be replaced.
[0170] It can be understood that the contour coordinates are the coordinates of the second mushroom bag contour. By coordinate-processing the top-down image, it is convenient to subsequently obtain the maximum Y-axis coordinate value corresponding to the second mushroom bag contour in the layer to be replaced, thereby generating a dividing line to divide the top-down image, so as to facilitate replacement with the spliced image.
[0171] S35, obtaining the maximum Y-axis coordinate value in the contour coordinates, and generating a segmentation line corresponding to the Y-axis coordinate value.
[0172] It can be understood that the maximum Y-axis coordinate value is the maximum value of the Y-axis coordinate value of the contour coordinate, and the dividing line is a line segment that divides the layer to be replaced in the top-down image.
[0173] Through the above implementation, the present invention determines the segmentation line so as to segment the top-side image subsequently.
[0174] S36, performing segmentation processing on the top-side image based on the segmentation line to obtain a segmented image and an image to be replaced corresponding to the layer to be replaced.
[0175] It can be understood that the segmented image is an image that does not contain the layer to be replaced after the top-side image is segmented, and the image to be replaced is an image that contains the layer to be replaced after the top-side image is segmented.
[0176] Through the above implementation, the present invention completes the segmentation of the top-side image, thereby obtaining a segmented image, so as to facilitate subsequent vertical splicing with the spliced image, thereby obtaining a clear image of the cultivation side of the actual cultivation rack, facilitating image recognition, and thus realizing automatic monitoring of mushrooms.
[0177] S37, vertically stitching the segmented image and the stitched image to obtain a calibrated image.
[0178] It can be understood that the calibration image is an image obtained by vertically stitching the segmented image and the stitched image, so that image recognition can be performed on the calibration image to improve the accuracy of the monitoring data.
[0179] S4, determining the Pleurotus geesteranus cultivation data of each virtual cultivation rack according to the calibration image, displaying and updating the corresponding virtual cultivation rack based on the Pleurotus geesteranus cultivation data, and obtaining the cultivation monitoring data and sending it to the management terminal.
[0180] It is understandable that by processing the calibration image, the Pleurotus geesteranus cultivation data of each virtual cultivation rack can be determined, so that the virtual cultivation rack can be displayed and updated for easy viewing by personnel, wherein the Pleurotus geesteranus cultivation data is the planting data of cultivating Pleurotus geesteranus.
[0181] Through the above implementation, the present invention completes the update display of the corresponding virtual cultivation rack, thereby sending the cultivation monitoring data to the management end, which is convenient for the intuitive viewing of the personnel, thereby improving the monitoring efficiency of Pleurotus geesteranus.
[0182] In some embodiments, step S4 (determining the Pleurotus geesteranus cultivation data of each virtual cultivation rack according to the calibration image, displaying and updating the corresponding virtual cultivation rack based on the Pleurotus geesteranus cultivation data, and obtaining the cultivation monitoring data and sending it to the management end) specifically includes steps S41-S47:
[0183] S41, determining the first same-layer set and the second same-layer set in the calibration image as the cultivation comparison set, numbering each of the mushroom bag contours in the cultivation comparison set according to the moving direction, and obtaining a first number corresponding to each of the mushroom bag contours.
[0184] Among them, the mushroom bag outline in the cultivation comparison set includes the first mushroom bag outline or the second mushroom bag outline.
[0185] It can be understood that the actual cultivation rack has multiple layers of grids, and each layer has multiple grids. The mushroom bags are placed in the grids at corresponding positions in sequence. Therefore, the cultivation comparison sets in the acquired calibration image can be numbered to facilitate the subsequent update of the Pleurotus geesteranus cultivation data at the corresponding position in the virtual cultivation rack to the corresponding position for easy viewing by personnel.
[0186] Among them, the first number is the number corresponding to the outline of the mushroom bag.
[0187] For example: the mushroom bag contours in each cultivation comparison set are numbered according to the moving direction. When there are 16 mushroom bag contours in the cultivation comparison set, the mushroom bag contours in each layer of the cultivation comparison set are numbered separately starting from the starting point of the moving direction, so that each mushroom bag contour gets a corresponding first number of 1, 2, 3, 4...16.
[0188] S42, determining the number of cultivation layers of each of the cultivation comparison sets in sequence according to the reverse overhead shooting direction, and determining a virtual layer corresponding to each of the cultivation comparison sets in the virtual cultivation rack based on the number of cultivation layers.
[0189] It can be understood that when the number of cultivation layers of the cultivation comparison set is 12, the 12 layers from bottom to top in the virtual cultivation rack can be determined as virtual layers corresponding to each cultivation comparison set, so as to facilitate the subsequent update of the mushroom bag model at the corresponding virtual layer position in the virtual cultivation rack.
[0190] The number of cultivation layers refers to the number of layers in the cultivation comparison set, and the virtual layers refer to the cultivation layers in the virtual cultivation rack.
[0191] S43, counting the number of mushroom bags in the cultivation comparison set, calling the mushroom bag model corresponding to the number of mushroom bags to arrange and update the corresponding virtual layer.
[0192] It can be understood that when the number of cultivation layers in the cultivation comparison set is 12, and each layer has 16 mushroom bag outlines, the number of all mushroom bags in the cultivation comparison set can be counted as 12×16=192, and 192 mushroom bag models are retrieved to update, arrange and display the 12 virtual layers in the virtual cultivation rack in turn.
[0193] The number of fungus bags refers to the number of fungus bags in the cultivation comparison set, and the fungus bag model refers to a model set according to the fungus bags, which can be manually preset.
[0194] Through the above implementation, the present invention updates the mushroom bag model in the virtual layer, which is convenient for subsequent updating and display of the mushroom bag model based on actual Pleurotus geesteranus cultivation data, so that personnel can quickly check the growth of Pleurotus geesteranus and improve monitoring efficiency.
[0195] S44, numbering the plurality of mushroom bag models in the virtual layer based on the moving direction to obtain a second number corresponding to each of the mushroom bag models.
[0196] It is understandable that the present invention numbers the mushroom bag models, which can facilitate the subsequent determination of the mushroom bag model corresponding to the mushroom bag outline actually photographed according to the number, thereby updating and displaying the mushroom bag model data based on the Pleurotus geesteranus cultivation data to achieve automatic monitoring.
[0197] Among them, the second number is the number corresponding to the mushroom model.
[0198] S45, determining the mushroom bag model corresponding to each mushroom bag outline according to the first number and the second number.
[0199] It can be understood that when the first number of the mushroom bag outline is 6, it can be determined that the mushroom bag model with the second number 6 corresponds to the mushroom bag outline.
[0200] S46, calling the density display strategy to obtain the density of the Pleurotus geesteranus of each mushroom bag outline in the cultivation comparison set, and performing density display and updating on the corresponding mushroom bag model according to the Pleurotus geesteranus density to obtain the Pleurotus geesteranus cultivation data.
[0201] It can be understood that by updating and displaying the density of the corresponding mushroom bag model through the growth density of Pleurotus geesteranus in each mushroom bag outline, it is convenient for personnel to intuitively view the Pleurotus geesteranus cultivation data, thereby realizing rapid monitoring of Pleurotus geesteranus.
[0202] In some embodiments, step S46 (calling the density display strategy to obtain the density of the Pleurotus geesteranus of each of the mushroom bag outlines in the cultivation comparison set, and performing density display and updating of the corresponding mushroom bag model according to the Pleurotus geesteranus density to obtain the Pleurotus geesteranus cultivation data) specifically includes steps S461-S465:
[0203] S461, averaging the total pixel values of the contours of each mushroom bag in each of the cultivation comparison sets to obtain a reference pixel value corresponding to the contours of each mushroom bag in each of the cultivation comparison sets.
[0204] It is understandable that, when the Pleurotus geesteranus grows denser, the number of Pleurotus geesteranus in the corresponding mushroom bag outline will be greater, so the corresponding pixel value will be larger, and the density of Pleurotus geesteranus can be obtained according to the pixel value in the mushroom bag outline.
[0205] It is not difficult to understand that the sizes of the outlines of each mushroom bag in each layer of the cultivation comparison set in the obtained calibration image are similar, and the outlines of each mushroom bag in the cultivation comparison sets of different layers may have size differences due to the shooting angle factor. Therefore, when judging the density of Pleurotus geesteranus, the pixel values of the outlines of the mushroom bags between each layer can be compared. At the same time, the total pixel values of the outlines of each mushroom bag in the cultivation comparison set of the same layer can be averaged to obtain the reference pixel values corresponding to the outlines of each mushroom bag in each cultivation comparison set, so as to judge the growth density of each Pleurotus geesteranus mushroom bag.
[0206] Among them, the total pixel value is the pixel value of each mushroom bag outline in each cultivation comparison set, and the benchmark pixel value is the average pixel value of each mushroom bag outline in each cultivation comparison set.
[0207] S462, obtaining the outlines of the mushroom bags whose total pixel value is less than the reference pixel value as an abnormal mushroom bag group, and obtaining the outlines of the mushroom bags whose total pixel value is greater than the reference pixel value as a normal mushroom bag group.
[0208] It can be understood that when the total pixel value of the mushroom bag outline is less than the reference pixel value, it can indicate that the generation density of the mushroom bag is less than the average growth density, which may be an abnormal problem, and the mushroom bag outline is regarded as an abnormal mushroom bag group. When the total pixel value of the mushroom bag outline is greater than the reference pixel value, it can indicate that the generation density of the mushroom bag is greater than the average growth density, that is, the growth of the mushroom bag is normal, and the corresponding mushroom bag outline is regarded as a normal mushroom bag group.
[0209] Among them, the abnormal mushroom bag group is a combination of mushroom bag contours with abnormal growth of Pleurotus geesteranus, and the normal mushroom bag group is a combination of mushroom bag contours with normal growth of Pleurotus geesteranus.
[0210] For example: when the total pixel values of the mushroom bag contours with the first numbers 3 and 15 are respectively less than the reference pixel values, the abnormal mushroom bag group is the mushroom bag contours with the first numbers 3 and 15, and the mushroom bag contours whose total pixel values are greater than the reference pixel values are the normal mushroom bag group.
[0211] S463, determining the abnormal density of each of the outlines of the bacteria bags in the abnormal bacteria bag group based on the abnormal density table, and determining the normal density of each of the outlines of the bacteria bags in the normal bacteria bag group based on the normal density table.
[0212] It can be understood that the abnormal density table is a table showing abnormal density, which can be manually preset and can include abnormal difference intervals and preset densities corresponding to the abnormal difference intervals one by one. The normal density table is a table showing normal density, which can be manually preset and can include normal difference intervals and preset densities corresponding to the normal difference intervals one by one. The abnormal density is the growth density of Pleurotus geesteranus in the outline of each mushroom bag in the abnormal mushroom bag group, and the normal density is the growth density of Pleurotus geesteranus in the outline of each mushroom bag in the normal mushroom bag group.
[0213] In some embodiments, step S463 (calling the density display strategy to obtain the density of the Pleurotus geesteranus of each of the mushroom bag outlines in the cultivation comparison set, and performing density display and updating on the corresponding mushroom bag model according to the Pleurotus geesteranus density to obtain the Pleurotus geesteranus cultivation data) specifically includes steps S4631-S4634:
[0214] S4631, determining the abnormal difference corresponding to the contour of each mushroom bag in the abnormal mushroom bag group according to the difference between the reference pixel value and the total pixel value.
[0215] It can be understood that determining the abnormal difference corresponding to each mushroom bag outline can facilitate the subsequent acquisition of the abnormal density corresponding to each mushroom bag outline, so as to update and display the corresponding mushroom bag model, which is convenient for personnel to monitor and view.
[0216] The abnormal difference is the difference between the reference pixel value and the total pixel value of the outline of the bacteria bag in the abnormal bacteria bag group.
[0217] S4632, retrieve an abnormal density table, traverse multiple abnormal difference intervals in the abnormal density table based on the abnormal difference, and determine that the preset density corresponding to the abnormal difference interval where the abnormal difference is located is the abnormal density of the corresponding mushroom bag contour.
[0218] The abnormal density table includes a plurality of abnormal difference intervals and a preset density corresponding to each of the abnormal difference intervals.
[0219] It can be understood that the abnormal difference interval can be an interval set for the abnormal difference manually, such as (40, 50), (30, 40), and the preset density is the growth density of Pleurotus geesteranus set manually in advance, such as 5%, 15%, etc. It is not difficult to understand that the larger the difference, the smaller the growth density of Pleurotus geesteranus.
[0220] For example: when the abnormal difference interval in the abnormal density table is (40, 50), the corresponding preset density is 5%, when the abnormal difference interval is (30, 40), the corresponding preset density is 15%, when the abnormal difference interval is (20, 30), the corresponding preset density is 25%, when the abnormal difference interval is (10, 20), the corresponding preset density is 35%, when the abnormal difference interval is (0, 10), the corresponding preset density is 45%. Therefore, when the abnormal difference is 15, multiple abnormal difference intervals in the abnormal density table are traversed to determine that the corresponding preset density is 35%, and the abnormal density of the mushroom bag contour is 35%.
[0221] Through the above implementation, the present invention obtains the abnormal density corresponding to the mushroom bag outline, so as to update and display the density of the corresponding mushroom bag model later, thereby facilitating personnel's viewing and improving the monitoring efficiency of Pleurotus geesteranus.
[0222] S4633, determining a normal difference corresponding to the contour of each mushroom bag in the normal mushroom bag group according to the difference between the total pixel value and the reference pixel value.
[0223] It is understandable that the normal difference corresponding to each mushroom bag outline is determined, so as to facilitate the subsequent acquisition of the normal density corresponding to each mushroom bag outline, so as to update and display the corresponding mushroom bag model, which is convenient for personnel to monitor and view.
[0224] The normal difference is the difference between the reference pixel value and the total pixel value of the outline of the fungus bag in the normal fungus bag group.
[0225] S4634, calling up a normal density table, traversing a plurality of normal difference intervals in the normal density table based on the normal difference, and determining that a preset density corresponding to the normal difference interval where the normal difference is located is the normal density of the corresponding mushroom bag contour.
[0226] The normal density table includes a plurality of normal difference intervals and a preset density corresponding to each of the normal difference intervals.
[0227] It can be understood that the normal difference interval can be an interval set for the normal difference manually, such as (50, 60), (60, 70), and the preset density is the growth density of the Pleurotus geesteranus set manually in advance, such as 55%, 65%, etc. It is not difficult to understand that the larger the difference, the greater the growth density of the Pleurotus geesteranus.
[0228] For example: when the abnormal difference interval in the normal density table is (50, 60), the corresponding preset density is 55%, when the normal difference interval is (60, 70), the corresponding preset density is 65%, when the normal difference interval is (70, 80), the corresponding preset density is 75%, when the normal difference interval is (80, 90), the corresponding preset density is 85%, when the normal difference interval is (90, 100), the corresponding preset density is 95%. Therefore, when the normal difference is 85, multiple normal difference intervals in the normal density table are traversed to determine that the corresponding preset density is 85%, and the normal density of the mushroom bag outline is 85%.
[0229] Through the above implementation, the present invention obtains the normal density corresponding to the mushroom bag outline, so as to update and display the density of the corresponding mushroom bag model later, thereby facilitating personnel's viewing and improving the monitoring efficiency of Pleurotus geesteranus.
[0230] S464, according to the normal density or abnormal density corresponding to each mushroom bag outline, the density of the corresponding mushroom bag model is updated to obtain the Pleurotus geesteranus cultivation data, wherein the Pleurotus geesteranus density includes the normal density or the abnormal density.
[0231] It can be understood that, for example, when the abnormal density of the mushroom outline with the first number 3 is 35%, the corresponding abnormal density can be updated and displayed in the corresponding mushroom model with the second number 3; when the normal density of the mushroom outline with the first number 16 is 85%, the corresponding normal density can be updated and displayed in the corresponding mushroom model with the second number 16, thereby obtaining the Pleurotus geesteranus cultivation data with density information, which is convenient for personnel to intuitively view the growth of Pleurotus geesteranus at the corresponding position.
[0232] S465, determining a preset abnormal level of the abnormal density, retrieving abnormal pixel values corresponding to the abnormal level, and updating the corresponding mushroom bag model.
[0233] It can be understood that the abnormal level is the level corresponding to the abnormal growth of mushrooms, which can be the first level, the second level, etc., which is preset manually, and the abnormal pixel value is the pixel value preset manually, which can be red or yellow. For example, the abnormal pixel value corresponding to the first level is red, and the abnormal pixel value corresponding to the second level is yellow.
[0234] It is not difficult to understand that the mushroom bag model in the cultivation twin space can be updated and displayed according to the level corresponding to the abnormal density of the growth of Pleurotus geesteranus. For example, when the abnormal density is 15%, it can indicate that the growth of the mushroom bag is too different from the normal situation. Then the mushroom bag model can be updated to the corresponding red color, so that personnel can quickly understand the growth of mushrooms by checking the mushroom bag model, realize automatic monitoring of mushrooms, and deal with mushroom bags with abnormal growth in time.
[0235] It is worth mentioning that when it is obtained that the Pleurotus geesteranus at the corresponding position is growing vigorously, the corresponding mushroom bag model can be updated to green. The higher the level corresponding to the normal density, the darker the green value of the corresponding mushroom bag model can be. Therefore, personnel can quickly understand the lush growth of the Pleurotus geesteranus in the mushroom bag at the corresponding position by intuitively viewing the mushroom bag model.
[0236] S47, based on the Pleurotus geesteranus cultivation data, display and update the corresponding virtual cultivation rack, obtain the cultivation monitoring data and send it to the management end.
[0237] It can be understood that the cultivation monitoring data is virtual cultivation rack data information with updated data, so that personnel can quickly check the growth status of Pleurotus geesteranus spawn at various locations through intuitive viewing of the cultivation monitoring data, thereby realizing automatic monitoring of the mushrooms, saving personnel patrol time, and improving the monitoring efficiency of Pleurotus geesteranus.
[0238] like Figure 4 FIG. 1 is a schematic diagram of the structure of a Pleurotus geesteranus cultivation data processing system provided by an embodiment of the present invention. The data processing system based on the Pleurotus geesteranus cultivation data processing system includes:
[0239] A construction module, used to construct a cultivation twin space corresponding to the cultivation area according to the configuration information of the management end, wherein the cultivation twin space includes a plurality of virtual cultivation racks corresponding to the actual cultivation racks;
[0240] A calling module, used for calling the monitoring and acquisition strategy to obtain the top-side image of the corresponding actual cultivation rack collected by the fixed device, and the bottom front image of the corresponding actual cultivation rack collected by the dynamic device;
[0241] A processing module, used for correcting and replacing the top-side image based on the bottom front image corresponding to each actual cultivation rack to obtain a calibration image;
[0242] An updating module is used to determine the Pleurotus geesteranus cultivation data of each virtual cultivation rack according to the calibration image, display and update the corresponding virtual cultivation rack based on the Pleurotus geesteranus cultivation data, and obtain cultivation monitoring data and send it to the management end.
[0243] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for processing Pleurotus geesteranus cultivation data, characterized in that: include: Constructing a cultivation twin space corresponding to the cultivation area according to the configuration information of the management end, wherein the cultivation twin space includes a plurality of virtual cultivation racks corresponding to the actual cultivation racks; Retrieve the monitoring and acquisition strategy to obtain the top-side image of the corresponding actual cultivation rack collected by the fixed device, and the bottom-front image of the corresponding actual cultivation rack collected by the dynamic device; Based on the bottom front image corresponding to each of the actual cultivation racks, the top side image is corrected and replaced to obtain a calibration image; Determine the Pleurotus geesteranus cultivation data of each virtual cultivation rack according to the calibration image, display and update the corresponding virtual cultivation rack based on the Pleurotus geesteranus cultivation data, and obtain the cultivation monitoring data and send it to the management terminal; The top side image is corrected and replaced based on the bottom front image corresponding to each actual cultivation rack to obtain a calibration image, including: Arrange the bottom front image corresponding to each acquisition point in the acquisition point set according to the moving direction to obtain an image stitching sequence; Performing horizontal stitching processing on each of the bottom front images according to the image stitching sequence to obtain a stitched image; Acquire detailed replacement layer numbers corresponding to a plurality of first mushroom bag contours in the stitched image, and determine a layer to be replaced corresponding to the detailed replacement layer number in the top-side image; Performing coordinate processing on the top-side image to obtain contour coordinates corresponding to contours of a plurality of second mushroom bags in the layer to be replaced; Obtaining the maximum Y-axis coordinate value in the contour coordinates, and generating a segmentation line corresponding to the Y-axis coordinate value; Segmenting the top-side image based on the segmentation line to obtain a segmented image and an image to be replaced corresponding to the layer to be replaced; vertically stitching the segmented image and the stitched image to obtain a calibrated image; The cultivation monitoring data is obtained according to the following steps: Determine the first same-layer set and the second same-layer set in the calibration image as the cultivation comparison set, number each of the mushroom bag contours in the cultivation comparison set according to the moving direction, and obtain a first number corresponding to each of the mushroom bag contours; Wherein, the mushroom bag outline in the cultivation comparison set includes the first mushroom bag outline or the second mushroom bag outline; Determining the number of cultivation layers of each of the cultivation comparison sets in sequence according to the reverse overhead shooting direction, and determining the virtual layer corresponding to each of the cultivation comparison sets in the virtual cultivation rack based on the number of cultivation layers; Counting the number of mushroom bags in the cultivation comparison set, calling the mushroom bag model corresponding to the number of mushroom bags to arrange and update the corresponding virtual layer; Numbering the multiple mushroom bag models in the virtual layer based on the moving direction to obtain a second number corresponding to each of the mushroom bag models; Determine the mushroom bag model corresponding to each mushroom bag outline according to the first number and the second number; Retrieve the density display strategy to obtain the density of the Pleurotus geesteranus of each mushroom bag outline in the cultivation comparison set, and perform density display and update on the corresponding mushroom bag model according to the Pleurotus geesteranus density to obtain the Pleurotus geesteranus cultivation data; Based on the Pleurotus geesteranus cultivation data, the corresponding virtual cultivation rack is displayed and updated, and the cultivation monitoring data is obtained and sent to the management end, wherein the cultivation monitoring data refers to the virtual cultivation rack data information with updated data.
2. The method according to claim 1, characterized in that Retrieving the monitoring and acquisition strategy to obtain the top-side image of the corresponding actual cultivation rack collected by the fixed device and the bottom front image of the corresponding actual cultivation rack collected by the dynamic device, including: Obtaining a fixing device corresponding to a cultivation side of each actual cultivation rack, wherein the cultivation side includes a first side and a second side; Control the fixing device to collect images of the corresponding cultivation side according to the shooting posture, and obtain a top-side image corresponding to the corresponding cultivation side in the actual cultivation rack, wherein the shooting posture includes a top-side shooting angle and a top-side shooting direction; Determine a first integrated number of the top-side image according to the rack number of the actual cultivation rack and the preset number of the cultivation side; Acquire a collection point set corresponding to each cultivation side in each actual cultivation rack, control the dynamic device to perform image acquisition according to the collection point set, and obtain a plurality of bottom front images corresponding to the corresponding cultivation side in each actual cultivation rack; Determine a second integrated number corresponding to the bottom front image based on the rack position number of the actual cultivation rack and the preset number of the cultivation side; According to the first integrated number and the second integrated number, the top side image and the bottom front image corresponding to the corresponding cultivation side in each actual cultivation rack are determined.
3. The method according to claim 2, characterized in that Acquiring a collection point set corresponding to each cultivation side in each actual cultivation rack, controlling the dynamic device to perform image acquisition according to the collection point set, and obtaining a plurality of bottom front images corresponding to the corresponding cultivation side in each actual cultivation rack, including: Acquire the interval distance between the adjacent actual cultivation racks, and obtain the shooting distance of the dynamic device based on the difference between the interval distance and the offset distance; Determine a shooting span of the dynamic device based on the shooting distance, wherein the shooting span includes a vertical span and a horizontal span; Retrieving a virtual top-view image corresponding to the cultivation area, wherein the virtual top-view image includes a plurality of rectangular virtual frames corresponding to actual cultivation frames, and the rectangular virtual frames include side lines corresponding to the cultivation sides; Determine a plurality of collection points corresponding to each of the side lines in the virtual top view image according to the lateral span, and obtain the collection points corresponding to the side lines as a collection point set corresponding to the corresponding cultivation side; The dynamic device is controlled to collect images according to the geographical location information corresponding to the collection point set and the moving direction corresponding to the cultivation side, so as to obtain a plurality of bottom front images corresponding to the cultivation side in each actual cultivation rack.
4. The method according to claim 3, characterized in that Determining a plurality of collection points corresponding to each of the side lines in the virtual top view image according to the lateral span, and obtaining the collection points corresponding to the side lines as a collection point set corresponding to the corresponding cultivation side, comprises: Determine the adjacent side lines of the rectangular virtual frame in the virtual top view image as a target group, and respectively obtain target lines whose side lines in the target group are another side line; Taking the target line as a reference, based on the shooting direction of the cultivation side corresponding to the side line and the offset distance, a shooting line corresponding to the side line is generated, wherein the shooting directions of adjacent cultivation sides are opposite; Obtaining half of the lateral span as an initial span, and determining an endpoint of the shooting line located at a first end in the moving direction as a reference point; Based on the moving direction, a point position on the shooting line at an initial span from the reference point is obtained as a collection point; Based on the moving direction, the points at the lateral span from the collection point are sequentially acquired as the next collection point, and the acquisition of the collection points is stopped when there is no next collection point on the shooting line, and the collection points corresponding to the shooting line are acquired as the collection point set corresponding to the cultivation side of the corresponding side line.
5. The method according to claim 1, characterized in that: Acquiring detailed replacement layer numbers corresponding to a plurality of first mushroom bag contours in the spliced image, and determining a layer to be replaced corresponding to the detailed replacement layer number in the top-side image, comprising: Extracting a plurality of first mushroom bag contours in the stitched image, and obtaining first mushroom bag contours having the same Y-axis coordinate value as a first same-layer set; Counting the number of the first peer sets to obtain a detailed number of replacement layers; Extracting multiple second mushroom bag contours in the top-down image, and obtaining second bag contours having the same Y-axis coordinate value as a second same-layer set; The second same layer set is sequentially acquired as the layers to be replaced in the reverse overhead shooting direction until the number of the layers to be replaced is equal to the number of detailed replacement layers, and then the acquisition of the layers to be replaced is stopped.
6. The method according to claim 1, characterized in that Retrieving the density display strategy to obtain the density of the Pleurotus geesteranus of each of the mushroom bag outlines in the cultivation comparison set, and performing density display and updating on the corresponding mushroom bag model according to the Pleurotus geesteranus density to obtain the Pleurotus geesteranus cultivation data, including: The total pixel values of the contours of each mushroom bag in each of the cultivation comparison sets are averaged to obtain the reference pixel values corresponding to the contours of each mushroom bag in each of the cultivation comparison sets; The mushroom bag contours whose total pixel value is less than the reference pixel value are obtained as an abnormal mushroom bag group, and the mushroom bag contours whose total pixel value is greater than the reference pixel value are obtained as a normal mushroom bag group; Determine the abnormal density of each of the outlines of the bacteria bags in the abnormal bacteria bag group according to the abnormal density table, and determine the normal density of each of the outlines of the bacteria bags in the normal bacteria bag group based on the normal density table; According to the normal density or abnormal density corresponding to each mushroom bag outline, the density of the corresponding mushroom bag model is updated to obtain the Pleurotus geesteranus cultivation data, wherein the Pleurotus geesteranus density includes the normal density or the abnormal density; The abnormal level preset for the abnormal density is determined, and the abnormal pixel value corresponding to the abnormal level is retrieved to update the corresponding mushroom bag model.
7. The method according to claim 6, characterized in that Determining the abnormal density of each of the outlines of the bacteria bags in the abnormal bacteria bag group according to the abnormal density table, and determining the normal density of each of the outlines of the bacteria bags in the normal bacteria bag group based on the normal density table, comprises: According to the difference between the reference pixel value and the total pixel value, determining the abnormal difference corresponding to the contour of each mushroom bag in the abnormal mushroom bag group; Retrieving an abnormal density table, traversing a plurality of abnormal difference intervals in the abnormal density table based on the abnormal difference, and determining that a preset density corresponding to the abnormal difference interval where the abnormal difference is located is the abnormal density of the corresponding mushroom bag contour; The abnormal density table includes a plurality of abnormal difference intervals and a preset density corresponding to each abnormal difference interval; Determine the normal difference corresponding to the contour of each mushroom bag in the normal mushroom bag group according to the difference between the total pixel value and the reference pixel value; Retrieving a normal density table, traversing a plurality of normal difference intervals in the normal density table based on the normal difference value, and determining that a preset density corresponding to the normal difference interval where the normal difference value is located is the normal density of the corresponding mushroom bag contour; The normal density table includes a plurality of normal difference intervals and a preset density corresponding to each of the normal difference intervals.
8. A data processing system for the method for processing data of Pleurotus geesteranus cultivation according to claim 1, characterized in that: include: A construction module, used to construct a cultivation twin space corresponding to the cultivation area according to the configuration information of the management end, wherein the cultivation twin space includes a plurality of virtual cultivation racks corresponding to the actual cultivation racks; A calling module, used for calling the monitoring and acquisition strategy to obtain the top-side image of the corresponding actual cultivation rack collected by the fixed device, and the bottom front image of the corresponding actual cultivation rack collected by the dynamic device; A processing module, used for correcting and replacing the top-side image based on the bottom front image corresponding to each of the actual cultivation racks to obtain a calibration image; An updating module is used to determine the Pleurotus geesteranus cultivation data of each virtual cultivation rack according to the calibration image, display and update the corresponding virtual cultivation rack based on the Pleurotus geesteranus cultivation data, and obtain cultivation monitoring data and send it to the management end.
Citation Information
Patent Citations
Digital twinborn greenhouse planting monitoring method and system and storage medium
CN116721236A
A mushroom cultivating management system based on Augmented Reality by using an autonomous driving robot
KR1020210014268A