Computer vision practice problems

30 problems · 0 solved

Computer vision models treat an image as a grid of numbers and slide small filters over it to find edges, textures and objects. A convolution is like moving a small stencil across a picture and recording how well each patch matches it. These problems ask you to write the core image operations by hand, which builds a strong feel for shapes and indexing. You will write a 2D convolution with stride and padding, unfold patches with im2col, track feature map sizes through dilated convolutions, implement max pooling forward and backward, build a Gaussian kernel, detect edges with Sobel filters, resize an image with bilinear interpolation, convert between NHWC and NCHW layouts, implement a transposed convolution, remove duplicate detections with IoU and non-max suppression, and assign anchor boxes for detector training. Start with the Easy problems on convolution and layout conversion. Then do pooling, im2col and resizing, and finish with transposed convolution, NMS and anchor matching. Vision roles in industry, from retail to manufacturing, still rely on these building blocks, and interviewers often ask you to code convolution or NMS without a library.

Easy 8

Medium 13

Hard 9

Related topics

All practice problems