Cloud condition identification method and equipment based on all-sky imager
By using three-dimensional three-dimensional spatial coordinate system and deep learning algorithms to identify clear sky and cloud areas in all-sky imagers, the problem of insufficient accuracy and resolution of total cloud and cloud-like recognition in the prior art is solved. , realizes coordinated high-quality observation of total cloud volume and cloud shape, and improves data quality.
Patent Information
- Application Number
- CN202411172483.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-11-29
AI Technical Summary
The prior art has insufficient accuracy and resolution in total cloud volume and cloud-like identification, especially in some lighting conditions, and the impact of ground objects occlusion has been effectively eliminated, resulting in a decline in the quality of observation data, and the existing methods have not been sufficient. Consider the correlation between cloud shape and cloud volume.
Using the method based on all-sky imager, the vertical field of view angle resolution is obtained through a three-dimensional three-dimensional spatial coordinate system, the actual sky area of the pixel unit is calculated, and the deep learning semantic segmentation and classification algorithm is combined to identify the clear sky and cloud areas, and the total cloud volume is calculated. And make consistency judgments to improve the accuracy of identification results.
Achieve coordinated high-quality observations of total cloud and cloud shape, improve data availability and accuracy, eliminate the impact of land objects, ensure the consistency judgment between cloud shape and cloud shape, and improve the observation data quality.
Smart Images

