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

i have problem like this "Error fetching video from webcam" #397

Closed
nakornsoft opened this issue Jan 5, 2019 · 15 comments
Closed

i have problem like this "Error fetching video from webcam" #397

nakornsoft opened this issue Jan 5, 2019 · 15 comments

Comments

@nakornsoft
Copy link

https://i.pinimg.com/originals/4a/06/89/4a06894922f37c87c3a1e265b9c46f77.png

Please help me

@roysbike
Copy link

roysbike commented Jan 6, 2019

Yes. Problem. Please help

@nakornsoft
Copy link
Author

nakornsoft commented Jan 11, 2019

open url on opera browser

https://i.pinimg.com/originals/f8/82/0f/f8820f9d05777f6c4563f46b6709828b.png

i thinking problem it's convert base64 image

@angelinux
Copy link

I solved this problem in Chrome by changing the function umSuccess(stream) in openface-demo.js with the following content:

function umSuccess(stream) {
    if (vid.mozCaptureStream) {
        vid.mozSrcObject = stream;
    } else {
        vid.srcObject = stream;
    }
    vid.play();
    vidReady = true;
    sendFrameLoop();
} 

In Firefox, by the way, I get only a black screen.

@angelinux
Copy link

Update: the black screen problem with Firefox can be solved by rewriting the function umSuccess as:

function umSuccess(stream) {
    vid.srcObject = stream;
    vid.play();
    vidReady = true;
    sendFrameLoop();
}

@karllacr
Copy link

hi,
did you just modify the code and used the 'docker run' normally, or did you do some update in dockerfile?

@angelinux
Copy link

I changed the file inside the docker container through a bash session.

@karllacr
Copy link

Hi again,
Sorry to bother you, but could you please show me the steps you followed until you were able to use the web demo. I've been trying for a long time and I've modified the file as you showed it, but I can not do it at all.

@nakornsoft
Copy link
Author

nakornsoft commented Feb 21, 2019

@angelinux
Copy link

@karllacr: you should launch docker container as docker run ... ending with /bin/bash, then you will find a prompt where you can modify the file with vi and then execute openface/demos/web/start_servers.sh

@angelinux
Copy link

@nakhonsoft: thank you, I will give a try, I was searching for a python 3 implementation!

@nakornsoft
Copy link
Author

@angelinux face_recognition

support py2 and p3

@stale
Copy link

stale bot commented Apr 22, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 22, 2019
@ideallyworld
Copy link

Hi again,
Sorry to bother you, but could you please show me the steps you followed until you were able to use the web demo. I've been trying for a long time and I've modified the file as you showed it, but I can not do it at all.

You need restart the browser after all changed . I also meet the same black problem . And This is fixed by angelinux's comment.

@stale stale bot removed the stale label Apr 22, 2019
@colab1590
Copy link

thanks @angelinux

@Chappie74
Copy link

Update: the black screen problem with Firefox can be solved by rewriting the function umSuccess as:

function umSuccess(stream) {
    vid.srcObject = stream;
    vid.play();
    vidReady = true;
    sendFrameLoop();
}

Thank you brother.

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

7 participants