Skip to content
Snippets Groups Projects
Commit d8e88c06 authored by Dhanika Novlisariyanti's avatar Dhanika Novlisariyanti
Browse files

Merge branch 'dev' of https://gitlab.informatika.org/k-02-09/omrekap into feat/image-annotation

parents 53639135 da24c400
No related merge requests found
...@@ -10,8 +10,8 @@ import org.opencv.imgproc.Imgproc ...@@ -10,8 +10,8 @@ import org.opencv.imgproc.Imgproc
import java.time.Instant import java.time.Instant
object PreprocessHelper { object PreprocessHelper {
private const val FINAL_WIDTH = 540.0 private const val FINAL_WIDTH = 900.0
private const val FINAL_HEIGHT = 960.0 private const val FINAL_HEIGHT = 1600.0
fun preprocessImage(data: ImageSaveData): ImageSaveData { fun preprocessImage(data: ImageSaveData): ImageSaveData {
// Initialize Mats // Initialize Mats
...@@ -29,7 +29,6 @@ object PreprocessHelper { ...@@ -29,7 +29,6 @@ object PreprocessHelper {
val cornerPoints = CropHelper.detectCorner(mainImageResult) val cornerPoints = CropHelper.detectCorner(mainImageResult)
// Annotate annotated image // Annotate annotated image
// TODO: Call function to annotate image
annotatedImageResult = ImageAnnotationHelper.annotateCorner(annotatedImageResult, cornerPoints) annotatedImageResult = ImageAnnotationHelper.annotateCorner(annotatedImageResult, cornerPoints)
// Crop both images // Crop both images
...@@ -53,7 +52,7 @@ object PreprocessHelper { ...@@ -53,7 +52,7 @@ object PreprocessHelper {
private fun preprocessMat(img: Mat): Mat { private fun preprocessMat(img: Mat): Mat {
return img.apply { return img.apply {
resizeMat(this) resizeMat(this)
normalize(this) // normalize(this)
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment