-
-
Notifications
You must be signed in to change notification settings - Fork 384
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
Face flag doesnt seem to work #84
Comments
The reason is the following: when you are running the CLI with face detection enabled it embeds the facefinder cascade file on-the-fly without to require the cascade file as a standalone flag argument. You can check this one below in the Line 26 in 1cd0863
Now, because you are downloading and running the binary file at the same time the Lines 418 to 421 in 1cd0863
I will look into it. |
Thanks for your reply @esimov. I don't have any experience with go prior to this. Can you please tell me how can this be fixed? Awaiting your reply. Thanks in advance |
If you need a quick resolution, then the most straightforward way is to download the project and run the application inside the root directory where it has been installed. I'm telling this, because I have just realized that in situations like this, when you are running the application once it has been downloaded the embedding might not work just out of the box. I will try modify the code in such a way that in case the embedded file is not accessible to ask for the cascade file. |
Whats the command to run it locally? Currently I am using go run github.com/esimov/caire/cmd/caire@latest |
It's stated on the Readme file: go install github.com/esimov/caire/cmd/caire@latest |
OK but this would run from source right. I want to run locally from root folder like you mentioned. I am guessing the command you shared would fetch from github and run |
Exactly, it will fetch from the Github and also will create the executable. See the documentation: https://go.dev/ref/mod#go-install Meantime I just wanted to make sure that building locally will embed the cascade file correctly, and it does. So if you build the main go file from cmd/caire running the |
This is working locally by using the go run command as you mentioned. Closing this issue, as this works for me. Also, you might want to update the instructions to run it from local only. |
|
I am using the face flag to prevent faces from getting distorted (as mentioned in the documentation). But there seems to be no difference in output with/without this flag. Am I doing something wrong?
This is the command I used
go run github.com/esimov/caire/cmd/caire@latest -in /home/kartik/example.jpg -out output.jpg -face=1 -perc=1 -width=30
Attaching the output as well
The text was updated successfully, but these errors were encountered: