add application icon
This commit is contained in:
parent
10bfe3177e
commit
9b87c40b60
4 changed files with 14 additions and 2 deletions
BIN
docs/image-analysis.png
Normal file
BIN
docs/image-analysis.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
|
@ -1,4 +1,4 @@
|
|||
Image Tagger
|
||||
# ![](./docs/image-analysis.png) Image Tagger
|
||||
|
||||
Image Tagger is a simple software application for predicting an image's keywords using a deep learning model based on resnet.
|
||||
|
||||
|
@ -46,3 +46,7 @@ gradle run
|
|||
# Blog
|
||||
|
||||
You can visit my tech blog at [https://blog.nuculabs.dev](https://blog.nuculabs.dev).
|
||||
|
||||
# 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>
|
|
@ -4,6 +4,7 @@ import dev.nuculabs.imagetagger.ai.ImageTagsPrediction
|
|||
import javafx.application.Application
|
||||
import javafx.fxml.FXMLLoader
|
||||
import javafx.scene.Scene
|
||||
import javafx.scene.image.Image
|
||||
import javafx.stage.Stage
|
||||
import java.util.logging.Logger
|
||||
|
||||
|
@ -14,14 +15,21 @@ class MainPage : Application() {
|
|||
|
||||
override fun start(stage: Stage) {
|
||||
ImageTagsPrediction.getInstance()
|
||||
|
||||
fxmlLoader = FXMLLoader(MainPage::class.java.getResource("main-window-view.fxml"))
|
||||
// Load the FXML.
|
||||
val scene = Scene(fxmlLoader.load(), 640.0, 760.0)
|
||||
|
||||
// Initialize the controller.
|
||||
fxmlLoader.getController<MainPageController>().initialize()
|
||||
|
||||
// Set up the stage.
|
||||
stage.title = "Image Tagger"
|
||||
stage.scene = scene
|
||||
stage.minWidth = 640.0
|
||||
stage.minHeight = 760.0
|
||||
|
||||
// Add main icon
|
||||
stage.icons.add(Image(MainPage::class.java.getResourceAsStream("image-analysis.png")));
|
||||
stage.show()
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
Loading…
Reference in a new issue