DEV Community

Discussion on: Show me your best Open Source project

Collapse
 
lakshyakhatri profile image
Lakshya Khatri

First time when I learned REST API, I created this:

GitHub logo LakshyaKhatri / Bookshelf-Reader-API

A browsable REST API for recognizing book spines in an image.

Bookshelf-Reader-API

A browsable REST API built using Django REST Framework for recognizing book spines in an image.

Uploaded Image Result
Uploaded Image Resulted Image

Installation

  • To run this project locally, clone or download this repository.
  • Install requirements using
    pip install -r requirements.txt
    
  • Then run the migrations using
    python3 manage.py makemigrations
    python3 manage.py migrate
    
  • Run the application:
    python3 manage.py runserver
    

Usage

Add these URLs after your landing URL

Function url Return
Upload Bookshelf Image /api/create-bookshelf/ ID for referring the uploaded image (Inside the Response Header)
Spine Line Drawn Image /api/bookshelf/<bookshelf-id>/ Spine line drawn image
Cropped Spines /api/spines/<bookshelf-id>/ URLS of the cropped spine images

Further Implementation

This project contains scrappers to scrap the information of all the books recognized in the spine image. Recognized spine can be sent for text recognition and then the recieved text can be uploaded to below URL's for scrapping the book's information.

NOTE 1: It's okay if the recognized text is…