Complete the code to create an ORB detector using OpenCV.
import cv2 orb = cv2.[1]()
The correct function to create an ORB detector in OpenCV is ORB_create().
Complete the code to detect keypoints and compute descriptors from an image using ORB.
keypoints, descriptors = orb.[1](image)The detectAndCompute method detects keypoints and computes descriptors in one step.
Fix the error in the code to correctly draw keypoints on the image.
output_image = cv2.drawKeypoints(image, keypoints, [1], flags=cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS)The third argument to drawKeypoints should be None to create a new output image with keypoints drawn.
Fill both blanks to create a dictionary of ORB keypoints and their sizes for keypoints larger than 20.
keypoint_sizes = {kp.pt: kp.[1] for kp in keypoints if kp.[1] [2] 20}We access the size attribute of each keypoint and filter those with size greater than 20.
Fill all three blanks to create a dictionary of keypoint coordinates and their response values for keypoints with response above 0.01.
keypoint_responses = {(int(kp.pt[0]), int(kp.pt[1])): kp.[1] for kp in keypoints if kp.[2] [3] 0.01}The response attribute measures the strength of a keypoint. We filter keypoints with response greater than 0.01.