Skip to content
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

drishti-eye-test arguments #742

Open
s-sara-a opened this issue Jan 24, 2019 · 2 comments
Open

drishti-eye-test arguments #742

s-sara-a opened this issue Jan 24, 2019 · 2 comments

Comments

@s-sara-a
Copy link

Hi,

I am using a MacOS desktop. The built process resulted with numerous warnings but fortnuately no errors. I'm trying to console execute the drishti-eye-test. I would appreciate if an example command line would be provided in order to properly define all the arguments, model and left/right eye in particular.

I would also appreciate an example command line for executing the facefilter-desktop in the same manner.

Thanks in advance.

@headupinclouds
Copy link
Collaborator

I would appreciate if an example command line would be provided in order to properly define all the arguments, model and left/right eye in particular

Take a look at the drishti-eye-test command line options here:

options.add_options()
// input/output:
("i,input", "Input image", cxxopts::value<std::string>(sInput))
("o,output", "Output image", cxxopts::value<std::string>(sOutput))
("m,model", "Eye model (pose regression)", cxxopts::value<std::string>(sModel))
("r,right", "Right eye", cxxopts::value<bool>(isRight))
("l,left", "Left eye", cxxopts::value<bool>(isLeft))
("version", "Report library version", cxxopts::value<bool>(doVersion))
;

You can run the command with something like this:

drishti-eye-test --input=/path/to/4x3_aspect_ratio_eye_crop.png --output=/path/to/output/image.png --model=/path/to/drishti_full_eye_model_big.cpb --right

model : https://github.com/elucideye/drishti-assets/blob/master/drishti_full_eye_model_big.cpb

@headupinclouds
Copy link
Collaborator

I would also appreciate an example command line for executing the facefilter-desktop in the same manner.

The docs for drishti-hci overlap a fair amount with the drishti-face-test app. You can scan the README there first:

https://github.com/elucideye/drishti/tree/master/src/app/hci

Here are the command line arguments:

options.add_options()
// input/output:
("i,input", "Input image", cxxopts::value<std::string>(sInput))
("m,models", "Model factory configuration file (JSON)", cxxopts::value<std::string>(sModels))
("c,config", "Configuration file", cxxopts::value<std::string>(sConfig))
#if defined(DRISHTI_HAVE_LOCALECONV)
("boilerplate", "Dump boilerplate json file (then quit)", cxxopts::value<std::string>(sBoilerplate))
#endif
// context parameters (configuration):
("focal-length", "focal length", cxxopts::value<float>(params.focalLength))
// behavior:
("p,preview", "Preview window", cxxopts::value<bool>(doPreview))
("version", "Report library version", cxxopts::value<bool>(doVersion))

You can run this with something like:

facefilter-desktop --input=/some/input/frame_list_or_mov_file_readable_by_opencv.txt --models=/path/to/drishti_assets_big.json ----focal-length=focal_length_of_your_camera_in_pixels --preview 

You can clone drishti-assets and use https://github.com/elucideye/drishti-assets/blob/master/drishti_assets_big.json or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants