Skip to content

Parse and Analyse your Canvas with AI.

Notifications You must be signed in to change notification settings

arv-anshul/canvas-ai

Repository files navigation

Canvas Calculator AI

Docker FastAPI Google Gemini LangChain Python

Parse and Analyse image containing mathematical expression or problem (it can be in a drawing format) using AI to give a structured response by leveraging Langchain framework. Also created API out of it using FastAPI which has containerized with Docker.

frontend.png

Prompt Examples

Example 1

image

{
  "expression": "x=3;y=4;x+y=?",
  "result": "7",
  "explanation": "The sum of x and y is 7"
}

Example 2

image

{
  "expression": "10 km/hr * (50 meters / 1000 meters/km) * (3600 seconds / 1 hour)",
  "result": "18 seconds",
  "explanation": "The car is travelling at 10 km/hr and it has to cover 50 meters, so we can calculate the time it takes to cover the distance."
}

See more examples on my website!

Features

  • 🖼️ Analyse one image at a time and return a structured response.
  • 💥 Create API out of it using FastAPI.
  • 🐳 Containerize FastAPI app using Docker.
  • 🖥️ Create frontend using Streamlit.
  • Add more prompts to process images in different endpoint.

About

Parse and Analyse your Canvas with AI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published