Library that conducts analysis on Satellite Imagery
Project description
Remote Sensing Analysis
This package provides tools for processing and analyzing satellite imagery, utilizing advanced machine learning techniques for object detection, image enhancement, and text analytics from images.
Installation
- Download Package:
To install the Remote Sensing Analysis package, simply run the following command:
pip install Remote-Sensing-Analysis
-
Download Model Weights: The package requires specific model weights to function correctly. Download the model weights from the following Google Drive link: Download Model Weights
After downloading, place the weights under the
pretrained
folder.
Usage
Parameters
When initializing the ImageProcessor
, you can specify the following parameters:
- model_weights_path: Path to the model weights file, default is
"pretrained/YOLOv9_DOTA1_100EPOCHS.pt"
. - confidence_threshold: The confidence threshold for object detection. Objects with a confidence level higher than this threshold are considered. Default is
0.1
. - output_folder: The directory where results will be saved. Default is
"results"
. - known_phrases: A list of phrases against which the descriptions of detected objects will be compared. This helps in identifying specific activities or features in images.
Example Code
Here is how you can use the ImageProcessor
in your scripts:
from PIL import Image
from Remote_Sensing_Analysis.ImageProcessor import ImageProcessor
def test_image_processing():
processor = ImageProcessor(
model_weights_path="pretrained/YOLOv9_DOTA1_100EPOCHS.pt",
confidence_threshold=0.1,
output_folder="results",
known_phrases=[
"Rocket positioned on the launch pad for final countdown",
"Final checks on the launch systems",
"Lots of Activity in the Image",
"Rocket being fueled"
]
)
path = "path_to_your_test_image.jpg"
im1 = Image.open(path)
# Using .inference method
processor.inference(im1)
# Or using .generate method directly with an image object
processor.generate(im1)
if __name__ == "__main__":
test_image_processing()
Replace path_to_your_test_image.jpg with the path to the image file you wish to process.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for remote_sensing_analysis-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1231f422f6ea3de0a2a5fa19f08b468513c6b4f148c80a654b05c9de8770212 |
|
MD5 | b434bdd2e2bae0b933aaac279ad380a7 |
|
BLAKE2b-256 | 6c38e4625c7c784cdc334b11ef868c7f425a43b6332b215b5e56e786351efa41 |
Hashes for Remote_Sensing_Analysis-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84364d98cb0768dbab89e191b84419e37a6ce7944305ac518a3b69be0adcfcd1 |
|
MD5 | f6c8a8920f40352cc2421d96c5ce8317 |
|
BLAKE2b-256 | ced6391e3b825c8c83cedb18741c33ab278966adc942bdad780a52859292841b |