webcam

Reading output of a USB webcam in Linux

会有一股神秘感。 提交于 2019-12-03 07:30:43
问题 I was experimenting with a little bit with fread and fwrite in C. So i wrote this little program in C to get data from a webcam and dump it into a file. The following is the source: #include <stdio.h> #include <stdlib.h> #define SIZE 307200 // number of pixels (640x480 for my webcam) int main() { FILE *camera, *grab; camera=fopen("/dev/video0", "rb"); grab=fopen("grab.raw", "wb"); float data[SIZE]; fread(data, sizeof(data[0]), SIZE, camera); fwrite(data, sizeof(data[0]), SIZE, grab); fclose

Take picture using webcam from command line [closed]

一世执手 提交于 2019-12-03 06:08:13
I have a Logitech webcam (QuickCam Pro for Notebooks), and I'd like to take a snapshot using the cam from a command line. Does it have any command line interface? If not, is there an API that will allow me to build a command line tool like this? jörg You could use OpenCV to build such a command line application yourself. Basically you would use captureFromCam() to initialize the camera and then call QueryFrame() to capture a picture. Should be straightforward. I know this is an old discussion, but maybe you arrived here like I did recently looking for a simple command line app to capture a

How to run html file on localhost?

走远了吗. 提交于 2019-12-03 04:15:20
问题 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. 回答1: 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

Why can I stream h264 encoded video from webcam to BOTH display and file, but NOT raw video?

…衆ロ難τιáo~ 提交于 2019-12-03 03:58:23
I want to stream raw video from a Logitech C920 webcam and while both displaying and saving the video to file using GStreamer 1.0. This works if I stream h264 encoded video from the camera (the camera provides hardware encoded h264), but it fails if I stream raw video from the camera. However, if I only display, or only save to file, streaming raw video works. Why does it work with a h264 video stream but not with a raw video stream? h264 encoded video stream from camera to BOTH display and file (WORKS): gst-launch-1.0 -v v4l2src device=/dev/video0 \ ! video/x-h264,width=640,height=480

Streaming a webcam from Silverlight 4 (Beta)

断了今生、忘了曾经 提交于 2019-12-03 03:54:33
问题 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

Creating a Virtual Webcam Device for OS X

柔情痞子 提交于 2019-12-03 03:47:08
问题 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! 回答1: The way to go is to use CoreMediaIO

Open Source Video Gesture Recognition Library in C# [closed]

我的未来我决定 提交于 2019-12-03 03:41:39
I need an open-source Video Gesture Recognition .NET Library/API (in C#). We have a web cam... we move a hand and it causes some events... So I need motion detection for navigation lib/api... Where can I find such a library? I've heard that AForge is pretty awesome (check out the AForge.Vision.Motion namespace). A quick Google query gave me this: Video Hands Gesture Recognition in C# This is also interesting: Video Motion Detection Algorithms in C# OpenCV might be an option. Although it's a C library, there are C# bindings available. It's currently the most complete computer vision library out

Video Recording with webcam on a webpage [closed]

匿名 (未验证) 提交于 2019-12-03 03:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a requirement of recording video via web cam, on my webpage. What are the available plugins for the same. My website is developed using Ruby on Rails framework Regards, Pankaj 回答1: If an HTML5 solution could be suitable for you, you can take a look to WebRTC (currently supported in Chrome, Firefox and Opera). You can find a good tutorial here: http://www.html5rocks.com/en/tutorials/getusermedia/intro/ 回答2: The first hit on searching "webcam plugin": http://www.xarg.org/project/jquery-webcam-plugin/ As it is using JavaScript it is easy

Webcam streaming from Mac using FFmpeg

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to stream my webcam from Mac using FFmpeg. First I checked the supported devices using ffmpeg -f avfoundation -list_devices true -i "" Output: [AVFoundation input device @ 0x7fdf1bd03000] AVFoundation video devices: [AVFoundation input device @ 0x7fdf1bd03000] [0] USB 2.0 Camera #2 [AVFoundation input device @ 0x7fdf1bd03000] [1] FaceTime HD Camera [AVFoundation input device @ 0x7fdf1bd03000] [2] Capture screen 0 [AVFoundation input device @ 0x7fdf1bd03000] [3] Capture screen 1 [AVFoundation input device @ 0x7fdf1bd03000] AVFoundation

Take picture using webcam from command line [closed]

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a Logitech webcam (QuickCam Pro for Notebooks), and I'd like to take a snapshot using the cam from a command line. Does it have any command line interface? If not, is there an API that will allow me to build a command line tool like this? 回答1: You could use OpenCV to build such a command line application yourself. Basically you would use captureFromCam() to initialize the camera and then call QueryFrame() to capture a picture. Should be straightforward. 回答2: I know this is an old discussion, but maybe you arrived here like I did