diff --git a/app/src/main/java/com/example/myapplication/PhotoPage.java b/app/src/main/java/com/example/myapplication/PhotoPage.java index 6da89f8fd8b767be7d0d809222b5e394627ec5b0..6db91977fec58413c59e63c8221a51ba0766f9d3 100644 --- a/app/src/main/java/com/example/myapplication/PhotoPage.java +++ b/app/src/main/java/com/example/myapplication/PhotoPage.java @@ -110,6 +110,7 @@ public class PhotoPage extends Fragment { if (cameraImage != null) { imageView.setImageBitmap(cameraImage); processImage(cameraImage); // Pass the image for further processing + showOverlayForm(); } break; @@ -130,7 +131,7 @@ public class PhotoPage extends Fragment { } break; } - showOverlayForm(); + } private void processImage(Bitmap bitmap) { @@ -155,7 +156,7 @@ public class PhotoPage extends Fragment { } catch (IOException e) { throw new RuntimeException(e); } catch (NoSpeciesRecognizedException e) { - textPredictionOutput.setText("Cette espèce pas encore répertoriée"); + textPredictionOutput.setText("Cette espèce n'est pas encore répertoriée."); } }