Coder Social home page Coder Social logo

georgegach / flowiz Goto Github PK

View Code? Open in Web Editor NEW
240.0 240.0 32.0 44.93 MB

Converts Optical Flow files to images and optionally compiles them to a video. Flow viewer GUI is also available. Check out mockup right from Github Pages:

Home Page: https://georgegach.github.io/flowiz

License: MIT License

Python 11.90% Shell 0.51% CSS 7.63% HTML 19.09% JavaScript 60.59% Dockerfile 0.28%
converter flo flow image middlebury optical python video vision visualisation visualization

flowiz's Introduction

Hello there 👋

I'm @Giorgi a Data Architect and Platform Engineer from Tbilisi, Georgia 🇬🇪🇪🇺

🚩 Open to full-time and consulting opportunities as a Data Architect.
📫 You can reach me on Facebook or LinkedIn whether it's business or just to chat.

Signed, 

+--[ED25519 256]--+
|          o..    |
|o  . .   . +     |
|oo. +   . o .    |
|oo.+ = + . =     |
|o.o * * S = E    |
| . = X + * = o   |
|  o X * o o      |
| .   * o         |
|      o          |
+----[SHA256]-----+

Giorgi Gachechiladze
AAAAC3NzaC1lZDI1NTE5AAAAIBjKMtNdIL1d6Tyq9mai523QlVTPxb2llcZez4Nfv05g

flowiz's People

Contributors

dependabot[bot] avatar georgegach avatar jmtc7 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

flowiz's Issues

Support for .floss flow files

Firstly, I have found this library pretty useful in the past and I would like to express gratitude to the contributors for putting this out there.

I have however recently encountered .floss files and it appears that these formats are currently not supported ? Is there any support I may not be aware of, or a recommended way to convert between .floss and .flo formats so that the current library could be used as-is?

GUI not working

Trying to use to tool on windows.
Works fine with bash command and python, yet reports this error upon trying to run the GUI:

`$ python -m flowiz.gui

GUI webpath: C:\Users\guyixing\flowiz\flowiz\gui\web
Traceback (most recent call last):
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\guyixing\flowiz\flowiz\gui_main
.py", line 73, in
'chromeFlags': ['--disable-http-cache']})
File "C:\Users\guyixing\AppData\Roaming\Python\Python37\site-packages\eel_init
.py", line 142, in start
raise RuntimeError(api_error_message)
RuntimeError:


'options' argument deprecated in v1.0.0, see https://github.com/ChrisKnott/Eel
To suppress this error, add 'suppress_error=True' to start() call.
This option will be removed in future versions
----------------------------------------------------------------------------------`

Any idea how to solve this? (I have eel installed by pip)

Numpy flow file to Video

Hi, thank you for great work.

Now, I'm trying to convert numpy flow file to video with your code.

I have 000.npy flow file extracted from raft, is it possible convert it to mp4 file by using your code?
(raft : https://github.com/princeton-vl/RAFT)
If it isn't , can i get a tip or suggests?

thanks.

Saving images

Hi, why not exposing the method flowiz._save_png ?

Hue and color intensity

Hi, can it show how hue and color intensity direction relationship with magnitude of the displacement vector? I cannot distinguish which color represents higher magnitude.

Insanely slow computation on convert_from_flow

I have benchmarked the following method

        result = f.convert_from_flow(flow)

This takes around 0.4 seconds to execute, meanwhile opencv based manually written method

        hsv = numpy.zeros_like(frame)
        hsv[..., 1] = 255
        mag, ang = cv2.cartToPolar(flow[..., 0], flow[..., 1])
        hsv[..., 0] = ang * 180 / numpy.pi / 2
        hsv[..., 2] = cv2.normalize(mag, None, 0, 255, cv2.NORM_MINMAX)
        rgb = cv2.cvtColor(hsv, cv2.COLOR_HSV2RGB)

Takes around 0.03 seconds to execute.

I would like to use method of flowiz over opencv based one since generated image is much more pleasing but around 0.4 seconds per image is too slow.

AssertionError: Path [ ] does not exist

Thank you so much for your amazing work!I have this problem when I generate the video, do you know how to fix it?

屏幕截图 2022-04-13 152016
Looking forward to your reply, thank you very much!

eel dependency will break in v1.0.0

python -m flowiz.gui
> GUI webpath: /home/greg/miniconda3/envs/spynet/lib/python3.8/site-packages/flowiz/gui/web
Traceback (most recent call last):
  File "/home/greg/miniconda3/envs/spynet/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/greg/miniconda3/envs/spynet/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/greg/miniconda3/envs/spynet/lib/python3.8/site-packages/flowiz/gui/__main__.py", line 72, in <module>
    eel.start('index.html', options={
  File "/home/greg/miniconda3/envs/spynet/lib/python3.8/site-packages/eel/__init__.py", line 142, in start
    raise RuntimeError(api_error_message)
RuntimeError: 
----------------------------------------------------------------------------------
  'options' argument deprecated in v1.0.0, see https://github.com/ChrisKnott/Eel
  To suppress this error, add 'suppress_error=True' to start() call.
  This option will be removed in future versions
----------------------------------------------------------------------------------

flowiz was installed using pip:

pip install eel
pip install flowiz -U

How to realize the batch conversion

python -m flowiz demo/flo/000030.flo --outdir demo/png/
I use this to convert one .flo file to .png.
But it is too slow for a large file to conver one by one.
How can i do to realize the batch conversion?

video optical flow

HI

How can I get optical flow estimation for each frame from video file and save these images ?

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.