I am getting the result that there is a problem, see return message below.
I am using this code within server side in iobroker (node.js).
This is my code. I would be so happy if anybody could help me?
var fetch = require('node-fetch');
const FormData = require('form-data');
doDetection();
function doDetection() {
request.get({url: "http://192.168.178.124/kennzeichen.png",
encoding: null}, async function (err, response, body) {
if (err) {
throw err;
}
var formData = new FormData();
formData.append('image', body);
const response2 = await fetch('http://192.168.178.124:32168/v1/vision/custom/licence-plates',
{method: 'POST', body: formData});
const result = await response2.json();
log("Result: " + JSON.stringify(result))
});
}
javascript.1 (25773) script.js.common.Automatisierungen.KI5_works_better: Result: {"success":false,"error":"Unable to create YOLO detector for model licence-plates","code":500,"command":"custom","moduleId":"ObjectDetectionYolo","executionProvider":"CPU","canUseGPU":false,"analysisRoundTripMs":28}
What I have tried:
See my code above. This is a code running in iobroker backend side.