10 saniyede bir sorunsuz kaydediyor. kaydettikten sonra hemen qr.png dosyasini farkli bir dosyayla degistiriyorum yine sorunsuz calisiyor. hata kayitlari yok mu?
const fs = require('fs');
const sharp = require('sharp');
sharp.cache(false);
setInterval(function () {
sharp('public/qr.png').extract({
left: 635,
top: 140,
width: 292,
height: 287
})
.toFile('public/new_tf.png', function (err) {
// Extract a region of the input image, saving in the same format.
})
}, 10000);