[general]
name=BatiScan
qgisMinimumVersion=3.38
description=AI building mapping for QGIS: detect building footprints on satellite imagery (no points needed), or turn field-collected building points into footprints with Segment Anything.
description[fr]=Cartographie des bâtiments par IA dans QGIS : détection automatique des emprises sur image satellite, sans points, ou transformation de points relevés sur le terrain en emprises avec Segment Anything.
about=BatiScan maps buildings from satellite or aerial imagery with AI. The automatic mode uses the Sahel 1 model (BatiScan v6), included in the plugin, a U-Net trained on villages of Mali and on open building footprints from West Africa (30 cm/px), from round huts to rectangular metal and earth roofs. It separates adjacent buildings, draws straight footprints that never overlap, and flags low-score or very small objects (under 20 m²) for review, with the reason in a control field. Each footprint gets its area, perimeter, centre and orientation, and a geometry check reports invalid, overlapping and duplicate footprints. On 20 hand-checked test zones in two villages kept out of training, it found about 89 percent of the buildings, and about 94 percent of its objects were correct. The model is shipped with the plugin in a compressed form (int8, 25 MB), nothing to download, and is provided for research and testing, not for commercial use. BatiScan also turns building points collected in the field into footprints with Segment Anything (MobileSAM in ONNX, no PyTorch needed), offers a click-to-map tool, a batch tab that counts buildings for hundreds of villages in one run (village boundaries, or points re-centred on the nearest settlement, with a per-village table and a total), a points-versus-footprints quality report, and export of image/mask tiles to train a model for your own area. Any Deepness-compatible ONNX segmentation model can be added. Works with GeoTIFF orthophotos and XYZ/WMS basemaps (Google, Bing, Esri...). Requires the Python packages onnxruntime and opencv, which the plugin offers to install on first use. Less accurate on dense urban areas and very large buildings. Walled yards and flat earth roofs can be confused at this resolution. Training labels include Google Open Buildings (CC BY 4.0), Microsoft Global ML Building Footprints (ODbL) and OpenStreetMap (© OpenStreetMap contributors, ODbL).
version=0.7.0
author=Allaye GUINDO
email=guindo.allaye.contact@gmail.com
homepage=https://github.com/guindoallayecontact7/batiscan-qgis
tracker=https://github.com/guindoallayecontact7/batiscan-qgis/issues
repository=https://github.com/guindoallayecontact7/batiscan-qgis
category=Raster
icon=icon.png
experimental=False
deprecated=False
hasProcessingProvider=no
tags=building,buildings,footprint,ai,deep learning,segment anything,sam,onnx,segmentation,remote sensing,africa,sahel,mali,bâtiment
changelog=0.7.0 - modèle Sahel 1 (BatiScan v6) intégré au plugin, compressé en int8 (25 Mo au lieu de 98), sans téléchargement ; résultats inchangés sur les zones de test (F1 à IoU 0,5 : villages 0,70, villes 0,72) ; détection plus lente sur processeur ; noms courts des modèles avec description en info-bulle ; nom libre pour un modèle personnel (fichier .nom)
    0.6.0 - onglet Multi-localités : comptage des bâtiments de toutes les localités d'une couche en un seul lancement (polygones, ou points recentrés sur le village vers le sud, le nord, l'est ou l'ouest avec un rayon automatique propre à chaque point, un point déjà au centre du village n'étant pas déplacé, ou recherche des limites de villages dans un rayon) ; import Excel, CSV ou Shapefile ; tableau par localité avec total, export Excel ou CSV ; fonds en ligne : les tuiles noires sont relues au lieu de compter zéro bâtiment ; contours tracés à angles droits, sans escaliers ni crans ; surface, périmètre, centre et orientation calculés pour chaque emprise ; contrôle géométrique (emprises invalides, superposées ou en double) ; marquage a_verifier selon le score et la surface, avec le motif dans un champ de contrôle ; nom affiché BatiScan ; modèles nommés selon leur usage (pointage par clic ou détection automatique) ; un modèle personnel peut être retiré de la liste ; anciens modèles v1 et v2 retirés du catalogue
    0.5.1 - correction pour l'analyse de sécurité de plugins.qgis.org (empreinte du modèle prise pour un secret)
    0.5.0 - modèle BatiScan Sahel v6 ; mode Bâtiment par défaut : formes droites, sans superposition ; les objets de même couleur que le sol sont marqués a_verifier ; plus de plantage si une couche est retirée du projet pendant le travail ; contrôle de l'empreinte du modèle téléchargé
    0.3.0 - modèle BatiScan Sahel v2 entraîné sur 9 villages (95 pour cent des bâtiments retrouvés sur Google, 88 pour cent sur Bing pour le village test), meilleure détection des grands toits ; import de polygones existants pour l'entraînement
    0.2.1 - correctifs pour l'analyse de sécurité de plugins.qgis.org (installation des dépendances via QProcess, ouverture du dossier via QDesktopServices)
    0.2.0 - modèle BatiScan Sahel v1 : détection automatique sans points (bâti rural sahélien), séparation des bâtiments accolés, scripts d'entraînement
    0.1.0 - première version : points → emprises, clic, détection automatique, contrôle qualité, export de jeux d'entraînement
