OpenCV Tutorial | How to Resize an Image in Python
Автор: Prince Learning Hub
Загружено: 2025-09-28
Просмотров: 9
Описание:
Hello doston! 👋
Is video me aap seekhenge ki Python me OpenCV ka use karke image ko resize ya scale kaise kiya jaata hai.
Ye tutorial bilkul beginner-friendly hai aur unke liye perfect hai jo Image Processing aur Computer Vision start kar rahe hain. 🚀
🔥 Is video me aap kya seekhoge:
✔ OpenCV ke saath image resize karna
✔ Fixed size me image resize karna
✔ Scale factors (fx, fy) ka use karke resize karna
✔ cv2.resize() function ka use
💻 Code used in video:
import cv2
Load image
img = cv2.imread("image.jpg")
Resize with fixed width & height
resized = cv2.resize(img, (300, 200))
Resize using scale factors
resized_scale = cv2.resize(img, None, fx=0.5, fy=0.5)
Show images
cv2.imshow("Original", img)
cv2.imshow("Resized", resized)
cv2.imshow("Resized by Scale", resized_scale)
cv2.waitKey(0)
cv2.destroyAllWindows()
📚 Hashtags:
#OpenCV #Python #ResizeImage #ImageProcessing #ComputerVision #Coding
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: