Update app.py
Browse files
app.py
CHANGED
|
@@ -129,7 +129,7 @@ def process_image(job_id, image_path, object_type, multiplier):
|
|
| 129 |
jobs[job_id]['progress'] = 60
|
| 130 |
|
| 131 |
# (Optional) Detect ArUco marker for measurement
|
| 132 |
-
marker_real_width_cm =
|
| 133 |
try:
|
| 134 |
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
|
| 135 |
aruco_dict = cv2.aruco.getPredefinedDictionary(cv2.aruco.DICT_6X6_250)
|
|
|
|
| 129 |
jobs[job_id]['progress'] = 60
|
| 130 |
|
| 131 |
# (Optional) Detect ArUco marker for measurement
|
| 132 |
+
marker_real_width_cm = 5.0
|
| 133 |
try:
|
| 134 |
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
|
| 135 |
aruco_dict = cv2.aruco.getPredefinedDictionary(cv2.aruco.DICT_6X6_250)
|