Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify args complete_path by using os.getcwd() #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions FaceRecognizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import cv2
import uuid
import rotateImage
import os

def rect_to_bb(rect):
# we will take the bounding box predicted by dlib library
Expand Down Expand Up @@ -56,9 +57,9 @@ def shape_to_np(shape, dtype="int"):
# if you want to use predefined path than define the path in a variable

args = {
"shape_predictor": "complete_path/shape_predictor_68_face_landmarks.dat",
"image": "complete_path/input_image.jpg",
"encodings": "complete_path/encodings.pickle",
"shape_predictor": os.getcwd() + "/shape_predictor_68_face_landmarks.dat",
"image": os.getcwd() + "/examples/1.jpg",
"encodings": os.getcwd() + "/encodings/encodings.pickle",
"detection_method": "cnn"

}
Expand Down