GitXplorerGitXplorer
I

Flow-based-Rip-Current-Detection

public
3 stars
1 forks
0 issues

Commits

List of commits on branch main.
Unverified
01268cc8a4afa7d3a9fe72221ff19f9168f10d64

updated readme

IIsseiMori committed 3 years ago
Unverified
1826c0294c092ef058fba8dc7ecf60df29bb1f6d

adding sample video

IIsseiMori committed 3 years ago
Unverified
1d7ba6c463023225cee18ef3b2ffe70ba8f80dbf

clean up the code

IIsseiMori committed 3 years ago
Verified
8eecf1589803e5587dfccfd1078819b0aa3b9e7e

Initial commit

IIsseiMori committed 3 years ago

README

The README file for this repository.

Flow based Rip Current Detection

Running the code

  • Compile OpenCV with CUDA option enabled
  • Tested with Python=3.7 with Cuda=10.1
  • Timelines: python timelines.py --video ./videos/rip.mp4 --out . --alpha 0.65
  • Filtered Arrow Glyph and Filtered Color Map: python filtered_arrows_color.py --video ./videos/rip.mp4 --out . --window 442 --mask ./videos/mask.png

Computing the alpha value

The adjustment factor alpha for the timelines method can be computed by , where is the pixel-wise distance between the initial placement of the timeline and the shoreline, is the pixel-wise velocity of the incominng waves, and is the total number of frames.

For example, the rip.mp4 has 442 frames. If the timeline is placed around where waves start breaking, there are about 240 pixels until the shoreline. Also, 1 wave is about 200 frames and propagates roughly 240 pixels. Therfore the wave velocity is roughly 1.2, and the adjustment factor is .