You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects-appendix/modules/spring2025/pages/40200/project5.adoc
+4-13Lines changed: 4 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -292,20 +292,11 @@ We should ensure that all images have the same number of features. We can do thi
292
292
If you are having problems where nfeatures is not doing its job correctly (i.e. not outputting the same number of features for each image), you should splice the descriptor arrays to the correct size eg. `des = des[:20]`.
293
293
====
294
294
295
-
[source,python]
296
-
----
297
-
import cv2
298
-
299
-
sift = cv2.SIFT_create(nfeatures=20)
300
-
301
-
image_features = {}
302
-
for k,v in labeled_images_grayscale.items():
303
-
image_features[k] = []
304
-
for im in v:
305
-
kp, des = sift.detectAndCompute(im, None)
306
-
image_features[k].append(des)
307
-
----
295
+
After you've completed the above, please answer the following questions:
308
296
297
+
- How does this model compare to the previous 3 models in terms of accuracy?
0 commit comments