hello, the code is running without any error but it does nothing after asking me to select the picture in my computer. I think I followed ur steps well so I don't know why it does nothing
hello, the code is showing in terminal 1) line 60, in find_target_face() 2) line 42, in find_target_face create_frame(location, label) 3) line 49, in create_frame top, right, bottom, left = location 4) ValueError: too many values to unpack (expected 4) please help on this
When i run the code it shows me pip install face recognition models what should i do even when i installed it again same error is coming how to solve it?
Please make a video on facial expression recognition
hello, the code is running without any error but it does nothing after asking me to select the picture in my computer.
I think I followed ur steps well so I don't know why it does nothing
same for me
Thanks for the video.
hello, the code is showing in terminal 1) line 60, in
find_target_face() 2) line 42, in find_target_face
create_frame(location, label) 3) line 49, in create_frame
top, right, bottom, left = location 4) ValueError: too many values to unpack (expected 4) please help on this
Same error
Getting in create_frame
top, right, bottom, left = location
ValueError : too many values to unpack (expected 4)
When i run the code it shows me pip install face recognition models what should i do even when i installed it again same error is coming how to solve it?
can we do this in real time video?
Can you send de GitHub link
The dataset please sir
how can i get the code ?
Please a make a video installation of face-recognition package
Thank you it's helps me lot.
why do i have an error on for statement in for filename in os.listdir(folder):
Which platform you are using to write the code??
PyCharm
Can you show how to make facial recognition model using yolo?
I'm getting encode_faces() takes 0 positional arguments but 1 was given please help
how to do this in a live webcam
🔥
Provide source code man
Provide source code please
im having trouble to install face_recognition i have cmake and dlib but i get so many errors:(
same
I got it working. I gotta find what I used to help u. It’s a matter of looking through my bookmarks.
Can I get code for face recognition in cctv camera
you can change your videocapture source
provide source code plzz
from base64 import encode
from venv import create
import face_recognition as fr
import cv2 as cv
from tkinter import Tk
from tkinter.filedialog import askopenfilename
import os
Tk().withdraw
load_image = askopenfilename()
target_image = fr.load_image_file(load_image)
target_encoding = fr.face_encodings(target_image)
def encode_faces(folder):
list_people_encoding = []
for filename in os.listdir(folder):
known_image = fr.load_image_file(f'{folder}{filename}')
know_encoding = fr.face_encodings(known_image)[0]
list_people_encoding.append((know_encoding, filename))
return list_people_encoding
def find_target_face():
face_location = fr.face_locations(target_image)
for person in encode_faces('people/'):
encode_face = person[0]
filename = person[1]
is_target_face = fr.compare_faces(encode_face, target_encoding, tolerance = 0.55)
print(f'{is_target_face}{filename}')
if face_location:
face_number = 0
for location in face_location:
if is_target_face[face_number]:
label = filename
create_frame(location, label)
face_number +=1
def create_frame(location, label):
top, right, bottom, left = location
cv.rectangle(target_image, (left,top), (right, bottom), (255, 0,0), 2)
cv.rectangle(target_image, (left,bottom + 20), (right, bottom), (255, 0,0), cv.FILLED)
cv.putText(target_image, label, (left + 3, bottom + 14), cv.FONT_HERSHEY_DUPLEX, 0.4, (255,255,255), 1)
def render_image():
rgb_img = cv.cvtColor(target_image, cv.COLOR_BGR2BGRA)
cv.imshow('Face Recognition', rgb_img)
cv.waitKey(0)
find_target_face()
render_image()
what algorithm are you using here ?
face_recognition
source code
When I grow up I wanna be Donald Trump😌
how i can get the source code ?
please