> For the complete documentation index, see [llms.txt](https://docs.augelab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.augelab.com/turkish/baslarken/your-very-first-project/detection.md).

# Tespit

Bu bölümde golf topunun konumunu tespit edeceksiniz. Önce basit bir dedektör kuracak, sonra top hareket ederken referansın sabit kalması için düzeltme yapacaksınız.

{% stepper %}
{% step %}

### Find Object Ekle

Bloklar çubuğuna gidin. **Detections/Shapes** altında **Detectors**’ı açın ve **Find Object** bloğunu senaryoya sürükleyin.

![](https://2429457545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl5VRnpTLy8ispFgZ6uFd%2Fuploads%2Fgit-blob-82e7b55abc017f022a5952b857e52a7e9bf0e2f1%2Fimage-det-1.png?alt=media)
{% endstep %}

{% step %}

### Show Image Ekle

**Input/Output** altında **Outputs/Exports**’ı açın ve **Show Image** bloğunu senaryoya sürükleyin.

![](https://2429457545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl5VRnpTLy8ispFgZ6uFd%2Fuploads%2Fgit-blob-0b6f8f823d408e10908e7bcf3b91e6c30a3e2a07%2Fimage-det.png?alt=media)
{% endstep %}

{% step %}

### Dedektörü Bağlayın

Blokları aşağıda gösterildiği gibi bağlayın.

![](https://2429457545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl5VRnpTLy8ispFgZ6uFd%2Fuploads%2Fgit-blob-c1bd23b761af62c4671e5e3bba179d85d812489b%2Fimage-det-2.png?alt=media)

<img src="https://2429457545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl5VRnpTLy8ispFgZ6uFd%2Fuploads%2Fgit-blob-a3f52ba493c19aeed3ed51442d5a3a9713df61ff%2Fplay_step.png?alt=media" alt="run step" data-size="line"> *Run Step*. \*\*Show Image\*\* içinde tespit edilen golf topunu kırmızı bir kutu içinde görmelisiniz.

![](https://2429457545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl5VRnpTLy8ispFgZ6uFd%2Fuploads%2Fgit-blob-c7e32bf491995b24c125d3ffd3cced634de7762e%2Fimage-det-3.png?alt=media)
{% endstep %}

{% step %}

### Sürekli Tespiti Test Edin

<img src="https://2429457545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl5VRnpTLy8ispFgZ6uFd%2Fuploads%2Fgit-blob-336c18484aa93d35401e4cf66bff9e99257fee93%2Fplay.png?alt=media" alt="run" data-size="line"> *Run* tuşuna basın ve tespiti yaklaşık 10 saniye boyunca izleyin.

Tespitin kararsızlaştığını fark edebilirsiniz. Bunun nedeni, **Image ROI Select** referansının top hareket ettikçe değişmesi ve referansımızın çime dönüşebilmesidir.
{% endstep %}

{% step %}

### Image Memory Ekle

Referansı sabit tutmak için **Image Memory** ekleyin.

Bloklar çubuğuna gidin. **Image Transformers** altında **Analysis**’ı açın ve **Image Memory** bloğunu senaryoya sürükleyin.

![](https://2429457545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl5VRnpTLy8ispFgZ6uFd%2Fuploads%2Fgit-blob-311883ec708cc21eb5003b847af553507ab3e3d0%2Fimage-det-memory.png?alt=media)
{% endstep %}

{% step %}

### Logic Input Ekle

**Input/Output** altında **Data Inputs**’ı açın ve **Logic Input** bloğunu senaryoya sürükleyin.

![](https://2429457545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl5VRnpTLy8ispFgZ6uFd%2Fuploads%2Fgit-blob-fa9fabd7a65b1af440034d252aa94e57bc92f9f0%2Fimage-det-logic.png?alt=media)
{% endstep %}

{% step %}

### Kalabalık Blokları Yeniden Düzenleyin

Bir bloğu tıklayıp sürükleyerek hareket ettirin.

![](https://2429457545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl5VRnpTLy8ispFgZ6uFd%2Fuploads%2Fgit-blob-4c374e057396b21afeefe38675a542c206e87ff6%2Fvideo-single-block-move.webp?alt=media)

Birden fazla bloğu seçip sürükleyerek grubu taşıyın.

![](https://2429457545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl5VRnpTLy8ispFgZ6uFd%2Fuploads%2Fgit-blob-c760a3e5ca7c40168cfd4daf3901ee1638c366a8%2Fvideo-multiple-block-move.webp?alt=media)
{% endstep %}

{% step %}

### Image Memory'yi Bağlayın

Yeni blokları aşağıda gösterildiği gibi bağlayın.

![](https://2429457545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl5VRnpTLy8ispFgZ6uFd%2Fuploads%2Fgit-blob-6af9b5da7e3e5c3843e56023be61c8dc9ffb10b8%2Fimage-det-memory2.png?alt=media)

**Image Memory**, ihtiyaç duyduğumuz kareyi dondurur, böylece video çalışırken referans değişmez.
{% endstep %}

{% step %}

### Referans karesini kaydedin

Senaryoyu bir adım çalıştırın. Ardından **Logic Input**'u **True** yaparak görüntüyü **Image Memory** içinde kaydedin.

![](https://2429457545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl5VRnpTLy8ispFgZ6uFd%2Fuploads%2Fgit-blob-3e840cab9e11495b83e0a0e65e00e82abab9e08c%2Fvideo-image-memory-save.webp?alt=media)
{% endstep %}

{% step %}

### Find Object'u Ayarlayın

**Find Object** bloğuna gidin ve **Match Threshold** değerini `100%` olarak ayarlayın.

<figure><img src="https://2429457545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl5VRnpTLy8ispFgZ6uFd%2Fuploads%2Fgit-blob-e9c1faacaf06c868c73ca7067b3fc106052f8157%2Fimage-find-object-threshold.png?alt=media" alt="Find Object match threshold" width="450"><figcaption><p>Find Object match threshold</p></figcaption></figure>
{% endstep %}

{% step %}

### Tespiti Çalıştırın

*Run* tuşuna basın ve dedektörün golf topunu takip ettiğini kontrol edin.

![](https://2429457545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl5VRnpTLy8ispFgZ6uFd%2Fuploads%2Fgit-blob-9d391ca21d42434743e68bf12ddca73c259eb55e%2Fvideo-run-detection.webp?alt=media)
{% endstep %}
{% endstepper %}

Dedektör artık sabit bir referansla çalışıyor. Golf topunun deliğe ulaşıp ulaşmadığını kontrol etmek için son sayfaya devam edin.
