Skip to content

Photo Annotation System for labeling training data. use in conjuction with labelerx-ui

Notifications You must be signed in to change notification settings

progressive-galib/labelerx-api

Repository files navigation

Photo Annotation System

The Photo Annotation System is a web application designed to manage and annotate images efficiently. It provides a RESTful API for uploading, annotating, and retrieving images, as well as tracking annotations by class.

Features

  • Image Management: Upload and store images with metadata such as filename, path, width, and height.
  • Annotation: Annotate images by marking them as annotated or unannotated.
  • Image Details: Retrieve details of an image, including width and height.
  • Class Tracking: Keep track of annotated images for different classes.
  • Class Management: Add new classes to classify images.

Getting Started

Prerequisites

  • Node.js
  • PostgreSQL or a compatible database

Installation

  1. Clone the repository:

    git clone https://github.com/progressive-galib/labelerx-api.git
  2. Install dependencies:

    cd photo-annotation-system
    npm install
  3. Configure your database connection by updating the DATABASE_URL environment variable in your .env file.

  4. Initialize the database schema:

    npx prisma migrate dev
  5. Populate the database with classes using the initializer:

    npm initialize
  6. Start the server:

    npm start
  7. Access the API at http://localhost:3000/api.

API Documentation

The API documentation is available at http://localhost:3000/api-docs using Swagger UI.

Usage

  • Use the provided API to manage and annotate your images.
  • Interact with the Swagger documentation for API testing and exploration.

License

This project is licensed under the ISC License - see the LICENSE.md file for details.

Acknowledgments

  • Prisma - Database toolkit for Node.js and TypeScript
  • Express.js - Web application framework for Node.js
  • Swagger - API documentation and testing tools

About

Photo Annotation System for labeling training data. use in conjuction with labelerx-ui

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published