Skip to content
Snippets Groups Projects
Commit 80375303 authored by Angy Wallot's avatar Angy Wallot
Browse files

Replace decoupe_im.py

parent 17e03b9d
No related branches found
No related tags found
No related merge requests found
......@@ -30,10 +30,10 @@ def liste_couleur(image, coin_haut_gauche:tuple,coin_bas_droit:tuple)->list:
Précondition : Chaque tuple doit contenir 2 valeurs
l'image doit etre au format rgb
Exemple(s) :
$$$ im = Image.open('images/calbuth.png')
$$$ im_rgb = im.convert('RGB')
$$$ liste_couleur(im_rgb, (0,0),(10,10))
[(236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111)]
# $$$ im = Image.open('images/calbuth.png')
# $$$ im_rgb = im.convert('RGB')
# $$$ liste_couleur(im_rgb, (0,0),(10,10))
# [(236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111), (236, 210, 111)]
"""
x_min, y_min = coin_haut_gauche
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment