A method for comparative analysis of grain storage images
By arranging cameras and temperature and humidity monitoring points in the granary, real-time data of the grain pile is obtained and analyzed, and the moldy areas are automatically identified by combining images and temperature and humidity information, which solves the problem that traditional monitoring technology cannot monitor the grain pile environment in real time and comprehensively. Efficient mildew early warning and management support are achieved.
Patent Information
- Application Number
- CN202410993364.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-24
AI Technical Summary
Traditional granary monitoring technology cannot monitor the temperature and humidity distribution of grain piles in real time and comprehensively, making it difficult to detect problems such as mildew and insect damage in a timely manner. It lacks intelligent analysis capabilities and cannot provide timely and accurate early warning information.
Arrange camera monitoring points and temperature and humidity monitoring points in the granary. Through image splicing and data preprocessing, real-time and complete grain pile pictures and temperature and humidity distribution maps are obtained. Combined with visual color feature detection and multi-dimensional analysis, the moldy areas are automatically identified and designed. Set multi-level warning levels.
It achieves all-round monitoring of the internal environment and grain status of the granary, improves the comprehensiveness and accuracy of monitoring data, provides timely and accurate early warning of mildew, improves the intelligence level of granary management, and ensures the safety of grain storage. .
Smart Images

Figure CN118521808B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a grain storage image comparison and analysis method. Background Art
[0002] In the grain storage process, the quality and safety of finished grains are the core issues of grain storage management. Factors such as temperature and humidity conditions, mildew, and insect pests in the grain pile may have an adverse effect on the quality of finished grains and even cause serious economic losses.
[0003] Traditional grain storage monitoring technology mainly relies on manual inspection and simple temperature and humidity monitoring equipment. Manual inspection is not only time-consuming and laborious, but also cannot monitor in real time, making it difficult to detect problems in a timely manner. Traditional temperature and humidity monitoring equipment can only provide local and limited environmental information, and it is difficult to fully reflect the temperature and humidity distribution of the entire grain pile. The existing monitoring system lacks intelligent analysis capabilities, cannot conduct in-depth analysis of monitoring data, and is difficult to provide timely and accurate early warning information.
[0004] Therefore, timely monitoring and early warning of environmental changes and grain status inside the granary has become a technological development trend in modern granary management. Summary of the invention
[0005] In view of this, the present invention proposes a grain warehouse image comparison and analysis method, which is mainly to solve the problem of how to timely detect and warn the environmental changes and grain status inside the grain warehouse.
[0006] In one aspect, the present invention provides a grain storage image comparison and analysis method, the method comprising:
[0007] Several camera monitoring points are evenly arranged at the same height at the four corners of the top of the granary and in the middle of the inner side of the granary;
[0008] Set up several temperature and humidity monitoring points at the top, middle, bottom and surface of the grain silo;
[0009] Acquire real-time picture data of the grain pile taken by all the camera monitoring points, and perform image stitching on the real-time picture data taken by all the camera monitoring points at the same time to obtain real-time complete grain pile picture data;
[0010] Acquire the real-time temperature and humidity data monitored by all the temperature and humidity monitoring points and perform data preprocessing, and draw a spatial temperature and humidity distribution map inside the granary based on the real-time temperature and humidity data monitored by all the temperature and humidity monitoring points after data preprocessing;
[0011] Based on the spatial temperature and humidity distribution diagram, temperature and humidity information is superimposed on the real-time complete grain pile image data to obtain a temperature and humidity image composite diagram;
[0012] Visual color feature detection is performed on the temperature and humidity image composite image to determine whether the grain pile is moldy and whether an early warning is required.
[0013] In some embodiments of the present application, when real-time image data taken by all the camera monitoring points at the same time are stitched together to obtain real-time complete grain pile image data, the process includes:
[0014] The real-time image data captured by several camera monitoring points at the top four corners of the granary are recorded as top real-time image data;
[0015] The real-time image data obtained by taking pictures at several camera monitoring points at the same height in the middle of the inner side of the granary is recorded as the side real-time image data;
[0016] Performing perspective correction on the side real-time picture data so that the side real-time picture data has the same viewing angle as the top real-time picture data;
[0017] The top real-time image data and the perspective-corrected side real-time image data are denoised, and key feature points in each image are extracted using a feature point detection algorithm.
[0018] In some embodiments of the present application, after denoising the top real-time image data and the perspective-corrected side real-time image data and extracting key feature points in each image through a feature point detection algorithm, the method further includes:
[0019] Determine the corresponding key feature points in each image through a matching algorithm;
[0020] Calculating a transformation matrix between images based on the key feature points corresponding to each image;
[0021] The side real-time picture data and the top real-time picture data are aligned to the same coordinate system according to the transformation matrix, the side real-time picture data and the top real-time picture data aligned to one coordinate system are fused and spliced, and the spliced edges are smoothed to obtain the real-time complete grain pile picture data.
[0022] In some embodiments of the present application, when acquiring the real-time temperature and humidity data monitored by all the temperature and humidity monitoring points and performing data pre-processing, it includes:
[0023] The real-time temperature and humidity data is deduplicated, missing values are filled or deleted, and abnormal values are deleted or replaced.
[0024] In some embodiments of the present application, when drawing a spatial temperature and humidity distribution diagram inside a granary according to the real-time temperature and humidity data monitored by all the temperature and humidity monitoring points after data preprocessing, it includes:
[0025] Acquire a three-dimensional granary model of the granary, and convert the three-dimensional granary model into a finite element mesh structure;
[0026] Based on the real-time temperature and humidity data monitored by all the temperature and humidity monitoring points, spatial interpolation calculation is performed in the finite element grid structure by using the node interpolation method to obtain the temperature and humidity values of each node in the finite element grid structure, and a spatial temperature and humidity distribution diagram inside the granary is drawn according to the temperature and humidity values of each node in the finite element grid structure;
[0027] The finite element grid structure includes a plurality of hexahedral units, and each hexahedral unit includes 8 nodes.
[0028] In some embodiments of the present application, before performing visual color feature detection on the temperature and humidity image composite image to determine whether the grain pile is moldy and whether an early warning is required, it includes:
[0029] The temperature and humidity image composite image is subjected to image preprocessing, wherein the image preprocessing includes denoising, image enhancement and contrast adjustment.
[0030] In some embodiments of the present application, when performing visual color feature detection on the temperature and humidity image composite image to determine whether the grain pile is moldy and whether an early warning is required, it includes:
[0031] Performing color space conversion on the temperature and humidity image composite image after image preprocessing, converting the image from RGB color space to HSV color space;
[0032] A mildew HSV threshold range is preset, all pixels in the temperature and humidity image composite image are traversed, and a pixel combination area within the mildew HSV threshold range is used as a first warning area.
[0033] In some embodiments of the present application, after taking the pixel combination area within the mildew HSV threshold range as the first warning area, the method includes:
[0034] Preset the temperature threshold range and humidity threshold range where there is a risk of mildew;
[0035] Traversing the temperature and humidity image composite image to eliminate all remaining pixel areas in the first warning area, taking the pixel combination area that meets the temperature threshold range and humidity threshold range for the risk of mildew as the second warning area, and taking the pixel combination area that does not meet the temperature threshold range or humidity threshold range for the risk of mildew as the risk-free area;
[0036] An early warning is issued to the first early warning area and the second early warning area.
[0037] In some embodiments of the present application, after taking the pixel combination area within the mildew HSV threshold range as the first warning area, the method further includes:
[0038] A first preset warning level and a second preset warning level are preset, and the risk level of the first preset warning level is higher than the risk level of the second preset warning level;
[0039] Using the first preset warning level as the warning level of the first warning area;
[0040] The second preset warning level is used as the warning level of the second warning area.
[0041] Compared with the prior art, the present invention has the following beneficial effects: the present invention realizes all-round monitoring of the internal environment of the granary and the state of the grain pile by evenly arranging camera monitoring points at the top four corners and the middle of the side of the granary, and setting temperature and humidity monitoring points at different heights, thereby ensuring the comprehensiveness and accuracy of the monitoring data. By performing perspective correction, denoising, feature point detection and fusion splicing on real-time images taken by multiple camera monitoring points at the same time, complete grain pile image data is obtained, which effectively solves the problem of the limited viewing angle of a single camera and improves the accuracy and coverage of monitoring. The present invention uses a three-dimensional granary model and a finite element grid structure, combined with temperature and humidity monitoring data, to draw a spatial temperature and humidity distribution map inside the granary, making the temperature and humidity information more intuitive and detailed, and providing a reliable data basis for grain pile mildew detection. The temperature and humidity distribution map is superimposed on the complete grain pile image data to obtain a temperature and humidity image composite map, which realizes the fusion of image data and environmental data, and provides a rich information source for subsequent mildew detection. The present invention automatically identifies the mildewed area on the grain pile surface through color space conversion, mildew HSV threshold range setting and pixel traversal, and combines temperature and humidity data for multi-dimensional analysis to provide accurate and timely mildew warning, effectively improving the intelligent level of granary management. The present invention sets a multi-level warning level, identifies high-risk and medium- and low-risk areas respectively by analyzing temperature, humidity and color change information, and provides corresponding warning prompts, providing accurate decision-making support for granary managers. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Various other advantages and benefits will become apparent to those skilled in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only used for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. In the accompanying drawings:
[0043] Figure 1 A flowchart of a grain storage image comparison and analysis method provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art. It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with the implementation regulations.
[0045] See also Figure 1 As shown, this embodiment provides a grain storage image comparison and analysis method, including:
[0046] S101: Several camera monitoring points are evenly arranged at the same height at the four corners of the top of the granary and in the middle of the inner side of the granary;
[0047] S102: Setting a number of temperature and humidity monitoring points at the top, middle, bottom and surface of the grain silo;
[0048] S103: acquiring real-time image data of the grain pile taken by all the camera monitoring points, and performing image stitching on the real-time image data taken by all the camera monitoring points at the same time to obtain real-time complete grain pile image data;
[0049] S104: acquiring the real-time temperature and humidity data monitored by all the temperature and humidity monitoring points and performing data preprocessing, and drawing a spatial temperature and humidity distribution diagram inside the granary according to the real-time temperature and humidity data monitored by all the temperature and humidity monitoring points after the data preprocessing;
[0050] S105: Based on the spatial temperature and humidity distribution map, temperature and humidity information is superimposed on the real-time complete grain pile image data to obtain a temperature and humidity image composite map;
[0051] S106: Perform visual color feature detection on the temperature and humidity image composite image to determine whether the grain pile is moldy and whether an early warning is required.
[0052] It can be understood that in this embodiment, by evenly arranging camera monitoring points at the four corners of the top of the granary and the middle of the side, and setting temperature and humidity monitoring points at different heights, a comprehensive monitoring of the internal environment of the granary and the state of the grain pile is achieved, ensuring the comprehensiveness and accuracy of the monitoring data. The real-time pictures taken by multiple camera monitoring points at the same time are stitched together to solve the problem of the limited viewing angle of a single camera, obtain real-time and complete grain pile picture data, and improve monitoring accuracy and coverage. The temperature and humidity distribution map is superimposed on the complete grain pile picture data to generate a temperature and humidity image composite map, realize the fusion of image data and environmental data, and provide a rich source of information for mold detection. The superposition of temperature and humidity information and image data makes the environmental conditions of the grain pile clear at a glance, which is convenient for managers to make quick judgments and decisions. The data processing process is automated, reducing human intervention and errors, and improving the efficiency and accuracy of the overall monitoring system.
[0053] In some embodiments of the present application, when real-time image data taken by all the camera monitoring points at the same time are stitched together to obtain real-time complete grain pile image data, the process includes:
[0054] The real-time image data captured by several camera monitoring points at the top four corners of the granary are recorded as top real-time image data;
[0055] The real-time image data obtained by taking pictures at several camera monitoring points at the same height in the middle of the inner side of the granary is recorded as the side real-time image data;
[0056] Performing perspective correction on the side real-time picture data so that the side real-time picture data has the same viewing angle as the top real-time picture data;
[0057] The top real-time image data and the perspective-corrected side real-time image data are denoised, and key feature points in each image are extracted using a feature point detection algorithm.
[0058] In some embodiments of the present application, after denoising the top real-time image data and the perspective-corrected side real-time image data and extracting key feature points in each image through a feature point detection algorithm, the method further includes:
[0059] Determine the corresponding key feature points in each image through a matching algorithm;
[0060] Calculating a transformation matrix between images based on the key feature points corresponding to each image;
[0061] The side real-time picture data and the top real-time picture data are aligned to the same coordinate system according to the transformation matrix, the side real-time picture data and the top real-time picture data aligned to one coordinate system are fused and spliced, and the spliced edges are smoothed to obtain the real-time complete grain pile picture data.
[0062] It can be understood that in this embodiment, the perspective correction is used to make the side real-time picture data consistent with the top real-time picture data, solve the problem of the difference in the perspective of pictures taken at different angles, and ensure the accuracy and consistency of image splicing. The image is denoised to improve the image quality, make the spliced picture clearer, and help the subsequent image analysis and detection. The key feature points in each image are extracted by the feature point detection algorithm to ensure the accuracy of image alignment during the splicing process and improve the accuracy of image splicing. The corresponding key feature points in each image are determined by the matching algorithm, and the transformation matrix between the images is calculated to ensure the precise alignment of each part during the image splicing process. According to the transformation matrix, the side real-time picture data and the top real-time picture data are aligned to the same coordinate system, and fused and spliced, which solves the alignment problem in image splicing and obtains complete grain pile picture data. The splicing edge is smoothed to eliminate the edge discontinuity problem that may occur during the splicing process, making the spliced image more natural and continuous. Through image preprocessing, feature point extraction, matching algorithm and fusion splicing, high-quality complete grain pile picture data is obtained, which provides a reliable image basis for subsequent temperature and humidity information superposition and mildew detection. The entire image stitching and processing process is automated, reducing human intervention and errors and improving the efficiency and reliability of the overall system.
[0063] In some embodiments of the present application, when acquiring the real-time temperature and humidity data monitored by all the temperature and humidity monitoring points and performing data pre-processing, it includes:
[0064] The real-time temperature and humidity data is deduplicated, missing values are filled or deleted, and abnormal values are deleted or replaced.
[0065] In some embodiments of the present application, when drawing a spatial temperature and humidity distribution diagram inside a granary according to the real-time temperature and humidity data monitored by all the temperature and humidity monitoring points after data preprocessing, it includes:
[0066] Acquire a three-dimensional granary model of the granary, and convert the three-dimensional granary model into a finite element mesh structure;
[0067] Based on the real-time temperature and humidity data monitored by all the temperature and humidity monitoring points, spatial interpolation calculation is performed in the finite element grid structure by using the node interpolation method to obtain the temperature and humidity values of each node in the finite element grid structure, and a spatial temperature and humidity distribution diagram inside the granary is drawn according to the temperature and humidity values of each node in the finite element grid structure;
[0068] The finite element grid structure includes a plurality of hexahedral units, and each hexahedral unit includes 8 nodes.
[0069] It is understandable that in this embodiment, by deleting duplicate data, the uniqueness and accuracy of the data are ensured, and the redundant data is prevented from affecting the analysis results. By obtaining the three-dimensional model of the granary and converting it into a finite element grid structure, the drawing of the spatial temperature and humidity distribution map is made more accurate and intuitive. Based on the finite element grid structure, the spatial interpolation calculation is performed by the node interpolation method, and the temperature and humidity values of each node can be accurately obtained, and the high-precision distribution map drawing of the temperature and humidity data can be realized. The finite element grid structure of the hexahedral unit is adopted, and each unit includes 8 nodes, which ensures the meticulousness and accuracy of the temperature and humidity distribution map, and can better reflect the environmental changes inside the granary. Through the preprocessing of the temperature and humidity data and the drawing of the spatial distribution map, the multi-dimensional fusion of the data is realized, which provides a basis for the comprehensive monitoring of the granary environment. The spatial temperature and humidity distribution map can accurately reflect the environmental changes inside the granary, provide a reliable basis for the mildew warning, and improve the timeliness and accuracy of the warning. The data preprocessing step ensures the high quality of the input data, provides a reliable data basis for subsequent analysis and warning, and reduces the possibility of false alarms and missed reports. Through the accurate spatial temperature and humidity distribution map, a detailed analysis of the granary environment is achieved, which can detect potential mold risks earlier and more accurately, and improve the reliability and effectiveness of the early warning system. Through the high-precision spatial temperature and humidity distribution map, managers can intuitively see the temperature and humidity distribution inside the granary, providing intuitive data support for decision-making. The meticulous grid structure and accurate interpolation calculation can capture subtle changes in the internal environment of the granary, which helps to timely discover and respond to potential mold risks.
[0070] In some embodiments of the present application, before performing visual color feature detection on the temperature and humidity image composite image to determine whether the grain pile is moldy and whether an early warning is required, it includes:
[0071] The temperature and humidity image composite image is subjected to image preprocessing, wherein the image preprocessing includes denoising, image enhancement and contrast adjustment.
[0072] In some embodiments of the present application, when performing visual color feature detection on the temperature and humidity image composite image to determine whether the grain pile is moldy and whether an early warning is required, it includes:
[0073] Performing color space conversion on the temperature and humidity image composite image after image preprocessing, converting the image from RGB color space to HSV color space;
[0074] A mildew HSV threshold range is preset, all pixels in the temperature and humidity image composite image are traversed, and a pixel combination area within the mildew HSV threshold range is used as a first warning area.
[0075] It is understandable that in this embodiment, the image is converted from RGB color space to HSV color space, which is more suitable for color feature analysis and detection, and helps to accurately identify the moldy area. HSV color space can better separate color features, especially for detecting specific color changes such as moldy, the effect of HSV color space is more significant. By presetting the HSV threshold range of the moldy color, it is ensured that the detection of the moldy area is targeted and accurate, and false positives and false negatives are reduced. Traverse all pixels in the temperature and humidity image composite image, compare their HSV values one by one, ensure that each area where moldy may exist is fully detected, and improve the coverage and accuracy of the detection. The pixel area within the moldy HSV threshold range is used as the first warning area to achieve rapid detection and warning of moldy, and timely remind managers to take measures to prevent the spread of moldy. By setting a clear threshold range and a pixel-by-pixel traversal method, the efficiency and reliability of the early warning system are ensured, and timely and effective early warning information is provided for granary management. Steps such as image preprocessing and color space conversion can be automated to reduce manual intervention and improve work efficiency. Through the combination of image quality improvement and color feature analysis, the precision and accuracy of mold detection have been greatly improved, ensuring the safe storage of grain in granaries.
[0076] In some embodiments of the present application, after taking the pixel combination area within the mildew HSV threshold range as the first warning area, the method includes:
[0077] Preset the temperature threshold range and humidity threshold range where there is a risk of mildew;
[0078] Traversing the temperature and humidity image composite image to eliminate all remaining pixel areas in the first warning area, taking the pixel combination area that meets the temperature threshold range and humidity threshold range for the risk of mildew as the second warning area, and taking the pixel combination area that does not meet the temperature threshold range or humidity threshold range for the risk of mildew as the risk-free area;
[0079] An early warning is issued to the first early warning area and the second early warning area.
[0080] It is understandable that in this embodiment, when detecting the moldy area, not only the color characteristics are considered, but also the temperature and humidity factors are comprehensively considered. By setting the temperature and humidity thresholds of the mold risk, the potential moldy area can be identified more accurately. Combining the temperature and humidity data for analysis helps to exclude areas with only color changes but no actual moldy conditions, reduce the possibility of false alarms, and improve the accuracy of early warning. The area that meets the moldy HSV threshold range is initially detected as the first early warning area, and the problem area most likely to have mold is promptly identified. Outside the first early warning area, further screening is performed through temperature and humidity data to identify areas with moldy risks to ensure comprehensive coverage and fine detection. By setting the first early warning area and the second early warning area, the moldy risk can be classified and managed. The first early warning area represents the area where the moldy color changes significantly, and the second early warning area is the potential moldy area under temperature and humidity conditions, which helps managers take corresponding measures according to different risk levels. Different early warning areas can adopt different response strategies according to actual conditions to improve the refinement and scientific level of granary management.
[0081] In some embodiments of the present application, after taking the pixel combination area within the mildew HSV threshold range as the first warning area, the method further includes:
[0082] A first preset warning level and a second preset warning level are preset, and the risk level of the first preset warning level is higher than the risk level of the second preset warning level;
[0083] Using the first preset warning level as the warning level of the first warning area;
[0084] The second preset warning level is used as the warning level of the second warning area.
[0085] It is understandable that in this embodiment, by setting different warning levels, the risk of mildew can be managed in a hierarchical manner, with the first preset warning level having a higher risk and the second preset warning level having a lower risk. Such hierarchical management helps to distinguish different degrees of mildew risk, so that managers can take corresponding measures for different risk levels. According to different warning levels, managers can give priority to high-risk areas and take timely intervention measures to prevent the spread of mildew, thereby ensuring the safety of grain storage. Through the dual confirmation of color characteristics and temperature and humidity data, the hierarchical warning can more accurately identify the mildew risk area, reduce the possibility of false alarms and missed reports, and ensure the accuracy and reliability of the test results. The hierarchical warning provides more detailed risk information, and managers can make more accurate and effective decisions based on scientific data analysis to optimize the granary management process. The hierarchical warning system can help managers reasonably allocate inspection and processing resources, focus on monitoring and processing high-risk areas, and perform routine maintenance on low-risk areas, avoid waste of resources, and improve management efficiency. When a high-risk warning occurs, resources can be mobilized in time for emergency response, problems can be quickly handled, and the risk of grain loss can be reduced. Through the automated early warning system, the workload of manual monitoring is reduced and the overall management efficiency is improved. Managers can quickly locate problem areas based on warning levels and conduct targeted inspections and maintenance.
[0086] Those skilled in the art will appreciate that the embodiments of the present application may provide methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0087] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0088] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0089] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0090] 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 above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A grain storage image comparison and analysis method, characterized in that: include: Several camera monitoring points are evenly arranged at the same height at the four corners of the top of the granary and in the middle of the inner side of the granary; Set up several temperature and humidity monitoring points at the top, middle, bottom and surface of the grain silo; Acquire real-time picture data of the grain pile taken by all the camera monitoring points, and perform image stitching on the real-time picture data taken by all the camera monitoring points at the same time to obtain real-time complete grain pile picture data; Acquire the real-time temperature and humidity data monitored by all the temperature and humidity monitoring points and perform data preprocessing, and draw a spatial temperature and humidity distribution map inside the granary based on the real-time temperature and humidity data monitored by all the temperature and humidity monitoring points after data preprocessing; Based on the spatial temperature and humidity distribution diagram, temperature and humidity information is superimposed on the real-time complete grain pile image data to obtain a temperature and humidity image composite diagram; Performing visual color feature detection on the temperature and humidity image composite image to determine whether the grain pile is moldy and whether an early warning is required; When real-time image data taken by all the camera monitoring points at the same time are stitched together to obtain real-time complete grain pile image data, the method includes: The real-time image data captured by several camera monitoring points at the top four corners of the granary are recorded as top real-time image data; The real-time image data obtained by taking pictures at several camera monitoring points at the same height in the middle of the inner side of the granary is recorded as the side real-time image data; Performing perspective correction on the side real-time picture data so that the side real-time picture data has the same viewing angle as the top real-time picture data; The top real-time image data and the perspective-corrected side real-time image data are denoised, and key feature points in each image are extracted using a feature point detection algorithm.
2. The grain storage image comparison and analysis method according to claim 1 is characterized in that: After denoising the top real-time image data and the perspective-corrected side real-time image data and extracting key feature points in each image through a feature point detection algorithm, the method further includes: Determine the corresponding key feature points in each image through a matching algorithm; Calculating a transformation matrix between images based on the key feature points corresponding to each image; The side real-time picture data and the top real-time picture data are aligned to the same coordinate system according to the transformation matrix, the side real-time picture data and the top real-time picture data aligned to one coordinate system are fused and spliced, and the spliced edges are smoothed to obtain the real-time complete grain pile picture data.
3. The grain storage image comparison and analysis method according to claim 2 is characterized in that: When obtaining the real-time temperature and humidity data monitored by all the temperature and humidity monitoring points and performing data preprocessing, it includes: The real-time temperature and humidity data is deduplicated, missing values are filled or deleted, and abnormal values are deleted or replaced.
4. The grain storage image comparison and analysis method according to claim 3 is characterized in that: When drawing a spatial temperature and humidity distribution diagram inside the granary based on the real-time temperature and humidity data monitored by all the temperature and humidity monitoring points after data preprocessing, it includes: Acquire a three-dimensional granary model of the granary, and convert the three-dimensional granary model into a finite element mesh structure; Based on the real-time temperature and humidity data monitored by all the temperature and humidity monitoring points, spatial interpolation calculation is performed in the finite element grid structure by using the node interpolation method to obtain the temperature and humidity values of each node in the finite element grid structure, and a spatial temperature and humidity distribution diagram inside the granary is drawn according to the temperature and humidity values of each node in the finite element grid structure; The finite element grid structure includes a plurality of hexahedral units, and each hexahedral unit includes 8 nodes.
5. The grain storage image comparison and analysis method according to claim 4 is characterized in that: Before performing visual color feature detection on the temperature and humidity image composite image to determine whether the grain pile is moldy and whether an early warning is required, the following steps are included: The temperature and humidity image composite image is subjected to image preprocessing, wherein the image preprocessing includes denoising, image enhancement and contrast adjustment.
6. The grain storage image comparison and analysis method according to claim 5 is characterized in that: When performing visual color feature detection on the temperature and humidity image composite image to determine whether the grain pile is moldy and whether an early warning is required, it includes: Performing color space conversion on the temperature and humidity image composite image after image preprocessing, converting the image from RGB color space to HSV color space; A mildew HSV threshold range is preset, all pixels in the temperature and humidity image composite image are traversed, and a pixel combination area within the mildew HSV threshold range is used as a first warning area.
7. The grain storage image comparison and analysis method according to claim 6 is characterized in that: After the pixel combination area within the mildew HSV threshold range is used as the first warning area, the method includes: Preset the temperature threshold range and humidity threshold range where there is a risk of mildew; Traversing the temperature and humidity image composite image to eliminate all remaining pixel areas in the first warning area, taking the pixel combination area that meets the temperature threshold range and humidity threshold range for the risk of mildew as the second warning area, and taking the pixel combination area that does not meet the temperature threshold range or humidity threshold range for the risk of mildew as the risk-free area; An early warning is issued to the first early warning area and the second early warning area.
8. The grain storage image comparison and analysis method according to claim 7 is characterized in that: After taking the pixel combination area within the mildew HSV threshold range as the first warning area, the method further includes: A first preset warning level and a second preset warning level are preset, and the risk level of the first preset warning level is higher than the risk level of the second preset warning level; Using the first preset warning level as the warning level of the first warning area; The second preset warning level is used as the warning level of the second warning area.
