๐ŸŒฟ LeafLens: Plant Identification & Care Guide

๐ŸŒฑ Project Overview

LeafLens is an AI-powered plant identification application that helps users identify plants through image uploads or text descriptions, providing detailed care information and growing tips.

๐Ÿ”— Live Demo: View LeafLens App

โœจ Features

  • ๐Ÿ“ธ Image-based Plant Identification: Upload photos of plants for instant identification
  • ๐Ÿ“ Text-based Identification: Describe plants to get accurate identification results
  • ๐Ÿ–ผ๏ธ Visual Results: See your uploaded plant image displayed with identification results
  • ๐ŸŒ Comprehensive Plant Database: Access information on 20+ common plants
  • ๐Ÿ’ง Detailed Care Instructions: Get watering, light, and temperature requirements
  • ๐Ÿ” Scientific Information: View both common and scientific names with confidence levels
  • ๐Ÿ“Š Standardized Results Format: Consistent, detailed plant information display
  • ๐Ÿ“ฑ Mobile Responsive: Fully optimized for all devices with camera integration
  • ๐Ÿ” User Authentication: Secure login with Clerk authentication

๐Ÿš€ Getting Started

Prerequisites

Installation

# Clone the repository
git clone https://github.com/midlaj-muhammed/LeafLens.git

# Navigate to project directory
cd leaf-whisper-garden-guide-main

# Install dependencies
npm install

# Create .env.local file and add your Clerk publishable key
echo "VITE_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key_here" > .env.local

# Start the development server
npm run dev

๐Ÿ› ๏ธ Development Options

1๏ธโƒฃ Use Lovable Platform

Simply visit the LeafLens Project and start prompting. Changes made via Lovable will be committed automatically to this repo.

2๏ธโƒฃ Use Your Preferred IDE

Work locally using your own IDE by cloning this repo and pushing changes. Pushed changes will also be reflected in Lovable.

3๏ธโƒฃ Edit Directly in GitHub

  • Navigate to the desired file(s)
  • Click the "Edit" button (pencil icon) at the top right
  • Make your changes and commit

4๏ธโƒฃ Use GitHub Codespaces

  • Navigate to the main repository page
  • Click on the "Code" button (green button) near the top right
  • Select the "Codespaces" tab
  • Click on "New codespace" to launch a new environment
  • Edit files directly within the Codespace

๐Ÿงฐ Technology Stack

This project leverages modern web technologies:

  • โšก Vite: Next-generation frontend tooling
  • ๐Ÿ“˜ TypeScript: Type-safe JavaScript
  • โš›๏ธ React: UI component library
  • ๐ŸŽจ Tailwind CSS: Utility-first CSS framework
  • ๐Ÿงฉ shadcn/ui: Reusable component system
  • ๐Ÿ”‘ Clerk: Authentication and user management
  • ๐Ÿค– Google Gemini API: AI-powered plant identification

๐ŸŒŸ Key Features in Detail

๐Ÿ“Š Standardized Plant Identification Results

When you identify a plant using LeafLens, you'll receive comprehensive information in a consistent format:

  • ๐Ÿ” Scientific & Common Names: Full botanical identification
  • ๐Ÿง  Confidence Level: AI certainty percentage
  • ๐ŸŒŽ Native Region: Geographic origin information
  • ๐ŸŒฑ Common Uses: Practical applications of the plant
  • โ˜€๏ธ Light Requirements: Optimal sunlight conditions
  • ๐Ÿ’ง Watering Needs: Frequency and watering tips
  • ๐ŸŒก๏ธ Temperature Range: Ideal climate conditions
  • ๐Ÿงช Additional Care Tips: Expert growing advice

๐Ÿ–ผ๏ธ Visual Plant Recognition

  • When you upload a plant image, it's displayed at the top of your identification results
  • For text-based identification, a decorative plant icon is shown instead
  • All results maintain the same comprehensive information format

๐Ÿ“ฆ Deployment

Deploy this project to Vercel for the best performance and reliability.

๐Ÿ”— Custom Domain

Yes, you can connect your own domain!

To connect a domain, navigate to your Vercel project settings, select Domains, and follow the instructions to add your custom domain.

๐Ÿ“ธ Screenshots

Plant Identification Plant Database

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Plant data and images from various botanical resources
  • Icons from Lucide Icons
  • AI-powered identification by Google Gemini API
Share this project:

Updates