LeoTheBestCoder / HOG-implementation

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HOG Algorithm Implementation

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)
IMAGE_NAME = 'amumu.jpg'
  1. Run the script
python3 image.py

Demostration

  • Input Image
  • Segmentation Result

About

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


Languages

Language:Python 100.0%