webcam

How do I get a webcam working with AngularJS?

吃可爱长大的小学妹 提交于 2019-12-09 06:07:25
问题 Previously I've put working webcam code into my application , but now it's not working when I updated to AngularJS v1.5.0. I am using webcam-directive which was working perfectly with v1.3.0. Here is my code: <webcam placeholder="selfiePlaceHolder" on-stream="onStream(stream)" on-access-denied="onError(err)" on-streaming="onSuccess(video)"> </webcam> But now it's giving following error with AngularJS v1.5.0: Uncaught Error: [$parse:isecdom] Referencing DOM nodes in Angular expressions is

Is it possible to upload stream on amazon s3 from browser?

邮差的信 提交于 2019-12-08 20:51:24
问题 I want to capture webcam video stream, and directly stream it to S3 storage. I've learned that you can upload via stream to s3: https://aws.amazon.com/blogs/aws/amazon-s3-multipart-upload/ I've learned that you can upload via browser: http://docs.aws.amazon.com/AmazonS3/latest/dev/HTTPPOSTExamples.html#HTTPPOSTExamplesFileUpload But Im still lost on how to actually do it. I need an example of someone uploadin getusermediastream to S3 like above. Buffer, Binary data, multipart upload, stream..

Opening camera in multiple program in openCV

你。 提交于 2019-12-08 19:41:29
How can I open a single webcam in multiple programs written in openCV simultaneously. Btw I have attached 3 webcams and all are working fine in any single program of openCV , but why two program can't use them both, simultaneously? Is this a restriction or is there any workaround? Yes, this is an intention to restrict Why? The conceptual view is related to the hardware control layer. Operating system assumes, there are some peripherals, that can be used on-demand, but keeps their context-of-use non-share-able. As an example, one may assume a USB-mouse. While it can be used within several

How can i use chrome webcam API and the processing.js to manipulate the video?

一笑奈何 提交于 2019-12-08 11:48:14
问题 As topic, I want to play with the webcam and chrome webcam API comes in handy, no plugin is needed. However, I am not familiar with javascript syntax, so I still want to use processing.js to manipulate the video. So how should the code be like? GetUserMedia in the canvas,then? How can i tell the processing.js that there is a video in the canvas? import processing.video should not work because it is processing.js instead of processing. 回答1: According to this: https://github.com/austinhappel

Capture image by Webcam in Asp.Net MVC

此生再无相见时 提交于 2019-12-08 09:47:50
问题 I want to capture an image from webcam and save on server or send through ajax. And which would be better option from both and why ? Any available information is welcome. Thanks in advance 回答1: You can easily do this by following these steps Step #1 Download Javascript Webcam project from Here Step #2 Extract solution and add this complete solution with your existing asp.net mvc application using Add Exiting Project Step #3 Open basic.html from demo folder replace with this <!doctype html>

Get grayscale image directly from webcam using Opencv

守給你的承諾、 提交于 2019-12-08 08:30:37
问题 Since in my embedded application I need images in grayscale, in order to save time I'm trying to get a frame from the webcam directly in grayscale without getting it from RGB format conversion. The examples that I've found gets the frame in RGB and then converts it with cvCvtColor(im_rgb,im_gray,CV_RGB2GRAY) Thanks. 回答1: On Linux, simply use the v4l2-ctl command to reduce all saturation and get the camera to spit out grayscale output: v4l2-ctl -c saturation=0 Of course, that will work only if

Capture image from webcam and display it - OpenCV - Eclipse - Windows

我怕爱的太早我们不能终老 提交于 2019-12-08 08:17:06
问题 I'm new to OpenCV and I want to display what my webcam sees with OpenCV. I'm using the C Coding Language. I've tried with this code: #include <stdio.h> #include <cv.h> // Include the OpenCV library #include <highgui.h> // Include interfaces for video capturing int main() { cvNamedWindow("Window", CV_WINDOW_AUTOSIZE); CvCapture* capture =cvCreateCameraCapture(-1); if (!capture){ printf("Error. Cannot capture."); } else{ cvNamedWindow("Window", CV_WINDOW_AUTOSIZE); while (1){ IplImage* frame =

Opening camera in multiple program in openCV

别来无恙 提交于 2019-12-08 07:06:43
问题 How can I open a single webcam in multiple programs written in openCV simultaneously. Btw I have attached 3 webcams and all are working fine in any single program of openCV , but why two program can't use them both, simultaneously? Is this a restriction or is there any workaround? 回答1: Yes, this is an intention to restrict Why? The conceptual view is related to the hardware control layer. Operating system assumes, there are some peripherals, that can be used on-demand, but keeps their context

Is there a way to create a duplicate device of webcam?

你。 提交于 2019-12-08 05:49:03
问题 I am writing a multi-thread application in C# to process webcam input concurrently. Is there any code project that can create a duplicate of the webcam as a new device, so each thread can take either the real device or the virtual device and not interfere with each other? Many software claimed to "split" webcam (used for effect and filter), but once the device they created is being used, there is no way to open the real device. In other words, I need the webcam to act as two, and with each

Two webcams on one usb 2.0 hub - works in windows but not linux

让人想犯罪 __ 提交于 2019-12-08 04:30:45
问题 The openCV code below grabs simultaneous images from two cameras. It works fine in windows, with the cameras both attached to one usb 2.0 hub. When I try the same code in linux, it only has enough bandwidth for one camera at a time. I've also tried viewing the two streams at once with guvcview, same issue. What I need is some way to force the webcams to work together, possibly by setting the amount of bandwidth the driver requests. capture = cv.CaptureFromCAM(0) capture2 = cv.CaptureFromCAM(1