A Node.js application that uses the Google Cloud Vision API to detect mathematical visual elements (such as numbers, formulas, graphs) in images.
- Node.js: Ensure you have Node.js installed.
- Google Cloud Vision API Key: Set up a Google Cloud project, enable the Vision API, and get your API key. Follow the setup guide here.
-
Clone the repository:
git clone https://github.com/kumarparth380/MathImageAnalyzer.git cd MathImageAnalyzer -
Install dependencies:
npm install
-
Replace
'CLOUD_VISION_API_KEY'in .env so it could be used inindex.jswith your actual Google Cloud Vision API key.
-
Add your images (in
.pngformat) to theimages/folder. -
Run the script:
node index.js
The script will output whether each image contains mathematical visual elements (true or false).
MIT License.