Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

415
Views
Cómo reemplazar faceapi.fetchImage() y usar una función que cargará mi imagen de la base de datos y se usará para reconocimiento facial

Estoy creando un sistema de reconocimiento facial con javascript, PHP y MySQL. El problema que tengo es que no sé cómo cargaré la imagen de la base de datos y reemplazaré fetchImage() por algo en el disco o en la base de datos MySQL. Estoy usando XAMPP y localhost.

Este es mi script PHP:

 $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;

entonces esto es para el reconocimiento facial

 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) }

Quiero cambiar la imagen de búsqueda ya que el

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!