Skip to content

Commit a9070df

Browse files
Fixed linux build warnings
1 parent fcdb241 commit a9070df

File tree

1 file changed

+0
-63
lines changed

1 file changed

+0
-63
lines changed

modules/face/include/opencv2/face/facemark_train.hpp

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -262,69 +262,6 @@ The typical pipeline for facemark detection is listed as follows:
262262
class CV_EXPORTS_W FacemarkTrain : public Facemark
263263
{
264264
public:
265-
/** @brief Add one training sample to the trainer.
266-
267-
@param image Input image.
268-
@param landmarks The ground-truth of facial landmarks points corresponds to the image.
269-
270-
<B>Example of usage</B>
271-
@code
272-
String imageFiles = "../data/images_train.txt";
273-
String ptsFiles = "../data/points_train.txt";
274-
std::vector<String> images_train;
275-
std::vector<String> landmarks_train;
276-
277-
// load the list of dataset: image paths and landmark file paths
278-
loadDatasetList(imageFiles,ptsFiles,images_train,landmarks_train);
279-
280-
Mat image;
281-
std::vector<Point2f> facial_points;
282-
for(size_t i=0;i<images_train.size();i++){
283-
image = imread(images_train[i].c_str());
284-
loadFacePoints(landmarks_train[i],facial_points);
285-
facemark->addTrainingSample(image, facial_points);
286-
}
287-
@endcode
288-
289-
The contents in the training files should follows the standard format.
290-
Here are examples for the contents in these files.
291-
example of content in the images_train.txt
292-
@code
293-
/home/user/ibug/image_003_1.jpg
294-
/home/user/ibug/image_004_1.jpg
295-
/home/user/ibug/image_005_1.jpg
296-
/home/user/ibug/image_006.jpg
297-
@endcode
298-
299-
example of content in the points_train.txt
300-
@code
301-
/home/user/ibug/image_003_1.pts
302-
/home/user/ibug/image_004_1.pts
303-
/home/user/ibug/image_005_1.pts
304-
/home/user/ibug/image_006.pts
305-
@endcode
306-
307-
*/
308-
virtual bool addTrainingSample(InputArray image, std::vector<Point2f> & landmarks)=0;
309-
310-
/** @brief Trains a Facemark algorithm using the given dataset.
311-
Before the training process, training samples should be added to the trainer
312-
using face::addTrainingSample function.
313-
314-
<B>Example of usage</B>
315-
@code
316-
FacemarkLBF::Params params;
317-
params.model_filename = "ibug68.model"; // filename to save the trained model
318-
Ptr<Facemark> facemark = FacemarkLBF::create(params);
319-
320-
// add training samples (see Facemark::addTrainingSample)
321-
322-
facemark->training();
323-
@endcode
324-
*/
325-
326-
virtual void training()=0;
327-
328265
/** @brief Set a user defined face detector for the Facemark algorithm.
329266
@param detector The user defined face detector function
330267
@param userData Detector parameters

0 commit comments

Comments
 (0)