Skip to main content

CalculusOCR: A Vision Transformer that can perform optical character recognition on handwritten calculus expressions and outputs LaTeX code, Sympy equation and solution.

Project description

CalculusOCR

Introduction

CalculusOCR is a Python package designed to simplify the process of converting handwritten calculus expressions into LaTeX code, converts then into Sympy equation and solving them.

Key Features

  1. OCR-Powered Input: Easily convert images containing handwritten calculus expressions into a digital format.

  2. SymPy Integration: Utilize SymPy's mathematical capabilities to perform calculations on LaTeX code generated from handwritten expressions.

  3. Versatile Problem Handling: Solve a wide range of calculus problems, including derivatives, integrals, limits, and complex mathematical expressions.

Applications:

  • Educational Materials: Create assignments, quizzes, tests, or exams with handwritten calculus problems.
  • Research and Reporting: Incorporate complex calculus equations and formulas into research papers, reports, or presentations.
  • Problem Solving: Solve challenging calculus problems using Python .
  • Teaching and Learning: Enhance calculus education through interactive notebooks or online platforms.

License

CalculusOCR is licensed under the MIT License.The full text of the MIT License in the LICENSE file.

Installation

To install CalculusOCR using pip:

pip install CalculusOCR

Importing the Package

from CalculusOCR import *

OCR-Powered Conversion

Convert a handwritten calculus expression image into LaTeX code:

LaTeX = getlatex("<handwritten_expression.jpg>")

Solving Sympy Equation

Use SymPy to perform mathematical operations:

solution = sympy_solve(<SympyEquation>)

Solving Calculus Problems

Use solveimage() to perform mathematical operations in the given image:

SympyEqn, solution = solveimage("<calculus_expression.jpg>")

Contributing

Whether you have ideas, translations, design changes, code cleaning, or even major code changes, help is always welcome. The app gets better and better with each contribution, no matter how big or small! If you'd like to get involved, check our contribution notes.

Please note that all participants in this project are expected to follow our Code of Conduct. By participating in this project you agree to abide by its terms. See CODE_OF_CONDUCT.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

CalculusOCR-0.0.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

CalculusOCR-0.0.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file CalculusOCR-0.0.3.tar.gz.

File metadata

  • Download URL: CalculusOCR-0.0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for CalculusOCR-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8457be62ec806d4851eda63a7a9a74bc989d0d1661192728e75398c55ae947bd
MD5 06a3d2be12903dc385de2058e6e17b0d
BLAKE2b-256 4ac9e6024ca48fc2a1fd4d350522a9568246e19f7a6cc5bda9f1ca45d408f651

See more details on using hashes here.

File details

Details for the file CalculusOCR-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: CalculusOCR-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for CalculusOCR-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 47187725217c8407108189ccbd598fbec18845bf4e2be795df0683d2cb272222
MD5 8c25642709429cff989ec920f1819d63
BLAKE2b-256 0ef9bdefadbc63ad0b7022a050befd9aa5463fb74a19dfc449eee69eecf338eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page