Skip to content
Permalink
Browse files

Firmed up requirements (include matplotlib for examples)

  • Loading branch information...
danlester committed Jul 29, 2019
1 parent 8c4bd55 commit b3e9d2eea3bbe6e5e9e1474a04deda4b17e9dd4f
Showing with 20 additions and 5 deletions.
  1. +4 −3 Example/Examples.ipynb
  2. +4 −1 Example/FlatImages.ipynb
  3. +2 −1 README.md
  4. +8 −0 jupyter-innotater/js/README.md
  5. +1 −0 jupyter-innotater/requirements.txt
  6. +1 −0 requirements.txt
@@ -80,9 +80,10 @@
"metadata": {},
"outputs": [],
"source": [
"import cv2\n",
"import matplotlib.pyplot as plt\n",
"\n",
"classes = ['vegetable', 'biscuit', 'fruit']\n",
"foods = [cv2.imread('./foods/'+f) for f in foodfns]\n",
"foods = [plt.imread('./foods/'+f) for f in foodfns]\n",
"targets = [0] * len(foodfns)"
]
},
@@ -93,7 +94,7 @@
"outputs": [],
"source": [
"w2 = Innotater(\n",
" ImageInnotation(foods, name='Food'), \n",
" ImageInnotation(foods, name='Food', colorspace='RGB'), \n",
" MultiClassInnotation(targets, name='FoodType', classes=classes, desc='Food Type')\n",
")\n",
"display(w2)"
@@ -7,7 +7,10 @@
"outputs": [],
"source": [
"from jupyter_innotater import *\n",
"import numpy as np, os, cv2\n",
"\n",
"# You may need to install opencv2, or otherwise adjust code to use matplotlib as shown in Examples.ipynb\n",
"import numpy as np, os, cv2 \n",
"\n",
"foodfns = sorted(os.listdir('./foods/'))"
]
},
@@ -2,11 +2,12 @@

Annotate data including image bounding boxes inline within your [Jupyter notebook](https://jupyter.org/) in Python. Innotater's flexible API allows easy selection of interactive controls to suit your datasets exactly.

Now works with Jupyter Lab (1.0+)

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ideonate/jupyter-innotater/master)

[![Documentation Status](https://readthedocs.org/projects/jupyter-innotater/badge/?version=latest)](https://jupyter-innotater.readthedocs.io/en/latest/?badge=latest)


## 1 - Overview

In a data science or machine learning project, you may prepare and study images or other data within a Jupyter notebook then need to annotate the data to augment the training or fix errors in your source data.
@@ -4,8 +4,16 @@ Annotate data including image bounding boxes inline within your [Jupyter noteboo

Now works with Jupyter Lab.

Full [documentation here](https://jupyter-innotater.readthedocs.io)

## Installation

```
pip install jupyter_innotater
# For Jupyter Lab (requires 1.0+):
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install jupyter-innotater
```
@@ -3,3 +3,4 @@ widgetsnbextension>=3.1.0
notebook>=5.3.0
numpy>=1.4.0
pypng>=0.0.19
matplotlib>=3.0.0
@@ -5,4 +5,5 @@ notebook==5.7.8
numpy==1.16.2
pandas==0.24.2
opencv-python==4.1.0.25
matplotlib==3.1.1
jupyter_innotater

0 comments on commit b3e9d2e

Please sign in to comment.
You can’t perform that action at this time.