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

Cannot find file specified #1

Open
mek363 opened this issue May 6, 2020 · 4 comments
Open

Cannot find file specified #1

mek363 opened this issue May 6, 2020 · 4 comments

Comments

@mek363
Copy link

mek363 commented May 6, 2020

Nice tool! I downloaded the Windows binaries and attempted to run on a PNG file, but I get an error:

>facemask -in h:\Face2.png -out h:\Face2Mask.png
Processing...�[35m ⠸�[39m2020/05/06 10:31:55 Detection error: open cascades/facefinder: The system cannot find the path specified.

Are PNG file supported? Am I missing a dependency? Thanks.

@esimov
Copy link
Owner

esimov commented May 7, 2020

I assume you are running the binary outside of the project folder, right?

@esimov
Copy link
Owner

esimov commented May 8, 2020

I've extended the commands with new flags, so you have to provide the path to the cascade files if you are running the binary file outside the project directory, however to access the image assets you need to run it inside the project directory.

@mek363
Copy link
Author

mek363 commented May 9, 2020

Sorry - I didn't realize I had to download the assets and cascade files from the source and merge them with the executable. Now it runs without error, but the output it produces has no mask. Any suggestions for troubleshooting? The input file is a PNG, 2199 x 2143, 32 bit color depth. I don't quite understand how I might adjust the parameters. Thanks.

@esimov
Copy link
Owner

esimov commented May 10, 2020

You have to run it from the project folder, since the path to assets are hard coded.

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