G-Label
A FastAPI-based image classification application for annotation. This package allows users to set an image folder, classify images into different categories, and provides an undo feature to correct mistakes. It is designed for fast and efficient annotation workflows.
Installation
To install the package, ensure you have Python 3.6 or later installed. You can install glabel from PyPi using pip:
pip install glabel
Usage
Once installed, you can start the FastAPI application using the CLI command glabel:
glabel
This will start a FastAPI server, usually running on http://127.0.0.1:8000/. Open this URL in a web browser to access the application.
Setting the Folder and Classes
- Open http://127.0.0.1:8000/ in a browser.
- Use the provided form to set the folder where your images are stored.
- Enter the classes/categories for classification as a comma-separated list.
Classifying Images
After setting the image folder and classes:
- Click the "Go to Classify" link to start the classification process.
- You will see an image displayed in a consistent container with classification buttons below it.
- Click the appropriate button to classify the image into that category.
- After classification, the next image is automatically displayed for further classification.
Undoing a Classification
If you need to undo the last classification:
- Click the "Undo Last Classification" button, which appears beside the classification buttons.
- The previously classified image will be restored to its original state, allowing you to reclassify it.
Contributing
We welcome contributions to glabel. To contribute:
- Fork this repository on GitHub.
- Create a new branch for your changes.
- Open a pull request with a description of your changes.
For more information, see the CONTRIBUTING.md file (if applicable).
License
This project is licensed under the MIT License. You can find a copy of the license in the project repository.
Additional Resources
- For more information on FastAPI, visit the FastAPI documentation.
- For questions or support, you can create an issue on GitHub.
Contact
For questions, support, or collaboration, you can reach out to gaurang.ingle@gmail.com.
Metadata
Release files for glabel 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| glabel-1.0.3.tar.gz | 5.0 kB | Details |
Release files / glabel-1.0.3.tar.gz
| Download URL | glabel-1.0.3.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a0f0ae01ff3e638168655c7a2fcf47a6592cd26e605fb0aca13a0fbf4e744c3
|
|
BLAKE2b-256 checksum How to use checksums |
5c0d74040fe97f14b4493cef5e38058a9bed5d76a41858a690ef655900ee37ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.5
|