Spaces:
Sleeping
Sleeping
Commit History
-
change google imagery as background
DynamicPacificdfa993a
-
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 -
Track example.tif with Git LFS
DynamicPacific961360f -
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
-
Update README.md
Upgrade to new version of gradio211f96a -
Add essential files for HF deployment
DynamicPacific4b38b88 -
Clean HF deployment
DynamicPacific4d1ea90
-
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 -
Fixes image upload failures
thedynamicpacifImproved the image upload process by adding error handling for network issues, increasing upload timeout, and setting a maximum file size limit. Specifically, modified `app.py` to set `MAX_CONTENT_LENGTH` and `UPLOAD_TIMEOUT`, and updated `static/js/upload.js` to include a timeout and error handling within the fetch request. 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/5db894a3-8b66-4603-922a-3c556a1b1242.jpgc8cd0d2 -
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 -
Improves map visualization
thedynamicpacifUpdated the map to display different feature types (buildings, trees, water, roads) with distinct colors and styles. Added a feature type selection to the upload form and updated the displayResults function to handle and display the feature type. Changes made to `static/js/map.js` and `static/js/upload.js`. 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/e5f084ec-b0de-4b77-93ae-2162e40cb521.jpgb96ab7a -
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 -
Improves image processing accuracy
thedynamicpacifIntegrated the geoai library to enhance GeoJSON output accuracy and address polygon issues, resolving map visualization problems. 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/55f0e4a5-cd72-4295-b866-1cd312f0a569.jpg0e5ecb6 -
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 -
Fixes map display issues
thedynamicpacifIntegrated the geoai library to improve GeoJSON processing and correct inaccurate polygon visualization on the map, resolving issues with overlapping polygons and incorrect area display. 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/92d44bee-2466-4f17-afc1-f2dc60c40415.jpg9be04fd -
Fixes map image display
thedynamicpacifAdded a new library to improve the accuracy of the GeoJSON data generated from uploaded images, fixing an issue where the map visualization was incorrect. The `geoai` library was integrated and a new `unzip` dependency added to `replit.nix`. 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/bdaeb204-efaf-4153-a3ba-497a2626d895.jpg7f9ed6d -
Adds image processing and GeoJSON creation
thedynamicpacifThe commit adds necessary packages to the Replit environment (`.replit`), processes uploaded images to generate GeoJSON files (`processed/*.geojson`), and outputs processed images (`processed/*.png`). 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/ca9da14f-2c8d-406c-92cb-0b548eb7aede.jpg9afed5a
-
Adds image-to-GeoJSON conversion
thedynamicpacifThis commit integrates the GeoDeep pipeline to process uploaded images, converting them into GeoJSON format for map visualization. The pipeline handles image uploads and generates GeoJSON data suitable for display. 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/ca9da14f-2c8d-406c-92cb-0b548eb7aede.jpg7891ab4 -
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