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

webcam.capture() is not saved photos #4

Open
stepenik opened this issue Aug 5, 2017 · 0 comments
Open

webcam.capture() is not saved photos #4

stepenik opened this issue Aug 5, 2017 · 0 comments

Comments

@stepenik
Copy link

stepenik commented Aug 5, 2017

Hi @povilasb,

I think maybe is good option to rewrite like this for example.
Or you have better idea? Now this will screnshoot 10 photos ...

def take_training_photos(name, n):
    next = True
    i = 1
    while next:
        for face in webcam.capture().gray().faces():
            if i == n:
                next = False
            i += 1
            normalized = face.scale(100, 100)
             .
             .
             .

in gfx.py in method def face_areas(self): sometimes return () and sometimes return for example this [[215 103 146 146]]. If def face_areas(self): return () webcam is not saved photos this is problem.

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

1 participant