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

create dataset #3

Open
haithamRD opened this issue Jun 4, 2020 · 17 comments
Open

create dataset #3

haithamRD opened this issue Jun 4, 2020 · 17 comments

Comments

@haithamRD
Copy link

hey sir ,
i m so sorry for derengement , i have one probleme when i run Add_New.py the camera not show for create data can i u help please

@rishabh-karmakar
Copy link
Owner

In that case, I request you to check all the dependencies in testing.txt and specially the versions of numpy and tensorflow. Also, try running Add_New.py separately. Depending on your ram and cache, it may or may not take some time for the camera module to load up. And if there's some error coming in terminal, feel free to share the screenshot here.

@haithamRD
Copy link
Author

all dependencies is right . i try to run this page but the camera not loaded. i have this probleme on 2 os on ubuntu and windows

@rishabh-karmakar
Copy link
Owner

That... isn't right. Might I suggest opening up a Jupyter notebook and see if the camera is indeed opening or not?
Also, this problem is in just Add_New or in Recog.py as well. Try running that once.

@rishabh-karmakar
Copy link
Owner

Run this to check if camera is working.

import numpy as np
import cv2

cap = cv2.VideoCapture(0)
while(True):
    # Capture frame-by-frame
    ret, frame = cap.read()

    # Our operations on the frame come here
    gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)

    # Display the resulting frame
    cv2.imshow('frame',gray)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

# When everything done, release the capture
cap.release()
cv2.destroyAllWindows()

@haithamRD
Copy link
Author

this problem just in Add_New.py

@haithamRD
Copy link
Author

i test the code on jupyter notebook but i have a same probleme
pliz help
Capture1

@haithamRD
Copy link
Author

tit 's blocked in this point
Capture

@haithamRD
Copy link
Author

when i verifed the code the problem in detect_face function

@rishabh-karmakar
Copy link
Owner

Okay, in that case; try the following.

  1. Download the model again. - model-20170512-110547.ckpt-250000
  2. Can you print a few statements in the face_feature file and get me which function/ line is actually causing the error.
    Most problem originate from the change in tensorflow version. Many functions were deprecated.

@haithamRD
Copy link
Author

okey , can i get the perfect running code? you can send to me in my email pliz
haitham.rdina@gmail.com

@haithamRD
Copy link
Author

tensorflow version is 1.15.0
i try the download the model and i had the same problem

@rishabh-karmakar
Copy link
Owner

So I could assume Recog.py and the initial unlock Auth1.py is working and camera is opening?

@haithamRD
Copy link
Author

yes exactly the camera opens in recog.py and Auth.py but it doesn't loaded the time to create data in Add_New.py if u can get a perfect running program please

@haithamRD
Copy link
Author

if you have a documentation about this app explain how to use it please because i test all features and dependencies for use it

@rishabh-karmakar
Copy link
Owner

Again, I made this way ago and I just tested it, again and Im not facing similar error, so Im not too sure how can I help you;
What I would recommend is use this code and deploy it on backend interfaces like flask, django and like.

@adityafaadil
Copy link

@rishabh-karmakar hey sir! can I get the download link for 'model-20170512-110547.ckpt-250000'?

@taexj
Copy link

taexj commented Oct 18, 2022

yeah, the google drive link doesn't have the model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants