Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problems using createsamples function for lbp cascade classifier

Hi!

I recently got into computer vision, machine learning and object detection, and I am currently working on an object detector written in C++11 and based on OpenCV3.1. I am using VisualStudio15 with OpenCV installed. My problem lies in creating the .vec files for use in training my LBP classifier. I just can't get it to run using VS. I haven't really tried too many things as there isn't much documentation on this laying around, but I thought you guys might be able to help me sort this out.

What I've done so far: - Created a new blank cpp project "createsamples" - Added source files "createsamples.cpp" and "utility.cpp" found under "Opencv310\sources\apps\" - Added header file "utility.hpp" found under the same directory

When i try to compile this (with no specific files ect.) i get error messages on the form:

"Severity Code Description Project File Line Suppression State Error C4996 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. createsamples c:\opencv310\sources\apps\createsamples\utility.cpp 866"

Any tips? What I want is a .exe file for use in a .bat file for the creation of the .vec file for positive samples. Any help would be greatly appreciated!