GithubHelp home page GithubHelp logo

yjg30737 / pyqt-ultralytics-yolo-gui Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 2.0 79.33 MB

Example of using YOLOv8 of Ultralytics in to Object Detection, Semantic Segmentation about image and video in PyQt

License: MIT License

Python 100.00%
image-segmentation object-detection pyqt pyqt5 pyqt5-desktop-application pyqt5-gui semantic-segmentation ultralytics yolo yolo-gui

pyqt-ultralytics-yolo-gui's Introduction

pyqt-ultralytics-yolo-gui

Example of using YOLOv8 of Ultralytics in to Object Detection, Semantic Segmentation about image and video in PyQt

This is an example of how to easily use Ultralytics' YOLOv8 object detection and image segmentation models in PyQt.

A class called YOLOWrapper is created to download the model remotely before the PyQt software is run. After the software is run, the file path is received and object detection or image segmentation is performed according to the user's selection.

The supported files are as follows: png, jpg, mp4

After running this, result file would be saved in same directory of main.py. You will see how fast it is :)

This program has a simple customization option, so you can display or remove object boxes, object names, and the probability that an object belongs to a specific class.

What is YOLO?

YOLO is a model arcitecture that is gaining attention in the real-time object detection and image segmentation fields due to its fast speed. YOLOv8 is one of the most recent version of it.

Requirements

  • qtpy
  • PyQt6
  • PySide6
  • pillow
  • opencv-python
  • numpy
  • ultralytics
  • torchvision
  • lapx>=0.5.2
  • shapely>=2.0.0

How to Run

  1. git clone ~
  2. pip install -r requirements.txt
  3. python main.py
  4. Write path in the input and click run. There are a three files (2 images, 1 video) in sample folder in case of you don't want to be bothered by finding files to test.

Preview

image

Output

Object Detection over image

a_result

Semantic Segmentation over image

b_result

Semantic Segmentation over video: https://youtu.be/bdRfcM8MlXI

By default, it shows label and box, probability. I removed them by unchecking all options.

pyqt-ultralytics-yolo-gui's People

Contributors

yjg30737 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jesanli

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.