YouTip LogoYouTip

OpenCV Tutorial - Getting Started

OpenCV

import cv2

img = cv2.imread("photo.jpg")
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
edges = cv2.Canny(gray, 100, 200)

cv2.imshow("Edges", edges)
cv2.waitKey(0)

Summary

  • OpenCV is the standard computer vision library
  • Supports image/video processing and feature detection
← LangChain Tutorial - Getting SPillow Tutorial - Image Proces β†’