Skip to content
Snippets Groups Projects
Commit 3c66bf21 authored by Decouvelaere Antonin's avatar Decouvelaere Antonin
Browse files

"modif resizing"

parent 62ca8949
No related branches found
No related tags found
No related merge requests found
import cv2
"""
img=cv2.imread("C:\\Users\\antod\\Desktop\\Projet S6\\ia-detection-leucemie\\exemple_image.jpg")
resized_img = cv2.resize(img, (224, 224))
cv2.imshow('image initial', img)
cv2.imshow('image de taille 224x224', resized_img)
cv2.waitKey(0)
"""
def resizing1(image_jpg):
"""fonction qui permet de convertir la taille de l'image rentrée en paramètre au format 224 x 224
Arguments :
......@@ -20,10 +9,8 @@ def resizing1(image_jpg):
img=cv2.imread(f"C:\\Users\\antod\\Desktop\\Projet S6\\ia-detection-leucemie\\{image_jpg}")
resized_img = cv2.resize(img, (224, 224))
cv2.imshow('image initial', img)
cv2.imshow('image de taille 224x224', resized_img)
cv2.waitKey(0)
return
resizing1("exemple_image.jpg")
\ No newline at end of file
#resizing1("exemple_image.jpg")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment