Mengatasi Masalah 'Illegal Constructor' di Electron saat memuat face-api.js

 


Solusi : 

faceapi.env.monkeyPatch({
    Canvas: HTMLCanvasElement,
    Image: HTMLImageElement,
    ImageData: ImageData,
    Video: HTMLVideoElement,
    createCanvasElement: () => document.createElement('canvas'),
    createImageElement: () => document.createElement('img')
})

Posting Komentar

Lebih baru Lebih lama