From de4e351c65aec47c1baae3bdcfdcdc4e5440ba7c Mon Sep 17 00:00:00 2001 From: Tadas Baltrusaitis Date: Sun, 29 Oct 2017 10:58:56 +0000 Subject: [PATCH] Performance fix, and feature extraction as video file count fix. --- exe/FeatureExtraction/FeatureExtraction.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exe/FeatureExtraction/FeatureExtraction.cpp b/exe/FeatureExtraction/FeatureExtraction.cpp index 5ecdda1..08781d7 100644 --- a/exe/FeatureExtraction/FeatureExtraction.cpp +++ b/exe/FeatureExtraction/FeatureExtraction.cpp @@ -360,6 +360,7 @@ int main (int argc, char **argv) { string curr_img_file = input_image_files[f_n][curr_img]; captured_image = cv::imread(curr_img_file, -1); + total_frames = input_image_files[f_n].size(); } else { @@ -494,7 +495,7 @@ int main (int argc, char **argv) // But only if needed in output if(!output_similarity_align.empty() || hog_output_file.is_open() || output_AUs) { - face_analyser.AddNextFrame(captured_image, face_model.detected_landmarks, face_model.detection_success, time_stamp, false, !det_parameters.quiet_mode); + face_analyser.AddNextFrame(captured_image, face_model.detected_landmarks, face_model.detection_success, time_stamp, false, !det_parameters.quiet_mode && visualize_hog); face_analyser.GetLatestAlignedFace(sim_warped_img); if(!det_parameters.quiet_mode && visualize_align)