This repository is designated to detecting trucks using Sentinel-2 data.
It was developed during the COVID-19 crisis in order to monitor the impact of the crisis.
The detection exploits the offset of different wavelengths reflected by moving objects. It targets pixels where blue is higher than green and red. In the initial step, a road mask is calculated and the data is masked to these pixels. The road mask is based on NDVI, NDWI, NDSI, B11-B03-ratio and absolute thresholds of B02, B03, B04 and B11. All the following conditions must be fulfilled:
- B02 > 0.04
- B03 > 0.04
- B04 > 0.04
- B04 < 0.15
- B03 < 0.15
- B02 < 0.4
- NDVI < 0.7
- NDWI < 0.001
- NDSI < 0.0001
- B11 > 0.05
- B11 < 0.55
Afterwards, the ratios between B02 (blue) and B03 (green) and B02 and B04 (red) are calculated. The following thresholds are applied to these ratios:
- B2-B03-ratio > 0.05
- B02-B04-ratio > 0.1
Each truck is represented by one to three pixels with value 1 in the result. In order to visualize the results they may be vectorized, which this script does not do.
This is an example of detected trucks around Rotterdam, Netherlands. The results were vectorized.