Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ model_version = int(os.getenv("ROBOFLOW_MODEL_VERSION"))
|
|
23 |
|
24 |
# DINO-X Config
|
25 |
DINOX_API_KEY = os.getenv("DINO_X_API_KEY")
|
26 |
-
DINOX_PROMPT = "
|
27 |
|
28 |
# Inisialisasi Model
|
29 |
rf = Roboflow(api_key=rf_api_key)
|
@@ -58,7 +58,7 @@ def detect_combined(image):
|
|
58 |
task = DinoxTask(
|
59 |
image_url=image_url,
|
60 |
prompts=[TextPrompt(text=DINOX_PROMPT)],
|
61 |
-
bbox_threshold=0.
|
62 |
targets=[DetectionTarget.BBox]
|
63 |
)
|
64 |
dinox_client.run_task(task)
|
|
|
23 |
|
24 |
# DINO-X Config
|
25 |
DINOX_API_KEY = os.getenv("DINO_X_API_KEY")
|
26 |
+
DINOX_PROMPT = "beverage . bottle . cans . boxed milk . milk" # Customize sesuai produk kompetitor : food . drink
|
27 |
|
28 |
# Inisialisasi Model
|
29 |
rf = Roboflow(api_key=rf_api_key)
|
|
|
58 |
task = DinoxTask(
|
59 |
image_url=image_url,
|
60 |
prompts=[TextPrompt(text=DINOX_PROMPT)],
|
61 |
+
bbox_threshold=0.4,
|
62 |
targets=[DetectionTarget.BBox]
|
63 |
)
|
64 |
dinox_client.run_task(task)
|