estoy ejecutando javascript frontend con django backend. Aquí está la estructura
-app --templates ---index.html --static ---index.js ---haarcascade_frontalface_alt.xml ---style.css --views.py --urls.pyPuedo ver el estilo css en mi página index.html. Pero el archivo index.js no puede seleccionar haarcascade_frontalface_alt.xml.
El código es el siguiente
const HAARCASCADE_URI = "haarcascade_frontalface_alt.xml" this.classifier = new cv.CascadeClassifier(); let faceCascadeFile = "haarcascade_frontalface_alt.xml"; if (!this.classifier.load(faceCascadeFile)) { await this.createFileFromUrl(faceCascadeFile, this.classifierPath); this.classifier.load(faceCascadeFile) } pero dice Failed to load haarcascade_frontalface_alt.xml status: 404