Giter Site home page Giter Site logo

yolollm-hackaburg-2024's Introduction

Dev Guide

Usage for VSCode

For everyone who uses VSCode, this should work almost out of the box. Just open the project folder in VSCode, make sure you have Docker installed, and you should be able to "Open in Container" from the Remote Development extension. (You may need to install the extension first.)

Usage for Docker

If you don't use VSCode, you can still use Docker to run the project. Just run the following command in the project directory:

docker build -t yolollm .devcontainer/Dockerfile
docker run -it --rm -v $(pwd):/app yolollm

This will build the Docker image and run a container with the project mounted at /app. You can then run the project as usual. (Connect to the container, activate the virtual environment, and run the script.)

Note: Remember to install the required dependencies in the virtual environment by running poetry install --no-root before running the script.

Adding New Dependencies

If you need to add a new dependency, you can do so by running the following command:

poetry add <package>

This will add the package to the pyproject.toml file and install it in the virtual environment.

YOLOLLM

This project captures video input from the camera and processes frames using YOLO (You Only Look Once) with OpenCV.

Prerequisites

  • Python 3.x
  • OpenCV
  • Numpy
  • YOLO configuration, weights, and class names files

Installation

  1. Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate
  2. Upgrade pip and setuptools:

    pip install --upgrade pip setuptools
  3. Install the required packages:

    pip install -r requirements.txt
  4. Download YOLO files:

    Download the following files and place them in the models directory:

    • yolov8n.pt

Usage

  1. Run the script:

    Ensure your virtual environment is activated, and then run the script:

    python main.py

Notes

  • Ensure you have the necessary permissions to access the camera.
  • The script is designed to process as many frames as possible in real-time, but performance may vary depending on your hardware.

References

yolollm-hackaburg-2024's People

Contributors

supdann avatar davisned avatar sinabakhshandeh avatar

Watchers

 avatar Kostas Georgiou 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.