An intelligent web application that analyze, interpret, and solve handwritten mathematical equations. Key features include:
-
Image Processing
-
AI-Powered Computation
-
Interactive Digital Workspace
-
Smart Calculation Engine
- Automatically detect and solve mathematical expressions, equations, and graphical problems.
- Upload images containing math content or input problems by handwriting or typing.
- Choose between dark and light themes for comfortable viewing.
- Customizable color swatches for a tailored and personalized interface.
- Frontend: Next.js with Mantine UI.
- Backend: Next.js API routes with integration to the Gemini AI model.
- AI: Google Gemini 2.0 Flash for advanced generative content processing.
- Styling: Mantine UI and custom themes.
- Utilities: Custom utility functions for image analysis and JSON formatting.
- Node.js (v16+)
- NPM or Yarn
- Google Generative AI API Key
-
Clone the repository:
git clone https://github.com/Ashwinkarnati/AI-Math-Calci.git cd math-expression-analyzer -
Install dependencies:
npm install
-
Set up environment variables: Create a
.envfile in the root directory and add:GEMINI_API_KEY=your-google-api-key
-
Start the development server:
npm run dev
- Upload an image with mathematical content, or input equations, diagrams, graphs, or expressions using handwriting or text.
- Optionally, define custom variables to use in your calculations.
- Click Calculate to analyze the input and solve the expressions.
- View results visually on the UI.
Modify the available themes in constants.js:
export const THEMES = ['dark', 'light', 'grid', 'paper'];Update color options in constants.js:
export const SWATCHES = [
{ name: "black", color: "#000000" },
{ name: "red", color: "#FF0000" },
...
];-
Fork the repository.
-
Create a new branch:
git checkout -b feature/your-feature-name
-
Commit your changes:
git commit -m "Add your feature description" -
Push to the branch:
git push origin feature/your-feature-name
-
Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.