8000 GitHub - oruscam/RIVeR
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

oruscam/RIVeR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

57 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation



Modern LSPIV toolkit for water-surface velocity analysis and flow discharge measurements

DOI License: AGPL v3 Python Version React Version


RIVeR: Rectification of Image Velocity Results

RIVeR (Rectification of Image Velocity Results) is a modern, open-source toolkit for Large Scale Particle Image Velocimetry (LSPIV) distributed by ORUS. Built with Python and React, it provides a user-friendly interface for water-surface velocity analysis and flow discharge measurements in rivers and large-scale hydraulic models.

Example of RIVeR velocimetry analysis of river flow


πŸ’§ Overview

RIVeR is a specialized tool for applying Large Scale Particle Image Velocimetry (LSPIV) techniques as a non-contact method to estimate discharge in rivers and channels from video footage. The software guides the process through intuitive defaults and pre-configured settings, enabling users to generate discharge calculations without extensive prior knowledge of the technique. The workflow guides users through a series of straightforward steps culminating in comprehensive visual reports.

Originally developed in MATLAB in 2015 and well-received by the hydrology community, RIVeR has now been reimplemented in Python and JavaScript to improve accessibility, performance, and cross-platform compatibility.

Demonstration of interactive oblique image rectification process in RIVeR


✨ Key Features

  • Process footage from multiple sources:
    • UAV/drone aerial imagery
    • Oblique view camera (from riverbank)
    • Fixed station cameras (contiunous monitoring)
  • Frame extraction from videos with customizable parameters
  • FFT-based PIV analysis with multi-pass support for increased accuracy
  • Interactive result visualization with customizable vector fields
  • Georeferencing and coordinate transformations
  • Multi Cross-sectional flow analysis
  • Automated beautiful report generation (like this one !)
  • Multi-platform support (Windows, macOS, Linux)

🌍 Multi-Language Support

  • RIVeR available in multiple languages!
    • English πŸ‡ΊπŸ‡Έ
    • Spanish πŸ‡¦πŸ‡·
    • French πŸ‡«πŸ‡·
    • [More coming soon!]

πŸ“₯ Download Compiled Releases

If you don't want to bother with code at all (we get it, sometimes you just want things to work!), pre-compiled standalone versions are available:

⊞ Windows ⌘ macOS β—† Linux
EXE DMG DEB RPM

These packages include both the GUI and CLI tools in a ready-to-use application. No Python or JavaScript knowledge required!

These packages include both the GUI and CLI tools in a ready-to-use application. Simply download, extract (if needed), and run the application - no Python or JavaScript knowledge required!


πŸ§‘β€πŸ’» Developer Installation & Usage

For those who prefer to work with the source code or contribute to RIVeR's development, here's how to get started:

Prerequisites

  • Python 3.12+
  • pip package manager
  • Git (for cloning the repository)

Development Installation

git clone https://github.com/oruscam/RIVeR.git
cd RIVeR
pip install -e .

CLI Installation

RIVeR CLI provides a comprehensive set of commands for performing LSPIV analysis through the command line.

pip install river-cli

Basic Usage

river-cli [OPTIONS] COMMAND [ARGS]...

To see all available commands and options:

river-cli --help

Example Workflow

# 1. Extract frames from video
river-cli video-to-frames river_video.mp4 ./frames --every 2

# 2. Generate transformation matrix
river-cli get-uav-transformation-matrix 100 200 300 400 0 0 10 10 --image-path ./frames/frame_001.jpg

# 3. Create mask
8000
s for PIV analysis
river-cli create-mask-and-bbox 3 ./frames/frame_001.jpg ./xsections.json ./transformation_matrix.json --save-png-mask

# 4. Run PIV analysis
river-cli piv-analyze ./frames --mask ./mask.json --workdir ./results

# 5. Calculate discharge
river-cli update-xsection ./xsections.json ./results/piv_results.json ./transformation_matrix.json --step 2 --fps 30 --id-section 0

Graphical User Interface (GUI)

RIVeR also provides a user-friendly graphical interface built with React. The GUI offers an intuitive way to perform LSPIV analysis without using command-line tools.

Key GUI features include:

  • Interactive workflow interface
  • Visual cross-section creation
  • Real-time PIV analysis visualization
  • Result export capabilities

For detailed information about installation, usage, and features of the GUI, please see the dedicated GUI documentation.


πŸ“‚ Project Structure

river/
.
β”œβ”€β”€ LICENSE
β”œβ”€β”€ examples       # Jupyter examples
β”‚   β”œβ”€β”€ 00_introduction.ipynb
β”‚   β”œβ”€β”€ 01_video_to_frames.ipynb
β”‚   β”œβ”€β”€ 02a_nadir_transformation.ipynb
β”‚   β”œβ”€β”€ 02b_oblique_transformation.ipynb
β”‚   β”œβ”€β”€ 02c_fixed_station_transformation.ipynb
β”‚   β”œβ”€β”€ 03_cross_sections.ipynb
β”‚   β”œβ”€β”€ 04_piv_analysis.ipynb
β”‚   β”œβ”€β”€ 05_discharge_calculation.ipynb
β”‚   β”œβ”€β”€ data
β”‚   β”œβ”€β”€ results
β”‚   └── utils
β”œβ”€β”€ gui
β”œβ”€β”€ pyproject.toml
β”œβ”€β”€ readme.md
β”œβ”€β”€ requirements.txt
└── river
    β”œβ”€β”€ cli
    β”œβ”€β”€ core
    β”‚   β”œβ”€β”€ compute_section.py       # Section computation utilities
    β”‚   β”œβ”€β”€ coordinate_transform.py   # Coordinate system transformations
    β”‚   β”œβ”€β”€ define_roi_masks.py      # ROI and mask definitions
    β”‚   β”œβ”€β”€ exceptions.py            # Custom exceptions
    β”‚   β”œβ”€β”€ image_preprocessing.py   # Image preparation tools
    β”‚   β”œβ”€β”€ matlab_smoothn.py        # Smoothing algorithms
    β”‚   β”œβ”€β”€ piv_fftmulti.py         # FFT-based PIV processing
    β”‚   β”œβ”€β”€ piv_loop.py             # PIV processing loop
    β”‚   β”œβ”€β”€ piv_pipeline.py         # Main PIV pipeline
    β”‚   └── video_to_frames.py      # Video frame extraction
    └── docs

πŸ“š Jupyter Examples

Browse through our collection of Jupyter Notebook examples to learn how to use RIVeR for various analyses (requires development installation):

These interactive examples provide step-by-step guidance for common RIVeR workflows. To run them, make sure you've completed the development installation described above.

πŸ”¬ Citation

If you use RIVeR in your research, please cite:

@article{patalano2017river,
    title={Rectification of Image Velocity Results (RIVeR): A simple and user-friendly toolbox
           for large scale water surface Particle Image Velocimetry (PIV) and
           Particle Tracking Velocimetry (PTV)},
    author={Patalano, Antoine and GarcΓ­a, Carlos Marcelo and RodrΓ­guez, AndrΓ©s},
    journal={Computers \& Geosciences},
    volume={105},
    pages={103--114},
    year={2017},
    publisher={Elsevier}
}

πŸ‘₯ Authors

Core Team

  • Antoine Patalano - Project Lead, Feature Development - [UNC/ORUS]
  • Leandro MassΓ³ - Feature Development - [UNC/ORUS]

Development Team

  • Nicolas Stefani - CLI & Backend Development
  • Tomas Stefani - Frontend Development

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.


πŸ“œ License

RIVeR is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).


πŸ’­Acknowledgments

About

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
0