1 | initial version |
Hi KDS,
you have to create a .vec file from your positives file using the opencv_createsamples tool, e.g.
opencv_createsamples -info positives.dat -num 1000 -vec positives.vec -w 24 -h 24
This would create a positives.vec file from 1000 positve samples listed in positives.dat. The sample width and height are 24. For further informations i found this, that, and that good resources. But you've probably found them already...
To create the opencv_createsamples tool you should configure OpenCV with BUILD_EXAMPLES=ON (i think).
2 | No.2 Revision |
Hi KDS,
you have to create a .vec file from your positives file using the opencv_createsamples tool, e.g.
opencv_createsamples -info positives.dat -num 1000 -vec positives.vec -w 24 -h 24
This would create a positives.vec file from 1000 positve samples listed in positives.dat. The sample width and height are 24. This .vec file is than passed to opencv_traincascade for training. For the negatives you just pass a file containing the file names of your negative samples. For further informations i found this, that, and that good resources. But you've probably found them already...
To create the opencv_createsamples tool you should configure OpenCV with BUILD_EXAMPLES=ON (i think).
3 | No.3 Revision |
Hi KDS,
you have to create a .vec file from your positives file using the opencv_createsamples tool, e.g.
opencv_createsamples -info positives.dat -num 1000 -vec positives.vec -w 24 -h 24
This would create a positives.vec file from 1000 positve samples listed in positives.dat. The sample width and height are 24. This .vec file is than passed to opencv_traincascade for training. For the negatives you just pass a file containing the file names of your negative samples.
For further informations i found this, that, and that good resources. But you've probably found them already...
To create the opencv_createsamples tool you should configure OpenCV with BUILD_EXAMPLES=ON (i think).