A web app for labeling images along X-axis.
- Label images in X-axis
- Multi-label support
- Directory structure tree view
- Local deployment, no image upload required
- Python 3.9+
- Node.js 14+
- Clone the repository
- Install dependencies:
pip install -r requirements.txtThe server can be configured using environment variables in a .env file:
BASE_DIR: Set the base directory for file system operations (defaults to the project root directory)
cd web
npm install
npm run buildStart the server with:
python main.pyOr use uvicorn directly:
uvicorn main:app --reload --host 0.0.0.0 --port 8000Once the server is running, you can access:
- Interactive API documentation: http://localhost:8000/docs
- Alternative documentation: http://localhost:8000/redoc
GET /api/labels/file- Get the related labels of a filePOST /api/labels/file- Create a new labels for a fileGET /api/labels/files- Get all labels from a directory
GET /api/fs/tree- Get directories structureGET /api/fs/files: Get all images files in the directoryGET /api/fs/file/{file_path}: Return the file content
