Options
All
  • Public
  • Public/Protected
  • All
Menu

the HOG descriptor algorithm introduced by Navneet Dalal and Bill Triggs Dalal2005 .

useful links:

Source: opencv2/objdetect.hpp.

Hierarchy

  • HOGDescriptor

Index

Constructors

constructor

  • aqual to HOGDescriptor, Size(16,16), Size(8,8), Size(8,8), 9 )

    Returns HOGDescriptor

  • This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    Parameters

    • _winSize: Size

      sets winSize with given value.

    • _blockSize: Size

      sets blockSize with given value.

    • _blockStride: Size

      sets blockStride with given value.

    • _cellSize: Size

      sets cellSize with given value.

    • _nbins: int

      sets nbins with given value.

    • Optional _derivAperture: int

      sets derivAperture with given value.

    • Optional _winSigma: double

      sets winSigma with given value.

    • Optional _histogramNormType: any

      sets histogramNormType with given value.

    • Optional _L2HysThreshold: double

      sets L2HysThreshold with given value.

    • Optional _gammaCorrection: bool

      sets gammaCorrection with given value.

    • Optional _nlevels: int

      sets nlevels with given value.

    • Optional _signedGradient: bool

      sets signedGradient with given value.

    Returns HOGDescriptor

  • This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    Parameters

    • filename: String

      The file name containing HOGDescriptor properties and coefficients for the linear SVM classifier.

    Returns HOGDescriptor

  • This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    Parameters

    • d: HOGDescriptor

      the HOGDescriptor which cloned to create a new one.

    Returns HOGDescriptor

Properties

L2HysThreshold

L2HysThreshold: double

blockSize

blockSize: Size

blockStride

blockStride: Size

cellSize

cellSize: Size

derivAperture

derivAperture: int

free_coef

free_coef: float

gammaCorrection

gammaCorrection: bool

histogramNormType

histogramNormType: any

nbins

nbins: int

nlevels

nlevels: int

oclSvmDetector

oclSvmDetector: UMat

signedGradient

signedGradient: bool

svmDetector

svmDetector: any

winSigma

winSigma: double

winSize

winSize: Size

Methods

checkDetectorSize

  • checkDetectorSize(): bool

compute

  • compute(img: InputArray, descriptors: any, winStride?: Size, padding?: Size, locations?: Point): InputArray
  • Parameters

    • img: InputArray

      Matrix of the type CV_8U containing an image where HOG features will be calculated.

    • descriptors: any

      Matrix of the type CV_32F

    • Optional winStride: Size

      Window stride. It must be a multiple of block stride.

    • Optional padding: Size

      Padding

    • Optional locations: Point

      Vector of Point

    Returns InputArray

computeGradient

  • computeGradient(img: InputArray, grad: InputOutputArray, angleOfs: InputOutputArray, paddingTL?: Size, paddingBR?: Size): InputArray
  • Parameters

    • img: InputArray

      Matrix contains the image to be computed

    • grad: InputOutputArray

      Matrix of type CV_32FC2 contains computed gradients

    • angleOfs: InputOutputArray

      Matrix of type CV_8UC2 contains quantized gradient orientations

    • Optional paddingTL: Size

      Padding from top-left

    • Optional paddingBR: Size

      Padding from bottom-right

    Returns InputArray

copyTo

detect

  • detect(img: InputArray, foundLocations: any, weights: any, hitThreshold?: double, winStride?: Size, padding?: Size, searchLocations?: Point): InputArray
  • detect(img: InputArray, foundLocations: any, hitThreshold?: double, winStride?: Size, padding?: Size, searchLocations?: Point): InputArray
  • Parameters

    • img: InputArray

      Matrix of the type CV_8U or CV_8UC3 containing an image where objects are detected.

    • foundLocations: any

      Vector of point where each point contains left-top corner point of detected object boundaries.

    • weights: any

      Vector that will contain confidence values for each detected object.

    • Optional hitThreshold: double

      Threshold for the distance between features and SVM classifying plane. Usually it is 0 and should be specified in the detector coefficients (as the last free coefficient). But if the free coefficient is omitted (which is allowed), you can specify it manually here.

    • Optional winStride: Size

      Window stride. It must be a multiple of block stride.

    • Optional padding: Size

      Padding

    • Optional searchLocations: Point

      Vector of Point includes set of requested locations to be evaluated.

    Returns InputArray

  • Parameters

    • img: InputArray

      Matrix of the type CV_8U or CV_8UC3 containing an image where objects are detected.

    • foundLocations: any

      Vector of point where each point contains left-top corner point of detected object boundaries.

    • Optional hitThreshold: double

      Threshold for the distance between features and SVM classifying plane. Usually it is 0 and should be specified in the detector coefficients (as the last free coefficient). But if the free coefficient is omitted (which is allowed), you can specify it manually here.

    • Optional winStride: Size

      Window stride. It must be a multiple of block stride.

    • Optional padding: Size

      Padding

    • Optional searchLocations: Point

      Vector of Point includes locations to search.

    Returns InputArray

