cmusatyalab/openface

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

nakornsoft opened this issue ยท 15 comments

Yes. Problem. Please help

open url on opera browser

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

i thinking problem it's convert base64 image

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.

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();
}

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

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

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.

@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

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

@angelinux face_recognition

support py2 and p3

stale commented

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.

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.

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.