Comments (9)
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 process.go
file :
Line 26 in 1cd0863
Now, because you are downloading and running the binary file at the same time the data
folder is missing and obviously also the facefinder cascade file. The strange thing is that it should have thrown an error that the cascade file is missing or cannot be unpacked like in the line 420:
Lines 418 to 421 in 1cd0863
I will look into it.
from caire.
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
from caire.
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.
from caire.
Whats the command to run it locally? Currently I am using go run github.com/esimov/caire/cmd/caire@latest
from caire.
It's stated on the Readme file: go install github.com/esimov/caire/cmd/caire@latest
from caire.
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
from caire.
I am guessing the command you shared would fetch from github.
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 go build main.go
command the face detection will work. I need to figure out why the embedding is not working when you are running directly with go run
command.
from caire.
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.
from caire.
$ go install github.com/esimov/caire/cmd/caire@latest
should install the package along with its dependencies into the $GOPATH/bin
folder, exactly as it's described in the README file: https://github.com/esimov/caire#install
from caire.
Related Issues (20)
- Support masks HOT 4
- Index out of range when using a blur radius value >= 255 HOT 1
- Preview resizing process HOT 1
- Seams left over on preview debug mode HOT 1
- error while loading shared libraries: libEGL.so.1 (installed caire using snap) HOT 8
- Image enlargement does not produce good quality output HOT 1
- Enlarging an image with face detect panics HOT 10
- https://github.com/muesli/smartcrop HOT 2
- g.ctx.Px undefined (type layout.Context has no field or method Px) HOT 3
- Missing sources on Linux (Ubuntu) - maybe instructions could be updated HOT 12
- Is a tutorial available HOT 2
- Text detection HOT 2
- Preserve Jpeg color profile HOT 6
- Unable to run on ubuntu HOT 2
- Resize not working properly when both height and width are passed in percentages HOT 2
- Algorithm doesnt consider mask properly HOT 16
- Algorithm takes forever to run for this image HOT 1
- Feat: GUI mode debugging option HOT 1
- A CI/CD Observability Solution Suggestion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caire.