webcam

Delphi Webcam Simple Program

北城余情 提交于 2019-11-29 15:34:06
问题 Can anyone help me to create a simple viewing of cam using just a simple TVideo component in delphi having a vid size of 160x120 only as default (no resize). Just a simple one. Please. Badly needed for my new project. thanks. 回答1: There are many ways to do it , I couldn't understand what do you mean by TVideo component but my solution can show image on a paintbox(any TCanvas) use http://www.delphibasics.info/home/delphibasicsprojects/directxdelphiwebcamcaptureexample

TypeError: 'getUserMedia' called on an object that does not implement interface MediaDevices

本秂侑毒 提交于 2019-11-29 14:56:50
问题 I'm trying to implement a webcam into a website using a video tag. It works in Chrome, but FireFox and IE return errors in the console. Anyone have any ideas why? Thank you! Code: navigator.getMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mediaDevices.getUserMedia || navigator.msGetUserMedia || OTPlugin.getUserMedia; Firefox error:TypeError: 'getUserMedia' called on an object that does not implement interface MediaDevices. IE error: Unable to get property

Two webcams on one usb hub - bandwidth issues

早过忘川 提交于 2019-11-29 14:55:31
I'm using OpenCV 2.3 to capture video from two webcams on a Linux computer(Ubuntu 10.04) which only has one USB hub. I'm getting an error "videoc_streamon: No space left on device" when cv.QueryFrame is called for the second camera the first time and "vidioc_qbuf: invalid argument" on subsequent calls. I know that this is a USB bandwidth issue, so I tried lowering the resolution to 320 x 240 with cv.SetCaptureProperty, which appears to not change anything (confirmed by a call to cv.GetCaptureProperty). What I need is some way to lower the bandwidth the cameras are using so that I can get

Forward RTSP stream to remote socket (RTSP Proxy?)

佐手、 提交于 2019-11-29 14:54:09
My Apologies for the generality of the question. I have tried many things but nothing seems to work. I have a server? (let's call it Server A ) that resides in a local area network where there is also an IP-Webcam. That webcam is constantly providing an RTSP feed on the address... let's say... rtsp://192.168.1.50:554/cam.sdp . The camera doesn't have access to the outside world (it must stay in the LAN, and therefore, only has access to server A , no to server B ), but server A does. Sadly, Server A doesn't have a public IP, so I can not reach into Server A from anywhere in the world. Server A

Qt video frames from camera corrupted

左心房为你撑大大i 提交于 2019-11-29 12:13:59
EDIT: The first answer solved my problem. Apart from that I had to set the ASI_BANDWIDTH_OVERLOAD value to 0. I am programming a Linux application in C++/Qt 5.7 to track stars in my telescope. I use a camera (ZWO ASI 120MM with according SDK v0.3) and grab its frames in a while loop in a separate thread. These are then emitted to a QOpenGlWidget to be displayed. I have following problem: When the mouse is inside the QOpenGlWidget area, the displayed frames get corrupted. Especially when the mouse is moved. The problem is worst when I use an exposure time of 50ms and disappears for lower

OpenCV webcam capture problem

限于喜欢 提交于 2019-11-29 09:52:32
问题 I've installed OpenCV 2.2 and now I can't get webcam capture to work. It worked ok in 2.1. OpenCV detects a webcam, doesn't report any errors or warnings, but each frame is a gray image. I even tried a code sample from OpenCV wiki: VideoCapture cap(0); // open the default camera if(!cap.isOpened()) // check if we succeeded return -1; Mat edges; namedWindow("edges",1); for(;;) { Mat frame; cap >> frame; // get a new frame from camera cvtColor(frame, edges, CV_BGR2GRAY); //GaussianBlur(edges,

How to access webcam via Internet Explorer (11)? [closed]

两盒软妹~` 提交于 2019-11-29 07:09:46
Context: I'm building an offline website (html5, css, js) which i want to call over IE (11). For taking/saving a picture i need to access the webcam. Approach: I read that IE doesn't support the getUserMedia; and the only way is to use flash. Question: Is the only possibility to access the webcam over IE by using flash? If yes, please recommend an example. I'd appreciate your input. Yes IE 11 and below currently doesn't support getUserMedia ,but there is a polyfill available on github, which you can find here It uses flash fallback in case getUserMedia is unavailable so you can give it a try.

How can I check if user has a webcam or not? [closed]

狂风中的少年 提交于 2019-11-29 02:47:07
I need to know if there's a way to know if the user has a webcam on his computer using javascript or maybe php. There is a plugin: http://www.xarg.org/project/jquery-webcam-plugin/ if(webcam.getCameraList().length == 0){ alert('You don\'t have a web camera'); } if(confirm('Do you have a webcam?')) { //they said yes :-) } else { //they said no :-( } Muhammet was right. First need to add the plugin http://www.xarg.org/project/jquery-webcam-plugin/ Then you'll need to start the plugin: $("#camera").webcam({ width: 320, height: 240, mode: "callback", swffile: "/lorran/jscam_canvas_only.swf",

How to take image snapshot with client side camera in my django web application

ぐ巨炮叔叔 提交于 2019-11-29 01:15:37
问题 I have a django web application in which i want give a option to capture the image in the registration form,"the registration can be done from any client system" when ever press the capture image button then client system camera should open and take the image should store in server side folder how can i do this. I am thinking that camera should open from html page and send the image to server, but I am not able open camera using html code. I hope some one might have done this if yes please

Getting a snapshot from a webcam with Delphi

◇◆丶佛笑我妖孽 提交于 2019-11-29 00:17:13
I need to get a regular snapshot from a webcam in Delphi. Speed is not a problem (once a second is fine). I have tried demo code from based on stuff from http://delphi.pjh2.de but I can't get it to work. It compiles and runs OK but the callback function never fires. I don't have a real webcam but am running instead a simulator. The simulator works (I can see the video using Skype) but not with the test app. I don't really know where to start looking... Can anyone be bothered to try this code? (Apologies for the voluminous post - couldn't find how or if you can attach files - a zip file is