Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

414
Vistas
How replace faceapi.fetchImage() and use a function that will load my image from the database and be used for Facial Recognition

I am creating a face-recognition system with javascript, PHP and MySQL. The problem I have is I don't know how I will load the image from the database and replace the fetchImage() for something on the disk or MySQL database. I am using XAMPP and localhost.

This is my PHP script:

$result = $mysqli->query("SELECT * FROM student WHERE email = '$user'");
$row = mysqli_fetch_assoc($result);;

$num = $row['stud_num'];
$name = $row['full_name'];
$image = $row['img_name'];
$image_src = "upload/".$image; 

then this is for the face recognition

for (let i = 1; i <= 2; i++) {
    const img = await faceapi.fetchImage(`https://raw.githubusercontent.com/WebDevSimplified/Face-Recognition-JavaScript/master/labeled_images/${label}/${i}.jpg`)
    const detections = await faceapi.detectSingleFace(img).withFaceLandmarks().withFaceDescriptor()
    descriptions.push(detections.descriptor)
}

I want to change the fetch image since the

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda