Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computer Vision

This repository contains my computer vision learning notebooks. The examples start with basic image and video processing and gradually move to face, hand, body, and object detection. The final section covers OCR, semantic segmentation, and image inpainting.

What is included

1. Computer vision essentials

The notebooks in 01_cv_essentials cover:

  • Reading images, videos, and webcam input
  • Grayscale conversion, blur, cropping, and drawing text
  • Shape and color detection

2. Detection modules

The notebooks in 02_cv_detection_modules cover:

  • Face detection with MediaPipe
  • Hand tracking and hand landmarks
  • Body pose detection
  • YOLO object detection and its basic theory
  • Custom object detection

The folder also contains the model files needed by the MediaPipe examples and sample images used in the lessons.

3. Advanced computer vision

The notebooks in 03_cv_advanced_ch3 cover:

  • Text recognition with OCR models
  • Semantic segmentation
  • Image inpainting

Requirements

  • Python 3.11 or newer
  • VS Code with the Python and Jupyter extensions
  • A webcam for the webcam and real-time detection examples

Setup on Windows

Open PowerShell in the repository folder and run:

python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install opencv-python cvzone mediapipe ultralytics transformers==4.49.0 ipywidgets hf_xet

If PowerShell blocks activation, run this once in the same terminal:

Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned

In VS Code, open a notebook and select this interpreter as the kernel:

E:\Learning\Computer Vision\.venv\Scripts\python.exe

Restart the notebook kernel after selecting it.

Running the notebooks

  1. Open the repository in VS Code.
  2. Start with the notebooks in 01_cv_essentials.
  3. Continue to 02_cv_detection_modules and then 03_cv_advanced_ch3.
  4. Run each cell from top to bottom.

Some notebooks download model weights the first time they run. A webcam example may open a window; press q to close it.

Notes

  • Run notebooks from the repository root when a relative image path is used.
  • The first Hugging Face or Ultralytics run can take time because model files may need to download.
  • Large model files are included only when they are part of the lesson. Generated training folders and local environments are ignored by Git.

About

Structured notes and hands-on notebooks covering OpenCV fundamentals, real-time detection (face, hand, body, object) with cvzone/MediaPipe, YOLO theory + practical object detection, OCR, semantic segmentation, and image inpainting. Built while following applied CV tutorials as part of an AI/ML learning roadmap.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages