Skip to main content

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

  1. Download Package:

To install the Remote Sensing Analysis package, simply run the following command:

pip install Remote-Sensing-Analysis
  1. 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
    report, percentage = processor.inference(im1)
    # Or using .generate method directly with an image object
    report, percentage = processor.generate(im1)

if __name__ == "__main__":
    test_image_processing()

The report object holds a comprehensive report on the image analysis. The percentage object indicates the likelihood of rocket preparation activities occurring. For additional information and data, please refer to the output_folder directory.

Replace path_to_your_test_image.jpg with the path to the image file you wish to process.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

remote_sensing_analysis-0.1.2.tar.gz (343.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Remote_Sensing_Analysis-0.1.2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file remote_sensing_analysis-0.1.2.tar.gz.

File metadata

  • Download URL: remote_sensing_analysis-0.1.2.tar.gz
  • Upload date:
  • Size: 343.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.0

File hashes

Hashes for remote_sensing_analysis-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4848b85555e0f7bf317ae7feb145f31f367de55379cc7d09d0af099fdc8d582f
MD5 050918f4403a6ecb2cd943e06aa81256
BLAKE2b-256 4319c6f192c3bdbc0cb50330283f6d8aac15ece9f5a935dc04932c73fb16d7c8

See more details on using hashes here.

File details

Details for the file Remote_Sensing_Analysis-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for Remote_Sensing_Analysis-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b54ec4e412fbcfdbe5b3c66be494e203e2bddf89097a299f9ebe18566c6e3987
MD5 2bf7d09d4e252f8803a8af8fa1848416
BLAKE2b-256 ddb10ff0116222a776946162399ce4f4fc976ba804ba687a0ba8beaa146babec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page