🌴 Palm Tree Detection Web App

Palm Tree Detection

This is a simple web application that detects and counts the number of palm trees in an uploaded image. The app uses a custom-trained object detection model hosted on Roboflow and serves predictions through a FastAPI backend. The result is a bounding-box-annotated image along with a count of detected palm trees.

🚀 Demo

👉 Watch the Demo Video

🧠 Tech Stack

📦 Features

⚙️ Requirements

✅ Backend Setup (FastAPI + Roboflow)

  1. Python 3.8 or higher
  2. Install required Python packages:
    pip install fastapi uvicorn pillow python-multipart inference-sdk
  3. Run the backend server:
    uvicorn main:app --reload

Note: Make sure to replace the api_key and model_id in main.py with your own Roboflow credentials if you fork this project.

✅ Frontend Setup

No build tools required. Just open index.html in your browser, or use a local server (e.g. Live Server extension in VS Code).

Make sure the backend server is running locally at: http://localhost:8000/detect/

🙌 Credits

Explore the code:

Github

Back to Projects