Skip to content

Forgot the due date for books you took from library? LibSnap remembers so you don't end up paying fines!

Notifications You must be signed in to change notification settings

g-wtham/LibSnap

Repository files navigation

Forgot the due date for books you took from the library? LibSnap remembers so you don't end up paying fines!

The main purpose of LibSnap is to solve the common problem of students forgetting to return books on time and incurring late fees.

It creates a digital record of borrowed books and proactively reminds students when books need to be returned, helping both students save money and libraries maintain their collections.

Cherry on the top, this entire setup works without using any PAID tools..

image

Video Demo :

LibSnap.-.Live.Demo.mp4

Here's what it does:

  1. The system first scans barcode in
    i. Student IDs
    ii. ISBN barcode in the borrowed book

In each step, a sound alert is given to signal the user that correct data has been captured.

Fetches book details from Google Books/Open Library API using the ISBN number present in ISBN barcode, which lies at bottom-corner in the backcover of every published book! Thus associating the borrowed book’s title & author with the user's roll number.

  1. In cases where book ISBN barcodes are damaged (or) back covers are damaged, hold the book cover in front of the camera, the custom trained YOLOv11n model (on books covers) detects the book, gets the image, then LibSnap uses Gemini API to recognize book covers and extract title and author information, to associate with the user.

LibSnap - Book OCR

  1. All borrowing records are stored in a PostgreSQL database, automatically setting due dates 15 days from checkout and tracking all lending activity, and sends timely reminders to the registered email ID.

  2. Students can access a web portal to view all their borrowed books and due dates in one place. If it's a new user, he/she has to sign up first! And it's a one time process, as successive borrowed books get associated in that account.

Data Flow :

ISBN barcode → Query Google Books/Open Library API → Get book metadata
Cover image → YOLO model book detection → Gemini API → Extract title/author

image

Automatic Email Reminders :

{8B587C2A-2D7C-4537-A4D7-2E73D5B248E5}

Real-World Usage :

➡️ Scenario: New Student Registration

  1. New student visits the library, takes the book and during his exit
  2. A QR code is placed near this setup, which contains a link to our web portal to register.
  3. Students provide roll number, email, password.
  4. Account is created for future book checkouts
  5. Scans the book, student ID and rest of the workflow is discussed above..

Setup Requirements :

  1. Hardware:
  • Computer with webcam
  • Barcode/QR code scanner (optional, can use webcam)
  1. Software Dependencies:
  • PostgreSQL database
  • Python libraries: OpenCV, pyzbar, pyttsx3, psycopg2, Flask, YOLO v11 Nano
  • Google Gemini API (for OCR)
  • Gmail account credentials (for sending emails)

Initial Stage :

LibSnap.-.Edit.mp4

ID & Book Detection - Uncut Version :

LibSnap.mp4

About

Forgot the due date for books you took from library? LibSnap remembers so you don't end up paying fines!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published