YOLO_Google-Cloud icon indicating copy to clipboard operation
YOLO_Google-Cloud copied to clipboard

Object detection not working

Open dimitri320 opened this issue 5 years ago • 2 comments

I've managed to setup everything right, and the website with a video steam work just fine. But I'm not detecting any object in the video stream (I'm in the camera view, so a person should have been detected).

Here is what I get on the server side in my GCP SSH Terminal:

INFO:ice:Connection(0) ICE failed DEBUG:ice:controlled - checking -> failed DEBUG:dtls:client - State.NEW -> State.CONNECTING DEBUG:dtls:client x DTLS handshake failed (connection error) DEBUG:dtls:client - State.CONNECTING -> State.FAILED ICE connection state is failed DEBUG:ice:controlled - failed -> closed ICE connection state is closed

dimitri320 avatar Jan 02 '20 13:01 dimitri320

@dimitri320 did you resolved the issue. I am too getting the same issue

knowercoder avatar Jun 11 '20 10:06 knowercoder

I solved my issue by adding a STUN server link. I added the configuration of RTC Peerconnection as follow:

var config = { sdpSemantics: 'unified-plan' };

config.iceServers = [{urls: ['stun:stun.l.google.com:19302']}];

pc = new RTCPeerConnection(config);

knowercoder avatar Jul 12 '20 04:07 knowercoder