This app, built with streamlit, performs simple rotate operation on input images. π The demo illustrates the whole steps of solar panel orientation prediction and also contains the function of labeling.
This section mainly show the main steps of panels orientation prediction. There are four main steps, including:
At first, solar panel can be detected through existing models such as YOLO, Faster RCNN. Our solar panel detector only predicts the orientation of panel based on the detected results instead of detecting solar panels.
Crop the pictures to facilitate the prediction of the single small solar panel in the back.
Input the cropped images to the model, and then output prediction angle.
In order to get the orientation of panel, we need to add or subtract 90 degrees from the prediction angle, the output of step 3.
This code uses the following libraries
- python 3.7+
- streamlit
- numpy
- matplotlib
- pillow
- opencv-python
Run the code below to run the local version of Solar Panel Rotator.
streamlit run main.py