detectMultiScale

  • detectMultiScale(img: InputArray, foundLocations: any, foundWeights: any, hitThreshold?: double, winStride?: Size, padding?: Size, scale?: double, finalThreshold?: double, useMeanshiftGrouping?: bool): InputArray
  • detectMultiScale(img: InputArray, foundLocations: any, hitThreshold?: double, winStride?: Size, padding?: Size, scale?: double, finalThreshold?: double, useMeanshiftGrouping?: bool): InputArray
  • Parameters

    • img: InputArray

      Matrix of the type CV_8U or CV_8UC3 containing an image where objects are detected.

    • foundLocations: any

      Vector of rectangles where each rectangle contains the detected object.

    • foundWeights: any

      Vector that will contain confidence values for each detected object.

    • Optional hitThreshold: double

      Threshold for the distance between features and SVM classifying plane. Usually it is 0 and should be specified in the detector coefficients (as the last free coefficient). But if the free coefficient is omitted (which is allowed), you can specify it manually here.

    • Optional winStride: Size

      Window stride. It must be a multiple of block stride.

    • Optional padding: Size

      Padding

    • Optional scale: double

      Coefficient of the detection window increase.

    • Optional finalThreshold: double

      Final threshold

    • Optional useMeanshiftGrouping: bool

      indicates grouping algorithm

    Returns InputArray

  • Parameters

    • img: InputArray

      Matrix of the type CV_8U or CV_8UC3 containing an image where objects are detected.

    • foundLocations: any

      Vector of rectangles where each rectangle contains the detected object.

    • Optional hitThreshold: double

      Threshold for the distance between features and SVM classifying plane. Usually it is 0 and should be specified in the detector coefficients (as the last free coefficient). But if the free coefficient is omitted (which is allowed), you can specify it manually here.

    • Optional winStride: Size

      Window stride. It must be a multiple of block stride.

    • Optional padding: Size

      Padding

    • Optional scale: double

      Coefficient of the detection window increase.

    • Optional finalThreshold: double

      Final threshold

    • Optional useMeanshiftGrouping: bool

      indicates grouping algorithm

    Returns InputArray

detectMultiScaleROI

  • detectMultiScaleROI(img: InputArray, foundLocations: any, locations: any, hitThreshold?: double, groupThreshold?: int): InputArray
  • Parameters

    • img: InputArray

      Matrix of the type CV_8U or CV_8UC3 containing an image where objects are detected.

    • foundLocations: any

      Vector of rectangles where each rectangle contains the detected object.

    • locations: any

      Vector of DetectionROI

    • Optional hitThreshold: double

      Threshold for the distance between features and SVM classifying plane. Usually it is 0 and should be specified in the detector coefficients (as the last free coefficient). But if the free coefficient is omitted (which is allowed), you can specify it manually here.

    • Optional groupThreshold: int

      Minimum possible number of rectangles minus 1. The threshold is used in a group of rectangles to retain it.

    Returns InputArray

detectROI

  • detectROI(img: InputArray, locations: any, foundLocations: any, confidences: any, hitThreshold?: double, winStride?: any, padding?: any): InputArray
  • Parameters

    • img: InputArray

      Matrix of the type CV_8U or CV_8UC3 containing an image where objects are detected.

    • locations: any

      Vector of Point

    • foundLocations: any

      Vector of Point where each Point is detected object's top-left point.

    • confidences: any

      confidences

    • Optional hitThreshold: double

      Threshold for the distance between features and SVM classifying plane. Usually it is 0 and should be specified in the detector coefficients (as the last free coefficient). But if the free coefficient is omitted (which is allowed), you can specify it manually here

    • Optional winStride: any

      winStride

    • Optional padding: any

      padding

    Returns InputArray

getDescriptorSize

getWinSigma

groupRectangles

  • groupRectangles(rectList: any, weights: any, groupThreshold: int, eps: double): any
  • Parameters

    • rectList: any

      Input/output vector of rectangles. Output vector includes retained and grouped rectangles. (The Python list is not modified in place.)

    • weights: any

      Input/output vector of weights of rectangles. Output vector includes weights of retained and grouped rectangles. (The Python list is not modified in place.)

    • groupThreshold: int

      Minimum possible number of rectangles minus 1. The threshold is used in a group of rectangles to retain it.

    • eps: double

      Relative difference between sides of the rectangles to merge them into a group.

    Returns any

load

  • load(filename: String, objname?: String): String
  • Parameters

    • filename: String

      Path of the file to read.

    • Optional objname: String

      The optional name of the node to read (if empty, the first top-level node will be used).

    Returns String

read

save

  • save(filename: String, objname?: String): String

setSVMDetector

  • setSVMDetector(svmdetector: InputArray): InputArray

write

Static getDaimlerPeopleDetector

  • getDaimlerPeopleDetector(): any

Static getDefaultPeopleDetector

  • getDefaultPeopleDetector(): any

Generated using TypeDoc