{"id":13948549,"url":"https://github.com/localdevices/pyorc","last_synced_at":"2025-10-21T19:41:30.154Z","repository":{"id":37804263,"uuid":"318483397","full_name":"localdevices/pyorc","owner":"localdevices","description":"Surface velocity, object tracking, and river flow measurements in an open-source API","archived":false,"fork":false,"pushed_at":"2025-10-05T10:10:03.000Z","size":378370,"stargazers_count":165,"open_issues_count":19,"forks_count":35,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-10-15T09:36:55.555Z","etag":null,"topics":["computer-vision","hydrology","hydrometry","velocimetry"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/localdevices.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-12-04T10:35:53.000Z","updated_at":"2025-10-08T18:56:57.000Z","dependencies_parsed_at":"2024-03-17T04:43:54.031Z","dependency_job_id":"c978529e-2769-479a-9b00-394b09afa62d","html_url":"https://github.com/localdevices/pyorc","commit_stats":{"total_commits":455,"total_committers":3,"mean_commits":"151.66666666666666","dds":0.00439560439560438,"last_synced_commit":"e1f0318b92de8745c46329a66d58ffc8229973b5"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"purl":"pkg:github/localdevices/pyorc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localdevices%2Fpyorc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localdevices%2Fpyorc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localdevices%2Fpyorc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localdevices%2Fpyorc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/localdevices","download_url":"https://codeload.github.com/localdevices/pyorc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localdevices%2Fpyorc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280325250,"owners_count":26311415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computer-vision","hydrology","hydrometry","velocimetry"],"created_at":"2024-08-08T05:01:24.712Z","updated_at":"2025-10-21T19:41:30.138Z","avatar_url":"https://github.com/localdevices.png","language":"Python","funding_links":[],"categories":["Hydrosphere"],"sub_categories":["Freshwater and Hydrology"],"readme":"\u003cfigure\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/localdevices/pyorc/main/docs/_static/orc_logo_color.svg\"\nwidth=100 align=\"right\"\u003e\n\u003c/figure\u003e\n\u003cbr\u003e\n\n# pyOpenRiverCam\n\n[![PyPI](https://badge.fury.io/py/pyopenrivercam.svg)](https://pypi.org/project/pyopenrivercam)\n[![Conda-Forge](https://anaconda.org/conda-forge/pyopenrivercam/badges/version.svg)](https://anaconda.org/conda-forge/pyopenrivercam)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=localdevices_pyorc\u0026metric=coverage)](https://sonarcloud.io/summary/new_code?id=localdevices_pyorc)\n[![python](https://img.shields.io/pypi/pyversions/pyopenrivercam?color=%2376519B)](https://pypi.org/project/pyopenrivercam/)\n[![docs_latest](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://localdevices.github.io/pyorc/latest)\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/localdevices/pyorc.git/main?labpath=examples)\n[![License](https://img.shields.io/github/license/localdevices/pyorc?style=flat)](https://github.com/localdevices/pyorc/blob/main/LICENSE)\n[![downloads](https://img.shields.io/pypi/dm/pyopenrivercam)](https://pypi.org/project/pyopenrivercam/)\n\n**pyorc**, short for \"pyOpenRiverCam\" is a fully Open Source library for performing image-based river flow analysis. It is the underlying library for\ncomputations on the fully open software stack OpenRiverCam. **pyorc** can only be successful if the underlying methods\nare made available openly for all. Currently **pyorc** implements Large-scale Particle Image Velocimetry (LSPIV) based\nflow analysis using the OpenPIV library and reprojections and image pre-processing with OpenCV. We wish to extend this\nto Large-scale Particle Tracking Velocimetry (LSPTV) and Space-Time Image Velocimetry (STIV) for conditions that are less favourable for LSPIV using open\nlibraries or extensions to this code.\n\n![example_image](https://raw.githubusercontent.com/localdevices/pyorc/main/docs/ngwerere.jpg)\nImage: Example of pyorc velocimetry over Ngwerere river at the Zambezi Road crossing - Lusaka, Zambia.\n\nCurrent capabilities are:\n* Reading of frames and reprojection to surface\n* Velocimetry estimation at user-defined resolution\n* Discharge estimation over provided cross-section\n* Plotting of velocimetry results and cross-section flows in camera, geographical and orthoprojected perspectives.\n\nWe use the well-known **xarray** data models and computation pipelines (with dask) throughout the entire library to\nguarantee an easy interoperability with other tools and methods, and allow for lazy computing.\n\nWe are seeking funding for the following frequently requested functionalities:\n* Exports to simple text formats and GIS-compatible layers\n* Exports to augmented reality videos\n* Implementation of additional processing algorithms (STIV and LSPTV)\n* Improved nighttime / poor weather conditions processing through learning approaches\n\nIf you wish to fund this or other work on features, please contact us at info@rainbowsensing.com.\n\n\u003e **_note:_**  For instructions how to get Anaconda (with lots of pre-installed libraries) or Miniconda (light weight) installed, please go to https://docs.conda.io/projects/conda/en/latest/\n\n\u003e **_manual:_** Please go to https://localdevices.github.io/pyorc for the latest documentation\n\n\u003e **_compatibility:_** At this moment **pyorc** works with any video compatible with OpenCV as long as it has proper metadata.\n\n## Installation\nYou need a python environment. We recommend using the Miniforge project. Download\nthe latest miniforge installer from https://github.com/conda-forge/miniforge and follow the installation instructions\nbefore continuing installing **pyorc**.\n\n### virtual environment\nTo get started with **pyorc**, we recommend to set up a python virtual environment. This ensures that installed libraries\n**pyorc** will not conflict with other libraries or library versions which you may need for other projects.\n\nSetting up a virtual environment can be done with:\n```shell\npython -m venv pyorc_env\n```\nthis creates a new folder `pyorc_env` on your disk which contains your virtual environment.\nAfter activating the environment, any package you install will be installed in this environment only.\nActivating in Unix/Linux is done as follows:\n\n```shell\nsource pyorc_env/bin/activate\n```\nIn Windows, the activation script is in a different folder. Type the following to activate the environment.\n```shell\npyorc_env\\Scripts\\activate\n```\n\n### Installation for direct use\n\nIf you simply want to add **pyorc** to an existing python installation or virtual environment, then follow these\ninstructions.\n\nFirst activate the environment you want **pyorc** to be installed in (if you don't care about virtual environments, then\nsimply skip this step). See the above sub-section for information. You can simply install pyorc with all its\ndependencies as follows:\n\n```shell\npip install pyopenrivercam[extra]\n```\nThe `[extra]` section ensures that also geographical plotting is supported, which we recommend especially for the\nset up of a camera configuration with RTK-GPS measured control points.\n\n### Upgrading from pypi with pip\n\nDid you read about a new version and you want to upgrade? Simply activate your virtual environment, type\n\n```shell\npip install --upgrade pyopenrivercam[extra]\n```\n\nand then enjoy the latest features.\n\n### installation with mamba package manager\n\nIf you use `mamba` as a package manager, then the steps are the same, except for the installation step, which is:\n\n```shell\nmamba install pyopenrivercam\n```\n\n### Installation from latest code base\n\nTo install **pyorc** from scratch in a new virtual environment from the code base, go through these steps. Logical cases\nwhen you wish to install from the code base are when you wish to have the very latest non-released version.\n\nFirst, clone the code with `git` and move into the cloned folder.\n\n```\ngit clone https://github.com/localdevices/pyorc.git\ncd pyorc\n```\n\nSet up a virtual environment with all dependencies as follows:\n```\nconda env create -f envs/pyorc-dev.yml\nconda activate pyorc-dev\n```\nthen install **pyorc** from the code base as follows:\n```\npip install .\n```\n\u003e **_note:_** **pyorc** is now installed in a virtual environment called `pyorc-dev`. This means that if you wish to run\npython with **pyorc**. You need to always first activate this environment before running python (or jupyter). This is\ndone with the following command:\n```\nconda activate pyorc-dev\n```\n### Installation from latest code base as developer\n\nClone the repository with ssh and move into the cloned folder.\n\n```\ngit clone git@github.com:localdevices/pyorc.git\ncd pyorc\n```\n\nSetup a virtual developers environment and install the package as follows:\n```\nconda env create -f envs/pyorc-dev.yml\nconda activate pyorc-dev\npip install -e .\n```\n\nMake sure you install pre-commit hooks so that code is properly linted before pushing.\n```\npip install pre-commit\npre-commit install\n```\n\n## Using pyorc\nTo use **pyorc**, you can use the API for processing. A command-line interface is forthcoming pending funding.\nA manual is also still in the making.\n\n## Acknowledgement\nThe first development of pyorc has been supported by the World Meteorological Organisation - HydroHub.\n\n## License\n**pyorc** is licensed under AGPL Version 3 (see [LICENSE](./LICENSE) file).\n\n**pyorc** uses the following important libraries and software with said licenses.\n\n| Package    | Version | License                            |\n|------------|---------|------------------------------------|\n| ffpiv      | 0.1.2   | AGPLv3                             |\n| numpy      | 1.26.4  | BSD License                        |\n| opencv2    | 4.10.0  | MIT License                        |\n| openpiv    | 0.25.3  | GPLv3                              |\n| matplotlib | 3.9.2   | Python Software Foundation License |\n| geopandas  | 1.0.1   | BSD License                        |\n| pandas     | 2.2.2   | BSD License                        |\n\nProject organisation\n--------------------\n\n    .\n    ├── CHANGELOG.md        \u003c- Version-based changelog documentation\n    ├── README.md           \u003c- This file\n    ├── LICENSE             \u003c- License file containing AGPLv3.0 license terms\n    ├── TRADEMARK.md        \u003c- Trademark guidelines\n    ├── pyproject.toml      \u003c- setup pipeline compatible with pip\n    ├── environment.yml     \u003c- YML-file for setting up a conda environment with dependencies\n    ├── docs                \u003c- Sphinx documentation source code\n        ├── ...             \u003c- Sphinx source code files\n    ├── examples            \u003c- Jupyter notebooks with examples how to use the API\n        ├── ...             \u003c- individual notebooks and folder with example data files\n    ├── pyorc               \u003c- pyorc library\n        ├── ...             \u003c- pyorc functions and API files\n    ├── tests               \u003c- pytest suite\n        ├── ...             \u003c- pytest functions on API level\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocaldevices%2Fpyorc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocaldevices%2Fpyorc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocaldevices%2Fpyorc/lists"}