Giter Club home page Giter Club logo

vehicle-detection's Introduction

Vehicle Detection and Counting

A web application built with Next.js for the frontend and Flask for the backend, enabling users to upload images for vehicle detection and counting.

Table of Contents

Features

  • Vehicle Detection: Upload an image and detect vehicles using YOLO (You Only Look Once) object detection algorithm.
  • Vehicle Counting: Count the number of cars, trucks, buses, and motorcycles detected in the image.
  • Visual Results: View the original and processed images with vehicle counts displayed.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python and pip installed on your machine for the backend.
  • Docker installed on your machine for containerization.

Usage

Navigate to the project directory:

cd vehicle-detection
  1. Navigate to the project directory:
cd vehicle-detection
  1. Install frontend dependencies:
cd frontend
npm install
  1. Install backend dependencies:
cd ../backend
pip install -r requirements.txt

Usage

  1. Start the backend Flask server:
cd ../backend
python app.py
The server will start running at `http://localhost:8080`.
  1. Start the frontend Next.js server:
cd ../frontend
npm run dev
The frontend server will start running at `http://localhost:3000`.
  1. Open your web browser and go to http://localhost:3000 to access the application.

  2. Upload an image and click "Detect Vehicles" to initiate the vehicle detection process.

Docker

You can also run the application using Docker. Follow these steps:

  1. Build the Docker image:
docker-compose build
  1. Start the Docker containers:
docker-compose up
The frontend will be accessible at `http://localhost:3000` and the backend at `http://localhost:8080`.

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue for any bugs, feature requests, or suggestions.

To contribute to this project, follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add new feature').
  5. Push to the branch (git push origin feature-branch).
  6. Create a new Pull Request.

License

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

vehicle-detection's People

Contributors

shivesh-anand avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.