Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|