1 | initial version |
Yeah. You need to change to fopen_s as fopen is unsafe.
You'll see the parameters for these functions are similar
stream = fopen(a,b,c)
to
fopen_s(&stream, a, b, c)
It's more of a C++ problem than an OpenCV one.
If you build OpenCV it should create a utility for generating samples.
Here's a good tutorial....
http://coding-robin.de/2013/07/22/train-your-own-opencv-haar-classifier.html