Skip to content

Object detection & segmentation project from photographs, videos and snapshots with the 8th version of the YOLO algorithm.

License

Notifications You must be signed in to change notification settings

kemalkilicaslan/Object-Detection-and-Segmentation-with-YOLOv8

Repository files navigation

Object Detection and Segmentation with YOLOv8

Installation

pip install ultralytics

Object Detection in Photo

CLI (Command Line Interface)

yolo detect predict model=yolov8x.pt source="img.jpg" save=True

Python

from ultralytics import YOLO

model = YOLO('yolov8x.pt')
results = model('img.jpg', save=True)

Example

Image img

Object Detection Image Object-Detection-Image


Object Segmentation in Photo

CLI (Command Line Interface)

yolo task=segment mode=predict model=yolov8x-seg.pt source='img.jpg' save=true

Python

from ultralytics import YOLO

model = YOLO('yolov8x-seg.pt')
results = model('img.jpg', save=True)

Example

Images img

Object Segmentation Image Object-Segmentation-Image


Object Detection in Video

CLI (Comman Line Interface)

yolo detect predict model=yolov8x.pt source="video.mp4" save=True

Python

from ultralytics import YOLO

model = YOLO('yolov8x.pt')
results = model('video.mp4', save=True)

Example

Video video

Object Detection Video Object-Detection-Video


Object Segmentation in Video

CLI (Comman Line Interface)

yolo task=segment mode=predict model=yolov8x-seg.pt source='video.mp4' save=true

Python

from ultralytics import YOLO

model = YOLO('yolov8x-seg.pt')
results = model('video.mp4', save=True)

Example

Video video

Object Segmentation Video Object-Segmentation-Video


Real Time Object Detection

CLI (Command Line Interface)

yolo detect predict model=yolov8x.pt source=0 show=True

Python

from ultralytics import YOLO

model = YOLO('yolov8x.pt')
model.predict(source="0", show=True)

Example

Real Time Object Detection Real-Time-Object-Detection


Real Time Object Segmentation

CLI (Command Line Interface)

yolo task=segment mode=predict model=yolov8x-seg.pt source='0' show=True

Python

from ultralytics import YOLO

model = YOLO('yolov8x-seg.pt')
model.predict(source="0", show=True)

Example

Real Time Object Segmentation Real-Time-Object-Segmentation

About

Object detection & segmentation project from photographs, videos and snapshots with the 8th version of the YOLO algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published