Skip to content
Snippets Groups Projects
Commit 1442ba8b authored by Ayoub Buhyari's avatar Ayoub Buhyari
Browse files

Replace image_rec.py

parent ae787b3a
Branches
No related tags found
No related merge requests found
......@@ -32,10 +32,14 @@ if __name__ == "__main__":
if mode == "enregistre-csv":
image = str(image)
ordre = int(ordre)
nouveau_fichier_csv = str(nouveau_fichier_csv)
if ordre >0:
nouveau_fichier_csv = str(nouveau_fichier_csv)
bloc = image_rec(image, ordre)
image_to_csv([bloc], nouveau_fichier_csv + ".csv")
image_to_csv(bloc, nouveau_fichier_csv + ".csv")
elif ordre==0:
bloc = image_rec(image, ordre)
image_to_csv_bloc(bloc,nouveau_fichier_csv)
if __name__ == "__main__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment