0
0
Computer Visionml~20 mins

Feature extraction approach in Computer Vision - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Feature Extraction Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Feature Extraction in Image Classification

Which of the following best describes the purpose of feature extraction in image classification?

ATo reduce the image size by cropping and resizing before classification
BTo randomly shuffle image pixels to improve model robustness
CTo increase the number of pixels in the image for better resolution
DTo transform raw image data into a set of meaningful values that represent important characteristics
Attempts:
2 left
💡 Hint

Think about how we simplify complex images into useful information for the model.

Predict Output
intermediate
2:00remaining
Output of Feature Extraction Using SIFT

What is the output type of the following Python code using OpenCV's SIFT feature extractor?

Computer Vision
import cv2
img = cv2.imread('image.jpg', cv2.IMREAD_GRAYSCALE)
sift = cv2.SIFT_create()
keypoints, descriptors = sift.detectAndCompute(img, None)
print(type(descriptors))
A<class 'numpy.ndarray'>
B<class 'list'>
C<class 'NoneType'>
D<class 'dict'>
Attempts:
2 left
💡 Hint

Descriptors are numerical arrays representing features.

Model Choice
advanced
2:00remaining
Choosing a Model for Feature Extraction

You want to extract features from images to use in a simple classifier. Which model is best suited for automatic feature extraction without manual design?

AA decision tree classifier
BA linear regression model
CA pretrained convolutional neural network like ResNet
DA k-nearest neighbors algorithm
Attempts:
2 left
💡 Hint

Consider models that learn hierarchical image features automatically.

Hyperparameter
advanced
2:00remaining
Effect of Number of Features in Feature Extraction

When using a feature extractor like ORB, increasing the number of features parameter will most likely:

ADecrease the computation time and reduce feature quality
BIncrease the number of detected keypoints and increase computation time
CHave no effect on the number of features detected
DCause the extractor to ignore edges and focus on colors
Attempts:
2 left
💡 Hint

Think about what happens when you ask for more features from the extractor.

Metrics
expert
2:00remaining
Evaluating Feature Extraction Quality

You extracted features from images and trained a classifier. Which metric best helps evaluate if the features separate classes well?

ASilhouette score measuring cluster separation of features
BMean squared error between features
CNumber of features extracted per image
DAccuracy of the classifier on a test set
Attempts:
2 left
💡 Hint

Think about a metric that measures how well features group similar samples apart from others.