The present invention relates generally to sun location prediction, and more particularly, to sun location prediction in an image space using astronomical almanac-based calibration and a ground based camera.
The variability of available solar energy presents a significant challenge with respect to power generation in a photovoltaic (PV) power plant. An important factor in the variability of available solar energy is the sky condition. Cloud cover is one of the key elements in the sky that causes variability in available solar energy. For example, when the sun is significantly covered by clouds, the solar irradiance received by the solar panels of the PV power plant decreases whereas when the sun is clear, there is a near constant solar irradiance received by the solar panels.
In order to avoid or substantially reduce the variability of power supplied to a power grid, a backup power supply is used to compensate for the variability in available solar power supply. In particular, the backup power supply may be a backup battery or another power generation source. Once the solar power supply is stable due to sufficient solar irradiance, the backup power supply is shut down in order to reduce energy waste and costs. It is desirable to accurately predict sun location in an automated system for a PV power plant that uses computer vision to ensure accurate switching between backup power and solar power.
Embodiments of the present invention address and overcome one or more of the above shortcomings and drawbacks, by methods, systems, and apparatuses for predicting cloud coverage using a ground-based all sky imaging camera. This technology is particularly well-suited for, but by no means limited to, solar energy applications.
A method for predicting location of the sun in an image space by utilizing a camera and an optical element having an effective view point is disclosed. The method includes providing a set of calibration images of a sky with the camera to form a set of calibration images and determining a sun location in a world coordinate system for each calibration image. The method also includes annotating each calibration image to provide annotated points and performing an affine transformation on each annotated point to provide corrected two dimensional ideal points. Each corrected two dimensional point is then mapped to obtain a corresponding three dimensional vector. Next, an extrinsic projection matrix is determined from image scene point correspondence information and a corresponding sun location in the world coordinate system. A real time image of the sky is then provided. In addition, the method includes determining sun location in spherical space to provide a three dimensional vector, wherein the sun location is spherical space is based on the extrinsic projection matrix and a real time sun location in the world coordinate system for the real time image. Further, the method includes mapping the three dimensional vector to provide a corrected two dimensional ideal point and performing an inverse affine transformation to provide a two dimensional real image point in image space.
Additional features and advantages of the invention will be made apparent from the following detailed description of illustrative embodiments that proceeds with reference to the accompanying drawings.
The foregoing and other aspects of the present invention are best understood from the following detailed description when read in connection with the accompanying drawings. For the purpose of illustrating the invention, there is shown in the drawings embodiments that are presently preferred, it being understood, however, that the invention is not limited to the specific instrumentalities disclosed. Included in the drawings are the following Figures:
Although various embodiments that incorporate the teachings of the present invention have been shown and described in detail herein, those skilled in the art can readily devise many other varied embodiments that still incorporate these teachings. The invention is not limited in its application to the exemplary embodiment details of construction and the arrangement of components set forth in the description or illustrated in the drawings. The invention is capable of other embodiments and of being practiced or of being carried out in various ways. Also, it is to be understood that the phraseology and terminology used herein is for the purpose of description and should not be regarded as limiting. The use of “including,” “comprising,” or “having” and variations thereof herein is meant to encompass the items listed thereafter and equivalents thereof as well as additional items.
The following disclosure describes the present invention according to several embodiments directed at methods, systems, and apparatuses for providing short-term predictions of sun occlusion at a future time based on acquired sky images, cloud velocity measured based on those images, and knowledge of a future sun position. For example, in one embodiment, the overall prediction process works as follows: the estimated cloud velocity at time t0 is determined from the regularized flow algorithm, the sun position in the image at time t0+dt is obtained, where dt is the temporal range that is desired to be predicted. Then, a back-propagation algorithm is used to propagate the sun location to time t0 using the velocity information at time t0. Then, the segmentation module may be used to compute the cloud coverage in the sun region at time t0+dt (ground truth) and time t0 (prediction). The measurement of prediction error is the absolute difference between the estimated sun coverage in sun region and the coverage in the back-propagated sun region. The techniques described herein make a reasonable assumption that the solar irradiance is highly dependent on the cloud coverage and hence a precise prediction of cloud coverage leads to the precise prediction of solar irradiance. With this assumption and simplification, we then predict the occlusion of sun at different temporal ranges. The system includes data acquisition, cloud velocity estimation, sun location back-propagation, cloud segmentation module and prediction module.
The system 100 utilizes a trained cloud segmentation model to identify clouds in image data. To construct the training data utilized by the model, a predetermined number of cloud and sky pixels (e.g., 10,000 of each) are randomly sampled from annotated images. The system 100 includes a User Input Computer 120 which allows users to view sky images and select pixels as “cloud” or a “sky” (i.e., non-cloud). This selection can be performed, for example, by the user selecting individual portions of the image and providing an indication whether the selected portions depict a cloud. The data supplied by the User Input Computer 120 is received and processed by a Data Annotation Module 115D which aggregates the user's annotation data and supplies it to a Cloud Segmentation Module 115A. The Cloud Segmentation Module 115A then constructs a binary classifier which can classify new pixels at runtime as cloud or sky based on the training model.
The features used by the Cloud Segmentation Module 115A to represent sky and cloud pixels can include, for example, color spectrum values and a ratio of red and blue color channels. With respect to color spectrum values, in one embodiment, the Hue (H), Saturation (S) and Value (V) color space is used. It can be observed that sky and cloud pixel values lie in different spectrums in H. Similarly sky pixels have more saturation compared to cloud pixels. V may be used to represent brightness. With respect to the ratio of red and blue color channels, it is understood in the art that the clear sky scatters blue intensities more whereas cloud scatters blue and red intensities equally. Hence, a ratio of blue and red color intensities in the images can be used to distinguish between sky and cloud pixels. In one embodiment, a simple ratio of red (r) and blue channel (b) is used:
In other embodiments, a normalized ratio of red and blue channel is used:
In yet another embodiment, a different normalized ratio of channels given by ratio of red channel to the maximum of red and blue channel.
In another embodiment, a difference between the value of red channel and blue channel is employed.
RBRdiff=(r−b) (4)
The features used by the Cloud Segmentation Module 115A to represent sky and cloud pixels may also include variance values and/or entropy values. Variance provides the measure of spread of the pixels values. In one embodiment, for each pixel in the cloud or sky region, the variance in the N×N neighborhood is computed. For fast computation of variance, integral images for sum image may be used as well as square of intensities image. Entropy provides the textural information about the image. Similar to the variance, for each pixel in the cloud or sky region, the entropy in the N×N neighborhood may be defined as follows:
where pi is calculated using histogram of image intensities.
Utilizing the cloud velocity, the future sun position may be back-propagated by reversing the velocity components. For example, if the current time is t0 and a prediction of cloud coverage is desired at t0+dt, the sun location at time t0+dt may first be determined. Then, the sun is propagated to t0 based on the velocity calculated at t0. In some embodiments, to simplify processing, the wind speed is assumed to be constant and local cloud evolution is not considered during the prediction period.
Returning to
The flow observations between a pair of images can be noisy. To stabilize the tracking process and to incorporate temporal information in the current observation, in some embodiments a Kalman filter is employed.
Various algorithms for back-propagating the sun may be used within the scope of the present invention. For example, algorithms may differ in how they model the observed velocity information and/or how they filter the temporal information. In some embodiments, the back-propagation algorithm utilizes a global mean velocity field. More specifically, this algorithm constitutes the mean of the regularized velocity observed at time t0. Using this algorithm, each pixel in the sun location at time t0+dt is back-propagated with the same mean velocity obtained at time t0. In one embodiment, this algorithm is further modified through the use of a Kalman filter, incorporating additional temporal information from the previous frame pairs to provide smoothing, thus removing the noise in velocity estimation. In other embodiments, the back-propagation algorithm utilizes the full velocity field. This method uses a finer-grained model for the velocity propagation to better capture non-global behavior of the cloud motion. Specifically, the sun location at time t0+dt is propagated with the velocity field at each pixel at time t0. In other embodiments, the back-propagation algorithm utilizes the full velocity field with local and global Kalman filter. This incorporates the global mean velocity as well as fine grained local velocity with Kalman filtering using simple weighted sum model.
An additional variation of the back-propagation algorithm implemented in some embodiments is to utilize the full velocity field with a Monte Carlo approach. The locally filtered velocity provides a temporally and local spatially smooth information for back-propagation of sun location. However, it is sensitive to the noise in the estimation. Hence, the back-propagation may be modeled as a Monte Carlo like perturbation approach. Each pixel is propagated with the velocity of randomly sampled N points from the neighborhood with a radius r. The back-propagation process is the same as full flow back-propagation algorithm either with or without the Kalman filter. This results in N final propagated locations at t0. The predicted cloud coverage is determined by ΣNi=1Nwici, where ci is the cloud coverage at a propagated location and wi is a weigthing factor. In one embodiment, the weighting factor is set to wi=1/N.
Continuing with reference to
cloudcoverbinary=Nc/Ns (6)
where Nc is the number of cloud pixels in the sun region and Ns is the number of total pixels in the sun region, and/or
cloudcoverprobability=Pc/Ns (7)
where Pc=Σiε(1,N
Additional refinements may be made to the techniques described in
As shown in
The processors 720 may include one or more central processing units (CPUs), graphical processing units (GPUs), or any other processor known in the art. More generally, a processor as used herein is a device for executing machine-readable instructions stored on a computer readable medium, for performing tasks and may comprise any one or combination of, hardware and firmware. A processor may also comprise memory storing machine-readable instructions executable for performing tasks. A processor acts upon information by manipulating, analyzing, modifying, converting or transmitting information for use by an executable procedure or an information device, and/or by routing the information to an output device. A processor may use or comprise the capabilities of a computer, controller or microprocessor, for example, and be conditioned using executable instructions to perform special purpose functions not performed by a general purpose computer. A processor may be coupled (electrically and/or as comprising executable components) with any other processor enabling interaction and/or communication there-between. A user interface processor or generator is a known element comprising electronic circuitry or software or a combination of both for generating display images or portions thereof. A user interface comprises one or more display images enabling user interaction with a processor or other device.
Continuing with reference to
The computer system 710 also includes a disk controller 740 coupled to the system bus 721 to control one or more storage devices for storing information and instructions, such as a magnetic hard disk 741 and a removable media drive 742 (e.g., floppy disk drive, compact disc drive, tape drive, and/or solid state drive). Storage devices may be added to the computer system 710 using an appropriate device interface (e.g., a small computer system interface (SCSI), integrated device electronics (IDE), Universal Serial Bus (USB), or FireWire).
The computer system 710 may also include a display controller 765 coupled to the system bus 721 to control a display or monitor 766, such as a cathode ray tube (CRT) or liquid crystal display (LCD), for displaying information to a computer user. The computer system includes an input interface 760 and one or more input devices, such as a keyboard 762 and a pointing device 761, for interacting with a computer user and providing information to the processors 720. The pointing device 761, for example, may be a mouse, a light pen, a trackball, or a pointing stick for communicating direction information and command selections to the processors 720 and for controlling cursor movement on the display 766. The display 766 may provide a touch screen interface which allows input to supplement or replace the communication of direction information and command selections by the pointing device 761.
The computer system 710 may perform a portion or all of the processing steps of embodiments of the invention in response to the processors 720 executing one or more sequences of one or more instructions contained in a memory, such as the system memory 730. Such instructions may be read into the system memory 730 from another computer readable medium, such as a magnetic hard disk 741 or a removable media drive 742. The magnetic hard disk 741 may contain one or more datastores and data files used by embodiments of the present invention. Datastore contents and data files may be encrypted to improve security. The processors 720 may also be employed in a multi-processing arrangement to execute the one or more sequences of instructions contained in system memory 730. In alternative embodiments, hard-wired circuitry may be used in place of or in combination with software instructions. Thus, embodiments are not limited to any specific combination of hardware circuitry and software.
As stated above, the computer system 710 may include at least one computer readable medium or memory for holding instructions programmed according to embodiments of the invention and for containing data structures, tables, records, or other data described herein. The term “computer readable medium” as used herein refers to any medium that participates in providing instructions to the processors 720 for execution. A computer readable medium may take many forms including, but not limited to, non-transitory, non-volatile media, volatile media, and transmission media. Non-limiting examples of non-volatile media include optical disks, solid state drives, magnetic disks, and magneto-optical disks, such as magnetic hard disk 741 or removable media drive 742. Non-limiting examples of volatile media include dynamic memory, such as system memory 730. Non-limiting examples of transmission media include coaxial cables, copper wire, and fiber optics, including the wires that make up the system bus 721. Transmission media may also take the form of acoustic or light waves, such as those generated during radio wave and infrared data communications.
The computing environment 700 may further include the computer system 710 operating in a networked environment using logical connections to one or more remote computers, such as remote computing device 780. Remote computing device 780 may be a personal computer (laptop or desktop), a mobile device, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to computer system 710. When used in a networking environment, computer system 710 may include modem 772 for establishing communications over a network 771, such as the Internet. Modem 772 may be connected to system bus 721 via user network interface 770, or via another appropriate mechanism.
Network 771 may be any network or system generally known in the art, including the Internet, an intranet, a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), a direct connection or series of connections, a cellular telephone network, or any other network or medium capable of facilitating communication between computer system 710 and other computers (e.g., remote computing device 780). The network 771 may be wired, wireless or a combination thereof. Wired connections may be implemented using Ethernet, Universal Serial Bus (USB), RJ-6, or any other wired connection generally known in the art. Wireless connections may be implemented using Wi-Fi, WiMAX, and Bluetooth, infrared, cellular networks, satellite or any other wireless connection methodology generally known in the art. Additionally, several networks may work alone or in communication with each other to facilitate communication in the network 771.
An executable application, as used herein, comprises code or machine readable instructions for conditioning the processor to implement predetermined functions, such as those of an operating system, a context data acquisition system or other information processing system, for example, in response to user command or input. An executable procedure is a segment of code or machine readable instruction, sub-routine, or other distinct section of code or portion of an executable application for performing one or more particular processes. These processes may include receiving input data and/or parameters, performing operations on received input data and/or performing functions in response to received input parameters, and providing resulting output data and/or parameters.
A graphical user interface (GUI), as used herein, comprises one or more display images, generated by a display processor and enabling user interaction with a processor or other device and associated data acquisition and processing functions. The GUI also includes an executable procedure or executable application. The executable procedure or executable application conditions the display processor to generate signals representing the GUI display images. These signals are supplied to a display device which displays the image for viewing by the user. The processor, under control of an executable procedure or executable application, manipulates the GUI display images in response to signals received from the input devices. In this way, the user may interact with the display image using the input devices, enabling user interaction with the processor or other device.
The functions and process steps herein may be performed automatically or wholly or partially in response to user command. An activity (including a step) performed automatically is performed in response to one or more executable instructions or device operation without user direct initiation of the activity.
In another embodiment, it is desirable to also provide a method for predicting the location of the sun in the image space when using a ground based camera. Referring to
The method includes an offline calibration stage that is performed before an operational or online stage. As part of the offline calibration stage, intrinsic parameters of the camera are calibrated using specialized software. An example of such calibration software is known as the Omnidirectional Camera and Calibration Toolbox (OCamCalib) that is implemented in a programming language and computing environment known as MATLAB® available from The MathWorks, Inc. in Natick, Mass., USA. OCamCalib is publically available software that is available on the Internet. In this regard, the disclosures of documents entitled “A Flexible Technique for Accurate Omnidirectional Camera Calibration and Structure from Motion” by Scaramuzza, David et al., published in Proceedings of the Fourth IEEE International Conference on Computer Vision Systems (ICVS 2006), Jan. 4-7, 2006, New York, USA, pgs. 45-53, “A Toolbox for Easily Calibrating Omnidirectional Cameras” by Scaramuzza, David et al., published in Proceedings of the 2006 IEEE/RSJ 2006 International Conference on Intelligent Robots and Systems, Oct. 9-15, 2006, Beijing, China, pgs. 5695-5701 and “Automatic Detection of Checkerboards on Blurred and Distorted Images” by Rufli, Martin et al., published in IEEE/RSJ International Conference on Intelligent Robots and Systems, 2008, IROS 2008, Sep. 22-26, 2008, Nice, pgs. 3121-3126 are hereby incorporated by reference in their entirety. The camera 802 is calibrated with a plurality of checkerboard images (N). In an embodiment, 10 checkerboard images are used although it is understood that more or less than 10 checkerboard images may be used.
In the model, the camera 802 is first assumed to be a perfect camera, namely, that a camera axis 808 and a mirror axis 810 are perfectly aligned. Every optical ray reflected by the mirror surface 806 intersects into a unique point known as an effective viewpoint 812. In
where ƒ(ρ) is a polynomial function (see Eq. (9)) that maps an image point p into its corresponding 3D vector P and ρ=√{square root over (u2+v2)}.
ƒ(ρ)=Σi=1maiρi (9)
where m=4 is used for the model 800. Parameters ai are the intrinsic calibration results.
Distortion correction of the mirror is then considered through an affine transformation:
where (u′, v′) are the real distorted coordinates (i.e. real image points) corresponding to ideal point (i.e. corrected 2D ideal point) (u, v) and c, d, e, xc, yc are parameters of a transformation matrix which are the remaining intrinsic calibration results. Alternatively, it is understood that Eq. (10) may be modified in a known manner to provide an inverse affine transformation wherein (u′, v′) is used to compute (u, v).
Once the intrinsic parameters are determined, 2D image points (u′, v′) inside a lens region are mapped to 3D points (x, y, z) on a unit sphere and vice versa. The sun is in a world 3D coordinate system. Referring to
Z=R·cos(φ) (11)
X=R·sin(φ)·cos θ (12)
Y=R·sin(φ)·cos θ (13)
An extrinsic projection matrix M is then computed from a set of image-scene point correspondences, i.e. from a set {(u′i, Xi)}i=1m. Further,
x
i
=M·X
i (14)
where xi are homogeneous 4-vectors representing unit spherical coordinates (x, y, z, 1) corresponding to image point (i.e. sun location in an image) u′i=(u′,v′). Xi are homogeneous 4-vectors representing world points (X, Y, Z, 1). M is a 4×4 projection matrix with 12 free parameters and can be solved by a linear least squares method from m correspondences.
In order to find a set of image-scene point correspondences, a plurality of calibration images (i.e. a set of calibration images) are obtained by the camera 802. A sun point (i.e. center of the sun disc) is annotated on each of the calibration images.
Referring back to
A plurality of images is then captured by the camera 802 during an online or operational stage of the method. An actual sun location (X, Y, Z) is computed for each image captured by the camera 802 in real time using Eqs. (11), (12) and (13) to obtain Xi, wherein R, φ and θ are obtained by using a solar position algorithm or from a known astronomical almanac. A corresponding image point (u′, v′) is then computed from Eqs. (8), (9), (10) and (14) wherein M is known from the offline calibration stage and Xi is previously computed from the real time images.
Thus, the invention includes a step wherein an intrinsic parameter calibration for a camera 802 and mirror 804 or camera 802 and a fisheye lens is performed. This is followed by an extrinsic parameter calibration wherein a projection matrix is used to map a local 3D coordinate system to an actual world coordinate system. Sun location in a world coordinate system is obtained from an astronomical almanac and/or a solar position algorithm. The calibration process is done offline. Calibrated intrinsic and extrinsic parameters are then used to map 3D sun location in the world coordinate system to the image space in terms of geographical location of the camera 802 and observation time point. The calibration is performed after the camera 802 and associated hardware are installed, thus enabling prediction of a future sun location from the calibrated camera geometry.
Flowchart 830B in
The current invention was evaluated in two different locations each using a different camera 802. The first camera 802 was a Moonglow Technologies All Sky camera which captured images while located at 755 College Road East, Princeton, N.J. 08540. Image size is 640×480 pixels. At this location, 55 sun annotations were used resulting in a re-projection error of 2.1±1.3 pixels. The second camera 802 was a Mobotix Q24M camera which captured images while located at 91058 Erlangen, Germany. Image size is 2048×1536 pixels. At this location, 12 sun annotations were used resulting in a re-projection error of 2.4±1.4 pixels. Referring to
The current invention provides a sun location prediction method for use in a short term sun occlusion prediction system. The method is not affected by photometric variations or disturbances due to image intensity (for example, if the sun and nearby regions are saturated) or if the sun is totally or partially occluded by clouds. In another embodiment, the current invention may be used to compute an exposure window for a sun region so as to enable control of camera exposure time in a sky image acquisition system. The current invention may be used in a control system such as the Siemens SPPA-T3000 control system for power plants and/or in conjunction with smart grid technology. The current invention may also be used in computer vision based prediction systems.
The system and processes of the figures are not exclusive. Other systems, processes and menus may be derived in accordance with the principles of the invention to accomplish the same objectives. Although this invention has been described with reference to particular embodiments, it is to be understood that the embodiments and variations shown and described herein are for illustration purposes only. Modifications to the current design may be implemented by those skilled in the art, without departing from the scope of the invention. As described herein, the various systems, subsystems, agents, managers and processes can be implemented using hardware components, software components, and/or combinations thereof.
This application is a continuation-in-part application of U.S. application Ser. No. 14/255,154 filed on Apr. 17, 2014 and entitled SHORT TERM CLOUD COVERAGE PREDICTION USING GROUND-BASED ALL SKY IMAGING the disclosure of which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | 14255154 | Apr 2014 | US |
Child | 14711002 | US |