ImageTagger/readme.md

85 lines
2.1 KiB
Markdown
Raw Normal View History

# ![](./docs/image-analysis.png) Image Tagger
2024-03-19 19:52:54 +00:00
Image Tagger is a simple software application for predicting an image's keywords using a deep learning model based on
resnet.
2024-03-19 19:52:54 +00:00
It allows photographers to automate the image tagging process. 📸
---
## Instructions
2024-03-23 20:11:50 +00:00
1. Download a release from the release page.
2. Unzip the release.
3. Run `ImageTagger\image\bin\ImageTagger`.
2024-03-23 15:36:58 +00:00
![./docs/application.png](./docs/application.png)
2024-03-19 19:52:54 +00:00
Photo credit: [https://unsplash.com/@ndcphoto](https://unsplash.com/@ndcphoto)
2024-05-11 12:40:58 +00:00
Alternatively see [Flatpak](./flatpak/readme.md) installation instructions.
2024-03-19 19:52:54 +00:00
## Development
If you want to build the application yourself, you will need Java 17 JDK and the
2024-03-24 13:23:13 +00:00
AI models available in the AIModels release.
2024-03-19 19:52:54 +00:00
The release archive is in the [releases page](https://github.com/dnutiu/ImageTagger/releases).
Note: On Linux desktop related features (opening images, folders) are handled
via [xdg-open](https://linux.die.net/man/1/xdg-open).
2024-03-19 19:52:54 +00:00
### Building and Running from source
2024-03-22 21:23:38 +00:00
To build from source you will need Java 17 JDK and Gradle.
2024-03-19 19:52:54 +00:00
Due to some GitHub limitations that do not allow me to upload large files, you'll need to download the AIModels
zip file which contains the deep learning models and place them into the
2024-03-30 11:15:57 +00:00
`ImageTagger/img-ai/src/main/resources/dev/nuculabs/imagetagger/ai/` path.
2024-03-19 19:52:54 +00:00
To build the project run:
```bash
2024-05-03 15:36:28 +00:00
gradlew build
2024-03-19 19:52:54 +00:00
```
To run:
```bash
2024-05-03 15:36:28 +00:00
gradlew run
```
2024-11-17 20:11:29 +00:00
### Building the Flatpak
2024-05-03 15:36:28 +00:00
To build the Flatpak run the following commands:
```shell
cd flatpak
2024-11-17 20:11:29 +00:00
./build.sh
2024-03-19 19:52:54 +00:00
```
2024-11-17 20:11:29 +00:00
It will build the flatpak using the latest sources from this repo.
2024-11-17 14:29:30 +00:00
### Building a package (Fedora Example)
To build a package run
```shell
gradle jpackage <<< "--type rpm"
```
To install and run the application:
```shell
dnf install ./img-ui/build/jpackage/imagetagger-1.0-1.x86_64.rpm
/opt/imagetagger/bin/ImageTagger
```
2024-03-19 19:52:54 +00:00
# Blog
You can visit my tech blog at [https://blog.nuculabs.dev](https://blog.nuculabs.dev).
2024-03-24 16:56:28 +00:00
# Credits
- Icons: <a href="https://www.flaticon.com/free-icons/image-analysis" title="image analysis icons">Image analysis icons
created by Dewi Sari - Flaticon</a>