Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
com-ent-projet38-2024
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PFEFFER Melvil
com-ent-projet38-2024
Commits
c0c070b9
Commit
c0c070b9
authored
6 months ago
by
“kamon
Browse files
Options
Downloads
Patches
Plain Diff
Apparition du formulaire uniquement lors du chargement d'une photo via la gallerie
parent
32d04dd3
Branches
Branches containing commit
No related tags found
1 merge request
!9
Master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/com/example/myapplication/PhotoPage.java
+3
-2
3 additions, 2 deletions
app/src/main/java/com/example/myapplication/PhotoPage.java
with
3 additions
and
2 deletions
app/src/main/java/com/example/myapplication/PhotoPage.java
+
3
−
2
View file @
c0c070b9
...
@@ -110,6 +110,7 @@ public class PhotoPage extends Fragment {
...
@@ -110,6 +110,7 @@ public class PhotoPage extends Fragment {
if
(
cameraImage
!=
null
)
{
if
(
cameraImage
!=
null
)
{
imageView
.
setImageBitmap
(
cameraImage
);
imageView
.
setImageBitmap
(
cameraImage
);
processImage
(
cameraImage
);
// Pass the image for further processing
processImage
(
cameraImage
);
// Pass the image for further processing
showOverlayForm
();
}
}
break
;
break
;
...
@@ -130,7 +131,7 @@ public class PhotoPage extends Fragment {
...
@@ -130,7 +131,7 @@ public class PhotoPage extends Fragment {
}
}
break
;
break
;
}
}
showOverlayForm
();
}
}
private
void
processImage
(
Bitmap
bitmap
)
{
private
void
processImage
(
Bitmap
bitmap
)
{
...
@@ -155,7 +156,7 @@ public class PhotoPage extends Fragment {
...
@@ -155,7 +156,7 @@ public class PhotoPage extends Fragment {
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
catch
(
NoSpeciesRecognizedException
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
.
"
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment