This project demonstrates how to apply the Sobel operator for edge detection using OpenCV.
It reads an image, converts it to grayscale, and uses the Sobel filter to extract horizontal and vertical edges.
- Load and display an image using OpenCV
- Convert image to grayscale
- Apply Sobel filters in both X and Y directions
- Visualize results using
matplotlib
- Load the image with OpenCV
- Convert to grayscale
- Apply
cv2.Sobel()for x and y - Display edge-detected output
- Python
- OpenCV (
cv2) - NumPy
- Matplotlib