Open limchengwei opened 1 month ago
coffused about this problem
您的邮件我已收到,有需要会尽快回复This is an automatic reply, confirming that your e-mail was received.Thank you
@limchengwei when you run one of the samples, do you get the expected output? And then you want to integrate (parts of) OpenFace into your application?
Hi, I would like to use python script to input MP4 videos to get the CSV outputs. Kindly help me.
Have you found a working base already? When you found one of the samples to provide what you want, then this sample is a good base to start extracting what you are looking for. Using one of the samples first is a minimal consistancy check for whether your setup is correct and complete. Using one of the samples first also shows you how to use it, which command line parameters are required (e.g. "https://github.com/TadasBaltrusaitis/OpenFace/wiki/Command-line-arguments").
@limchengwei have you found a working sample?
From your initial post you try to call:
result = subprocess.run(["OpenFaceOffline.exe", "FaceLandmarkVid.exe", "-f", video_path, "-out_dir", "output_directory"], capture_output=True)
But do you really want to call two executables, OpenFaceOffline.exe
and FaceLandmarkVid.exe
in the same command line?
Under Linux (in a Docker container of OpenFace) this is working for me:
result = subprocess.run(["/home/openface-build/build/bin/FaceLandmarkVid", "-f", video_path, "-out_dir", "/home/openface-build/build/bin/outdir/"], capture_output=True)
Hi, I would like to input mp4 video(s) and wish to get the CSV outputs? I have tried the code below, but I did not get CSV file in output_directory path? Help please, thank you.