Implement object segmentation on images using HOG algorithm proposed in CVPR 2005

Description

HOG (Histograms of Oriented Gradients) Algorithm is an algorithm aiming to realize object segmentation (edge detection) on images before CNN models are widely used.

Reference

Navneet Dalal and Bill Triggs, Histograms of Oriented Gradients, CVPR 2005

Getting Started

  1. Clone this repository
git clone https://github.com/LeoTheBestCoder/HOG_implementation.git
  1. Install related libraries

pip install opencv-python
pip install numpy
pip install matplotlib
  1. Put your input image under same directory and modify line 10 in image.py (include filename extension)
  1. Run the script

Demostration