Processing pipeline for ECOSENSE camera data that extracts vegetation metrics (leaf angles, reflectance, GCC) from video frames.
cd /mnt/data/lk1167/projects/EcoCanopy
pip install -e .- Preprocessing: Extract timestamps, classify image modes (RGB/NIR)
- Reflectance: Compute mean/median reflectance for NIR images
- GCC: Compute Green Chromatic Coordinate for RGB images
- Leaf Angles: Run AngleCam model inference
- Upload: Store results in SQLite database
- Dashboard: Visualize data via Dash frontend
python -m src.cli preprocess -c G5Bullet_07
python -m src.cli gcc -c G5Bullet_07
python -m src.cli reflectance -c G5Bullet_07
python -m src.cli angles -c G5Bullet_07
python -m src.cli upload -c G5Bullet_07python -m src.cli run-all -c G5Bullet_07python -m src.cli run-allpython -m src.cli dashboardpython -m src.cli status
python -m src.cli camerasEdit config/config.yaml to configure:
- Raw data paths
- Output paths
- Camera list
- Processing parameters
Input:
raw_videos/{camera_id}/{year}/{month}/{day}/
├── {camera_id}_output_video.mp4
└── {camera_id}_frame_data.csv
Output:
processed/{year}/cameras/{camera_id}/{month}/{day}/
└── {camera_id}_frames.csv
pytest tests/ -v