Face Utils

Dense

class imutils.feature.dense.DENSE(step=6, radius=0.5)
detect(img)
setInt(var, val)

Factories

imutils.feature.factories.DescriptorExtractor_create(extractor, *args, **kw_args)
Parameters:
  • extractor – string of the type of descriptor extractor to return

  • args – positional arguments for extractor

  • kw_args – keyword arguments for extractor

Returns:

the key extractor object

imutils.feature.factories.DescriptorMatcher_create(matcher)
Parameters:

matcher – string of the type of descriptor matcher to return

Returns:

the matcher int

imutils.feature.factories.FeatureDetector_create(detector, *args, **kw_args)
Parameters:
  • detector – string of the type of keypoint detector to return

  • args – positional arguments for detector

  • kw_args – keyword arguments for detector

Returns:

the key point detector object

Gftt

class imutils.feature.gftt.GFTT(maxCorners=0, qualityLevel=0.01, minDistance=1, mask=None, blockSize=3, useHarrisDetector=False, k=0.04)
detect(img)

Harris

class imutils.feature.harris.HARRIS(blockSize=2, apertureSize=3, k=0.1, T=0.02)
detect(img)

Helpers

imutils.feature.helpers.corners_to_keypoints(corners)

function to take the corners from cv2.GoodFeaturesToTrack and return cv2.KeyPoints

Rootsift

class imutils.feature.rootsift.RootSIFT
compute(image, kps, eps=1e-07)