Skip to content

Commit

Permalink
change package name
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrunia committed Apr 2, 2020
1 parent b613fb1 commit 248d9e4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ In Proc. IEEE International Conference on Computer Vision (ICCV), 2007.

## Installation

pip install flowvis
pip install flow_vis

## Usage

import flowvis
flow_color = flowvis.flow_to_color(flow_uv, convert_to_bgr=False)
import flow_vis
flow_color = flow_vis.flow_to_color(flow_uv, convert_to_bgr=False)

## Examples visualizations

Expand Down
6 changes: 3 additions & 3 deletions example/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@

import numpy as np
import matplotlib.pyplot as plt
import flowvis
import flow_vis

# Load normalized flow image of shape [H,W,2]
flow_uv = np.load('./data/flow_example_data.npy')

# Apply the coloring (for OpenCV, set convert_to_bgr=True)
flow_color = flowvis.flow_to_color(flow_uv, convert_to_bgr=False)
flow_color = flow_vis.flow_to_color(flow_uv, convert_to_bgr=False)

# Display the image
plt.imshow(flow_color)
plt.show()
plt.show()
2 changes: 1 addition & 1 deletion flowvis/__init__.py → flow_vis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
from __future__ import division
from __future__ import print_function

from .flowvis import flow_to_color, flow_uv_to_colors, make_colorwheel
from .flow_vis import flow_to_color, flow_uv_to_colors, make_colorwheel
File renamed without changes.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import setuptools

setuptools.setup(
name='flowvis',
packages=['flowvis'],
name='flow_vis',
packages=['flow_vis'],
version='0.1',
license='MIT',
author='Tom Runia',
Expand Down

0 comments on commit 248d9e4

Please sign in to comment.