webcam

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

匆匆过客 提交于 2020-01-31 03:38:27
问题 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.

'select timeout' error while running python opencv script

 ̄綄美尐妖づ 提交于 2020-01-24 14:37:47
问题 I'm trying to capture video/image feed from a USB 3.0 webcam. When ever I try to run this code,the code runs and captures feed. But, after a while I get 'select timeout'. The error is not grabbed by exception. Can someone help me with this issue? select timeout OpenCV Error: Assertion failed (total() == 0 || data != __null) in Mat, file /home/opencv-3.4.0/modules/core/include/opencv2/core/mat.inl.hpp, line 500 try: while True: ret, frame = cap.read() if ret != True: break if stat == None:

How to maintain constant FPS when grabbing frames with opencv and python?

北城余情 提交于 2020-01-24 12:54:06
问题 I am using OpenCV4 along with python 3 to open a webcam, grab the frames and display them in a window, just like the first code tutorial provided here. However, it takes a different amount of time grabbing different frames: sometimes it takes 0.01 s to grab, and sometimes it takes 0.33 s, which creates lags when showing the frames in the window. Is there a way to force a constant time when grabbing frames so that i can see the video without lag? I think it is happening with OpenCV because

How can I obtain raw data from a CVImageBuffer object

血红的双手。 提交于 2020-01-24 05:00:28
问题 I'm trying to use cocoa to grab images from a webcam. I'm able to get the image in RGBA format using the QTKit and the didOutputVideoFrame delegate call, and converting the CVImageBuffer to a CIImage and then to a NSBitmapImageRep. I know my camera grabs natively in YUV, what I want is to get the YUV data directly from the CVImageBuffer, and proccess the YUV frame before displaying it. My question is: How can I get the YUV data from the CVImageBuffer? thanks. 回答1: You might be able to create

Using OpenCV Output as Webcam

为君一笑 提交于 2020-01-22 19:28:03
问题 So, I want to write a program to make the processed output from OpenCV be seen as a WebCam. I want to use it to create effects for a program like Skype. I am stuck and Googling has led to no help. Please help me. Do I need to get a driver for this? What about storing as an AVI and streaming that AVI with some other application? I want to write a program to mask my face so I don't need to worry about my privacy when Skype-ing with people I am tutoring and don't personally know! By the way, I

Using OpenCV Output as Webcam

六眼飞鱼酱① 提交于 2020-01-22 19:27:19
问题 So, I want to write a program to make the processed output from OpenCV be seen as a WebCam. I want to use it to create effects for a program like Skype. I am stuck and Googling has led to no help. Please help me. Do I need to get a driver for this? What about storing as an AVI and streaming that AVI with some other application? I want to write a program to mask my face so I don't need to worry about my privacy when Skype-ing with people I am tutoring and don't personally know! By the way, I

Using OpenCV Output as Webcam

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-22 19:27:07
问题 So, I want to write a program to make the processed output from OpenCV be seen as a WebCam. I want to use it to create effects for a program like Skype. I am stuck and Googling has led to no help. Please help me. Do I need to get a driver for this? What about storing as an AVI and streaming that AVI with some other application? I want to write a program to mask my face so I don't need to worry about my privacy when Skype-ing with people I am tutoring and don't personally know! By the way, I

How to get photo from web cam and store it into a varbinary column with ASP.NET 4.0

你。 提交于 2020-01-16 15:54:17
问题 I just want take online photo for student entry (school management). I can't take photo from the web cam. No effects occurs on page. <script src="Webcam_Plugin/jquery.webcam.js" type="text/javascript"></script> <script type="text/javascript"> var pageUrl = "student_admision.aspx"; $(function () { jQuery("#webcam").webcam({ width: 320, height: 240, mode: "save", swffile: "Webcam_Plugin/jscam.swf", debug: function (type, status) { $('#camStatus').append(type + ": " + status + '<br /><br />'); }

How to use webcam capture on a Microsoft Access form

馋奶兔 提交于 2020-01-15 09:48:12
问题 I'm currently trying to design a database in Microsoft Access 2013 to store records of faulty parts found in the plant. I'm trying to implement a button on my form where the user can click on it to access their device's camera to attach a picture of the fault in the form. The user would be using Windows 10 on a Dell latitude 5290 two in one (If that helps.) I tried using a code I found online but it is extremely old and I don't believe would work in this age. Regardless, here is the code-

Solving camera bad feedback(several shades of horizontal lines moving up and down)

让人想犯罪 __ 提交于 2020-01-15 03:08:13
问题 It's bit difficult to define my problem as I am not sure the name of the symptoms, and its difficult to see it through static images. However I am still going to illustrate it, hope you all will get the idea of the problem. Real time video with the horizontal shades video, very obvious, but cannot be seen through images. But view the next 2 images: slightly more obvious here(through abs diff of background(a fixed static image) and current video streaming), though you have to squint your eyes