HOGDescriptor checkDetectorSize()

asked 2018-04-16 17:07:30 -0500

Hello,

I am currently trying to import HOG features. I got them from here: http://benchmark.ini.rub.de/?section=...

Description says:

-> All images were scaled to 40x40 pixels using bilinear interpolation -> Cell size 5x5 pixels (cellsize_x = 5, cellsize_y = 5) -> Block size 2x2 cells (numcell_x= 2, numcell_y = 2) -> Blocks shifted by 5 pixels in both directions (descstride_x = 5, descstride_y = 5)

One folder contains multiple text files with float digets. I am importing them by reading line by line.

But I keep getting the error: "OpenCV: checkDetectorSize()" What does that mean?

When I build my own Featureset by using picture it works, but is very slow.

I am using EmguCV

edit retag flag offensive close merge delete

Comments

1

we cannot help you with anything emgu specific (that's off-topic), but maybe you can look at how the size is calculated and cross check your params against that.

berak gravatar imageberak ( 2018-04-17 02:06:58 -0500 )edit

It's not EMGU specific. Get the same error via python. How do I import HOG Features, that are available via txt-file? I am currently importing it line by line and parse txt to float.

DerBexucher1 gravatar imageDerBexucher1 ( 2018-04-17 07:20:03 -0500 )edit

if it's a csv file you can use this

berak gravatar imageberak ( 2018-04-17 07:23:53 -0500 )edit