objdetect

HOGDescriptor

fields

HOGDescriptor = {
winSize : Size ,
blockSize : Size ,
blockStride : Size ,
cellSize : Size ,
nbins : uint ,
derivAperture : int ,
histogramNormType : uint ,
nlevels : int ,
winSigma : number ,
L2HysThreshold : number ,
gammaCorrection : boolean ,
signedGradient : boolean
}

constructors

constructor ( winSize : Size = Size(64, 128) , blockSize : Size = Size(16, 16) , blockStride : Size = Size(8, 8) , cellSize : Size = Size(8, 8) , nbins : uint = 9 , derivAperture : int = 1 , winSigma : number = -1 , histogramNormType : uint = L2Hys , L2HysThreshold : number = 0.2 , gammaCorrection : boolean = false , nlevels : int = HOGDescriptor.DEFAULT_NLEVELS , signedGradient : boolean = false )

functions

checkDetectorSize

Result : boolean
checkDetectorSize () : Result

compute

Result : number []
compute ( img : Mat , winStride : Size = Size() , padding : Size = Size() , locations : Point2 [] = [] ) : Result
computeAsync ( img : Mat , winStride : Size = Size() , padding : Size = Size() , locations : Point2 [] = [] ) : Promise < Result >
computeAsync ( img : Mat , winStride : Size = Size() , padding : Size = Size() , locations : Point2 [] = [] , ...opts , callback ( err : Error , Result res )) : void

computeGradient

Result = {
grad : Mat ,
angleOfs : Mat
}
computeGradient ( img : Mat , paddingTL : Size = Size() , paddingBR : Size = Size() ) : Result
computeGradientAsync ( img : Mat , paddingTL : Size = Size() , paddingBR : Size = Size() ) : Promise < Result >
computeGradientAsync ( img : Mat , paddingTL : Size = Size() , paddingBR : Size = Size() , ...opts , callback ( err : Error , Result res )) : void

detect

Result = {
foundLocations : Point2 [] ,
weights : number []
}
detect ( img : Mat , hitThreshold : number = 0.0 , winStride : Size = Size() , padding : Size = Size() , searchLocations : Point2 [] = [] ) : Result
detectAsync ( img : Mat , hitThreshold : number = 0.0 , winStride : Size = Size() , padding : Size = Size() , searchLocations : Point2 [] = [] ) : Promise < Result >
detectAsync ( img : Mat , hitThreshold : number = 0.0 , winStride : Size = Size() , padding : Size = Size() , searchLocations : Point2 [] = [] , ...opts , callback ( err : Error , Result res )) : void

detectMultiScale

Result = {
foundLocations : Rect [] ,
foundWeights : number []
}
detectMultiScale ( img : Mat , hitThreshold : number = 0.0 , winStride : Size = Size() , padding : Size = Size() , scale : number = 1.05 , finalThreshold : number = 2.0 , useMeanshiftGrouping : boolean = false ) : Result
detectMultiScaleAsync ( img : Mat , hitThreshold : number = 0.0 , winStride : Size = Size() , padding : Size = Size() , scale : number = 1.05 , finalThreshold : number = 2.0 , useMeanshiftGrouping : boolean = false ) : Promise < Result >
detectMultiScaleAsync ( img : Mat , hitThreshold : number = 0.0 , winStride : Size = Size() , padding : Size = Size() , scale : number = 1.05 , finalThreshold : number = 2.0 , useMeanshiftGrouping : boolean = false , ...opts , callback ( err : Error , Result res )) : void

detectMultiScaleROI

Result : Rect []
detectMultiScaleROI ( img : Mat , hitThreshold : number = 0.0 , groupThreshold : int = 0 ) : Result
detectMultiScaleROIAsync ( img : Mat , hitThreshold : number = 0.0 , groupThreshold : int = 0 ) : Promise < Result >
detectMultiScaleROIAsync ( img : Mat , hitThreshold : number = 0.0 , groupThreshold : int = 0 , ...opts , callback ( err : Error , Result res )) : void

detectROI

Result = {
foundLocations : Point2 [] ,
confidences : number []
}
detectROI ( img : Mat , locations : Point2 [] , hitThreshold : number = 0.0 , winStride : Size = Size() , padding : Size = Size() ) : Result
detectROIAsync ( img : Mat , locations : Point2 [] , hitThreshold : number = 0.0 , winStride : Size = Size() , padding : Size = Size() ) : Promise < Result >
detectROIAsync ( img : Mat , locations : Point2 [] , hitThreshold : number = 0.0 , winStride : Size = Size() , padding : Size = Size() , ...opts , callback ( err : Error , Result res )) : void

getDaimlerPeopleDetector

Result : number []
getDaimlerPeopleDetector () : Result

getDefaultPeopleDetector

Result : number []
getDefaultPeopleDetector () : Result

groupRectangles

groupRectangles ( rectList : Rect [] , weights : number [] , groupThreshold : int , eps : number ) : Result
groupRectanglesAsync ( rectList : Rect [] , weights : number [] , groupThreshold : int , eps : number ) : Promise < Result >
groupRectanglesAsync ( rectList : Rect [] , weights : number [] , groupThreshold : int , eps : number , callback ( err : Error , Result res )) : void

load

load ( path : string ) : Result

save

save ( path : string ) : Result

setSVMDetector

setSVMDetector ( detector : number []) : Result