Skip to content

PlantScan: AI‑powered web app that turns any plant photo into instant species ID, health diagnostics, tailored care tips, and fun botanical facts—no green thumb required!

Notifications You must be signed in to change notification settings

ayush2635/PlantScan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌿 PlantScan

License Node.js Express


📖 Overview

PlantScan is a modern, AI-powered web application that analyzes images of plants and generates detailed reports on their species, health status, care recommendations, and interesting facts. The app leverages Google Gemini (Gemini-1.5-Flash) for generative AI analysis, sharp for image processing, and pdfkit for downloadable PDF reports.


✨ Features

  • 📸 Image Upload: Upload plant photos (max 5MB) via a simple form.
  • 🤖 AI Analysis: Uses Google Generative AI (Gemini) to identify species, assess health, and suggest care tips.
  • 📄 PDF Reports: Download a beautifully formatted PDF report including analysis and image.
  • 🗑️ Auto Cleanup: Uploaded and temporary files are automatically cleaned up.
  • ⚙️ Environment Config: Easy setup with environment variables.

🛠️ Technologies

  • Node.js & Express: Backend server and API routing.
  • Google Generative AI: @google/generative-ai package for plant analysis.
  • Multer: File upload handling with size limits.
  • Sharp: High-performance image processing.
  • PDFKit: Dynamic PDF generation.
  • dotenv: Environment variable management.

🚀 Installation

  1. Clone the repo

    git clone https://github.com/ayush2635/PlantScan.git
    cd PlantScan
  2. Install dependencies

    npm install
  3. Create a .env file at the project root:

    PORT=5000
    GEMINI_API_KEY=your_google_gemini_api_key
    NODE_ENV=development
  4. Run the app

    npm start
  5. Open http://localhost:5000 in your browser.

About

PlantScan: AI‑powered web app that turns any plant photo into instant species ID, health diagnostics, tailored care tips, and fun botanical facts—no green thumb required!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published