Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Claire Lemoine
TP3-image
Commits
063206a8
Commit
063206a8
authored
Dec 16, 2020
by
Claire Lemoine
Browse files
Merge branch 'master' of
https://gitlab.ensimag.fr/lemoincl/tp3-image
into master
parents
dac3f0da
1cb4ee70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
main.py
main.py
+2
-2
No files found.
main.py
View file @
063206a8
...
...
@@ -21,14 +21,14 @@ def choisir(titre):
impath
=
tkinter
.
filedialog
.
askopenfilename
(
filetypes
=
[
(
"jpeg image"
,
"*.jpg"
),
(
"tif image"
,
"*.tif"
),
(
"portable network g"
,
"*.png"
)],
(
"portable network g
raphics
"
,
"*.png"
)],
initialdir
=
os
.
path
.
basename
(
os
.
path
.
abspath
(
__file__
)),
title
=
titre
)
if
not
impath
:
sys
.
stderr
.
write
(
"Il faut selectionner un fichier!
\n
"
)
return
image
=
cv2
.
imread
(
impath
)
if
i
mage
==
None
:
if
i
sinstance
(
image
,
type
(
None
))
:
sys
.
stderr
.
write
(
"L'image est corrompue!
\n
"
)
return
return
image
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment