Alessio Grancini
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -255,9 +255,10 @@ def get_detection_data(image_data):
|
|
255 |
img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
|
256 |
|
257 |
# Apply model size and confidence threshold
|
258 |
-
print(f"Applying settings - Model Size: {model_size}, Confidence Threshold: {confidence_threshold}")
|
259 |
model_selector(model_size) # Update models based on input
|
260 |
update_confidence_threshold(confidence_threshold * 100) # Scale to 0-100 for consistency
|
|
|
261 |
|
262 |
#image = utils.resize(img)
|
263 |
resized_image = utils.resize(img) #depth requires resizing
|
|
|
255 |
img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
|
256 |
|
257 |
# Apply model size and confidence threshold
|
258 |
+
print(f"Applying default settings - Model Size: {model_size}, Confidence Threshold: {confidence_threshold}")
|
259 |
model_selector(model_size) # Update models based on input
|
260 |
update_confidence_threshold(confidence_threshold * 100) # Scale to 0-100 for consistency
|
261 |
+
print(f"Received new settings - Model Size: {model_size}, Confidence Threshold: {confidence_threshold}")
|
262 |
|
263 |
#image = utils.resize(img)
|
264 |
resized_image = utils.resize(img) #depth requires resizing
|