Commit 92b2c905 authored by robinechuca's avatar robinechuca
Browse files

commit intermediaire

parent 3a43e9e3
......@@ -27,17 +27,17 @@ def choisir(titre):
initialdir=os.path.basename(os.path.abspath(__file__)),
title=titre)
if not impath:
sys.stderr.write("Il faut selectionner un fichier!\n")
raise ValueError("Il faut selectionner un fichier!")
return
image = cv2.imread(impath, cv2.IMREAD_COLOR)
if isinstance(image, type(None)):
sys.stderr.write("L'image est corrompue!\n")
raise ValueError("L'image est corrompue!\n")
return
return image
def main():
"""
Code principale.
Code principal.
"""
support = choisir("Image support")
cacher = choisir("Image a cacher")
......
Markdown is supported
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