webcam

How Do I Stream Video From My USB Webcam To A Remote HTML Page

会有一股神秘感。 提交于 2019-12-03 02:37:44
I want to create a program that will stream video from my USB webcam over the internet to a web page. Currently, I use a webservice that when triggered, calls fswebcam to capture an image, save to data store, convert to base64 binary and send that data over to the HTML page where it is rendered into the 'src' attribute of 'img'. The HTML page has JavaScript that calls this service once per second. As you can tell this is a horrible way to do this. I would rather have a proper stream if I can. But I don't know what technologies are available to achieve this. The webservice is written in nodeJS

How to programmatically capture a webcam photo

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 02:27:34
问题 What's the simplest way in Ubuntu 11.10 to programmatically guide (either from Bash or Python) the user to capture a webcam photo of themselves? I can launch a simple app like Cheese, but I don't see an easy way to immediately detect or retrieve the photo it captures. I can also access and record the webcam stream directly via OpenCV, but I'd have to reinvent the GUI to communicate with the user. Is there any kind of script that's a happy medium, where I can launch it, and it prints on stdout

Android: How to use webcam in emulator?

匿名 (未验证) 提交于 2019-12-03 02:26:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm connecting a webcam to my emulator by setting the front camera to "webcam0" in the AVD Manager. When I start the emulator's camera application, I get the error CameraService::connect X (pid 702) rejected (invalid cameraId 0). Here's the relevant portion of the Android source code: sp CameraService::connect( const sp & cameraClient, int cameraId) { int callingPid = getCallingPid(); [...] if (cameraId = mNumberOfCameras) { LOGE("CameraService::connect X (pid %d) rejected (invalid cameraId %d).", callingPid, cameraId); return NULL; } [...]

How to capture still image from webcam on linux

孤街浪徒 提交于 2019-12-02 23:45:35
I am trying to write a C++/Qt program for linux, where I take a still image photo from a webcam, make some transformations to a photo (cropping, resizing, etc.), and save it to a jpeg file. But I have encountered some problems. The main problem is that standart UVC (usb video device class) linux driver currently does not support direct still image capture: http://www.ideasonboard.org/uvc/ . So, there are two possible ways to capture still image. You can take one frame from the video stream from the camera, or you can take a separate photo, like a digital portable camera. The second way is not

Streaming a webcam from Silverlight 4 (Beta)

允我心安 提交于 2019-12-02 18:12:00
The new webcam stuff in Silverlight 4 is darned cool. By exposing it as a brush, it allows scenarios that are way beyond anything that Flash has. At the same time, accessing the webcam locally seems like it's only half the story. Nobody buys a webcam so they can take pictures of themselves and make funny faces out of them. They buy a webcam because they want other people to see the resulting video stream, i.e., they want to stream that video out to the Internet, a lay Skype or any of the dozens of other video chat sites/applications. And so far, I haven't figured out how to do that with It

MediaCapture Windows 8 Desktop Application- Can't get it work

余生颓废 提交于 2019-12-02 17:23:29
问题 I'm trying to implement an image capture via this API, and I need to implement in via desktop application. The problem is that when I save the image into a file (with CapturePhotoToStorageFileAsync ) I get a dark picture (almost black), or I get zero size file. My code is very simple though: MediaCapture = new MediaCapture(); await mediaCapture.InitializeAsync(); Windows.Storage.StorageFile photoStorageFile; String PHOTO_FILE_NAME = "photo.jpg"; photoStorageFile = await Windows.Storage

How to run html file on localhost?

时光总嘲笑我的痴心妄想 提交于 2019-12-02 17:12:35
I have a html file and i run it on localhost. But, this file includes mirror using webcam. Example, how can i run this html file on localhost? Webcam starting on this example when check to live checkbox. Thanx for your reply. Nora You can use python -m http.server . By default the local server will run on port 8000. If you would like to change this, simply add the port number python -m http.server 1234 If you are using python 2 (instead of 3), the equivalent command is python -m SimpleHTTPServer You can run your file in http-server . 1> Have Node.js installed in your system. 2> In CMD, run the

Creating a Virtual Webcam Device for OS X

夙愿已清 提交于 2019-12-02 17:12:09
I am looking for a solution to create a "virtual" webcam device under OS X (that acts just as a normal hardware webcam, but the application has full control over what to output). I'm fairly experienced with C++, but not so much with Objective-C and OSX/Cocoa programming. Anyone that can point me in the right direction, where to look and what I should be looking for? I've searched, but most of the results seems to focus on Windows and DirectX. Thanks! The way to go is to use CoreMediaIO framework. You can create a virtual device using the framework. To get started you should have a look at http

Kivy With opencv. Resizing Image size

泄露秘密 提交于 2019-12-02 16:59:03
问题 I want to insert an opencv webcam video in kivy. Unfortunately, when I do this and maximize the window the image does not adjust to the screen size. Is there any way to do this ? from kivy.app import App from kivy.uix.image import Image from kivy.clock import Clock from kivy.graphics.texture import Texture import cv2 from kivy.uix.boxlayout import BoxLayout from kivy.uix.gridlayout import GridLayout from kivy.uix.widget import Widget from kivy.uix.button import Button from kivy.lang import

How to programmatically capture a webcam photo

自作多情 提交于 2019-12-02 15:56:31
What's the simplest way in Ubuntu 11.10 to programmatically guide (either from Bash or Python) the user to capture a webcam photo of themselves? I can launch a simple app like Cheese, but I don't see an easy way to immediately detect or retrieve the photo it captures. I can also access and record the webcam stream directly via OpenCV, but I'd have to reinvent the GUI to communicate with the user. Is there any kind of script that's a happy medium, where I can launch it, and it prints on stdout the filename of the image the user took? Multimedia Mike If you want to do this via Python, it looks