webcam

Accessing a user's webcam in Heroku

泄露秘密 提交于 2021-02-11 15:48:30
问题 I am interested in gathering eye tracking data and would like to create a Heroku app that uses this GazeTracking package (or similar) so I can capture and capture and store data for where people are looking on their screen for given images. After going through dozens of related answers on Stack Overflow and elsewhere, I am still unable to get this working correctly since I can't figure out how to access the user's web camera. Here is the GitHub repo I've got going right now. Is there a way to

Accessing a user's webcam in Heroku

雨燕双飞 提交于 2021-02-11 15:48:09
问题 I am interested in gathering eye tracking data and would like to create a Heroku app that uses this GazeTracking package (or similar) so I can capture and capture and store data for where people are looking on their screen for given images. After going through dozens of related answers on Stack Overflow and elsewhere, I am still unable to get this working correctly since I can't figure out how to access the user's web camera. Here is the GitHub repo I've got going right now. Is there a way to

How do I fix “RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat” while using google colab?

烈酒焚心 提交于 2021-02-11 15:18:12
问题 I am writing the following Python code in Google Colaboratory and get an error: Code : import cv2 import dlib cap = cv2.VideoCapture(0) hog_face_detector = dlib.get_frontal_face_detector() dlib_facelandmark = dlib.shape_predictor("shape_predictor_68_face_landmarks.dat") while True: _, frame = cap.read() gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) faces = hog_face_detector(gray) for face in faces: face_landmarks = dlib_facelandmark(gray, face) for n in range(0, 16): x = face_landmarks.part

Chrome is not letting HTTP hosted site to access Camera & Microphone

混江龙づ霸主 提交于 2021-02-10 11:57:23
问题 I'm using react-webcam to capture a selfie for an application. On localhost, react-webcam works perfectly whereas on HTTP hosted web server camera access is being denied by default on the Chrome. Is there any workaround for webcam access or any other npm plugin which can serve the purpose here. NOTE: HTTPS supported sites are allowed to access both the Camera & Microphone. Here, I'm left with only HTTP choice. 回答1: The react-webcam uses the getUserMedia API which specification states: When on

Chrome is not letting HTTP hosted site to access Camera & Microphone

送分小仙女□ 提交于 2021-02-10 11:56:50
问题 I'm using react-webcam to capture a selfie for an application. On localhost, react-webcam works perfectly whereas on HTTP hosted web server camera access is being denied by default on the Chrome. Is there any workaround for webcam access or any other npm plugin which can serve the purpose here. NOTE: HTTPS supported sites are allowed to access both the Camera & Microphone. Here, I'm left with only HTTP choice. 回答1: The react-webcam uses the getUserMedia API which specification states: When on

Output a Java window as a webcam stream

故事扮演 提交于 2021-02-10 03:59:57
问题 I would like to write a program perferably in Java that can display animated overlays on a screen. The screen will then be broadcast streamed over the internet using a separate program called x-split. A good way to do this would be to create a transparent window in java which will display animated files (with transparancy) and the output of this window (Its display) should ideally appear in the webcam device list so it can be easily picked up by x-split which will allow it to be arranged

Output a Java window as a webcam stream

核能气质少年 提交于 2021-02-10 03:56:07
问题 I would like to write a program perferably in Java that can display animated overlays on a screen. The screen will then be broadcast streamed over the internet using a separate program called x-split. A good way to do this would be to create a transparent window in java which will display animated files (with transparancy) and the output of this window (Its display) should ideally appear in the webcam device list so it can be easily picked up by x-split which will allow it to be arranged

Closing webcam without reloading

狂风中的少年 提交于 2021-02-08 11:46:15
问题 I'm a a beginner in web development and I’m working on a video chat app built with create-react-app . I’m using recordRTC library for record and stream from users’s webcam and microphone. When I stop recording, I also would like to close the webcam. import React, { Component } from "react"; import RecordRTC from "recordrtc"; const captureUserMedia = callback => { const params = { audio: true, video: true }; navigator.mediaDevices .getUserMedia(params) .then(callback) .catch((error) => {

How to interact with a Users webcam & inbuilt microphone using Ruby / Rails?

↘锁芯ラ 提交于 2021-02-08 08:23:54
问题 Not sure how to frame this one, so here goes... I have a need to develop an application which allows my boss to post a series of questions that will be answered by various consultants around the world, each question will have a time limit in which it can be answered e.g. 3 minutes. Here is the problem, the users answering the questions must do so via their webcam & microphone built into their computer. The recording will need to be done directly through the web-app (no pop-ups, or external

How to interact with a Users webcam & inbuilt microphone using Ruby / Rails?

走远了吗. 提交于 2021-02-08 08:22:32
问题 Not sure how to frame this one, so here goes... I have a need to develop an application which allows my boss to post a series of questions that will be answered by various consultants around the world, each question will have a time limit in which it can be answered e.g. 3 minutes. Here is the problem, the users answering the questions must do so via their webcam & microphone built into their computer. The recording will need to be done directly through the web-app (no pop-ups, or external