{
 "_doc": "產生圖片判斷的測試圖與題庫（samples/images/*.png、samples/cases_vision.json）。\n\n  .venv/bin/python samples/make_vision_cases.py\n\n所有圖片都是程式畫的合成圖：證件、卡片上的姓名、號碼都是公開的測試用假資料\n（A123456789、4111 1111 1111 1111），銀行名稱一律用「OO 銀行」，不仿冒任何真實機構。\n因為是自己畫的，每張圖的標準答案都是確定的。今天是 2026-10-12。",
 "templates": {
  "doc_type_zh": {
   "type": "choice",
   "instructions": "客戶在線上申辦時上傳了這張照片。照片中的主要物件是什麼？",
   "choices": [
    {
     "value": "id_card",
     "description": "國民身分證（正面或背面）"
    },
    {
     "value": "credit_card",
     "description": "信用卡（正面或背面）"
    },
    {
     "value": "passbook",
     "description": "銀行存摺"
    },
    {
     "value": "health_card",
     "description": "健保卡"
    },
    {
     "value": "driver_license",
     "description": "駕照"
    },
    {
     "value": "other",
     "description": "以上皆非"
    }
   ]
  },
  "readable_zh": {
   "type": "predicate",
   "instructions": "這張照片是否清晰到可以正確辨識證件上的統一編號（身分證字號）每一個字元？"
  },
  "app_error_zh": {
   "type": "choice",
   "instructions": "客戶傳來這張 App 截圖詢問。截圖顯示的是哪一種狀況？",
   "choices": [
    {
     "value": "otp_failed",
     "description": "簡訊驗證碼（OTP）輸入錯誤"
    },
    {
     "value": "account_frozen",
     "description": "帳戶被凍結或列為警示帳戶"
    },
    {
     "value": "network_error",
     "description": "網路連線問題"
    },
    {
     "value": "transfer_success",
     "description": "轉帳成功"
    },
    {
     "value": "login_locked",
     "description": "密碼錯誤太多次，登入被鎖定"
    },
    {
     "value": "other",
     "description": "以上皆非"
    }
   ]
  },
  "phishing_zh": {
   "type": "predicate",
   "instructions": "客戶轉傳這張簡訊截圖來問。這則簡訊是否為疑似詐騙或釣魚訊息？"
  },
  "amount_over_50k_zh": {
   "type": "predicate",
   "instructions": "依截圖內容，這筆轉帳金額是否超過新台幣 50,000 元？"
  },
  "due_within_7_zh": {
   "type": "predicate",
   "instructions": "今天是 2026 年 10 月 12 日。依截圖，繳款截止日是否在今天起 7 天內（含 10 月 19 日）？"
  },
  "card_expired_zh": {
   "type": "predicate",
   "instructions": "今天是 2026 年 10 月 12 日。依照片中的有效期限（月/年），這張信用卡是否已經過期？"
  }
 },
 "cases": [
  {
   "id": "doc-01",
   "suite": "doc_type",
   "lang": "zh-TW",
   "template": "doc_type_zh",
   "input": "（見附圖）",
   "images": [
    "images/id_front.png"
   ],
   "expected": "id_card"
  },
  {
   "id": "doc-02",
   "suite": "doc_type",
   "lang": "zh-TW",
   "template": "doc_type_zh",
   "input": "（見附圖）",
   "images": [
    "images/id_back.png"
   ],
   "expected": "id_card",
   "note": "背面，沒有「身分證」字樣"
  },
  {
   "id": "doc-03",
   "suite": "doc_type",
   "lang": "zh-TW",
   "template": "doc_type_zh",
   "input": "（見附圖）",
   "images": [
    "images/credit_front.png"
   ],
   "expected": "credit_card"
  },
  {
   "id": "doc-04",
   "suite": "doc_type",
   "lang": "zh-TW",
   "template": "doc_type_zh",
   "input": "（見附圖）",
   "images": [
    "images/credit_back.png"
   ],
   "expected": "credit_card",
   "note": "背面：磁條與簽名欄"
  },
  {
   "id": "doc-05",
   "suite": "doc_type",
   "lang": "zh-TW",
   "template": "doc_type_zh",
   "input": "（見附圖）",
   "images": [
    "images/credit_rotated.png"
   ],
   "expected": "credit_card",
   "note": "旋轉 90 度"
  },
  {
   "id": "doc-06",
   "suite": "doc_type",
   "lang": "zh-TW",
   "template": "doc_type_zh",
   "input": "（見附圖）",
   "images": [
    "images/credit_cropped.png"
   ],
   "expected": "credit_card",
   "note": "右側被裁掉約四成"
  },
  {
   "id": "doc-07",
   "suite": "doc_type",
   "lang": "zh-TW",
   "template": "doc_type_zh",
   "input": "（見附圖）",
   "images": [
    "images/passbook.png"
   ],
   "expected": "passbook"
  },
  {
   "id": "doc-08",
   "suite": "doc_type",
   "lang": "zh-TW",
   "template": "doc_type_zh",
   "input": "（見附圖）",
   "images": [
    "images/health_card.png"
   ],
   "expected": "health_card",
   "note": "也有身分證號，容易誤判"
  },
  {
   "id": "doc-09",
   "suite": "doc_type",
   "lang": "zh-TW",
   "template": "doc_type_zh",
   "input": "（見附圖）",
   "images": [
    "images/driver_license.png"
   ],
   "expected": "driver_license"
  },
  {
   "id": "doc-10",
   "suite": "doc_type",
   "lang": "zh-TW",
   "template": "doc_type_zh",
   "input": "（見附圖）",
   "images": [
    "images/invoice.png"
   ],
   "expected": "other",
   "note": "電子發票"
  },
  {
   "id": "doc-11",
   "suite": "doc_type",
   "lang": "zh-TW",
   "template": "doc_type_zh",
   "input": "（見附圖）",
   "images": [
    "images/scenery.png"
   ],
   "expected": "other"
  },
  {
   "id": "qa-01",
   "suite": "image_quality",
   "lang": "zh-TW",
   "template": "readable_zh",
   "input": "（見附圖）",
   "images": [
    "images/id_front.png"
   ],
   "expected": true
  },
  {
   "id": "qa-02",
   "suite": "image_quality",
   "lang": "zh-TW",
   "template": "readable_zh",
   "input": "（見附圖）",
   "images": [
    "images/id_blur_mild.png"
   ],
   "expected": true,
   "note": "輕微模糊"
  },
  {
   "id": "qa-03",
   "suite": "image_quality",
   "lang": "zh-TW",
   "template": "readable_zh",
   "input": "（見附圖）",
   "images": [
    "images/id_blur_heavy.png"
   ],
   "expected": false
  },
  {
   "id": "qa-04",
   "suite": "image_quality",
   "lang": "zh-TW",
   "template": "readable_zh",
   "input": "（見附圖）",
   "images": [
    "images/id_dark.png"
   ],
   "expected": false,
   "note": "亮度只剩 6%，加暗光雜訊"
  },
  {
   "id": "qa-05",
   "suite": "image_quality",
   "lang": "zh-TW",
   "template": "readable_zh",
   "input": "（見附圖）",
   "images": [
    "images/id_glare.png"
   ],
   "expected": false,
   "note": "反光蓋住統一編號"
  },
  {
   "id": "app-01",
   "suite": "app_screen",
   "lang": "zh-TW",
   "template": "app_error_zh",
   "input": "（見附圖）",
   "images": [
    "images/app_otp.png"
   ],
   "expected": "otp_failed"
  },
  {
   "id": "app-02",
   "suite": "app_screen",
   "lang": "zh-TW",
   "template": "app_error_zh",
   "input": "（見附圖）",
   "images": [
    "images/app_frozen.png"
   ],
   "expected": "account_frozen"
  },
  {
   "id": "app-03",
   "suite": "app_screen",
   "lang": "zh-TW",
   "template": "app_error_zh",
   "input": "（見附圖）",
   "images": [
    "images/app_network.png"
   ],
   "expected": "network_error"
  },
  {
   "id": "app-04",
   "suite": "app_screen",
   "lang": "zh-TW",
   "template": "app_error_zh",
   "input": "（見附圖）",
   "images": [
    "images/app_success.png"
   ],
   "expected": "transfer_success"
  },
  {
   "id": "app-05",
   "suite": "app_screen",
   "lang": "zh-TW",
   "template": "app_error_zh",
   "input": "（見附圖）",
   "images": [
    "images/app_locked.png"
   ],
   "expected": "login_locked"
  },
  {
   "id": "app-06",
   "suite": "app_screen",
   "lang": "zh-TW",
   "template": "app_error_zh",
   "input": "（見附圖）",
   "images": [
    "images/app_session.png"
   ],
   "expected": "other",
   "note": "英文介面，登入逾時不是被鎖定"
  },
  {
   "id": "sms-01",
   "suite": "phishing",
   "lang": "zh-TW",
   "template": "phishing_zh",
   "input": "（見附圖）",
   "images": [
    "images/sms_phish_frozen.png"
   ],
   "expected": true
  },
  {
   "id": "sms-02",
   "suite": "phishing",
   "lang": "zh-TW",
   "template": "phishing_zh",
   "input": "（見附圖）",
   "images": [
    "images/sms_legit_spend.png"
   ],
   "expected": false,
   "note": "正常消費通知，沒有連結"
  },
  {
   "id": "sms-03",
   "suite": "phishing",
   "lang": "zh-TW",
   "template": "phishing_zh",
   "input": "（見附圖）",
   "images": [
    "images/sms_phish_prize.png"
   ],
   "expected": true
  },
  {
   "id": "sms-04",
   "suite": "phishing",
   "lang": "zh-TW",
   "template": "phishing_zh",
   "input": "（見附圖）",
   "images": [
    "images/sms_legit_otp.png"
   ],
   "expected": false,
   "note": "正常 OTP 簡訊"
  },
  {
   "id": "sms-05",
   "suite": "phishing",
   "lang": "zh-TW",
   "template": "phishing_zh",
   "input": "（見附圖）",
   "images": [
    "images/sms_phish_parcel.png"
   ],
   "expected": true
  },
  {
   "id": "num-01",
   "suite": "image_numbers",
   "lang": "zh-TW",
   "template": "amount_over_50k_zh",
   "input": "（見附圖）",
   "images": [
    "images/receipt_52000.png"
   ],
   "expected": true
  },
  {
   "id": "num-02",
   "suite": "image_numbers",
   "lang": "zh-TW",
   "template": "amount_over_50k_zh",
   "input": "（見附圖）",
   "images": [
    "images/receipt_48500.png"
   ],
   "expected": false
  },
  {
   "id": "num-03",
   "suite": "image_numbers",
   "lang": "zh-TW",
   "template": "due_within_7_zh",
   "input": "（見附圖）",
   "images": [
    "images/bill.png"
   ],
   "expected": false,
   "note": "10/20 是第 8 天"
  },
  {
   "id": "num-04",
   "suite": "image_numbers",
   "lang": "zh-TW",
   "template": "card_expired_zh",
   "input": "（見附圖）",
   "images": [
    "images/credit_expired.png"
   ],
   "expected": true,
   "note": "09/26 已過期"
  },
  {
   "id": "num-05",
   "suite": "image_numbers",
   "lang": "zh-TW",
   "template": "card_expired_zh",
   "input": "（見附圖）",
   "images": [
    "images/credit_front.png"
   ],
   "expected": false,
   "note": "12/28 未過期"
  }
 ]
}