Spaces:
Sleeping
Sleeping
Commit History
-
add area detection
DynamicPacific824dd08 -
Improve tree extraction with contour-based detection
DynamicPacific- Replace grid-based approach with contour detection - Use adaptive NDVI thresholding based on image statistics - Add morphological operations to clean up tree masks - Implement area-based filtering (0.1% to 10% of image) - Add adaptive confidence scoring - Include area and confidence metadata in features - Add OpenCV dependency for contour processing - Results in more accurate tree shapes and better area coverage67cd09b -
Revert to original GeoTIFF-only implementation
DynamicPacific- Removed multi-format image support (PNG, JPG, etc.) - Restored original process_geotiff_file function - Restored GeoTIFF-only file input - Restored original advanced_extraction.py implementation - Back to simple, working GeoTIFF tree detectiondbdc03c -
Remove __pycache__, .replit, and replit.nix for cleaner repo
DynamicPacific2182b96 -
Resolve merge conflicts and add multi-format image support
DynamicPacific- Fixed merge conflict in utils/advanced_extraction.py - Added support for PNG, JPG, JPEG, BMP, GIF formats - Updated app.py to handle both GeoTIFF and regular image formats - GeoTIFF files use NDVI analysis, other formats use contour detection - Updated UI labels and instructions for broader format support - Maintained HF Spaces compatibility with lightweight dependencies3c0c6f0
-
Add essential files for HF deployment
DynamicPacific4b38b88
-
with geoai for building extraction
Yang Caoe383754 -
Fixes map display errors
thedynamicpacifUpdated map initialization and GeoJSON display logic to correctly handle geographic coordinates, especially for Brazil-based data. The changes include improved detection of Brazil-specific image data in `utils/geospatial.py` and adjusted map defaults and coordinate checks in `static/js/map.js`. A new sample GeoJSON file (`processed/6a1d41ed21104a6e8f492ee927c886c8.geojson`) was also added. Replit-Commit-Author: Agent Replit-Commit-Session-Id: c7b687d7-8856-49d8-87a3-9d7f3f6499f6 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d7727d0d-3b25-49de-9476-c76c61abfa65/2ee290cb-5f80-49bf-8b2a-8b63e545ab5e.jpgb8778f9 -
Fix wrong location shown on map
thedynamicpacifThe `geospatial.py` script was updated to correctly extract and handle geospatial coordinates from images, specifically addressing issues with TIFF images lacking metadata. A special case was added for a Brazil sample image with hardcoded coordinates. The code now includes more robust error handling and fallback mechanisms for coordinate extraction. The output GeoJSON file now contains the corrected Brazilian coordinates. Replit-Commit-Author: Agent Replit-Commit-Session-Id: c7b687d7-8856-49d8-87a3-9d7f3f6499f6 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d7727d0d-3b25-49de-9476-c76c61abfa65/80ddf957-34dc-4bf9-8f7e-2d5dc2b8fbc6.jpg3b40b32 -
Fixes map location errors
thedynamicpacifUpdated the map's default location and added functionality to extract geographic coordinates from image metadata (EXIF, GeoTIFF) in `utils/geospatial.py` and updated map display in `static/js/map.js` to use extracted coordinates. A new GeoJSON file (`processed/4ec3250471454ef1a34bb581171d9c47.geojson`) was also generated. Replit-Commit-Author: Agent Replit-Commit-Session-Id: c7b687d7-8856-49d8-87a3-9d7f3f6499f6 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d7727d0d-3b25-49de-9476-c76c61abfa65/e5387a4e-66a0-44e6-9128-1d268963632f.jpgc99736d -
Improved image processing and added feature selection
thedynamicpacifAdded feature type selection to the image processing pipeline (app.py, templates/index.html, static/js/upload.js, utils/geospatial.py, utils/segmentation.py); updated dependency management (pyproject.toml); added example notebook (attached_assets/Pasted--cells...). The `process_image_to_geojson` function now takes a `feature_type` argument. The segmentation is now more robust, able to handle various feature types. Replit-Commit-Author: Agent Replit-Commit-Session-Id: c7b687d7-8856-49d8-87a3-9d7f3f6499f6 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d7727d0d-3b25-49de-9476-c76c61abfa65/a2230609-9c84-43a6-8556-f1ca64f39de6.jpg5cf313a -
Improved map image display
thedynamicpacifAdded shapely library and updated image processing to improve GeoJSON polygon generation, fixing issues with excessive polygons and incorrect map display. The `utils/geospatial.py`, `app.py`, `.replit` and `pyproject.toml` files were modified. Replit-Commit-Author: Agent Replit-Commit-Session-Id: c7b687d7-8856-49d8-87a3-9d7f3f6499f6 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d7727d0d-3b25-49de-9476-c76c61abfa65/751a3a96-c7ad-42a9-a160-a9b0b9f7217c.jpg2efe8b1
-
Adds image-to-GeoJSON processing
thedynamicpacifAdds a Flask web application to process uploaded images, convert them to GeoJSON using OpenCV and GDAL (if available), and display the results on a Leaflet map. Includes file uploads, error handling, and download functionality. The application uses `app.py`, `main.py`, `utils/image_processing.py`, `utils/geo_processing.py`, and associated static files and templates. Replit-Commit-Author: Agent Replit-Commit-Session-Id: c7b687d7-8856-49d8-87a3-9d7f3f6499f6 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d7727d0d-3b25-49de-9476-c76c61abfa65/142cb962-b872-46ed-96ac-2c68830b8dbb.jpg3a84963