Skip to main content

Simple tool to manually label images in disctinct categories to build training datasets.

Project description

Simplabel

Graphical tool to manually label images in disctinct categories to build training datasets. Simply pass a list of categories, a directory containing images and start labelling. Supports keyboard bindings to label even faster!

screenshot

Installation

Clone the repository to your computer

git clone https://github.com/hlgirard/Simplabel.git

and install with pip

cd Simplabel
pip install .

Usage

Command line tool

Pass the categories and image directory on the command line to start the GUI

simplabel --categories dog cat bird --directory path/to/image/directory

Python object

import simplabel
import tkinter as tk

root = tk.Tk() 
directory = "data/raw"
categories = ['dog', 'cat', 'bird']
MyApp = simplabel.ImageClassifier(root, directory, categories)
tk.mainloop()

Saved labels

The app saves a labelled.pkl file that contains a pickeled dictionary {image_name.jpg: label}. To import the dictionary, use the following sample code:

import pickle

with open("labelled.pkl","rb") as f:
    label_dict = pickle.load(f)

Graphical interface

Use the on-screen buttons to select a label for the current image and advance to the next one. Number keys correspond to labels and can be used instead.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simplabel-0.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simplabel-0.0.1-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file simplabel-0.0.1.tar.gz.

File metadata

  • Download URL: simplabel-0.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8

File hashes

Hashes for simplabel-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6976e0ff79dc7c0f4c88558c4ed5cca78422b2af26c8a07424c37843a04ac73d
MD5 9178450e52895ae39c06312f448d9eaf
BLAKE2b-256 1ebde406052e984eda85f694ebf816a24d4a9682f4e5b039f8eff99d25130607

See more details on using hashes here.

File details

Details for the file simplabel-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: simplabel-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8

File hashes

Hashes for simplabel-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c3c3c98c8a43657b40ee6ef99f345ecb212738d19da3a1069975eefdc507314a
MD5 19de7fbf5c1a083a1e71abb311414b35
BLAKE2b-256 7e18a6c62f08c03578c610fc539be374211c4d7364dc14c8e75b1d6ee9925ecb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page