Performance fix, and feature extraction as video file count fix.
This commit is contained in:
parent
087202a5b3
commit
de4e351c65
1 changed files with 2 additions and 1 deletions
|
@ -360,6 +360,7 @@ int main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
string curr_img_file = input_image_files[f_n][curr_img];
|
string curr_img_file = input_image_files[f_n][curr_img];
|
||||||
captured_image = cv::imread(curr_img_file, -1);
|
captured_image = cv::imread(curr_img_file, -1);
|
||||||
|
total_frames = input_image_files[f_n].size();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -494,7 +495,7 @@ int main (int argc, char **argv)
|
||||||
// But only if needed in output
|
// But only if needed in output
|
||||||
if(!output_similarity_align.empty() || hog_output_file.is_open() || output_AUs)
|
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);
|
face_analyser.GetLatestAlignedFace(sim_warped_img);
|
||||||
|
|
||||||
if(!det_parameters.quiet_mode && visualize_align)
|
if(!det_parameters.quiet_mode && visualize_align)
|
||||||
|
|
Loading…
Reference in a new issue