help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • Blog
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
satellite-images
RSK World
satellite-images
Satellite Images Dataset - Land Cover Classification + Building Detection + Remote Sensing + Geospatial Analysis
satellite-images
  • __pycache__
  • data
  • visualizations
  • .gitignore780 B
  • ADVANCED_FEATURES.md7.2 KB
  • ATTRIBUTION.md1.5 KB
  • DATA_SUMMARY.md3.9 KB
  • DOWNLOAD_REAL_DATA_GUIDE.md3.4 KB
  • ERROR_FIXES_SUMMARY.md3.2 KB
  • GITHUB_RELEASE_INSTRUCTIONS.md4.9 KB
  • LICENSE1.2 KB
  • PROJECT_INFO.md3 KB
  • QUICK_DOWNLOAD_GUIDE.md2.1 KB
  • QUICK_START_ADVANCED.md2 KB
  • README.md8.1 KB
  • RELEASE_NOTES_v1.0.0.md7.1 KB
  • advanced_example.py11 KB
  • advanced_processing.py17.3 KB
  • advanced_visualization.py15.5 KB
  • batch_processing.py11.9 KB
  • batch_processor.py10.8 KB
  • check_errors.py6.9 KB
  • config.py1.1 KB
  • create_placeholder_image.py3.5 KB
  • create_sample_images.py5.3 KB
  • data_loader.py6 KB
  • download_real_images.py5 KB
  • download_real_satellite_data.py8.4 KB
  • download_with_landsatxplore.py4.6 KB
  • download_with_sentinelsat.py6 KB
  • enhanced_real_image_downloader.py17.8 KB
  • example_usage.py4.3 KB
  • generate_sample_data.py7.2 KB
  • get_real_satellite_data.py9.6 KB
  • index.html18.5 KB
  • ml_features.py11.8 KB
  • ml_integration.py13.6 KB
  • process_images.py7 KB
  • real_image_downloader.py15.7 KB
  • requirements.txt632 B
  • requirements_download.txt474 B
  • satellite-images.png2.6 MB
  • setup.py1.6 KB
  • visualize.py5.8 KB
example_usage.py
example_usage.py
Raw Download
Find: Go to:
#!/usr/bin/env python3
"""
Satellite Image Dataset - Example Usage
Created by: RSK World
Website: https://rskworld.in
Email: help@rskworld.in
Phone: +91 93305 39277

This script demonstrates how to use the satellite image dataset.
"""

from data_loader import SatelliteDatasetLoader
from process_images import SatelliteImageProcessor
from visualize import visualize_land_cover, visualize_buildings
import numpy as np


def main():
    """
    Main example function.
    Created by: RSK World (https://rskworld.in)
    """
    print("=" * 60)
    print("Satellite Image Dataset - Example Usage")
    print("Created by: RSK World (https://rskworld.in)")
    print("=" * 60)
    print()
    
    # Initialize components
    loader = SatelliteDatasetLoader()
    processor = SatelliteImageProcessor()
    
    # Get dataset information
    print("1. Dataset Information:")
    print("-" * 40)
    info = loader.get_dataset_info()
    print(f"   Total images: {info['total_images']}")
    print(f"   Has labels: {info['has_labels']}")
    print(f"   Has building detections: {info['has_buildings']}")
    print(f"   Has metadata: {info['has_metadata']}")
    print()
    
    # Example: Load an image (if available)
    if info['total_images'] > 0:
        image_id = "sample_001"
        print(f"2. Loading image: {image_id}")
        print("-" * 40)
        
        image, labels = loader.load_image_pair(image_id)
        
        if image is not None:
            print(f"   Image shape: {image.shape}")
            print(f"   Image dtype: {image.dtype}")
            
            # Extract features
            features = processor.extract_features(image)
            print(f"   Mean pixel value: {features['mean']:.2f}")
            print(f"   Standard deviation: {features['std']:.2f}")
            print()
            
            # Process labels if available
            if labels:
                print(f"3. Land Cover Labels:")
                print("-" * 40)
                print(f"   Classes: {labels.get('classes', [])}")
                print(f"   Number of regions: {len(labels.get('regions', []))}")
                print()
            
            # Load building detections if available
            buildings = loader.load_building_detections(image_id)
            if buildings:
                print(f"4. Building Detections:")
                print("-" * 40)
                print(f"   Number of buildings: {len(buildings.get('buildings', []))}")
                for i, building in enumerate(buildings.get('buildings', [])[:3]):
                    print(f"   Building {i+1}: bbox={building.get('bbox')}, "
                          f"confidence={building.get('confidence', 0):.2f}")
                print()
            
            # Load metadata if available
            metadata = loader.load_metadata(image_id)
            if metadata:
                print(f"5. Geospatial Metadata:")
                print("-" * 40)
                print(f"   CRS: {metadata.get('crs', 'N/A')}")
                print(f"   Resolution: {metadata.get('resolution', 'N/A')}")
                print(f"   Acquisition date: {metadata.get('acquisition_date', 'N/A')}")
                print()
        else:
            print(f"   Image not found. Please add images to {loader.images_dir}")
            print()
    else:
        print("2. No images found in dataset.")
        print(f"   Please add images to: {loader.images_dir}")
        print()
    
    # Example: Preprocessing
    print("6. Image Preprocessing Example:")
    print("-" * 40)
    print("   Creating sample image for demonstration...")
    sample_image = np.random.randint(0, 255, (256, 256, 3), dtype=np.uint8)
    processed = processor.preprocess_image(sample_image, 
                                          target_size=(512, 512), 
                                          normalize=True)
    print(f"   Original shape: {sample_image.shape}")
    print(f"   Processed shape: {processed.shape}")
    print(f"   Processed dtype: {processed.dtype}")
    print(f"   Processed value range: [{processed.min():.2f}, {processed.max():.2f}]")
    print()
    
    print("=" * 60)
    print("Example completed successfully!")
    print("For more information, visit: https://rskworld.in")
    print("=" * 60)


if __name__ == "__main__":
    main()

120 lines•4.3 KB
python

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer