Skip to content

Commit f9350ad

Browse files
committed
Made OpenCV optional with "[VIZ]" extra. According to Issue #14
1 parent cb349a3 commit f9350ad

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ cd py-ctcmetrics
5252
pip install .
5353
```
5454

55+
**Note**: If you want to use the visualization feature, you need to install OpenCV or by installing the optional dependencies:
56+
```bash
57+
pip install py-ctcmetrics[viz]
58+
```
59+
60+
5561
---
5662

5763
## Usage

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@
22

33
setup(
44
name="py-ctcmetrics",
5-
version="1.1.0",
5+
version="1.2.0",
66
packages=find_packages(),
77
install_requires=[
88
"numpy",
9-
"opencv-python",
109
"scikit-learn",
1110
"scipy",
1211
"tifffile",
1312
"imagecodecs",
1413
"pandas"
1514
],
15+
extras_require={
16+
"viz": ["opencv-python"],
17+
},
1618
author="Timo Kaiser",
1719
author_email="kaiser@tnt.uni-hannover.de",
1820
description="Metrics for Cell Tracking Challenges",

0 commit comments

Comments
 (0)