Coder Social home page Coder Social logo

localdevices / pyorc Goto Github PK

View Code? Open in Web Editor NEW
126.0 126.0 29.0 271.01 MB

Surface velocity, object tracking, and river flow measurements in an open-source API

License: GNU Affero General Public License v3.0

Python 99.84% Dockerfile 0.15% Shell 0.01%
computer-vision hydrology hydrometry velocimetry

pyorc's People

Contributors

hcwinsemius avatar rickhagenaars avatar smathermather avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyorc's Issues

Filtering of velocities before integration

  • handling of masked values in DataArrays
  • remove poorly correlated velocities
  • remove velocities outside of feasible range
  • interpolate missing from surrounding values in space (limit to maximum of about 0.2m)
  • filter in time on bi-modal distribution

Spatial filtering

remove isolated values
remove values too much deviating from moving window mean

improved window maximum velocity sampling 2D space

Currently, sampling is only done at exactly the pixel under consideration. This should be relaxed to the surrounding pixels, exclusing pixels that are significantly off in terms of their deviation from mean or median

integration of cross-section to integral flow

This requires a couple of things

  • ensure that unreliable values are set to missing data, before doing any statistics
  • filling in of points without significant sampling of velocities with depth-velocity profile estimates
  • retrieving a statistic such as the 50% quantile

plot API

plotting is now under one single method. This issue is to split the method into an API like xarray.Dataset.plot

piv

  • implement raw piv without any filtering considerations
  • storing to a plottable NetCDF (should work with Qgis!)

pytest

Starting with API functionalities

opencv2 image enhancements

Get the original imagery in a better shape for PIV by detecting backgrounds or pre-detect moving parts. Docs in opencv to be reviewed

Single video processing with simpler CameraConfig

In many cases, users do only want to record one single video, and work with that instead of multiple videos with changing water levels. In this case, only a water level reading in the same reference as the bathymetry is needed. Practically this means no h_ref is needed in a CameraConfig gcps, and no h_a is needed when supplying a video. Currently the user receives assertion errors when this info is omitted. This should change so that a video is processed under thge assumption of a single water level.

store log-fit parameters

currently the logarithmic profile fits are done on-the-fly but not stored in the resulting Dataset. Add this to the metadata.

animation of frames

After manipulation and reprojection, it can be useful to make an animation of the ds.frames object. ad ds.frames.to_ani

streamplot

implement ds.velocimetry.plot.streamplot. Challenge is to make this work with non-local coordinates as streamplot expects equidistant and increasing coordinates only! Strategy could be:

  • make a set of lines in local projection
  • reproject these to camera or geographical
  • plot in style of streamplot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.