diff --git a/README.rst b/README.rst index 1ab31dbef..427ba1a4b 100644 --- a/README.rst +++ b/README.rst @@ -7,6 +7,9 @@ LabelImg .. image:: https://img.shields.io/travis/tzutalin/labelImg.svg :target: https://travis-ci.org/tzutalin/labelImg +.. image:: https://mybinder.org/badge.svg + :target: https://mybinder.org/v2/gh/4QuantOSS/labelImg/binder-tools + LabelImg is a graphical image annotation tool. It is written in Python and uses Qt for its graphical interface. @@ -239,6 +242,18 @@ Hotkeys | ↑→↓← | Keyboard arrows to move selected rect box | +------------+--------------------------------------------+ +Try now in Binder +~~~~~~~~~~~~~~~~~ + +.. image:: https://raw.githubusercontent.com/4QuantOSS/labelImg/binder-tools/demo/demo.gif + :alt: Demo Video + +1. Click the launch binder button +2. Go to new -> VNC Session +3. Click connect to connect +4. Type 'python labelImg.py' +5. Annotate away + How to contribute ~~~~~~~~~~~~~~~~~ diff --git a/binder/apt.txt b/binder/apt.txt new file mode 100644 index 000000000..2b393be0c --- /dev/null +++ b/binder/apt.txt @@ -0,0 +1,12 @@ +cmake +xvfb +pyqt5-dev-tools +novnc +websockify +tightvncserver +xfonts-base +xterm +openbox +supervisor +x11-xserver-utils +xinit diff --git a/binder/environment.yml b/binder/environment.yml new file mode 100644 index 000000000..f0042b500 --- /dev/null +++ b/binder/environment.yml @@ -0,0 +1,15 @@ +name: labelimg_env +channels: + - menpo + - conda-forge + - defaults +dependencies: + - qt>=5.0 + - pyqt=5 + - lxml + - pip: + - py2app + - pyzmq>=17 + - tornado>=5 + - nbserverproxy==0.8.1 + - git+https://github.com/ryanlovett/nbnovnc@master diff --git a/binder/postBuild b/binder/postBuild new file mode 100644 index 000000000..6453a2d38 --- /dev/null +++ b/binder/postBuild @@ -0,0 +1,7 @@ +jupyter serverextension enable --py nbserverproxy --sys-prefix + +jupyter serverextension enable --py nbnovnc --sys-prefix +jupyter nbextension install --py nbnovnc --sys-prefix +jupyter nbextension enable --py nbnovnc --sys-prefix +make qt5py3 +pip install . diff --git a/demo/demo.gif b/demo/demo.gif new file mode 100644 index 000000000..9ac28379c Binary files /dev/null and b/demo/demo.gif differ