mlbench123 commited on
Commit
ccecede
·
verified ·
1 Parent(s): aa3340b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -79,8 +79,10 @@ class WarehouseStitcher:
79
  else:
80
  detector = cv2.AKAZE_create()
81
 
 
82
  keypoints, descriptors = detector.detectAndCompute(gray, None)
83
-
 
84
  # Add rack label keypoints
85
  if self.config['detect_rack_labels']:
86
  labels = self.detect_rack_labels(gray)
 
79
  else:
80
  detector = cv2.AKAZE_create()
81
 
82
+ # keypoints, descriptors = detector.detectAndCompute(gray, None)
83
  keypoints, descriptors = detector.detectAndCompute(gray, None)
84
+ keypoints = list(keypoints) if keypoints is not None else []
85
+
86
  # Add rack label keypoints
87
  if self.config['detect_rack_labels']:
88
  labels = self.detect_rack_labels(gray)