{
  "app": "KodMania Algoritma",
  "version": 3,
  "appVersion": "4.1",
  "mode": "flex",
  "ui": "flow",
  "blockVars": [],
  "task": null,
  "program": [
    {
      "id": "n133",
      "type": "assign",
      "target": "islem",
      "expr": "\"Kamera ve modeli hazırla, sayaç = 0\""
    },
    {
      "id": "n134",
      "type": "while",
      "condition": "sistem_calisiyor == 1",
      "until": false,
      "body": [
        {
          "id": "n135",
          "type": "input",
          "varName": "goruntu",
          "prompt": "Kameradan görüntü al"
        },
        {
          "id": "n136",
          "type": "assign",
          "target": "islem",
          "expr": "\"Ön işleme (640 × 640 piksel)\""
        },
        {
          "id": "n137",
          "type": "assign",
          "target": "islem",
          "expr": "\"Model tahmini (sınıf olasılıkları)\""
        },
        {
          "id": "n138",
          "type": "if",
          "condition": "duman_olasiligi >= 0.60",
          "trueBranch": [
            {
              "id": "n139",
              "type": "assign",
              "target": "sayaç",
              "expr": "sayaç + 1"
            },
            {
              "id": "n140",
              "type": "if",
              "condition": "sayaç >= 3",
              "trueBranch": [
                {
                  "id": "n141",
                  "type": "output",
                  "expr": "\"ALARM: kırmızı LED yak, buzzer öttür, fotoğraflı mesaj gönder; sayaç = 0\""
                }
              ],
              "falseBranch": []
            }
          ],
          "falseBranch": [
            {
              "id": "n144",
              "type": "assign",
              "target": "sayaç",
              "expr": "0"
            }
          ]
        },
        {
          "id": "n145",
          "type": "wait",
          "secs": "10"
        }
      ]
    }
  ],
  "procs": []
}