Figure CN119048827A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of meteorological data processing, and in particular to a cloud condition recognition method, system, readable storage medium and computer equipment based on an all-sky imager. Background Art
[0002] The current all-sky imager uses a fisheye camera or spherical reflection method to capture all-sky images with a horizontal field of view of 360° and a vertical field of view of 180°, and uses algorithms to extract cloud information from the image, including total cloud amount and cloud shape. For total cloud amount recognition, the cloud area is mainly extracted from the image by computer vision or deep learning. Due to the large changes in the color of the clouds caused by changes in the solar altitude angle and weather conditions, fixed rule methods often cannot achieve good results. For example, the invention patent (CN103472501A) detects clouds in the cloud map through a segmentation threshold; the total cloud amount in the sky is calculated based on the proportion of clouds in the all-sky cloud map to the entire all-sky cloud map. The invention detects clouds in the cloud map through the sky cloud map segmentation threshold corresponding to different sky types, and fully considers the impact of different weather conditions on the detection results of the all-sky cloud map. In comparison, the deep learning method has better performance.
[0003] For cloud observation and recognition, the main methods are also divided into two methods: computer vision feature extraction and deep learning classification model. Computer vision is to identify cloud shapes by artificially constructing cloud color, texture and area features. However, due to the large number of cloud classifications and complex features, this method is often difficult to achieve good recognition results. The deep learning method has a good recognition accuracy rate and can automatically learn the features of each cloud shape, avoiding the inaccuracy and subjectivity of artificially constructed features. For example, the invention patent "CN111507399A" uses a cloud recognition and model training method and device based on deep learning, and uses deep learning methods for cloud recognition. The paper "Research on Cloud Recognition Method Based on Image Deep Learning" also uses a similar method to analyze the full sky image and output cloud shapes. The master's thesis "Research on Cloud Shape and Cloud Amount Recognition Technology Based on Lightweight Convolutional Neural Network" also uses deep learning methods to classify cloud shapes and classify total cloud amount according to percentage, and outputs total cloud amount and cloud shape respectively.
[0004] Existing methods for total cloud cover recognition generally only use computer vision or deep learning classification methods to calculate the total cloud cover, and do not quantitatively calculate the cloud cover of the entire sky from the perspective of image segmentation and projection transformation. Therefore, the total cloud cover obtained is inaccurate and has low resolution under partial lighting conditions, and cannot complete the total cloud cover output with a resolution of 1%.
[0005] The existing total cloud amount calculation method does not quantitatively eliminate the impact of ground obstruction. Since surrounding buildings and other objects may affect the entire sky observation area, obstruction may cause errors in total cloud amount and cloud shape identification.
[0006] The existing total cloud amount and cloud shape recognition schemes do not take the relationship between the two into account, and only recognize the cloud shape and cloud amount separately. Due to the natural correlation between cloud shape and cloud amount, if fusion and cross-analysis are not performed, it will cause contradictions in the observation data and reduce the quality of the observation data. Summary of the invention
[0007] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0008] To this end, the object of the present invention is to provide a cloud condition identification method and device based on a full-sky imager, which can coordinate high-quality observation of total cloud amount and cloud shape.
[0009] To achieve the above-mentioned purpose, the technical solution of the first aspect of the present invention provides a cloud condition recognition method based on an all-sky imager, comprising:
[0010] Acquire an all-sky image taken by the all-sky imager;
[0011] Obtaining a vertical field of view angular resolution corresponding to the all-sky imager according to a three-dimensional spatial coordinate system centered on the all-sky imager;
[0012] Obtaining a coordinate point relationship between pixel coordinates in the full sky image and space coordinates in the three-dimensional space coordinate system according to the vertical field of view angle resolution;
[0013] Calculate, based on the coordinate point relationship, a coordinate plane relationship between the pixel unit where the pixel coordinate is located and the sky area where the spatial coordinate is located;
[0014] Calculate the actual sky area corresponding to each pixel unit according to the coordinate plane relationship;
[0015] Identify the image category of each pixel in the full sky image according to a preset deep learning semantic segmentation algorithm, wherein the image category includes clear sky area, cloud covered area and other areas;
[0016] The actual sky area corresponding to each pixel unit calculates the actual clear sky area and the actual cloud area respectively;
[0017] Calculate the total cloud cover in the sky according to the actual clear sky area and the actual cloud area;
[0018] Identify cloud shapes in each image category based on a preset deep learning classification algorithm;
[0019] Perform a consistency judgment based on the cloud shape and the total amount of sky cloud cover, and output the judgment result.
[0020] In the above technical solution, preferably, when the input full-sky image is an image I with a pixel size of H×W for each pixel, the deep learning semantic segmentation algorithm is the sky segmentation model F based on OneFormer, R = F(I), where R represents a two-dimensional array of image categories.
[0021] In any of the above technical solutions, preferably, identifying the cloud shape in each image category according to a preset deep learning classification algorithm includes:
[0022] Receiving the pixel data of the clear sky area and the cloud-covered area in the image category;
[0023] Identifying the shape information of the cloud in the pixel data;
[0024] Judging the probability of the cloud belonging to a certain cloud shape according to the shape information of the cloud;
[0025] Marking the cloud shape code of the cloud according to a preset coding rule and outputting the marking result.
[0026] In any of the above technical solutions, preferably, the expression for judging the probability of the cloud belonging to a certain cloud shape according to the shape information of the cloud is: P = G(I(R = 0丨R = 1));
[0027] Where G is the function DenseNet256 of the deep learning classification algorithm for identifying cloud shapes; I is the full-sky image; R is a two-dimensional array representing image categories;
[0028] The expression of the preset coding rule is:
[0029] Where P is the probability of the cloud belonging to a certain cloud shape, and P j is the recognition probability of the jth cloud shape.
[0030] In any of the above technical solutions, preferably, performing a consistency judgment based on the cloud shape and the total amount of sky cloud cover and outputting the judgment result includes:
[0031] When the calculated total amount of sky cloud cover is 0 and a cloud shape is identified in the image category, set the quality control code of the cloud shape to suspicious;
[0032] When the cloud shape is stratocumulus opacus, altostratus opacus or altocumulus opacus and the calculated total amount of sky cloud cover is less than 100%, mark the quality control code of the total amount of sky cloud cover as incorrect;
[0033] When the cloud is cumulonimbus, nimbostratus or broken rain cloud, the calculated total cloud amount for the whole sky is less than 100%, and the quality control code of the total cloud amount for the whole sky is marked as error;
[0034] When the cloud shape is cumulus, including cumulus light, cumulus fragmentary, and cumulus congestus, the calculated total cloud amount of the whole sky is 0 or 100%, and the quality control code of the total cloud amount of the whole sky is marked as suspicious;
[0035] When the cloud shape recognition result is stratocumulus opacis, nimbostratus or nimbus, and the cloud shape recognition result is a cloud shape in the middle cloud and high cloud families, the recognition result is removed;
[0036] When the cloud shape recognition result is altocumulus obscurus, and the cloud shape recognition result is a cloud shape in the high cloud family, the recognition result is eliminated.
[0037] In any of the above technical solutions, preferably, the expression of the vertical field angle resolution α is: fov is the vertical field of view, fov = 180° = π, N is the pixel size N×N of the all-sky image taken by the all-sky imager;
[0038] The coordinate point relationship between the pixel coordinates in the full sky image and the spatial coordinates in the three-dimensional spatial coordinate system is: Wherein, the point in the full sky image is the i-th pixel in the horizontal direction and the j-th pixel in the vertical direction; x, y, z are the coordinates of the actual position P of the point in the full sky image corresponding to the three-dimensional spatial coordinate system;
[0039]
[0040]
[0041] Each pixel unit P i,j The corresponding actual sky area S i,j :
[0042]
[0043] In any of the above technical solutions, preferably,
[0044] Actual clear sky area
[0045] Actual area of the cloud
[0046] Total cloud cover
[0047] ROUND 2 means rounding to two decimal places, the total cloud cover value of the whole sky is an integer type, and the unit is %; the size of each pixel in the whole sky image is H×W.
[0048] The technical solution of the second aspect of the present invention provides a cloud condition recognition system based on an all-sky imager, comprising:
[0049] An acquisition module is configured to acquire an all-sky image taken by the all-sky imager;
[0050] A resolution calculation module is configured to obtain a vertical field angle resolution corresponding to the all-sky imager according to a three-dimensional spatial coordinate system centered on the all-sky imager;
[0051] A coordinate point relationship building module is configured to obtain a coordinate point relationship between pixel coordinates in the full sky image and space coordinates in the three-dimensional space coordinate system according to the vertical field of view angle resolution;
[0052] A coordinate plane relationship building module is configured to calculate, based on the coordinate point relationship, a coordinate plane relationship between the pixel unit where the pixel coordinate is located and the sky area where the spatial coordinate is located;
[0053] A pixel area calculation module is configured to calculate the actual sky area corresponding to each pixel unit according to the coordinate plane relationship;
[0054] An image category recognition module is configured to recognize an image category of each pixel in the full sky image according to a preset deep learning semantic segmentation algorithm, wherein the image categories include clear sky areas, cloud covered areas, and other areas;
[0055] A clear sky and cloud actual area calculation module is configured to calculate the clear sky actual area and the cloud actual area respectively for the actual sky area corresponding to each pixel unit;
[0056] A total cloud amount calculation module is configured to calculate the total cloud amount of the entire sky according to the actual clear sky area and the actual cloud area;
[0057] a cloud shape recognition module configured to recognize cloud shapes in each image category according to a preset deep learning classification algorithm;
[0058] The consistency judgment module is configured to perform consistency judgment based on the cloud shape and the total cloud amount in the entire sky, and output a judgment result.
[0059] The technical solution of the third aspect of the present invention provides a readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the cloud condition identification method based on the all-sky imager provided by the technical solution of the first aspect are implemented.
[0060] The technical solution of the fourth aspect of the present invention provides a computer device, including a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to implement the steps of the cloud condition identification method based on the all-sky imager provided by the technical solution of the first aspect above.
[0061] Compared with the prior art, the cloud condition recognition method and device based on the all-sky imager provided by the present invention have the following advantages: the sky area, cloud area and obstruction areas such as buildings in the image are identified by a segmentation algorithm, and then the cloud area is analyzed by projection transformation to obtain the total cloud amount; the cloud area and the sky area are analyzed by a deep learning classification method to obtain the cloud shape; finally, the associated constraint relationship between the total cloud amount and the cloud shape is used to cross-quality control the identified data to form a data quality control code, which can coordinate high-quality observations on the recognition results of the total cloud amount and cloud shape of the whole sky, thereby improving the availability of data. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0063] Figure 1 A flowchart of a cloud status identification method according to an embodiment of the present invention is shown;
[0064] Figure 2 A flowchart of step S9 according to an embodiment of the present invention is shown;
[0065] Figure 3 A structural block diagram of a cloud status identification system according to an embodiment of the present invention is shown;
[0066] Figure 4 A schematic diagram of a world space coordinate system centered on an all-sky imager involved in an embodiment of the present invention is shown;
[0067] Figure 5 A schematic diagram of the imaging principle of the all-sky imager involved in an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0068] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0069] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0070] like Figures 1 to 4 As shown, according to an embodiment of the present invention, a cloud condition recognition method based on an all-sky imager includes:
[0071] S1, obtaining an all-sky image taken by the all-sky imager;
[0072] S2, obtaining a vertical field angle resolution corresponding to the all-sky imager according to a three-dimensional spatial coordinate system centered on the all-sky imager;
[0073] Under the condition of equidistant projection, each single pixel is equal to a small viewing angle in three-dimensional space, which is the vertical field of view resolution.
[0074] In this step, the full sky imager has a vertical field of view of 180° and a horizontal field of view of 360°, and can capture a complete sky image. After standard installation, the full sky imager can observe the sky at a zenith angle of 0°, and the zenith angle of the horizontal skyline is 90°. In order to obtain a conversion relationship that can reflect the true size and position of an object, a three-dimensional world space coordinate system is established with the full sky imager as the center.
[0075] The original all-sky imager image uses equidistant projection, so there is a distortion phenomenon in which the central objects of the image actually taken of the sky are larger and the edge objects are compressed. That is, the sky area corresponding to the pixels in the edge area of the image will cover a larger area than that in the central area.
[0076] S3, obtaining a coordinate point relationship between pixel coordinates in the full sky image and spatial coordinates in the three-dimensional spatial coordinate system according to the vertical field of view angle resolution;
[0077] In this step, assuming that the center of the image is the origin, and assuming that we have a point in the image, which is the i-th pixel in the horizontal direction and the j-th pixel in the vertical direction, based on the relationship of isometric projection, we can obtain the relationship between the actual position of the object corresponding to the pixel in the image in the three-dimensional space coordinate system.
[0078] S4, calculating, according to the coordinate point relationship, a coordinate plane relationship between the pixel unit where the pixel coordinate is located and the sky area where the spatial coordinate is located;
[0079] In this step, the original pixel coordinate data is converted into a new corresponding spatial coordinate system data, where the pixels are located at their real positions. These new pixels will not be evenly distributed, and the pixels in the edge area will be sparser than those in the center area. Then the area of the sky horizontal plane represented by each pixel is different. In this scheme, it is assumed that the corresponding area of each pixel on the sky is the quadrilateral area corresponding to the four corner points of the pixel. Then, according to the isometric projection model, the coordinates of the four vertices of the pixel in the image in the three-dimensional spatial coordinate system can be calculated.
[0080] S5, calculating the actual sky area corresponding to each pixel unit according to the coordinate plane relationship;
[0081] S6, identifying an image category of each pixel in the full sky image according to a preset deep learning semantic segmentation algorithm, wherein the image category includes a clear sky area, a cloud covered area, and other areas;
[0082] In this step, OneFormer, a deep learning semantic segmentation algorithm, is used to detect the sky, clouds, and other ground objects (such as buildings) in the cloud image, that is, to classify each pixel into one of the three categories: clear sky, clouds, or others.
[0083] S7, calculating the clear sky actual area and the cloud actual area respectively for the actual sky area corresponding to each pixel unit;
[0084] S8, calculating the total cloud cover in the sky according to the actual clear sky area and the actual cloud area;
[0085] S9, identifying the cloud shape in each image category according to a preset deep learning classification algorithm;
[0086] In this step, the deep learning classification algorithm DenseNet256 is used to classify and detect the cloud shapes in the all-sky imager to obtain cloud shapes. The deep learning algorithm model is trained using tens of thousands of images and can identify the 29 cloud shapes specified by WMO and 30 types of clouds in the sky without clouds all day. The names and definitions of the 29 cloud shapes specified by WMO are shown in the following table:
[0087]
[0088]
[0089] S10, performing consistency judgment based on the cloud shape and the total cloud amount in the sky, and outputting the judgment result.
[0090] In this step, since there is a mutual correlation between cloud types and cloud amount, especially the definition of some cloud types is related to the distribution of cloud amount, the cloud types and cloud amount need to be consistent. If there is an inconsistency between the two, at least the identification and observation results of one variable will be suspicious or incorrect.
[0091] In the above embodiment, preferably, when the input is the image I with each pixel size of H×W in the all-sky image, the deep learning semantic segmentation algorithm is the sky segmentation model F based on OneFormer. The function operation principle and code of the sky segmentation model of OneFormer are introduced in detail at http: / / export.arxiv.org / abs / 2211.06220. In this application, on the basis of pre-training OneFormer, the parameters in the sky segmentation model of OneFormer are further trained and fine-tuned using the labeled dataset, and R = F(I), where R represents a two-dimensional array of image categories.
[0092] As Figure 2 shown, in any of the above embodiments, preferably, identifying the cloud type in each image category according to the preset deep learning classification algorithm includes:
[0093] S91, receiving the pixel data of the clear sky area and the cloud-covered area in the image category;
[0094] S92, identifying the shape information of the cloud in the pixel data;
[0095] S93, judging the probability of the cloud belonging to the cloud type according to the shape information of the cloud;
[0096] S94, performing cloud type coding and marking on the cloud according to the preset coding rule and outputting the marking result.
[0097] In any of the above embodiments, preferably, the expression for judging the probability of the cloud belonging to the cloud type according to the shape information of the cloud is: P = G(I(R = 0|R = 1));
[0098] where G is the function DenseNet256 of the deep learning classification algorithm for identifying cloud types. The operation principle and code of this algorithm model are introduced in detail at https: / / ieeexplore.ieee.org / document / 8099726. In this application, by using the cloud type labeled dataset to train the function DenseNet256, a deep learning classification algorithm capable of identifying cloud types is obtained; I is the all-sky image; R is a two-dimensional array representing image categories.
[0099] The expression of the preset coding rule is:
[0100] Among them, P is the probability of the cloud type to which the cloud belongs, P j is the probability of the j-th cloud shape.
[0101] In any of the above embodiments, preferably, performing consistency judgment based on the cloud shape and the total cloud amount in the sky, and outputting the judgment result includes:
[0102] When the calculated total cloud amount of the whole sky is 0 and cloud shape is identified in the image category, the quality control code of the cloud shape is set to suspicious;
[0103] When the cloud type is stratocumulus obscurus, altocumulus obscurus or altocumulus obscurus, and the calculated total cloud amount for the entire sky is less than 100%, the quality control code of the total cloud amount for the entire sky is marked as an error;
[0104] In this step, when the cloud type includes cloud types that obscure light, including stratocumulus that obscure light, altocumulus that obscure light, and altocumulus that obscure light, the total cloud cover in the sky must be 100% full cloud; when the cloud type is light cumulus, the total cloud cover must be greater than 0 and less than 100%.
[0105] When the cloud is cumulonimbus, nimbostratus or broken rain cloud, the calculated total cloud amount for the whole sky is less than 100%, and the quality control code of the total cloud amount for the whole sky is marked as error;
[0106] In this step, when the cloud type contains precipitation-type clouds, including cumulonimbus clouds, nimbostratus clouds, and broken rain clouds, the total cloud amount in the sky must be 100% full cloud; when the cloud type is light cumulus clouds, the total cloud amount must be greater than 0 and less than 100%.
[0107] When the cloud shape is cumulus, including cumulus light, cumulus fragmentary, and cumulus congestus, the calculated total cloud amount of the whole sky is 0 or 100%, and the quality control code of the total cloud amount of the whole sky is marked as suspicious;
[0108] In this step, when the cloud shape is cumulus, including cumulus light, cumulus fragmentary, and cumulus congestus, the total cloud cover in the sky must be greater than 0 and less than 100%.
[0109] When the cloud shape recognition result is stratocumulus opacis, nimbostratus or nimbus, and the cloud shape recognition result is a cloud shape in the middle cloud and high cloud families, the recognition result is removed;
[0110] In this step, when the cloud shape recognition result includes stratocumulus opacis, nimbostratus, and nimbus, the cloud shape recognition result should not include cloud shapes in the middle cloud and high cloud families.
[0111] When the cloud shape recognition result is altocumulus obscuring light, and the cloud shape recognition result is a cloud shape in the high cloud family, the recognition result is eliminated;
[0112] In this step, when the cloud shape recognition result includes altocumulus obscurans, the cloud shape recognition result should not have cloud shapes in the high cloud family.
[0113] In any of the above embodiments, preferably, the vertical field of view angle resolution α is expressed as: fov is the vertical field of view, fov = 180° = π, N is the pixel size N×N of the all-sky image taken by the all-sky imager;
[0114] The coordinate point relationship between the pixel coordinates in the full sky image and the spatial coordinates in the three-dimensional spatial coordinate system is: Wherein, the point in the full sky image is the i-th pixel in the horizontal direction and the j-th pixel in the vertical direction; x, y, z are the coordinates of the actual position P of the point in the full sky image corresponding to the three-dimensional spatial coordinate system;
[0115]
[0116] Each pixel unit P i,j The corresponding actual sky area S i,j :
[0117]
[0118] In any of the above embodiments, preferably,
[0119] Actual clear sky area
[0120] Actual area of the cloud
[0121] Total cloud cover
[0122] ROUND 2 means rounding to two decimal places, and the total cloud cover value for the entire sky is an integer in %.
[0123] like Figure 5 As shown, a cloud condition recognition system 100 based on an all-sky imager according to another embodiment of the present invention includes:
[0124] An acquisition module 1 is configured to acquire an all-sky image taken by the all-sky imager;
[0125] A resolution calculation module 2 is configured to obtain a vertical field angle resolution corresponding to the all-sky imager according to a three-dimensional spatial coordinate system centered on the all-sky imager;
[0126] A coordinate point relationship building module 3 is configured to obtain a coordinate point relationship between pixel coordinates in the full sky image and space coordinates in the three-dimensional space coordinate system according to the vertical field of view angle resolution;
[0127] A coordinate plane relationship building module 4 is configured to calculate, according to the coordinate point relationship, a coordinate plane relationship between the pixel unit where the pixel coordinate is located and the sky area where the space coordinate is located;
[0128] A pixel area calculation module 5 is configured to calculate the actual sky area corresponding to each pixel unit according to the coordinate plane relationship;
[0129] An image category recognition module 6 is configured to recognize the image category of each pixel in the full sky image according to a preset deep learning semantic segmentation algorithm, wherein the image categories include clear sky areas, cloud covered areas, and other areas;
[0130] A clear sky and cloud actual area calculation module 7 is configured to calculate the clear sky actual area and the cloud actual area respectively for the actual sky area corresponding to each pixel unit;
[0131] A total cloud amount calculation module 8 is configured to calculate the total cloud amount of the entire sky according to the actual clear sky area and the actual cloud area;
[0132] a cloud shape recognition module 9, configured to recognize the cloud shape in each image category according to a preset deep learning classification algorithm;
[0133] The consistency judgment module 10 is configured to perform consistency judgment based on the cloud shape and the total cloud amount in the sky, and output a judgment result.
[0134] Based on the above Figures 1 to 4 The method shown, accordingly, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the cloud condition identification method based on the all-sky imager in any of the above embodiments are implemented.
[0135] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.
[0136] Based on the above Figures 1 to 4 The method shown, and Figure 5In the virtual device embodiment shown, in order to achieve the above-mentioned purpose, the embodiment of the present application also provides a computer device, including a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to implement the steps of the cloud condition identification method based on the all-sky imager in any of the above-mentioned embodiments.
[0137] Optionally, the computer device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), etc.
[0138] Those skilled in the art will appreciate that the computer device structure provided in this embodiment does not limit the computer device, and may include more or fewer components, or a combination of certain components, or different component arrangements.
[0139] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages and saves the hardware and software resources of the computer device, and supports the operation of information processing programs and other software and / or programs. The network communication module is used to realize communication between the components inside the storage medium, and communication with other hardware and software in the physical device.
[0140] In the present invention, the terms "first", "second", and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance; the term "plurality" refers to two or more, unless otherwise clearly defined. The terms "installed", "connected", "connected", "fixed", etc. should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; "connected" can be a direct connection or an indirect connection through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0141] In the description of the present invention, it is necessary to understand that the directions or positional relationships indicated by terms such as “upper”, “lower”, “left”, “right”, “front” and “back” are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or unit referred to must have a specific direction, be constructed and operated in a specific orientation, and therefore, cannot be understood as a limitation on the present invention.
[0142] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0143] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A cloud condition recognition method based on an all-sky imager, characterized in that: Including: Obtaining the all-sky image captured by the all-sky imager; Obtaining the vertical field-of-view angular resolution corresponding to the all-sky imager according to the three-dimensional space coordinate system centered on the all-sky imager; Obtaining the coordinate point relationship between the pixel coordinates in the all-sky image and the space coordinates in the three-dimensional space coordinate system according to the vertical field-of-view angular resolution; Calculating the coordinate plane relationship between the sky area where the space coordinates are located corresponding to the pixel unit where the pixel coordinates are located according to the coordinate point relationship; Calculating the actual sky area corresponding to each pixel unit according to the coordinate plane relationship; Identifying the image category of each pixel in the all-sky image according to the preset deep learning semantic segmentation algorithm, where the image categories include clear sky area, cloud-covered area, and other areas; Calculating the actual clear sky area and the actual cloud area respectively for each pixel unit corresponding to the actual sky area; Calculating the total cloud amount of the all-sky according to the actual clear sky area and the actual cloud area; Identifying the cloud shape in each image category according to the preset deep learning classification algorithm; Performing a consistency judgment according to the cloud shape and the total cloud amount of the all-sky, and outputting a judgment result.
2. The cloud condition recognition method based on the all-sky imager according to claim 1, characterized in that: When the input full sky image has an image I with each pixel size of H×W, the deep learning semantic segmentation algorithm is a sky segmentation model FR=F(I) based on OneFormer, where R represents a two-dimensional array of image categories.
3. The cloud condition recognition method based on the all-sky imager according to claim 1, characterized in that: Identifying the cloud shape in each image category according to the preset deep learning classification algorithm includes: Receiving the pixel data of the clear sky area and the cloud-covered area in the image category; Identifying the shape information of the cloud in the pixel data; Judging the probability of the cloud belonging to the cloud shape according to the shape information of the cloud; Performing cloud shape coding and marking on the cloud according to the preset coding rule, and outputting a marking result.
4. The cloud condition recognition method based on the all-sky imager according to claim 3, characterized in that: The expression for judging the probability of the cloud belonging to the cloud shape according to the shape information of the cloud is: P = G(I(R = 0丨R = 1)); Wherein, G is the function DenseNet256 of the deep learning classification algorithm for identifying cloud shapes; I is the all-sky image; R is a two-dimensional array representing the image category; The expression of the preset encoding rule is: Among them, P is the probability of the cloud type to which the cloud belongs, P j is the recognition probability of the jth cloud shape.
5. The cloud condition recognition method based on the all-sky imager according to claim 4, characterized in that: Performing a consistency judgment according to the cloud shape and the total cloud amount of the all-sky, and outputting a judgment result includes: When the calculated total cloud amount of the all-sky is 0 and a cloud shape is identified in the image category, setting the quality control code of the cloud shape as suspicious; When the cloud shape is stratus fractus, altostratus opacus, or altocumulus opacus, and the calculated total cloud amount of the all-sky is less than 100%, marking the quality control code of the total cloud amount of the all-sky as incorrect; When the cloud shape is cumulonimbus, nimbostratus, or fractonimbus, and the calculated total cloud amount of the all-sky is less than 100%, marking the quality control code of the total cloud amount of the all-sky as incorrect; When the cloud shape is cumulus cloud shape, including cumulus humilis, fractocumulus, and cumulus congestus, and the calculated total cloud amount of the all-sky is 0 or 100%, marking the quality control code of the total cloud amount of the all-sky as suspicious; When the recognition result of the cloud shape is stratus fractus, nimbostratus, or fractonimbus, and the recognition result of the cloud shape is a cloud shape in the middle cloud and high cloud families, eliminating the recognition result; When the recognition result of the cloud shape is altocumulus opacus, and the recognition result of the cloud shape is a cloud shape in the high cloud family, eliminating the recognition result.
6. The cloud condition recognition method based on the all-sky imager according to claim 1, characterized in that: The expression of the vertical field of view angle resolution α is: fov is the vertical field of view, fov = 180° = π, N is the pixel size N×N of the all-sky image taken by the all-sky imager; The coordinate point relationship between the pixel coordinates in the full sky image and the spatial coordinates in the three-dimensional spatial coordinate system is: Wherein, the point in the full sky image is the i-th pixel in the horizontal direction and the j-th pixel in the vertical direction; x, y, z are the coordinates of the actual position P of the point in the full sky image corresponding to the three-dimensional spatial coordinate system; Each pixel unit P i,j The corresponding actual sky area S i,j :
7. The cloud condition recognition method based on an all-sky imager according to claim 6, characterized in that: Actual clear sky area Actual area of the cloud Total cloud cover ROUND 2 means rounding to two decimal places, the total cloud cover value of the whole sky is an integer type, and the unit is %; the size of each pixel in the whole sky image is H×W.
8. A cloud condition recognition system based on an all-sky imager, characterized in that: include: An acquisition module is configured to acquire an all-sky image taken by the all-sky imager; A resolution calculation module is configured to obtain a vertical field angle resolution corresponding to the all-sky imager according to a three-dimensional spatial coordinate system centered on the all-sky imager; A coordinate point relationship building module is configured to obtain a coordinate point relationship between pixel coordinates in the full sky image and space coordinates in the three-dimensional space coordinate system according to the vertical field of view angle resolution; A coordinate plane relationship building module is configured to calculate, based on the coordinate point relationship, a coordinate plane relationship between the pixel unit where the pixel coordinate is located and the sky area where the spatial coordinate is located; A pixel area calculation module is configured to calculate the actual sky area corresponding to each pixel unit according to the coordinate plane relationship; An image category recognition module is configured to recognize an image category of each pixel in the full sky image according to a preset deep learning semantic segmentation algorithm, wherein the image categories include clear sky areas, cloud covered areas, and other areas; A clear sky and cloud actual area calculation module is configured to calculate the clear sky actual area and the cloud actual area respectively for the actual sky area corresponding to each pixel unit; A total cloud amount calculation module is configured to calculate the total cloud amount of the entire sky according to the actual clear sky area and the actual cloud area; a cloud shape recognition module configured to recognize cloud shapes in each image category according to a preset deep learning classification algorithm; The consistency judgment module is configured to perform consistency judgment based on the cloud shape and the total cloud amount in the entire sky, and output a judgment result.
9. A readable storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the steps of the cloud condition identification method based on a full sky imager as described in any one of claims 1 to 7 are implemented.
10. A computer device, characterized in that: The method comprises a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to implement the steps of the cloud condition identification method based on a full sky imager as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Cloud and aerial total cloud amount detection method and system
CN103472501A
Cloud identification and model training method and device based on deep learning, terminal and medium
CN111507399A
