Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

416
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda