Computer Vision

Explore how computers interpret images and videos — from facial recognition to autonomous vehicles and object detection.

40 Problems Available
Add Text to Image
Beginner

Add white text 'Hello CV' at position (50,100) with font scale 2 and thickness 2.

75 points Solve
Bitwise Operations
Intermediate

Create a white circle on black background and perform AND operation with another image.

100 points Solve
Brightness Adjustment
Beginner

Increase image brightness by 50 units.

75 points Solve
Change Pixel Color
Beginner

Change the color of pixel at (100,100) to blue and display the image.

50 points Solve
Color Channel Splitting
Beginner

Split the image into its B, G, R components and display each channel.

75 points Solve
Color Detection
Intermediate

Detect all green pixels in an image and display them in white.

100 points Solve
Contour Detection
Intermediate

Find and draw contours on a thresholded image.

100 points Solve
Contrast Adjustment
Beginner

Increase image contrast by 1.5 times.

75 points Solve
Convert BGR to RGB
Beginner

Convert the image from BGR to RGB color space and display it.

75 points Solve
Convert Image to Grayscale
Beginner

Load an image and convert it to grayscale.

50 points Solve
Create Blank Image
Beginner

Create a 300x300 blank white image and display it.

50 points Solve
Crop Image
Beginner

Crop the image to show only the region from (100,100) to (300,300).

75 points Solve
Dilation Operation
Intermediate

Apply dilation with 3x3 kernel to a binary image.

100 points Solve
Draw a Circle on Image
Beginner

Draw a blue circle centered at (300,300) with radius 100 and thickness 3.

75 points Solve
Draw a Line
Beginner

Draw a red line from (50,50) to (250,250) with thickness 3.

50 points Solve
Draw a Polygon
Beginner

Draw a yellow triangle (3-sided polygon) with points (100,100), (300,100), (200,300).

75 points Solve
Draw a Rectangle on Image
Beginner

Draw a green rectangle on the image from (50,50) to (200,200) with thickness 2.

75 points Solve
Edge Detection
Intermediate

Apply Canny edge detection to the image.

100 points Solve
Erosion Operation
Intermediate

Apply erosion with 3x3 kernel to a binary image.

100 points Solve
Flip Image Horizontally
Beginner

Flip the image horizontally (left-right).

75 points Solve
Get Image Dimensions
Beginner

Print the width, height and number of color channels of an image.

50 points Solve
Image Averaging Filter
Beginner

Apply 3x3 averaging filter to blur the image.

75 points Solve
Image Blending
Intermediate

Blend two images with equal weights.

100 points Solve
Image Blurring
Beginner

Apply Gaussian blur with 5x5 kernel to the image.

75 points Solve
Image Concatenation
Beginner

Concatenate two images horizontally and display the result.

75 points Solve
Image Histogram
Intermediate

Calculate and display histogram of a grayscale image.

100 points Solve
Image Masking
Intermediate

Apply a circular mask to an image.

100 points Solve
Image Moments
Intermediate

Calculate and print the moments of a binary image.

100 points Solve
Image Negative
Beginner

Create and display the negative of an image.

75 points Solve
Image Padding
Beginner

Add 20 pixel black border around the image.

75 points Solve
Image Pyramid
Intermediate

Create and display a Gaussian pyramid with 4 levels.

100 points Solve
Image Rotation
Intermediate

Rotate the image by 45 degrees clockwise.

100 points Solve
Image Translation
Intermediate

Shift the image 100 pixels right and 50 pixels down.

100 points Solve
Image Warping
Intermediate

Apply perspective transformation to an image.

150 points Solve
Load and Show Image
Beginner

Load an image using OpenCV and display it in a window.

50 points Solve
Median Filter
Beginner

Apply 3x3 median filter to the image.

75 points Solve
Resize Image
Beginner

Resize the image to 200x200 pixels.

75 points Solve
Save Image to File
Beginner

Load an image and save it as 'output.jpg'.

50 points Solve
Simple Background Subtraction
Intermediate

Subtract two images to find differences.

100 points Solve
Thresholding
Beginner

Convert image to grayscale and apply binary threshold at 127.

75 points Solve