Skip to content

Application for prediction gender and age of person in the image and for face landmarks detection. The uploaded images are stored and can be downloaded with detected landmarks.

Notifications You must be signed in to change notification settings

korney3/kotlindl-face-processing

Repository files navigation

Face Landmarks detection & age prediction & gender prediction Spring application in Kotlin

Repo contains source code of application for prediction gender and age of person in the image and for face landmarks detection. The uploaded images are stored and can be downloaded with detected landmarks.

Installation

To use KotlinDL in your project, add the following dependency to your build.gradle file:

   repositories {
      mavenCentral()
   }
   
   dependencies {
       implementation ("org.jetbrains.kotlinx:kotlin-deeplearning-api:[KOTLINDL-VERSION]")
       implementation ("org.jetbrains.kotlinx:kotlin-deeplearning-onnx:[KOTLINDL-VERSION]")
       implementation ("org.jetbrains.kotlinx:kotlin-deeplearning-visualization:[KOTLINDL-VERSION]")
   }

For the reference use build.gradle.kts from this repository

Neural Network

ImagePreprocessing.kt script contains methods for preprocessing of images before putting them in Neural Network models and before visualization.

DownloadFileController.kt script is used for listing uploaded images and images with face landmark and for downloading them from server.

FANModel.kt script contains Face Alignment Network model loading and it's inference for raw image file.

AgeGoogleNetModel.kt script contains GoogleNet model loading and it's inference for Age prediction for raw image file.

GenderModel.kt script contains GoogleNet model loading and it's inference for Gender prediction for raw image file.

Backend

UploadFileController.kt script is used for controlling the image uploading, applying neural network models to it and demonstrating predictions.

DownloadFileController.kt script is used for listing uploaded images and images with face landmarks and for downloading them from server.

Frontend

uploadform.ftlh file contains html for page with file uploading.

listfiles.ftlh file contains html for page with file listing and downloading.

In Backend and Frontend parts of code from the source were used.

About

Application for prediction gender and age of person in the image and for face landmarks detection. The uploaded images are stored and can be downloaded with detected landmarks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published