A command line tool to process images (JPGs and PNGs) and sort them into directory based on tags given by Clarifai API.
mvn clean package
export CLARIFAI_APP_ID=your_client_id
export CLARIFAI_APP_SECRET=your_client_secret
java -jar target/Directifai-1-jar-with-dependencies.jar ~/absolute/path/to/directory/that/contains/images/
Results will be under folder parentFolder/Output/
- Sign up for a free Clarifai account at: https://developer.clarifai.com/signup/champs
- Create new application at Clarifai's applications dashboard.
- Grab the Client_Id (aka APP_ID) and Client Secret (aka APP_SECRET)
To avoid having to provide the API keys everytime you wanted to run the app Add the api keys to your enviornment variable. (.bashrc, .zshrc, .fishrc or if you are in windows just search enviornment variabls) Alternately modifay ClarifaiClient constructor in the Tagifai.java ''' ClarifaiClient clarifai = new ClarifaiClient(APP_ID, APP_SECRET); '''
- JDK 8 or later
- Maven
- Clarifai's free account
- Favour tags that group as many pictures as possible
- Add filter to less desirable tags
