-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running Clandmark webcam example #67
Comments
Hi, you should decide which model is appropriate for you. The options are 8 landmarks, suitable for near-frontal faces for face alignment; up to 21 landmarks multi-view faces (up to profiles), also mainly for face alignment; 68 landmarks near-frontal, suitable for some other tasks. Code snippets for these are available on the project webpage. There is also a code example using opencv, which is taking frames from a webcam, detecting faces (opencv haarcascade) and then running the clandmark detector. |
Hi, |
Hi, have you compiled clandmark library already? If yes, you can just turn on I will add the tutorial on external examples soon. |
Hi Yes , I have compiled the clandmark library, Now I just want to run the facial landmark detection using my web cam , What should I do ? Thanks for help |
I have used Usage: video_input <path_to_haarcasade> <flandmark_model.xml> { cam | vid } [ filename | cam_id ] [ output_filename ] what are the parameters of video_input ? I'm I on the right way to run the clandmark using my webcam ? |
Hi, the parameters are listed there and quite self-explanatory.
Please, note that video_input.cpp is using the old style of computing features, so the only compatible model is the flandmark_model.xml. If you want to use the new models (including the 68 landmarks CDPM and FDPM), you need to modify the code as is shown in static_input.cpp. |
I'm using these parameters but it is not working , could you please show me where I'm wrong ? tofi@tofi:~/clandmark/build/examples$ ./video_input haarcascade_frontalface_alt.xml flandmark_model.xml { cam } [ output | 0 ] [ output_file ] Couldn't load the haar cascade. Exiting... |
Instead of haarcascade_frontalface_alt.xml, use the path to a folder containing this file and end the path by "/" (so for example if the haarcascade_frontalface_alt.xml is in the current folder, use "./". don't use brackets for the last few arguments. It should look like this (if the haarcascade_frontalface_alt.xml is in the current folder):
|
I have a similar problem: I compiled the static_input in the Release mode and have the static_input.exe in the Build\examples\Release folder. This folder also has the haarcascade_frontalface_alt.xml and flandmark_model.xml as well as the face.jpg that comes with the download. I am trying to execute but it is not accepting the inputs and keeps saying Usage: static_input <flandmark_model.xml> <input_imag> [<output_image>] |
Hi @PVNathan, it seems there is a wrong usage printout in the static_input.cpp. The correct usage is as follows: |
Hey |
Hi @PVNathan, actually that's because that example is using only the frontal face detector, as is available in OpenCV. We were learning the full yaw range (i.e. negative profiles to profiles) using a commercial face detector, which was detecting faces in this full range. It is possible to use OpenCV profile cascades and combine two face detectors to provide an input for the CLandmark library. However, I did not find time to implement this yet. |
Got it. Thanks. |
Could you please share the video_input with webcam command . I did it like this but it is not working where is my error ?
|
Hi @sarmadm, seems like the Haarcascade ( I am also not sure if the combined slashes in path will work. Maybe you should try rather this call: |
Hi
I installed clandmark on Ubuntu , now I want to run the facial landmark detection using web cam .
What is the procedure to run the code ?
Thanks for help
The text was updated successfully, but these errors were encountered: