Precision in prompt + better camera
Build, push image, and notify Watchtower / build-image (push) Successful in 38s
Build, push image, and notify Watchtower / notify (push) Successful in 11s

This commit is contained in:
2026-08-23 16:48:30 +02:00
parent 0f576467e1
commit 7c35b52dbd
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ class DishSafetyResult(BaseModel):
def check_dish_safety(image_path: str) -> dict:
prompt = (
"You are a strict microwave safety vision inspector.\n\n"
"TASK: Inspect the dish for ANY metal or plastic utensils (spoons, forks, knives, metal handles) or aluminum foil.\n\n"
"TASK: Inspect the top-down photo of the dish for ANY metal or plastic utensils (spoons, forks, knives, metal handles) or aluminum foil.\n\n"
"CRITICAL RULES:\n"
"1. Look closely at the edges and interior of the bowl for utensil handles sticking out, even if they appear dark or shadowed.\n"
"2. If you see ANY spoon handle, fork, knife, or utensil body—whether shiny silver, grey, or dark metal—mark is_safe = False.\n"
+2 -2
View File
@@ -18,8 +18,8 @@ camera_config = picam2.create_still_configuration(
picam2.set_controls({
"AeEnable": True,
"AwbEnable": True,
"ExposureTime": 60000,
"Brightness": 0.25,
"ExposureTime": 100000,
"Brightness": 0.30,
"Contrast": 1.1
})
picam2.configure(camera_config)