what does the content means in a .vec file? while creating the samples using opencv_createsamples.
Hi, i want to know how vector file creates below data using an image.
0000000 007d 0000 09c4 0000 0000 0000 2700 0e00
0000010 1d00 5e00 0f00 1500 5f00 4e00 8200 8600
0000020 3200 3800 3100 7700 2800 8000 5d00 a500............
like this.
what does each line representing? someone explained like this
The format of a .vec file is:
4 bytes denoting number of total images (int)
4 bytes denoting size of images (int)
2 bytes denoting min value (short)
2 bytes denoting max value (short)
ex: 6400 0000 4605 0000 0000 0000
hex 6400 0000 4605 0000 0000 0000
# images size of h * w min max
dec 100 1350 0 0
but it doesn't made us to understand. please help in detailed way. thanks in advance!
much better, thank you ;)
Why would you want to understand the actual contents of the vec file? Its just a format that is optimized for fast reading during the training of a cascade?
just i'm learning the algorithm of haar cascade classifier in depth. so i want to know how this format can be read as a image. here in mergevec.py they mentioned like struct.unpack(<iihh)....... means="" <iihh="" indicates="" little="" endian="" format="" -narrator="" specifies.="" so="" its="" a="" data="" in="" terms="" of="" binary="" format="" of="" an="" +ve="" image.="" for="" example:="" img="cv2.imread("1.jpg",0)" if="" we="" see="" the="" content="" of="" image="" its="" bulk="" of="" arrays="" with="" rgb="" values="" of="" each="" pixel="" gathering="" 3bytes="" of="" data.="" in="" the="" similar="" way="" i="" want="" to="" know="" what="" it="" indicates..........="" 0000000="" 007d="" 0000="" 09c4="" 0000="" 0000="" 0000="" 2700="" 0e00.<="" p="">
out of curiosity asking!
See my response in your previous question... again I think its a waste of time trying to grasp the *.vec format. You do not need to understand it to understand what is happening during training.