Yapay Zeka ile Görüntü Tanıma: TensorFlow.js

Yapay Zeka ile Görüntü Tanıma: TensorFlow.js

NBK BARIS3 Mayıs 2026Yapay-Zeka, JavaScript

TensorFlow.js ile tarayici uzerinde yapay zeka modelleri calistirabilirsiniz!

Kurulum

<!-- (c) CodeMareFi - codemarefi.com.tr -->
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/mobilenet"></script>

Goruntu Siniflandirma

// (c) CodeMareFi - codemarefi.com.tr
async function goruntuyuTani(img) {
  const model = await mobilenet.load();
  const tahminler = await model.classify(img);
  
  tahminler.forEach(tahmin => {
    console.log(tahmin.className + ': ' + (tahmin.probability * 100).toFixed(1) + '%');
  });
}

const img = document.getElementById('resim');
goruntuyuTani(img);
© CodeMareFi Bu icerik codemarefi.com.tr ye aittir.

0 Yorum

YORUM YAPMAK İÇİN SİSTEME SIZMANIZ GEREKİYOR

Lütfen yukarıdaki butonu kullanarak giriş yapın veya kimlik oluşturun.

Yorumlar yükleniyor...