Update app.py
Browse files
app.py
CHANGED
|
@@ -157,7 +157,7 @@ def process_image(job_id, image_path, object_type, multiplier):
|
|
| 157 |
equalized = cv2.equalizeHist(gray)
|
| 158 |
|
| 159 |
# Use the DICT_6X6_250 dictionary; ensure your marker is generated with this dictionary.
|
| 160 |
-
aruco_dict = cv2.aruco.Dictionary_get(cv2.aruco.
|
| 161 |
parameters = cv2.aruco.DetectorParameters_create()
|
| 162 |
# Optionally tweak parameters if needed:
|
| 163 |
parameters.adaptiveThreshWinSizeMax = 400
|
|
|
|
| 157 |
equalized = cv2.equalizeHist(gray)
|
| 158 |
|
| 159 |
# Use the DICT_6X6_250 dictionary; ensure your marker is generated with this dictionary.
|
| 160 |
+
aruco_dict = cv2.aruco.Dictionary_get(cv2.aruco.DICT_6X6_50)
|
| 161 |
parameters = cv2.aruco.DetectorParameters_create()
|
| 162 |
# Optionally tweak parameters if needed:
|
| 163 |
parameters.adaptiveThreshWinSizeMax = 400
|