Skip to content

fantadominator/HOG-LBP-Haar-features-implemented-in-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HOG-LBP-Haar-features-implemented-in-python

Using numpy to implement typical features of Digital Image Processing, including HOG, LBP, Haar.

For HOG features:

from HOG import HOG

hog_descriptor = HOG(img,block_size=3)

hog_vector = hog_descriptor.hog_features()

print(hog_vector.shape)

For LBP features:

from LBP import LBP

lbp = LBP(img)

features = lbp.extend_lbp(3,8) # features = lbp.original_lbp()

r_features = lbp.extend_lbp(3,8,rotation_sensitive=False)

vector = lbp.get_lbp_vector(features,8)

print(vector.shape,vector[:10])

For basic Haar features:

from Haar import Haar

haar_features = Haar(img)

vector = haar_features.get_haar_features()

The Haar features may take more time to calculate.

About

Using numpy to implement typical features of Digital Image Processing, including HOG, LBP, Haar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages